/* chitose-saegusa.com : Opal design */
:root {
  --base: #fbfaf7;
  --panel: #ffffff;
  --ink: #3a3a40;
  --ink-2: #55555f;
  --ink-3: #6d6d76;
  --line: #e7e3dc;
  --line-2: #d6d1c8;
  --opal-a: #a8c8c0;
  --opal-b: #d9b8c4;
  --opal-a-deep: #457169;
  --opal-b-deep: #8f5f6f;
  --footer-bg: #f2efe9;
  --display: 'Cormorant Upright', 'CJK Serif Sub', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body: 'Orienta', 'CJK Sans Sub', 'Segoe UI', system-ui, -apple-system, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
  --shell: 1180px;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .wordmark, .brand-name, .btn, .kicker, .eyebrow, .hero-title, .section-title,
.era h3, .side-title, .social-row .platform, .stat-strip b, .arch dt, .ribbon .when {
  font-family: var(--display);
}
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 30px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.wordmark {
  font-size: 1.42rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .95rem; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; letter-spacing: .01em; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--opal-a); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--opal-a); color: var(--ink); border: 1px solid var(--opal-a);
  border-radius: 999px; padding: .72rem 1.4rem; font-size: 1rem; font-weight: 600;
  letter-spacing: .02em; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ink); color: var(--base); border-color: var(--ink); }
.btn-sm { padding: .42rem 1.05rem; font-size: .9rem; }
.main-nav a.btn { color: var(--ink); }
.main-nav a.btn:hover { color: var(--base); background: var(--ink); border-color: var(--ink); }
.main-nav a.btn[aria-current="page"] { box-shadow: none; }

/* hero */
.hero { padding: 2.4rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .78fr; gap: 3rem; align-items: center; }
.kicker { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--opal-a-deep); margin: 0 0 .9rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.1rem); line-height: .98; letter-spacing: -.01em; margin: 0 0 .5rem; font-weight: 600; }
.hero-name { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 1.1rem; }
.hero-lead { color: var(--ink-2); margin: 0 0 1.6rem; max-width: 46ch; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem .8rem; margin: 1.5rem 0 0; padding: 0; }
.hero-facts li {
  display: flex; flex-direction: column; gap: .1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: .55rem .85rem;
}
.hero-facts .k { font-family: var(--display); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.hero-facts .v { font-size: .95rem; color: var(--ink); }
.hero-photo, .about-photo {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden; display: flex; flex-direction: column;
}
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
.about-photo img { display: block; width: 100%; height: auto; }
.opal-band {
  display: block; height: 10px;
  background: linear-gradient(90deg, var(--opal-a) 0%, #c6c8c2 48%, var(--opal-b) 100%);
}

/* sections */
.section { padding: 2.7rem 0; }
.section-last { padding-bottom: 4.2rem; }
.section-head { margin: 0 0 1.6rem; }
.eyebrow {
  display: flex; align-items: baseline; gap: .7rem;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .55rem;
}
.eyebrow .num { font-size: 1.1rem; letter-spacing: .06em; color: var(--opal-a-deep); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.08; margin: 0 0 .5rem; font-weight: 600; }
.section-title .num { color: var(--opal-a-deep); font-size: .56em; letter-spacing: .1em; padding-right: .6rem; vertical-align: .1em; }
.section-sub { color: var(--ink-2); margin: 0; max-width: 64ch; }
.note { color: var(--ink-3); font-size: .9rem; margin: 1.1rem 0 0; max-width: 74ch; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 18px; }
.partner-card {
  display: flex; align-items: center; justify-content: center; width: 250px; height: 150px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.partner-card:hover { border-color: var(--opal-a); box-shadow: 0 10px 26px rgba(168, 200, 192, .3); }
.partner-card img { max-width: 190px; max-height: 66px; width: auto; height: auto; object-fit: contain; }

/* archive (two columns) */
.arch {
  display: grid; grid-auto-flow: column; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto);
  gap: 0 3.2rem; margin: 0;
}
.arch-row {
  display: flex; align-items: baseline; gap: 1rem; padding: .68rem 0;
  border-bottom: 1px solid var(--line);
}
.arch dt { flex: 0 0 152px; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--opal-a-deep); }
.arch dd { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.24fr .76fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--ink-2); margin: 0 0 1.05rem; }
.about-text .section-sub { margin-bottom: 1.3rem; }
.quote { margin: 1.6rem 0 0; padding: 1.2rem 0 0 1.3rem; border-left: 3px solid var(--opal-b); }
.quote p { color: var(--ink); margin: 0 0 .5rem; font-size: 1.04rem; }
.quote cite { font-style: normal; font-size: .84rem; letter-spacing: .06em; color: var(--ink-3); }

/* career */
.career-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: start; }
.career-text p { color: var(--ink-2); margin: 0 0 1.05rem; }
.stat-strip { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 0; padding: 0; }
.stat-strip li {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: .7rem 1rem; min-width: 150px; display: flex; flex-direction: column; gap: .15rem;
}
.stat-strip b { font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.stat-strip span { font-size: .84rem; color: var(--ink-3); }

/* ribbon timeline */
.ribbon { position: relative; padding-left: 46px; }
.ribbon-rail { position: absolute; left: 0; top: 8px; width: 40px; height: calc(100% - 18px); }
.ribbon-list { list-style: none; margin: 0; padding: 0; }
.ribbon-list li { position: relative; padding: 0 0 1.35rem; }
.ribbon-list li:last-child { padding-bottom: 0; }
.ribbon-list li::before {
  content: ""; position: absolute; left: -31px; top: .55em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--base); border: 2px solid var(--opal-a);
  box-shadow: 0 0 0 4px rgba(168, 200, 192, .24);
}
.ribbon-list li:nth-child(even)::before {
  border-color: var(--opal-b); box-shadow: 0 0 0 4px rgba(217, 184, 196, .26);
}
.ribbon .when { display: block; font-size: .95rem; font-weight: 600; color: var(--opal-a-deep); margin-bottom: .1rem; }
.ribbon .what { display: block; color: var(--ink-2); font-size: .96rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery figure {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
}
.gallery img { display: block; width: 100%; height: auto; }
.g-tile img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.g-square { grid-column: 2; }
.g-square img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; }

/* social */
.social-list { border-top: 1px solid var(--line); }
.social-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
  padding: 1.05rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .2s ease, padding .2s ease, box-shadow .2s ease;
}
.social-row .platform { font-size: 1.22rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.social-row .handle { color: var(--ink-3); font-size: .93rem; }
.social-row:hover { background: #f4f1ec; padding-left: .85rem; box-shadow: inset 3px 0 0 var(--opal-a); }
.social-row:hover .platform { color: var(--opal-a-deep); }

/* subpages */
.page-top { padding: 3rem 0 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem; }
.page-top h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.02; margin: 0 0 .7rem; font-weight: 600; }
.page-top .lead { color: var(--ink-2); max-width: 68ch; margin: 0; }
.split { display: grid; grid-template-columns: 1.5fr .78fr; gap: 3rem; align-items: start; }
.career-page-grid { display: grid; grid-template-columns: 1.42fr .82fr; gap: 3rem; align-items: start; }
.reading { max-width: 74ch; }
.story { margin: 0 0 2.4rem; }
.story h2 { font-size: clamp(1.3rem, 2.7vw, 1.7rem); margin: 0 0 .8rem; font-weight: 600; }
.story p { color: var(--ink-2); margin: 0 0 1rem; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 1.4rem 1.5rem; position: sticky; top: 96px; }
.side-title { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--opal-a-deep); margin: 0 0 .9rem; }
.side-list { margin: 0; }
.side-row { display: flex; flex-direction: column; gap: .1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.side-row:last-child { border-bottom: 0; }
.side-row dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.side-row dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.timeline-block { margin-top: 1.2rem; }

/* filmography */
.era-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.era {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 1.5rem 1.6rem 1.2rem; position: relative; overflow: hidden;
}
.era::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
              background: linear-gradient(90deg, var(--opal-a), var(--opal-b)); }
.era-num { font-family: var(--display); font-size: 1.5rem; color: var(--opal-a-deep); margin: 0 0 .3rem; }
.era h3 { font-size: 1.22rem; margin: 0 0 .25rem; font-weight: 600; }
.era-years { color: var(--ink-3); font-size: .88rem; margin: 0 0 .9rem; }
.era p { color: var(--ink-2); margin: 0 0 .8rem; font-size: .96rem; }
.studio-block { margin-top: 2.6rem; }
.studio-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.studio-list li {
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  padding: .42rem .9rem; font-size: .9rem; color: var(--ink-2);
}
.note-block { margin-top: 2.6rem; }

/* faq */
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq-list summary {
  font-family: var(--display); font-size: 1.14rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--opal-a-deep); font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "/"; color: var(--opal-b-deep); }
.faq-list .answer p { color: var(--ink-2); margin: .7rem 0 0; max-width: 72ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding: 2rem 0 2.3rem; }
.footer-grid { display: grid; grid-template-columns: .95fr 1.35fr auto; gap: 1.2rem; align-items: baseline; }
.footer-brand { display: flex; flex-direction: column; }
.brand-name { font-size: 1.06rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.brand-line { color: var(--ink-2); font-size: .86rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .25rem .85rem; justify-content: center; }
.language-nav a { color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.language-nav a:hover { color: var(--ink); }
.language-nav a[aria-current="page"] { color: var(--opal-a-deep); }
.footer-legal { color: var(--ink-2); font-size: .86rem; margin: 0; text-align: right; }

/* 404 */
.notfound { padding: 4.4rem 0 5.2rem; }
.notfound h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 0 0 .8rem; font-weight: 600; }
.notfound .lead { color: var(--ink-2); max-width: 60ch; margin: 0 0 1.8rem; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo img { aspect-ratio: auto; }
  .about-grid, .career-grid, .split, .career-page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .side-card { position: static; }
  .about-photo { max-width: 440px; }
  .arch { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
  .era-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .header-inner { min-height: 0; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
  .main-nav { gap: .45rem .8rem; }
  .main-nav a { font-size: .88rem; }
  .btn-sm { padding: .5rem 1.05rem; }
  .kicker { font-size: .76rem; letter-spacing: .1em; }
  .hero-facts { display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 128px; }
  .partner-card img { max-width: 132px; max-height: 54px; }
  .arch dt { flex: 0 0 auto; }
  .arch-row { flex-direction: column; gap: .15rem; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-square { grid-column: 1 / -1; }
  .ribbon { padding-left: 34px; }
  .ribbon-rail { width: 30px; }
  .ribbon-list li::before { left: -25px; }
  .social-row { flex-direction: column; gap: .15rem; }
  .stat-strip li { min-width: 132px; }
  .section { padding: 2.3rem 0; }
  .hero { padding: 2.2rem 0 2rem; }
}
