/* =========================================================
 * 菰原 裕 Official Site — Stylesheet
 * (掲載内容の編集は data.js で行えます。通常このファイルを
 *  編集する必要はありません)
 * ========================================================= */

:root {
  --ink: #131518;            /* 基調のダークグレー(ヒーロー左パネル・ダークセクション) */
  --ink-deep: #0d0f11;       /* ヘッダー・フッター */
  --paper: #f3f3f2;          /* 明るいセクションの背景 */
  --paper-tint: #e7e7e5;     /* 薄いグレーのセクション背景 */
  --text: #25272a;           /* 本文(明るい背景用) */
  --text-sub: #5c5e62;       /* 補足テキスト(明るい背景用) */
  --text-on-dark: #f0f0ef;   /* 本文(暗い背景用) */
  --text-sub-on-dark: #b7b9bb;
  --graphite: #45474c;       /* アクセント(明るい背景用) */
  --silver: #c7c9cc;         /* アクセント(暗い背景用) */
  --line: rgba(69, 71, 76, .28);
  --line-on-dark: rgba(199, 201, 204, .35);
  --font-en: "Marcellus", serif;
  --font-heading: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  color: var(--text-on-dark);
  background: rgba(13, 15, 17, .55);
  backdrop-filter: blur(6px);
  transition: background-color .35s ease, box-shadow .35s ease;
}

.site-header.is-solid {
  background: rgba(13, 15, 17, .96);
  box-shadow: 0 1px 0 rgba(199, 201, 204, .22);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.2;
}
.brand-en {
  font-family: var(--font-en);
  font-size: 1.32rem;
  letter-spacing: .08em;
}

.nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(6px, 1.4vw, 16px); }

.nav-list a {
  display: block;
  position: relative;
  padding: 8px 6px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .08em;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 2px;
  background: var(--silver);
  transition: width .3s ease, left .3s ease;
}
.nav-list a:hover::after,
.nav-list a.is-active::after { left: 6px; width: calc(100% - 12px); }

/* ヘッダーの SNS アイコン */
.header-sns {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: clamp(8px, 1.6vw, 20px);
}
.sns-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  color: var(--text-sub-on-dark);
  transition: color .3s ease;
}
.sns-icon-link:hover { color: #fff; }

/* ハンバーガーボタン(モバイルのみ表示) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text-on-dark);
  transition: transform .3s ease, opacity .3s ease;
}

/* ===== Hero(デスクトップ: 左パネル+右写真のスプリット) ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  min-height: 100svh;
  background: var(--ink);
  color: var(--text-on-dark);
}

.hero-copy {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) clamp(28px, 5vw, 80px) 96px;
}
.hero-copy-inner { max-width: 460px; }

.hero-role {
  font-family: var(--font-en);
  font-size: .92rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--silver);
}
.hero-role::after {
  content: "";
  display: block;
  width: 56px; height: 1px;
  margin-top: 18px;
  background: var(--silver);
}

.hero-name {
  margin: 26px 0 10px;
  font-weight: 400;
}
.hero-name-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: .04em;
  line-height: 1.08;
}
.hero-name-ja {
  display: block;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: .3em;
  color: var(--text-sub-on-dark);
}

.hero-cta {
  display: inline-block;
  margin-top: 36px;
  padding: 13px 34px;
  border: 1px solid var(--line-on-dark);
  border-radius: 2px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .14em;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.hero-cta:hover {
  background: var(--silver);
  border-color: var(--silver);
  color: var(--ink-deep);
}

/* スプリット表示では写真に手を加えずそのまま見せる */
.hero-visual {
  position: relative;
  min-height: 320px;
  background-position: center;
  background-size: cover;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: clamp(28px, 5vw, 80px);
  font-family: var(--font-en);
  font-size: .8rem;
  letter-spacing: .26em;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: "";
  width: 56px; height: 1px;
  background: linear-gradient(to right, var(--silver), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scroll-line {
  0%   { transform: scaleX(0); }
  45%  { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ===== Sections(共通) ===== */
.section { padding: clamp(76px, 11vw, 120px) 0; }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-tinted { background: var(--paper-tint); }
/* ダークセクションが連続する場合の区切り線 */
.section-dark + .section-dark { border-top: 1px solid rgba(199, 201, 204, .16); }

.container {
  width: min(1080px, 90%);
  margin: 0 auto;
}
.container-narrow { width: min(780px, 90%); }

/* 見出し: 英語は小さな飾り、日本語が主役 */
.section-title {
  margin-bottom: clamp(40px, 6vw, 58px);
  line-height: 1.4;
}
.section-title .en {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: .92rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--graphite);
}
.section-title .en::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--graphite);
}
.section-dark .section-title .en { color: var(--silver); }
.section-dark .section-title .en::before { background: var(--silver); }

.section-title .ja {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: .14em;
}

.section-lead {
  max-width: 680px;
  margin: -10px 0 clamp(34px, 5vw, 48px);
  font-size: .98rem;
  color: var(--text-sub);
}
.section-lead p { margin: 0; }
.section-lead p + p,
.section-lead .rich-list + p { margin-top: .9em; }

/* "- " 始まりの行から生成される箇条書き */
.rich-list { margin: .7em 0; }
.rich-list li {
  position: relative;
  padding: 3px 0 3px 1.15em;
  line-height: 1.8;
}
.rich-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--graphite);
  opacity: .55;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}
/* 名前(日本語が主役、英語表記を添える) */
.about-name {
  margin-bottom: clamp(24px, 3.4vw, 34px);
  padding-bottom: clamp(18px, 2.6vw, 24px);
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
}
.about-name-ja {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  letter-spacing: .2em;
}
.about-name-en {
  display: block;
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: .92rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.about-text p {
  margin-bottom: 1.4em;
  font-size: 1rem;
  line-height: 2.05;
}
.about-text p:last-child { margin-bottom: 0; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
}
.gallery-item { position: relative; }
.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-caption {
  display: block;
  margin-top: 10px;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--text-sub-on-dark);
  text-align: center;
}

/* ===== Timeline(受賞歴・出演歴) ===== */
.timeline { border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(16px, 4vw, 40px);
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline-year {
  font-family: var(--font-en);
  font-size: 1.22rem;
  letter-spacing: .08em;
  color: var(--graphite);
}
.timeline-title { font-size: 1rem; }

/* 一覧の末尾に添える「ほか多数」など */
.list-note {
  margin-top: 14px;
  text-align: right;
  font-size: .88rem;
  letter-spacing: .08em;
  color: var(--text-sub);
}

/* ===== Teaching ===== */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.teaching-card {
  background: #fff;
  border-left: 3px solid var(--graphite);
  border-radius: 3px;
  padding: clamp(26px, 3.2vw, 36px) clamp(22px, 2.6vw, 30px);
  box-shadow: 0 8px 28px rgba(19, 21, 24, .08);
}
.teaching-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
  line-height: 1.6;
}
.teaching-desc {
  font-size: .95rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}
.teaching-desc:last-child { margin-bottom: 0; }
.teaching-items li {
  padding: 9px 0;
  font-size: .95rem;
  line-height: 1.75;
  border-bottom: 1px dashed rgba(69, 71, 76, .25);
}
.teaching-items li:last-child { border-bottom: none; padding-bottom: 0; }

/* ===== Contact ===== */
.contact .section-title { text-align: center; }
.contact .section-title .en { justify-content: center; }
.contact .section-title .en::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--silver);
}
.contact-body { text-align: center; }
.contact-note {
  font-size: .98rem;
  margin-bottom: 36px;
  color: var(--text-sub-on-dark);
}
.contact-email {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  letter-spacing: .06em;
  color: var(--silver);
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 6px;
  transition: opacity .3s ease;
}
.contact-email:hover { opacity: .75; }

/* お問い合わせの SNS(アイコン+ID) */
.sns-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.sns-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  font-size: .92rem;
  letter-spacing: .06em;
  color: var(--text-on-dark);
  transition: border-color .3s ease, color .3s ease;
}
.sns-pill:hover {
  border-color: var(--silver);
  color: var(--silver);
}
.sns-pill svg { flex-shrink: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  text-align: center;
  padding: 36px 20px;
}
.footer-copy {
  font-family: var(--font-en);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--text-sub-on-dark);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 11, 13, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: 100%; max-height: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox-figure figcaption {
  margin-top: 16px;
  color: var(--text-on-dark);
  font-size: .9rem;
  letter-spacing: .08em;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Reveal(スクロール出現アニメーション) ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
}

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    margin-left: 0;
    background: var(--ink-deep);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
  }
  .nav-list a {
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .nav-list a::after { content: none; }

  .header-sns { margin-left: auto; margin-right: 4px; }

  /* ハンバーガー → × */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ヒーロー: スプリットをやめ、写真全面+テキストオーバーレイに切り替え */
  .hero {
    display: block;
    position: relative;
    min-height: 100svh;
  }
  .hero-visual {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  /* 文字が重なるオーバーレイ表示のときだけ、薄いグラデーションを敷く */
  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom,
        rgba(13, 15, 17, .35) 0%,
        rgba(13, 15, 17, .05) 38%,
        rgba(13, 15, 17, .52) 62%,
        rgba(13, 15, 17, .88) 100%);
  }
  .hero-copy {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    align-items: flex-end;
    padding: calc(var(--header-h) + 32px) 28px 82px;
  }
  .hero-copy-inner { max-width: none; }
  .hero-scroll { left: 28px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 72px 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .brand-en { font-size: 1.2rem; white-space: nowrap; }
  .sns-icon-link { width: 34px; }
}
