* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --paper: #f9f0df; --ink: #181a3e; --muted: #514d65; --line: #d9cdd7;
  --accent: #f4b7b4; --hero: #191c44; --hero-ink: #fff1db;
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.8 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
body[data-design="c"] { --paper: #f9f2df; --ink: #143841; --muted: #405a58; --line: #c5d4c7; --accent: #174b4b; --hero: #b8d5c3; --hero-ink: #13343a; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #d7719a; outline-offset: 4px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 77px; padding: 10px clamp(20px,6vw,95px); }
.wordmark { display: flex; align-items: center; gap: 11px; font-weight: 800; white-space: nowrap; }
.wordmark i { width: 19px; height: 19px; background: var(--ink); border-radius: 50%; box-shadow: inset 5px -3px var(--accent); }
.nav nav { display: flex; gap: clamp(12px,3vw,48px); font-size: .85rem; font-weight: 700; }
.nav-contact { font-size: .85rem; border-bottom: 1px solid; white-space: nowrap; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--hero); color: var(--hero-ink); }
.hero-copy { z-index: 1; align-self: center; padding: 55px 0 64px clamp(24px,9vw,150px); }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem,5.1vw,5.5rem); line-height: 1.22; letter-spacing: -.04em; margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem,3.1vw,3.4rem); line-height: 1.35; margin-bottom: 20px; letter-spacing: -.025em; }
.hero-copy > p:not(.eyebrow) { margin-bottom: 26px; }
.hero-art, .radio-art { background-size: cover; background-position: center; }
.hero-art { background-image: url("assets/night.webp"); position: absolute; inset: 0 0 0 39%; z-index: -1; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--hero),transparent 40%); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 12px 19px; border: 1px solid transparent; background: var(--accent); color: #211936; font-weight: 800; font-size: .87rem; }
.button:hover { filter: brightness(.93); }
body[data-design="c"] .hero { grid-template-columns: 53% 47%; padding: 34px clamp(20px,6vw,100px); }
body[data-design="c"] .hero-copy { grid-column: 2; grid-row: 1; padding: 30px 0 30px clamp(20px,4vw,65px); }
body[data-design="c"] h1 { font-size: clamp(2rem,4.2vw,4.8rem); }
body[data-design="c"] .hero-art { position: relative; inset: auto; grid-column: 1; grid-row: 1; align-self: center; justify-self: center; width: min(100%, calc((100svh - 150px) * 1.12)); aspect-ratio: 1.12; overflow: hidden; background: #a9c9b4; border-radius: 49% 49% 4px 4px / 44% 44% 4px 4px; border: 1px solid #486f65; }
body[data-design="c"] .hero-art::before { display: none; }
body[data-design="c"] .button { border-radius: 40px; color: #fff; }
.section { width: min(1160px,88%); margin: auto; padding: clamp(54px,8vw,110px) 0; }
.section-head { max-width: 680px; }
.section-head > p:last-child, .about p, .contact p { color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; padding: clamp(35px,7vw,100px) max(6%,calc((100% - 1160px)/2)); background: #10182e; color: #f7ebda; }
.product .eyebrow i { display: inline-block; vertical-align: middle; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #ff6a70; box-shadow: 0 0 13px #ff6a70; }
.product h2 { font-family: "Geist", Arial, sans-serif; font-size: clamp(2.7rem,5vw,5.25rem); line-height: 1; }
.product ol { padding-inline-start: 1.6em; margin: 23px 0 0; }
.product li { padding: 10px 0 10px 6px; border-top: 1px solid #474a62; }
.product li::marker { color: #ff8b91; font-family: monospace; }
.product li span { display: block; color: #d4cbce; font-size: .89rem; }
.product-visual { margin: 0; border: 1px solid #59617d; }
.radio-art { position: relative; aspect-ratio: 1.75; overflow: hidden; container-type: inline-size; }
/* 正方形の絵を横長の枠の中央で切り抜く。ランプの位置は絵に対する％で指定する */
.radio-canvas { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; transform: translateY(-50%); }
.radio-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; }
.onair-text { position: absolute; left: 16.4%; top: 32.9%; width: 10.1%; height: 2.2%; display: grid; place-items: center; color: #fff4ee; font: 700 1.25cqw/1 "IBM Plex Mono", Consolas, monospace; letter-spacing: .18em; text-shadow: 0 0 .6cqw #ff6a70; }
.monitor { position: relative; display: grid; padding: 14px 20px 19px; background: #171d32; }
.monitor span { color: #d7cbd5; font-size: .73rem; }
.monitor strong { color: #ff858c; font: 600 clamp(2.25rem,5vw,4.5rem)/1.2 "IBM Plex Mono", Consolas, monospace; letter-spacing: -.04em; }
.wave { display: flex; align-items: center; gap: 3px; height: clamp(40px, 5vw, 64px); margin-top: 6px; }
.wave i { flex: 1; max-width: 4px; border-radius: 2px; background: #ff858c; }
.steps { padding: 0; display: grid; grid-template-columns: repeat(5,1fr); list-style-position: inside; margin-top: 32px; }
.steps li { position: relative; padding: 23px 12px 10px 0; border-top: 2px solid #96b3a3; font-weight: 700; }
.steps li:last-child { border-color: transparent; }
.steps li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #447768; }
.steps li::marker { color: var(--muted); font: 700 1em Consolas, monospace; }
.about, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; border-top: 1px solid var(--line); }
.note { font-size: .83rem; }
form { display: grid; gap: 12px; }
form label { display: grid; gap: 5px; font-weight: 700; font-size: .84rem; }
input, textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; background: #fffaf4; color: var(--ink); }
textarea { resize: vertical; }
form .button { justify-self: start; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 24px 6%; background: var(--ink); color: var(--paper); font-size: .8rem; }
@media (max-width: 760px) {
  .nav { min-height: 60px; }
  .nav nav, .desktop { display: none; }
  h2 { font-size: min(1.8rem, 7vw); }
  .hero, body[data-design] .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy, body[data-design] .hero-copy { grid-column: 1; grid-row: 1; padding: 40px 23px 30px; }
  .hero-art, body[data-design] .hero-art { grid-column: 1; grid-row: 2; position: relative; inset: auto; min-height: 0; width: 100%; aspect-ratio: 1.12; }
  .hero-art::before { display: none; }
  body[data-design="c"] .hero { padding: 0 15px 20px; }
  .product, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-top: 0; border-left: 2px solid #96b3a3; padding: 0 0 19px 20px; }
  .steps li::before { left: -6px; top: 8px; }
  .steps br { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.service { position: relative; }
.service-prop { position: absolute; inset: 14% 3% auto auto; width: clamp(85px,14vw,160px); transform: rotate(8deg); }
.desk-scenes { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(12px,2vw,26px); padding: 0; margin: 36px 0 0; counter-reset: scene; }
.desk-scenes li { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fdf8ea; counter-increment: scene; }
.desk-scenes img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.desk-scenes li > div { padding: 18px clamp(14px,2vw,24px) 20px; }
.desk-scenes h3 { margin: 0 0 8px; font-size: 1.02rem; }
.desk-scenes h3::before { content: "0" counter(scene); color: #4e7067; font: 700 .82em Consolas, monospace; margin-right: .7em; }
.desk-scenes p { margin: 0; color: var(--muted); font-size: .9rem; }
.industry-section { background: #e4ecdc; border-bottom: 1px solid var(--line); }
.industry-note { color: var(--muted); font-size: .82rem; margin: 1.5rem 0 .9rem; }
.industries { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px 18px; }
.industry-card { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid #a9bfb0; }
.industry-card img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 8px 8px 2px 2px; }
.industry-card h3 { margin: 9px 0 2px; font-size: 1rem; }
.industry-card p { color: var(--muted); margin: 0; font-size: .83rem; }
.contact-character { width: 132px; height: 190px; object-fit: contain; object-position: left bottom; }
.asset-main { width: min(1160px, 90%); margin: auto; padding: 45px 0 80px; }
.asset-main section { margin-top: 55px; }
.asset-main h2 { font-size: 1.65rem; }
.asset-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.asset-grid figure { margin: 0; min-width: 0; }
.asset-grid img { display: block; width: 100%; height: 150px; object-fit: contain; padding: 8px; background: #e4ecdc; border-radius: 6px; }
.asset-grid figcaption { font-size: .85rem; margin-top: 6px; overflow-wrap: anywhere; }
.asset-grid figcaption small { display: block; color: var(--muted); }
.storyboard { display: block; width: 100%; height: auto; }
@media (max-width: 930px) {
  .service-prop { display: none; }
  .industries { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .desk-scenes { grid-template-columns: 1fr; }
  .desk-scenes img { aspect-ratio: 1.55; }
  .industries, .asset-grid { grid-template-columns: repeat(2,1fr); gap: 16px 12px; }
  .contact-character { height: 138px; }
}

/* ===== スクロール演出 =====
   html.motion は「動きを減らす設定ではない＋JavaScriptが動く」ときだけ付く。
   付いていないときは、上の静止版のまま読める。 */

/* 1. トップ：アーチの中の3層（窓・人物・植物）。--hero-p（0〜1）でずらす量を決める */
.hero-layer { position: absolute; display: block; max-width: none; will-change: transform; }
.hero-window { width: 126%; left: -13%; top: -1%; transform: translate3d(0, calc(var(--hero-p, 0) * -10px), 0); }
.hero-person { height: 82%; right: 11%; bottom: 1.5%; transform: translate3d(0, calc(var(--hero-p, 0) * -20px), 0); }
.hero-plant { height: 40%; left: -3%; bottom: -3%; transform: translate3d(0, calc(var(--hero-p, 0) * -35px), 0); }

/* 2. 事業紹介：PCだけ左の机を短い区間固定し、説明に合わせて机の上を切り替える */
.desk-stage { display: none; }
@media (min-width: 761px) {
  .motion .service-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 36px; }
  .motion .desk-stage { display: block; position: sticky; top: max(90px, calc(50vh - min(42vw, 500px) / 2)); align-self: start; width: min(100%, 500px); aspect-ratio: 1; margin: 0; }
  .motion .desk-stage { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #e8cdb5; }
  .motion .desk-base, .motion .desk-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
  .motion .desk-layer { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
  .motion .desk-stage[data-active="1"] [data-shot="1"],
  .motion .desk-stage[data-active="2"] [data-shot="2"],
  .motion .desk-stage[data-active="3"] [data-shot="3"] { opacity: 1; transform: none; }
  .motion .service-story .desk-scenes { grid-template-columns: 1fr; gap: 0; margin: 0; }
  .motion .service-story .desk-scenes li { display: flex; align-items: center; min-height: 62vh; border: 0; border-radius: 0; background: none; opacity: .35; transition: opacity .5s ease; }
  .motion .service-story .desk-scenes li.is-active { opacity: 1; }
  .motion .service-story .desk-scenes li > img { display: none; }
  .motion .service-story .desk-scenes li > div { padding: 0; border-left: 2px solid var(--line); padding-left: clamp(18px, 2.5vw, 32px); transition: border-color .5s ease; }
  .motion .service-story .desk-scenes li.is-active > div { border-color: var(--accent); }
  .motion .service-story .desk-scenes h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); margin-bottom: 12px; }
  .motion .service-story .desk-scenes p { font-size: 1rem; }
}

/* 3. RadioVoice：ミントから濃紺へ。ON AIRが点き、3つの手順→タイムコード→波形の順に見せる */
.studio-fade { height: clamp(70px, 10vw, 140px); background: linear-gradient(#f9f2df, #b8d5c3 45%, #10182e); }
.motion .onair-lit, .motion .onair-text { opacity: 0; }
.motion .is-live .onair-lit, .motion .is-live .onair-text { animation: onair-on .7s steps(1, end) forwards; }
@keyframes onair-on { 0% { opacity: 1; } 12% { opacity: .2; } 24% { opacity: 1; } 34% { opacity: .5; } 46%, 100% { opacity: 1; } }
.motion .product li { opacity: .45; transition: opacity .5s ease; }
.motion .product li strong { transition: color .5s ease; }
.motion .is-live li { opacity: 1; }
.motion .is-live li strong { color: #ff9ea3; }
.motion .is-live li:nth-child(1) { transition-delay: .5s; }
.motion .is-live li:nth-child(1) strong { transition-delay: .5s; }
.motion .is-live li:nth-child(2), .motion .is-live li:nth-child(2) strong { transition-delay: 1s; }
.motion .is-live li:nth-child(3), .motion .is-live li:nth-child(3) strong { transition-delay: 1.5s; }
.motion .wave i { transform: scaleY(0); transform-origin: center; transition: transform .45s cubic-bezier(.2, .8, .3, 1); }
.motion .wave.is-shown i { transform: scaleY(1); }

/* 業種別：行ごとに軽く現れる */
.motion .industry-card { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.motion .industry-card.is-in { opacity: 1; transform: none; }

/* 4. 導入の流れ：読んだ分だけ線が伸びる（PCは横、スマホは縦） */
.steps { position: relative; }
.motion .steps::after { content: ""; position: absolute; left: 0; top: 0; width: 80%; height: 2px; background: #174b4b; transform: scaleX(var(--steps-p, 0)); transform-origin: left; }
.motion .steps li::before { background: #b9cdbf; transition: background .3s ease, transform .3s ease; }
.motion .steps li.is-reached::before { background: #174b4b; transform: scale(1.25); }
@media (max-width: 760px) {
  .motion .steps::after { top: 0; width: 2px; height: var(--steps-len, 0); transform: scaleY(var(--steps-p, 0)); transform-origin: top; }
}
