/* =====================================================================
   上野高 ホームページ 共通スタイル
   コンセプト: 暗く静謐で神秘的、しかしモダンでシンプル、先進性を感じる操作感
   ===================================================================== */

:root{
  --bg:         #0C0D10;   /* 漆黒に近い、わずかに青みのある黒 */
  --bg-elev:    #14161D;   /* カード等の一段明るい面 */
  --bg-elev-2:  #1B1E27;
  --ink:        #ECE7DA;   /* 胡粉のような温かい白 */
  --ink-soft:   #A9A69C;   /* 副次テキスト */
  --muted:      #6E6C68;
  --gold:       #C6A567;   /* 金箔を思わせるアクセント */
  --gold-soft:  rgba(198,165,103,0.35);
  --indigo:     #5B7FA3;   /* 藍、神秘性を担う冷色アクセント */
  --indigo-glow:rgba(74,104,138,0.4);
  --line:       rgba(236,231,218,0.09);
  --line-strong:rgba(236,231,218,0.16);
  --max-w:      1120px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

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

html{ scroll-behavior:smooth; background:var(--bg); }

body{
  background:linear-gradient(165deg, #0A0B0E 0%, #101A2A 42%, #16233A 68%, #0A0B0E 100%);
  background-attachment:fixed;
  color:var(--ink);
  font-family:'Zen Kaku Gothic New', sans-serif;
  font-weight:400;
  line-height:1.95;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  position:relative;
  animation:fadeIn .8s var(--ease);
}

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

/* 微かな環境光(揺らめくグラデーション) */
body::before{
  content:"";
  position:fixed; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 1000px 700px at 20% 6%, rgba(91,127,163,0.13), transparent 62%),
    radial-gradient(ellipse 800px 800px at 88% 92%, rgba(91,127,163,0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 60% 40%, rgba(198,165,103,0.035), transparent 65%),
    radial-gradient(ellipse 1400px 900px at 50% 50%, transparent 55%, rgba(0,0,0,0.35) 100%);
  animation:driftGlow 28s ease-in-out infinite alternate;
}
@keyframes driftGlow{
  0%{ opacity:0.7; transform:translateY(0); }
  100%{ opacity:1; transform:translateY(-14px); }
}

h1,h2,h3,.font-mincho{ font-family:'Shippori Mincho', serif; font-weight:500; }
.page-title, .home-hero .page-title{ text-shadow:0 0 44px rgba(91,127,163,0.28); }

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

.wrap{ max-width:var(--max-w); margin:0 auto; padding:0 32px; position:relative; z-index:1; }

::selection{ background:var(--gold); color:#0C0D10; }

/* ---------- ナビゲーション ---------- */
nav.site-nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:linear-gradient(to bottom, rgba(10,11,14,0.82) 0%, rgba(10,11,14,0.32) 55%, rgba(10,11,14,0) 100%);
}
.nav-inner{
  max-width:var(--max-w); margin:0 auto; padding:24px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-name{
  font-size:23px; letter-spacing:0.14em; color:var(--ink);
}
.nav-name .en{
  display:block; font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:13px; letter-spacing:0.22em; color:var(--muted); margin-top:4px;
}
.nav-links{ list-style:none; display:flex; gap:34px; text-transform:lowercase; }
.nav-links a{
  font-size:13px; letter-spacing:0.14em; color:var(--ink-soft);
  position:relative; padding-bottom:6px;
  transition:color .3s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--gold); transition:width .35s var(--ease);
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:var(--gold); }

/* ---------- 「作品」シリーズ・サブメニュー ---------- */
.has-submenu{ position:relative; }
.nav-submenu{
  list-style:none;
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  min-width:160px; padding:10px 0;
  background:rgba(16,17,21,0.96); border:1px solid var(--line-strong);
  box-shadow:0 20px 40px -16px rgba(0,0,0,0.5);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease;
}
.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu{
  opacity:1; visibility:visible; pointer-events:auto;
}
.nav-submenu li a{
  display:block; padding:9px 22px; font-size:12px; letter-spacing:0.08em; color:var(--ink-soft); white-space:nowrap;
}
.nav-submenu li a:hover{ color:var(--gold); background:rgba(198,165,103,0.06); }
.nav-submenu li a::after{ display:none; }

@media (max-width:720px){
  .nav-submenu{
    position:static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    background:none; border:none; padding:6px 0 0 16px; margin-top:10px;
  }
  .nav-submenu li a{ padding:8px 0; font-size:13px; }
}

.nav-toggle{ display:none; }


@media (max-width:720px){
  .nav-links{
    position:fixed; top:0; right:0; height:100vh; width:min(72vw,320px);
    background:var(--bg-elev); flex-direction:column; justify-content:center;
    gap:32px; padding:0 40px;
    transform:translateX(100%); transition:transform .4s var(--ease);
    border-left:1px solid var(--line);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:15px; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; z-index:110;
    background:none; border:none; cursor:pointer; padding:8px;
  }
  .nav-toggle span{ width:22px; height:1px; background:var(--ink); transition:all .3s ease; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
}

/* ---------- ページヘッダー(各ページ共通の見出し部、村岡先生版に倣いシンプルな英語表記のみ) ---------- */
.page-header{
  padding:130px 0 14px;
  position:relative; z-index:1;
}
.page-eyebrow{
  font-size:15px; letter-spacing:0.28em; color:var(--gold);
  display:flex; align-items:center; gap:14px; margin-bottom:0;
  font-family:'Zen Kaku Gothic New', sans-serif; font-weight:400;
  text-transform:uppercase;
}
.page-eyebrow::before{ content:""; width:30px; height:1px; background:var(--gold); }
.page-title{ font-size:clamp(26px,3.4vw,34px); letter-spacing:0.05em; margin-bottom:20px; }
.page-lead{ font-size:16px; color:var(--ink-soft); max-width:52ch; }

.divider{
  width:100%; max-width:220px; height:1px; margin:24px 0 0;
  background:linear-gradient(to right, var(--gold-soft), var(--indigo-glow), transparent);
}

/* ---------- ホーム/お知らせ ---------- */
.home-hero{ padding-bottom:40px; }
.home-hero .page-title{ font-size:clamp(34px,5vw,54px); }

/* ---------- ホーム メインビジュアル(中央配置) ---------- */
.home-viewport{
  padding:130px 0 0;
  display:flex; flex-direction:column;
  justify-content:flex-start;
}

.hero-visual{
  position:relative;
  flex:0 1 auto; min-height:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:0 6vw;
  text-align:center;
}
.hero-visual-frame{
  position:relative;
  max-width:900px; width:100%;
  display:flex; align-items:center; justify-content:center;
}
.hero-visual img{
  display:block; max-width:100%; max-height:64vh; width:auto; height:auto;
  object-fit:contain;
  box-shadow:0 40px 100px -30px rgba(0,0,0,0.65), 0 0 0 1px rgba(236,231,218,0.05);
}
.hero-visual.no-image .hero-visual-frame{
  width:100%; max-width:540px; aspect-ratio:4/3;
  background:linear-gradient(155deg, #171C28, #0D0F14 60%, #11151C);
  border:1px solid var(--line);
}
.hero-visual.no-image img{ display:none; }
.hero-visual .no-image-note{
  display:none;
  position:absolute; inset:0; align-items:center; justify-content:center;
  text-align:center; font-size:12px; letter-spacing:0.08em; color:var(--muted);
  padding:20px;
}
.hero-visual.no-image .no-image-note{ display:flex; }

.hero-caption{ margin-top:44px; max-width:520px; }
.hero-caption .page-eyebrow{ justify-content:center; margin-bottom:16px; }
.hero-caption .page-title{ font-size:clamp(22px,2.6vw,28px); letter-spacing:0.08em; margin-bottom:12px; }
.hero-caption .page-lead{ margin:0 auto; font-size:13.5px; color:var(--ink-soft); }

/* ---------- ホームのお知らせ(控えめに、画像のすぐ下へ) ---------- */
.news-modest{ flex:0 0 auto; margin-top:20px; margin-bottom:34px; padding:0; max-height:26vh; overflow-y:auto; }
.news-modest-label{
  text-align:center; font-size:10.5px; letter-spacing:0.32em; color:var(--muted);
  margin-bottom:12px; text-transform:uppercase;
}
.news-modest .news-list{ margin:0 auto; }
.news-modest .news-item{ padding:10px 0; }
.news-modest .news-date{ color:var(--ink-soft); font-size:13px; }
.news-modest .news-tag{ color:var(--muted); border-color:var(--line-strong); }

@media (max-width:700px){
  .home-viewport{ padding-top:110px; }
  .hero-visual{ padding:6px 6vw; }
  .news-modest{ max-height:30vh; }
}

.news-list{ max-width:780px; }
.news-item{
  display:grid; grid-template-columns:104px 1fr;
  gap:28px;
  padding:28px 0;
  border-top:1px solid var(--line);
  opacity:0; transform:translateY(14px);
  animation:riseIn .7s var(--ease) forwards;
}
.news-list .news-item:last-child{ border-bottom:1px solid var(--line); }
.news-date{ font-size:14px; color:var(--gold); font-family:'Shippori Mincho',serif; letter-spacing:0.05em; }
.news-tag{
  display:inline-block; font-size:11px; letter-spacing:0.08em;
  color:var(--indigo); border:1px solid var(--indigo); padding:3px 9px;
  margin-bottom:10px; border-radius:1px;
}
.news-body p{ font-size:15px; color:var(--ink-soft); max-width:56ch; }

.news-empty{
  padding:48px 0; color:var(--muted); font-size:15px; letter-spacing:0.03em;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}

@keyframes riseIn{ to{ opacity:1; transform:translateY(0); } }

/* ---------- セクション共通 ---------- */
section{ padding:0 0 34px; position:relative; z-index:1; }

.section-head{ display:flex; align-items:baseline; gap:18px; margin-bottom:56px; }
.section-num{ font-size:13px; color:var(--gold); font-family:'Shippori Mincho',serif; }
.section-title{ font-size:24px; letter-spacing:0.06em; }
.section-title-en{ font-size:12px; letter-spacing:0.2em; color:var(--muted); margin-left:auto; }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- プロフィール ---------- */
.profile-grid{ display:grid; grid-template-columns:210px 1fr; gap:56px; }
.profile-portrait{
  aspect-ratio:3/4;
  max-height:52vh;
  background:linear-gradient(155deg, var(--bg-elev-2), var(--bg-elev));
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:20px;
  font-size:12px; letter-spacing:0.08em; color:var(--muted);
}
.profile-portrait img{ width:100%; height:100%; object-fit:cover; display:block; }
.profile-portrait.img-missing img{ display:none; }

.profile-bio p{ margin-bottom:22px; color:var(--ink-soft); max-width:58ch; font-size:15.5px; }
.profile-bio strong{ color:var(--ink); font-weight:500; }

.profile-history{ margin-top:44px; }
.history-item{
  display:grid; grid-template-columns:110px 1fr; gap:20px;
  padding:18px 0; border-top:1px solid var(--line); font-size:14.5px; color:var(--ink-soft);
}
.history-item:last-child{ border-bottom:1px solid var(--line); }
.history-item .year{ color:var(--gold); font-family:'Shippori Mincho',serif; }

@media (max-width:760px){
  .profile-grid{ grid-template-columns:1fr; gap:36px; }
  .profile-portrait{ max-width:200px; max-height:40vh; }
}

/* ---------- 作品 ---------- */
.series-section{ margin-bottom:88px; }
.series-section:last-child{ margin-bottom:0; }
.series-heading{
  display:flex; align-items:baseline; gap:14px;
  margin-bottom:34px; padding-bottom:14px; border-bottom:1px solid var(--line);
}
.series-heading-label{ font-family:'Shippori Mincho',serif; font-size:18px; letter-spacing:0.08em; color:var(--gold); }
.series-heading-count{ font-size:11px; color:var(--muted); letter-spacing:0.04em; }

.works-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:40px 28px;
}
.work-card{ position:relative; }
.work-image{
  position:relative; aspect-ratio:4/5; overflow:hidden; max-height:58vh;
  background-color:transparent;
  background-image:linear-gradient(155deg, var(--bg-elev-2), var(--bg-elev));
  background-size:cover; background-position:center;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
  cursor:pointer;
  transition:border-color .4s ease, box-shadow .4s ease, transform .7s var(--ease);
  -webkit-touch-callout:none; /* iOSの長押しメニュー(画像を保存)を抑制 */
  user-select:none;
}
.work-card:hover .work-image{
  border-color:var(--gold-soft);
  box-shadow:0 0 30px -10px rgba(198,165,103,0.22), 0 0 46px -12px rgba(91,127,163,0.32);
  transform:scale(1.015);
}
.work-image .placeholder-label{ font-size:11.5px; letter-spacing:0.08em; color:var(--muted); text-align:center; padding:16px; }
.work-image.has-image .placeholder-label{ display:none; }
.img-shield{
  position:absolute; inset:0; z-index:2;
  background:transparent;
}

.work-title{ font-size:16px; margin-bottom:4px; }
.work-sub{ font-size:12.5px; color:var(--muted); letter-spacing:0.02em; }

@media (max-width:640px){
  .works-grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:24px 16px; }
  .work-image{ max-height:42vh; }
}

/* ---------- ライトボックス ---------- */
.lightbox{
  display:none; position:fixed; inset:0; z-index:500;
  background:rgba(6,7,9,0.94);
  align-items:center; justify-content:center;
  padding:60px;
}
.lightbox.open{ display:flex; }
.lightbox-content{ display:flex; flex-direction:column; align-items:center; max-width:min(1100px,86vw); }
.lightbox-image{
  width:min(1100px,86vw); height:min(78vh,900px);
  background-size:contain; background-position:center; background-repeat:no-repeat;
  -webkit-touch-callout:none; user-select:none;
}
.lightbox-caption{ margin-top:24px; font-size:13px; letter-spacing:0.04em; color:var(--ink-soft); text-align:center; }
.lightbox-close{
  position:absolute; top:26px; right:32px; z-index:2;
  background:none; border:none; color:var(--ink-soft); font-size:30px; line-height:1;
  cursor:pointer; transition:color .25s ease;
}
.lightbox-close:hover{ color:var(--gold); }
.lightbox-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--ink-soft); font-size:42px; line-height:1;
  cursor:pointer; padding:12px 18px; transition:color .25s ease;
}
.lightbox-arrow:hover{ color:var(--gold); }
.lightbox-prev{ left:8px; }
.lightbox-next{ right:8px; }

@media (max-width:700px){
  .lightbox{ padding:24px; }
  .lightbox-image{ width:90vw; height:60vh; }
  .lightbox-arrow{ font-size:32px; padding:8px 10px; }
  .lightbox-close{ top:14px; right:16px; font-size:26px; }
}

/* ---------- お問い合わせ ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:start; }

.contact-note p{ font-size:15px; color:var(--ink-soft); margin-bottom:20px; max-width:44ch; }
.contact-note .note-label{
  font-size:12px; letter-spacing:0.14em; color:var(--gold); margin-bottom:14px; display:block;
}

.form-field{ margin-bottom:26px; }
.form-field label{
  display:block; font-size:12px; letter-spacing:0.1em; color:var(--ink-soft); margin-bottom:10px;
}
.form-field input,
.form-field textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--line-strong);
  color:var(--ink); font-family:'Zen Kaku Gothic New',sans-serif; font-size:16px;
  padding:10px 2px; transition:border-color .3s ease;
}
.form-field input:focus,
.form-field textarea:focus{ outline:none; border-color:var(--gold); }
.form-field textarea{ resize:vertical; min-height:120px; }

.form-submit{
  appearance:none; background:none; border:1px solid var(--gold-soft);
  color:var(--gold); font-size:13px; letter-spacing:0.16em;
  padding:14px 34px; cursor:pointer; transition:all .35s var(--ease);
  font-family:'Zen Kaku Gothic New',sans-serif;
}
.form-submit:hover{ background:var(--gold); color:#0C0D10; border-color:var(--gold); }
.form-submit:disabled{ opacity:0.4; cursor:not-allowed; }

.form-status{
  margin-top:18px; font-size:14px; min-height:20px; letter-spacing:0.02em;
}
.form-status.ok{ color:#8FBF8C; }
.form-status.err{ color:#D08066; }

/* ハニーポット(スパム対策・非表示) */
.hp-field{ position:absolute; left:-9999px; opacity:0; height:0; overflow:hidden; }

@media (max-width:760px){
  .contact-grid{ grid-template-columns:1fr; gap:48px; }
}

/* ---------- フッター ---------- */
footer{ padding:70px 0 46px; border-top:1px solid var(--line); position:relative; z-index:1; }
.footer-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; margin-bottom:36px; }
.footer-name{ font-size:17px; letter-spacing:0.08em; }
.copyright{ font-size:11.5px; color:var(--muted); letter-spacing:0.05em; text-align:right; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
