/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-tint: #f4f3f0;
  --ink: #111111;
  --ink-soft: #555555;
  --line: #e2e0db;
  --accent: #d11a2a;
  --font-en: "Archivo", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-only { display: none; }
.heisei-only { display: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-en); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .06em; text-decoration: none; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav a:hover::after { transform: scaleX(1); }
.mode-btn {
  font: inherit; font-size: 12px; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  border: 1px dashed var(--ink-soft); background: transparent; color: var(--ink-soft);
}
.mode-btn:hover { border-style: solid; color: var(--ink); }
.menu-btn { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) var(--gutter) clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero-title { font-family: var(--font-en); font-weight: 800; font-size: clamp(44px, 9vw, 104px); line-height: 1; letter-spacing: -.02em; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 28px; font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(-6deg); width: min(34vw, 400px); height: auto; opacity: .1; pointer-events: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ===== Sections ===== */
.section { padding: clamp(72px, 10vw, 120px) var(--gutter); }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section--tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-lead { margin-top: 16px; color: var(--ink-soft); }

/* ===== Talents ===== */
.talent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.talent { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.talent:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.talent-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.talent-media { aspect-ratio: 1200 / 630; overflow: hidden; background: #ddd; }
.talent-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.talent-media--square img { object-position: 50% 30%; }
.talent:hover .talent-media img { transform: scale(1.04); }
.talent-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.talent-tag { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.talent-body h3 { margin-top: 6px; font-size: 24px; }
.talent-en { font-family: var(--font-en); font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.talent-desc { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.talent-cta { margin-top: 20px; font-weight: 700; font-size: 14px; }
.talent:hover .talent-cta { color: var(--accent); }

/* ===== Services ===== */
.service-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.service-list li { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.service-list .num { font-family: var(--font-en); font-weight: 800; font-size: 14px; color: var(--accent); padding-top: 3px; }
.service-list h3 { font-size: 18px; }
.service-list p { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }

/* ===== Works ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel-lead { color: var(--ink-soft); margin-bottom: 24px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.thumb-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-grid--single { grid-template-columns: minmax(0, 720px); }
.video-grid figure { margin: 0; }
.video-grid figcaption { margin-top: 10px; font-weight: 700; font-size: 14px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.web-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.web-item { display: block; text-decoration: none; }
.web-shots { position: relative; padding: 0 6% 9% 0; }
.web-shots img { border: 1px solid var(--line); background: #fff; }
.web-pc { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; transition: transform .3s; }
.web-sp { position: absolute; right: 0; bottom: 0; width: 22%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.web-item:hover .web-pc { transform: translateY(-3px); }
.web-title { margin-top: 14px; font-weight: 700; }
.web-item:hover .web-title { color: var(--accent); }
.web-meta { font-size: 13px; color: var(--ink-soft); }

/* ===== News ===== */
.news-list { list-style: none; padding: 0; }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-en); font-weight: 500; color: var(--ink-soft); }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact .section-head { margin-bottom: 28px; }
.mail { display: inline-block; font-family: var(--font-en); font-weight: 800; font-size: clamp(22px, 5vw, 44px); text-decoration: none; border-bottom: 3px solid var(--accent); line-height: 1.4; word-break: break-all; }
.mail:hover { color: var(--accent); }
.note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ===== Footer ===== */
.site-footer { padding: 32px var(--gutter); border-top: 1px solid var(--line); text-align: center; font-family: var(--font-en); font-size: 13px; color: var(--ink-soft); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .talent-grid { grid-template-columns: 1fr; max-width: 560px; }
  .service-list { grid-template-columns: 1fr; }
  .web-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 760px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  }
  .menu-btn .bar { display: block; height: 2px; background: var(--ink); transition: transform .25s; }
  .menu-btn[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .mode-btn { margin-top: 16px; align-self: flex-start; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .hero-mark { width: 64vw; right: -16vw; top: auto; bottom: -8vw; transform: rotate(-6deg); opacity: .07; }
  html.heisei .hero-mark { animation: none; }
  .video-grid { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .btn { flex: 1 1 auto; }
}

/* ===== 平成モード ===== */
html.heisei body {
  background: #000033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='10' y='30' fill='%23ffff66' font-size='10'%3E%E2%98%85%3C/text%3E%3Ctext x='40' y='52' fill='%2366ffff' font-size='7'%3E%E2%98%86%3C/text%3E%3C/svg%3E");
  color: #ffffff;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Osaka", sans-serif;
}
html.heisei {
  --bg: #000033; --bg-tint: #000055; --ink: #ffffff; --ink-soft: #ccccff; --line: #6666ff; --accent: #ff66cc;
  --font-en: "MS PGothic", "ＭＳ Ｐゴシック", sans-serif; --font-ja: "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
}
html.heisei .heisei-only { display: block; }
html.heisei .heisei-marquee { background: #ffff00; color: #ff0000; font-weight: bold; font-size: 14px; padding: 4px 0; }
html.heisei .site-header { position: static; background: linear-gradient(#3333cc, #000066); border-bottom: 3px ridge #c0c0c0; backdrop-filter: none; }
html.heisei .brand span { color: #ffff00; text-shadow: 2px 2px 0 #ff0000; font-style: italic; }
html.heisei .site-nav a { color: #00ffff; text-decoration: underline; }
html.heisei .site-nav a:visited { color: #ff99ff; }
html.heisei .mode-btn { border: 2px outset #c0c0c0; background: #c0c0c0; color: #000; border-radius: 0; font-family: inherit; }
html.heisei .hero-title { color: #ffff00; text-shadow: 3px 3px 0 #ff0000; font-style: italic; }
html.heisei .hero-title em { color: #00ff00; }
html.heisei .hero-mark { opacity: .25; filter: invert(1); animation: heisei-spin 8s linear infinite; }
@keyframes heisei-spin { to { transform: translateY(-50%) rotate(354deg); } }
html.heisei .heisei-counter { margin-top: 36px; display: inline-block; padding: 6px 12px; background: #000; border: 2px inset #c0c0c0; font-size: 14px; position: relative; z-index: 1; }
html.heisei .heisei-counter b { font-family: "Courier New", monospace; color: #00ff00; background: #111; padding: 0 6px; letter-spacing: .15em; }
html.heisei .btn { border-radius: 0; border: 3px outset #c0c0c0; background: #c0c0c0; color: #000; font-weight: bold; }
html.heisei .btn:hover { border-style: inset; transform: none; }
html.heisei .section-head h2 { color: #00ff00; }
html.heisei .section-head h2::before { content: "■ "; color: #ff66cc; }
html.heisei .talent, html.heisei .tabs button, html.heisei .web-shots img { background: #000066; border: 3px ridge #c0c0c0; border-radius: 0; }
html.heisei .talent-cta { color: #00ffff; text-decoration: underline; }
html.heisei .talent-cta::before { content: "▼"; color: #ff0000; margin-right: 4px; }
html.heisei .tabs button[aria-selected="true"] { background: #ff66cc; color: #000; }
html.heisei .thumb-grid img, html.heisei .embed { border-radius: 0; border: 3px ridge #c0c0c0; }
html.heisei .mail { color: #00ffff; text-decoration: underline; border: 0; }
html.heisei .site-footer { font-size: 12px; }
@media (max-width: 760px) {
  html.heisei .site-nav { background: #000066; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
