:root {
  --navy: #0a2a5c;
  --navy-deep: #061a3a;
  --blue: #1a63d6;
  --yellow: #ffd400;
  --ink: #111827;
  --muted: #5b6474;
  --line: #e3e7ee;
  --gray: #f3f5f8;
  --white: #fff;
  --radius: 10px;
  --en: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ja); color: var(--ink); background: var(--white); line-height: 1.8; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--white); background: linear-gradient(180deg, rgba(6, 26, 58, .65), rgba(6, 26, 58, 0)); transition: background .3s, box-shadow .3s; }
.site-header.is-solid { background: rgba(6, 26, 58, .96); box-shadow: 0 2px 16px rgba(0, 0, 0, .2); }
.header-inner { height: 100%; width: min(1280px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-family: var(--en); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.brand-ja { font-size: 10px; letter-spacing: .1em; opacity: .85; }
.gnav { display: flex; gap: 26px; align-items: center; }
.gnav a { font-family: var(--en); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-decoration: none; position: relative; padding: 4px 0; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .25s; }
.gnav a:hover::after { transform: scaleX(1); }
.gnav .nav-shop { border: 1px solid rgba(255, 255, 255, .7); padding: 4px 16px; border-radius: 999px; }
.gnav .nav-shop::after { display: none; }
.gnav .nav-shop:hover { background: var(--white); color: var(--navy); }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; background: url(../img/hero.jpg) 72% center / cover no-repeat; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 26, 58, .88) 0%, rgba(6, 26, 58, .55) 38%, rgba(6, 26, 58, 0) 65%), linear-gradient(0deg, rgba(6, 26, 58, .7) 0%, rgba(6, 26, 58, 0) 40%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { position: relative; width: min(1160px, 100% - 32px); margin: 0 auto; padding-bottom: 120px; }
.hero-kicker { font-family: var(--en); font-weight: 600; letter-spacing: .3em; margin: 0 0 8px; color: var(--yellow); }
.hero-title { font-family: var(--en); font-style: italic; font-weight: 800; line-height: .9; font-size: clamp(56px, 11vw, 150px); letter-spacing: .01em; }
.hero-title span { display: block; }
.hero-title span:first-child { font-size: .55em; font-weight: 700; }
.hero-sub { font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .2em; margin: 18px 0 28px; font-weight: 500; }
.sns { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; flex-wrap: wrap; }
.sns a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); transition: background .2s, border-color .2s; }
.sns a:hover { background: rgba(255, 255, 255, .15); border-color: var(--white); }
.sns img { width: 20px; height: 20px; object-fit: contain; }
.scroll-cue { position: absolute; right: 24px; bottom: 32px; writing-mode: vertical-rl; font-family: var(--en); letter-spacing: .3em; font-size: 12px; text-decoration: none; padding-bottom: 64px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: rgba(255, 255, 255, .7); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-gray { background: var(--gray); }
.sec-dark { background: var(--navy); color: var(--white); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-title { display: flex; flex-direction: column; }
.sec-title .en { font-family: var(--en); font-style: italic; font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: .02em; }
.sec-title .en::after { content: ""; display: block; width: 48px; height: 4px; background: var(--yellow); margin-top: 12px; transform: skewX(-20deg); }
.sec-title .ja { font-size: 14px; font-weight: 700; margin-top: 12px; letter-spacing: .1em; }
.lead { margin: -16px 0 32px; color: inherit; opacity: .85; }
.more { font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }

/* blog */
.news-feature { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.news-feature .post:first-child { grid-row: span 2; }
.post { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: var(--white); min-height: 200px; isolation: isolate; }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.post::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 26, 58, .92) 0%, rgba(6, 26, 58, .2) 60%, rgba(6, 26, 58, 0) 100%); z-index: -1; }
.post:hover img { transform: scale(1.05); }
.post-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.post-date { font-family: var(--en); font-weight: 600; font-size: 14px; letter-spacing: .08em; color: var(--yellow); }
.post-title { font-size: 15px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-feature .post:first-child .post-title { font-size: clamp(17px, 2vw, 22px); }
.post.is-new .post-date::after { content: "NEW"; margin-left: 8px; font-size: 11px; background: var(--yellow); color: var(--navy); padding: 1px 6px; border-radius: 3px; }
.news-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 20px; align-items: baseline; padding: 16px 4px; text-decoration: none; transition: background .2s; }
.news-list a:hover { background: var(--gray); }
.news-list time { font-family: var(--en); font-weight: 600; color: var(--blue); letter-spacing: .06em; flex: none; }
.news-list span { font-weight: 500; }
.skeleton { background: linear-gradient(90deg, #e9edf3 25%, #f5f7fa 50%, #e9edf3 75%); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* lesson */
.lesson-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - 1160px) / 2)); padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent; }
.lesson-list { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0 max(16px, calc((100vw - 1160px) / 2)); width: max-content; }
.lesson-list li { width: 280px; scroll-snap-align: start; }
.lesson-list a { display: block; text-decoration: none; background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .25s, box-shadow .25s; }
.lesson-list a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.lesson-list .thumb { aspect-ratio: 4 / 3; background: var(--gray); overflow: hidden; }
.lesson-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-list .txt { padding: 14px 16px 18px; }
.lesson-list .no { font-family: var(--en); font-weight: 700; color: var(--blue); font-size: 13px; letter-spacing: .08em; }
.lesson-list h3 { font-size: 15px; line-height: 1.55; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-light { color: var(--white); }

/* profile */
.profile { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.profile-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 82% center; }
.profile-name { font-size: 28px; font-weight: 900; margin: 28px 0 8px; letter-spacing: .08em; }
.profile-name span { font-family: var(--en); font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 14px; letter-spacing: .06em; }
.profile-data { display: flex; gap: 24px; margin: 0 0 12px; font-size: 14px; }
.profile-data div { display: flex; gap: 8px; }
.profile-data dt { color: var(--muted); }
.profile-data dd { margin: 0; font-weight: 500; }
.profile-roles { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-roles li { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--gray); padding: 4px 12px; border-radius: 999px; }
.profile-body p { margin: 0 0 14px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); background: transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--navy); color: var(--white); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #ffe14d; color: var(--navy); }
.btn:disabled { opacity: .5; cursor: wait; }

/* projects */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.cards a, .cards .card-static { display: block; height: 100%; text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(10, 42, 92, .08); transition: transform .25s, box-shadow .25s; }
.cards a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10, 42, 92, .16); }
.cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cards .tag { display: inline-block; margin: 16px 18px 0; font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.cards h3 { font-family: var(--en), var(--ja); font-size: 21px; font-weight: 700; margin: 2px 18px 2px; }
.cards p { margin: 0 18px 18px; font-size: 13px; color: var(--muted); }

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards li:is(:nth-child(1), :nth-child(2), :nth-child(4)) { grid-column: span 2; }
  .cards li:is(:nth-child(1), :nth-child(2), :nth-child(4)) img { aspect-ratio: 16 / 8; }
}

/* banners / partners */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.banners a { border-radius: var(--radius); overflow: hidden; transition: opacity .2s; }
.banners a:hover { opacity: .85; }
.banners img { width: 100%; }
.partners { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.partners img { margin-inline: auto; width: 100%; }

/* contact */
.req-note { display: block; font-size: 13px; margin-top: 4px; }
.contact-form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field label b { color: var(--yellow); margin-left: 4px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: var(--white); transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: rgba(255, 255, 255, .14); }
.field.has-error input, .field.has-error textarea { border-color: #ff7a7a; }
.field .err { color: #ffb4b4; font-size: 13px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 13px; margin: 0; opacity: .85; }
.contact-form .btn-primary { justify-self: center; min-width: 260px; padding: 16px 28px; font-size: 16px; }

/* modal */
.modal { border: none; border-radius: 14px; padding: 0; width: min(560px, 100% - 32px); max-height: 85vh; color: var(--ink); }
.modal::backdrop { background: rgba(6, 26, 58, .7); }
.modal-inner { padding: 28px; }
.modal h3 { font-size: 18px; margin-bottom: 16px; }
.confirm-list { margin: 0 0 16px; font-size: 14px; }
.confirm-list dt { font-weight: 700; color: var(--muted); font-size: 12px; margin-top: 10px; }
.confirm-list dd { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
#result-text { font-weight: 700; margin: 0; }

/* footer */
.site-footer { background: var(--navy-deep); color: var(--white); padding: 56px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-logo { width: 140px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer-nav a { font-family: var(--en); font-weight: 600; letter-spacing: .08em; text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; color: var(--yellow); }
.copy { font-size: 12px; opacity: .6; margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 2; }
  .menu-btn span { display: block; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .gnav { position: fixed; inset: 0; background: rgba(6, 26, 58, .98); flex-direction: column; justify-content: center; gap: 22px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav a { font-size: 28px; }
  .news-feature { grid-template-columns: 1fr 1fr; }
  .news-feature .post:first-child { grid-column: span 2; grid-row: auto; min-height: 300px; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .brand-mark { width: 44px; }
  .brand-en { font-size: 17px; }
  .hero-bg { background-position: 78% center; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(6, 26, 58, .95) 0%, rgba(6, 26, 58, .5) 45%, rgba(6, 26, 58, .1) 75%); }
  .hero { min-height: min(100svh, 760px); }
  .hero-inner { padding-bottom: 64px; }
  .scroll-cue { display: none; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature .post:first-child { grid-column: auto; min-height: 260px; }
  .post { min-height: 180px; }
  .news-list a { flex-direction: column; gap: 2px; }
  .lesson-list li { width: 240px; }
  .profile-data { flex-direction: column; gap: 0; }
  .modal-btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- shared: partners map / footer sns ---------- */
.partners-map { position: relative; max-width: 1000px; margin-inline: auto; }
.partners-map a { position: absolute; border-radius: 6px; transition: background .2s; }
.partners-map a:hover, .partners-map a:focus-visible { background: rgba(26, 99, 214, .1); outline: 2px solid rgba(26, 99, 214, .4); }
.sns-footer { justify-content: center; }

/* ---------- sub pages ---------- */
.is-sub .site-header { background: rgba(6, 26, 58, .96); }
.page-hero { background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, #12407f 100%); color: var(--white); padding: calc(var(--header-h) + 56px) 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 46%; background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px); }
.page-hero .sec-title { position: relative; z-index: 1; }
.crumb { margin-top: 20px; font-size: 12px; display: flex; gap: 10px; opacity: .8; position: relative; z-index: 1; }
.crumb a { text-decoration: none; font-family: var(--en); letter-spacing: .08em; }
.crumb span::before { content: "/"; margin-right: 10px; }

.h-line { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; padding-left: 14px; border-left: 5px solid var(--yellow); margin: 0 0 18px; }
.prose p { margin: 0 0 1.2em; }
.prose-legal { font-size: 15px; }
.prose-legal h2 { font-size: 18px; margin: 2em 0 .6em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.center { text-align: center; margin-top: 48px; }

.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 20px; }
.spec div { background: var(--white); padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.spec dt { font-size: 12px; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }
.spec-light div { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
.spec-light dt { color: rgba(255, 255, 255, .7); }
.profile-page .profile-name { margin-top: 0; font-size: 36px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.gallery-4 { margin-top: 32px; }
.note-box { background: var(--white); border-radius: var(--radius); padding: 24px 28px; font-size: 15px; }
.note-box p { margin: 0 0 8px; }
.note-box ul, .notes { margin: 8px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--muted); }
.notes li { margin-bottom: 8px; }

/* biography */
.titles { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.titles li { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.titles li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--yellow); }
.t-year { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; color: var(--yellow); }
.t-name { font-weight: 700; font-size: 14px; line-height: 1.5; }
.t-name small { display: block; font-weight: 500; opacity: .8; }
.bio-lead { max-width: 820px; margin: 0 0 8px; }
.year-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.year-jump a { font-family: var(--en); font-weight: 600; text-decoration: none; padding: 4px 14px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; }
.year-jump a:hover { border-color: var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 160px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-year { display: grid; grid-template-columns: 160px 1fr; gap: 0 32px; padding-bottom: 36px; position: relative; scroll-margin-top: calc(var(--header-h) + 16px); }
.tl-year::before { content: ""; position: absolute; left: 154px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); }
.tl-head { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 28px; color: var(--navy); line-height: 1.1; white-space: nowrap; }
.tl-body { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 1px 3px rgba(10, 42, 92, .06); }
.tl-items { margin: 0; padding-left: 1.1em; font-size: 15px; }
.tl-items li { margin: 2px 0; }
.tl-items li.is-pink { font-weight: 700; color: #e4007f; }
.tl-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 14px; }
.tl-pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }

/* asso */
.asso-intro { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.cars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cars li { background: rgba(255, 255, 255, .06); border-radius: var(--radius); overflow: hidden; }
.cars img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cars p { margin: 0 18px; font-size: 14px; }
.cars p:last-child { margin-bottom: 18px; }
.car-no { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 34px; color: var(--yellow); margin-top: 10px !important; }

/* videos */
.video-group { margin-bottom: 56px; }
.video-group > p { margin: -6px 0 18px; color: var(--muted); font-size: 14px; }
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.yt { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; text-decoration: none; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.yt:hover img { opacity: .8; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 40px; margin: -20px 0 0 -28px; background: #e00; border-radius: 10px; }
.yt-play::after { content: ""; position: absolute; left: 22px; top: 12px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
.yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-on iframe { width: 100%; height: 100%; border: 0; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 960px) {
  .titles { grid-template-columns: repeat(3, 1fr); }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .asso-intro { grid-template-columns: 1fr; gap: 20px; }
  .asso-logo { max-width: 240px; }
}
@media (max-width: 600px) {
  .titles { grid-template-columns: 1fr; }
  .titles li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .titles .t-name br { display: none; }
  .titles .t-year { white-space: nowrap; flex: none; }
  .t-year { font-size: 32px; }
  .timeline::before { left: 7px; }
  .tl-year { grid-template-columns: 1fr; padding-left: 28px; padding-bottom: 28px; }
  .tl-year::before { left: 1px; }
  .tl-head { font-size: 26px; margin-bottom: 8px; }
  .tl-body { padding: 14px 16px; }
  .videos { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + 36px) 0 32px; }
}
.tl-to { display: block; font-size: .6em; }
@media (max-width: 600px) { .tl-to { display: inline; font-size: 1em; } }

/* ---------- 旧サイトの構成に合わせた部品 ---------- */
.sns-header { gap: 6px; margin-left: 8px; }
.sns-header a { width: 32px; height: 32px; border: 0; }
.sns-header img { width: 18px; height: 18px; }
.sns-big { gap: 20px; }
.sns-big a { width: 64px; height: 64px; background: var(--navy); border: 0; }
.sns-big img { width: 28px; height: 28px; }
.ja-big { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; letter-spacing: .04em; display: inline-block; }
.sec-title a { text-decoration: none; }
.sec-title a:hover .ja-big { text-decoration: underline; text-underline-offset: 6px; }
.sec-dark .lead { margin-top: 0; line-height: 2; }
.about-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-links a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: var(--white); background: var(--navy); isolation: isolate; }
.about-links img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.about-links a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 26, 58, .85), rgba(6, 26, 58, .1) 60%); z-index: -1; }
.about-links a:hover img { transform: scale(1.05); }
.about-links span { position: absolute; left: 16px; right: 16px; bottom: 14px; font-weight: 900; font-size: 17px; }
.contact-form > input, .contact-form > textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: var(--white); }
.contact-form > input::placeholder, .contact-form > textarea::placeholder { color: rgba(255, 255, 255, .6); }
.contact-form > input:focus, .contact-form > textarea:focus { outline: none; border-color: var(--yellow); }
.contact-form .is-error { background: #fdd5d5 !important; color: var(--ink) !important; }
.contact-form .field label b { color: var(--yellow); font-size: 12px; margin-left: 8px; }
.sec-dark .notes { color: rgba(255, 255, 255, .75); margin-top: 32px; }
#modal-text { margin: 0; }
.bio-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 28px; }
.bio-top-photo { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bio-cp { max-width: 300px; margin-bottom: 16px; }
.bio-top .titles { grid-template-columns: 1fr; margin: 0; gap: 8px; }
.bio-top .titles li { flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; }
.bio-top .t-year { font-size: 26px; min-width: 96px; }
.bio-top .t-name br { display: none; }
.gr86-logo { max-width: 340px; width: 100%; margin-bottom: 20px; background: var(--white); padding: 14px 20px; border-radius: 8px; box-sizing: border-box; }
.cars dl { margin: 12px 18px 18px; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.cars dt { opacity: .7; }
.cars dd { margin: 0; }
.cars .car-no { font-size: 26px; margin: 0 !important; }
.banners-one { max-width: 570px; margin: 24px auto 0; grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .about-links { grid-template-columns: repeat(2, 1fr); }
  .bio-top { grid-template-columns: 1fr; }
}
@media (max-width: 1240px) {
  .sns-header { margin: 16px 0 0; }
}
.spec-team { grid-template-columns: max-content; max-width: 100%; }
.spec-team div { white-space: nowrap; }
@media (max-width: 600px) { .spec-team { grid-template-columns: 1fr; } .spec-team div { white-space: normal; } }
@media (max-width: 360px) { .sec-title .en { font-size: 34px; } }
.yt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); pointer-events: none; }
.yt-on::after { display: none; }
.yt .yt-title { bottom: 8px; padding: 0 10px; background: none; z-index: 1; }
#youtube { padding-bottom: 0; }
/* Instagram */
#instagram { padding-bottom: 0; }
.insta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.insta a { display: block; text-decoration: none; }
.insta-img { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--gray); }
.insta-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.insta a:hover .insta-img img { transform: scale(1.05); }
.insta-cap { margin: 8px 2px 0; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .insta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .insta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.insta li { min-width: 0; }
.insta-date { display: block; margin: 10px 2px 0; font-family: var(--en); font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--blue); }
.insta-date + .insta-cap { margin-top: 2px; }

/* トップ: 最新の1件を大きく見せる(YouTube・インスタ)。4列で、最新は2×2マス */
#youtube .videos, #instagram .insta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#youtube .videos .yt:first-child, #instagram .insta li:first-child { grid-column: span 2; grid-row: span 2; }
#youtube .videos .yt:first-child { aspect-ratio: auto; }
#youtube .videos .yt:first-child .yt-title { font-size: 18px; bottom: 16px; padding: 0 18px; }
#youtube .videos .yt:first-child .yt-play { transform: scale(1.4); }
#youtube .videos .yt:not(:first-child) .yt-title { font-size: 12px; }
#instagram .insta a { position: relative; height: 100%; border-radius: 8px; overflow: hidden; }
#instagram .insta-img { height: 100%; border-radius: 0; }
#instagram .insta a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 26, 58, .85) 0%, rgba(6, 26, 58, 0) 55%); pointer-events: none; }
#instagram .insta-date, #instagram .insta-cap { position: absolute; left: 12px; right: 12px; z-index: 1; margin: 0; }
#instagram .insta-date { bottom: 46px; color: var(--yellow); font-size: 13px; }
#instagram .insta-cap { bottom: 10px; color: var(--white); font-size: 12px; font-weight: 700; }
#instagram .insta li:first-child .insta-date { bottom: 70px; font-size: 16px; left: 20px; }
#instagram .insta li:first-child .insta-cap { bottom: 18px; font-size: 17px; left: 20px; right: 20px; }
@media (max-width: 600px) {
  #youtube .videos, #instagram .insta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #youtube .videos .yt:first-child, #instagram .insta li:first-child { grid-column: 1 / -1; grid-row: auto; }
  #youtube .videos .yt:first-child { aspect-ratio: 16 / 9; }
  #instagram .insta li:first-child .insta-date { bottom: 60px; font-size: 14px; }
  #instagram .insta li:first-child .insta-cap { font-size: 15px; }
}
/* YouTube のサムネは常に 16:9 の枠で見せる(上下の黒帯だけが落ち、絵は切れない) */
.yt img { position: absolute; inset: 0; }
#youtube .videos .yt:first-child { aspect-ratio: 16 / 9; align-self: start; }
#youtube .videos { align-items: start; }
@media (min-width: 601px) {
  #youtube .videos { align-items: stretch; }
  #youtube .videos .yt:first-child { aspect-ratio: auto; align-self: stretch; }
}
.sec-date { font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--blue); margin-left: 14px; }
@media (min-width: 601px) { .lead-lesson { max-width: 760px; } .lead-lesson br { display: none; } }
