/* ============================================
   Yosuke Saito Official Website
   ============================================ */

:root {
  --color-mint: #ebf7f4;
  --color-white: #ffffff;
  --color-black: #111111;
  --color-teal: #0ca5a5;
  --color-text: #222222;
  --color-text-light: #555555;
  --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --max-width: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 760px; }

.section { padding: 72px 0; }
.section--white { background: var(--color-white); }
.section--mint { background: var(--color-mint); }

.section-title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 48px);
  text-align: center;
  color: var(--color-black);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

/* ============ Header / Nav ============ */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

.menu-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* flexboxのgapに頼らず、絶対配置＋transformだけで3本の線の位置を決めています
   （一部のブラウザでflexのgapとtransformの組み合わせがズレて、
   ×に変わったときに線の端が中央からズレて見えることがあるための対策） */
.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) { transform: translate(-50%, -50%) translateY(-7px); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, -50%) translateY(7px); }

.menu-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 78vw);
  height: 100vh;
  background: var(--color-white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 76px 28px 32px;
  display: flex;
  flex-direction: column;
}

.site-nav.is-open { transform: translateX(0); }

.nav-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-list li:first-child {
  border-top: 1px solid rgba(0,0,0,0.07);
}

.nav-list a {
  display: block;
  padding: 12px 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-black);
  letter-spacing: 0.01em;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-teal);
  padding-left: 6px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ============ Hero (FV) ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/hero.jpg') center / cover no-repeat;
  color: #fff;
  padding: 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 15px;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-title {
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 15px;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ============ News ============ */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: var(--color-text-light);
}

.news-list li:last-child { border-bottom: none; }

/* ============ Who am I ============ */

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.who-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-name {
  text-align: center;
  font-weight: 900;
  font-size: clamp(24px, 5vw, 34px);
  margin: 0 0 8px;
}

.profile-role {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
  color: var(--color-teal);
}

.profile-bio p { margin: 0 0 20px; }

@media (min-width: 760px) {
  .who-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
  }
  .who-text .profile-name,
  .who-text .profile-role {
    text-align: left;
  }
  .who-text .social-icons {
    justify-content: flex-start;
  }
}

/* ============ Discography ============ */

.disco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.disco-card {
  display: block;
  background: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.disco-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.disco-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.disco-card-title {
  display: block;
  padding: 10px 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
}

/* 「もっと見る」を押すまでは9枚目以降を隠す */
.disco-grid.is-collapsed .disco-card:nth-child(n+13) {
  display: none;
}

/* ============ Movie ============ */

.movie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* 「もっと見る」を押すまでは5本目以降を隠す */
.movie-grid.is-collapsed .movie-card:nth-child(n+5) {
  display: none;
}

/* ============ もっと見るボタン（共通） ============ */

.show-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.show-more-btn {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.show-more-btn:hover {
  background: var(--color-teal);
  color: #fff;
}

.movie-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.movie-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-title {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
}

/* ============ Works ============ */

.works-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

@media (min-width: 760px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

.work-item {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 14px;
  border-top: 4px solid var(--color-teal);
  padding: 30px 26px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.work-item:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.work-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-mint);
  margin-bottom: 16px;
}

.work-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-num {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-teal);
}

.work-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.work-lead {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--color-text-light);
}

.work-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-item li {
  position: relative;
  padding-left: 1.4em;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.work-item li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-teal);
  font-weight: 700;
}

.work-cta {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  padding: 10px 20px;
  background: var(--color-teal);
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.work-cta:hover {
  background: #0b8f8f;
}

/* ============ Blog ============ */

.blog-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .blog-list { grid-template-columns: 1fr 1fr; }
}

.blog-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover { border-color: #d5d5d5; }

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.blog-banner {
  display: block;
  width: 100%;
  aspect-ratio: 864 / 460;
  object-fit: cover;
}

.blog-card-body { padding: 18px 22px 22px; }

.blog-card h3 { margin: 0 0 6px; font-size: 17px; }

.blog-tags {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-teal);
  text-transform: uppercase;
}

.blog-desc { margin: 0; color: var(--color-text-light); font-size: 14px; }

/* ============ Contact ============ */

.contact-form { margin-top: 8px; }

.form-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.required {
  background: var(--color-black);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8e3e0;
  border-radius: 4px;
  background: #f3f4f6;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
}

.form-row textarea { resize: vertical; }

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ca5a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

.form-row select:invalid { color: #7a8481; }

.form-row--honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; padding: 0; border: 0; }

.submit-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 32px auto 0;
  padding: 18px;
  background: var(--color-black);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover { background: #333; }

.form-success, .form-error {
  text-align: center;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-weight: 700;
}

.form-success { background: #dff5ea; color: #157347; }
.form-error { background: #fde2e1; color: #b3261e; }

/* ============ 送信完了ポップアップ ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: modalFadeIn 0.2s ease;
  transition: opacity 0.15s ease;
}

.modal-overlay.is-closing { opacity: 0; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--color-white);
  border-radius: 14px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-light);
  font-size: 20px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover { background: var(--color-mint); }

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-icon--success { background: #dff5ea; }
.modal-icon--success svg { stroke: #157347; }
.modal-icon--error { background: #fde2e1; }
.modal-icon--error svg { stroke: #b3261e; }

.modal-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.modal-desc {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.modal-ok-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-teal);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-ok-btn:hover { background: #0b8f8f; }

/* ============ Footer ============ */

.site-footer {
  background: var(--color-mint);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============ GLightbox caption override ============ */

.gdesc-inner .gslide-title {
  font-family: var(--font-jp);
  font-weight: 700;
}

.gdesc-inner .gslide-desc {
  font-family: var(--font-jp);
}

/* ============ Responsive ============ */

@media (min-width: 640px) {
  .disco-grid { grid-template-columns: repeat(3, 1fr); }
  .movie-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .disco-grid { grid-template-columns: repeat(4, 1fr); }
  .site-header { top: 0; }
}
