:root {
  --ink: #18332f;
  --ink-soft: #4b625e;
  --paper: #f5f3ec;
  --white: #fffefb;
  --mint: #dcece4;
  --accent: #e9664d;
  --line: rgba(24, 51, 47, .16);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { height: 88px; padding: 0 clamp(1.25rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245, 243, 236, .94); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 750; letter-spacing: -.03em; font-size: 1.02rem; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: Georgia, serif; font-style: italic; }
.site-nav { display: flex; gap: clamp(1.2rem, 3vw, 3rem); }
.site-nav a { font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

.hero { min-height: 710px; max-width: 1440px; margin: 0 auto; padding: clamp(4rem, 9vw, 8.5rem) clamp(1.25rem, 6vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: 5vw; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1.5rem; color: var(--accent); font-size: .72rem; line-height: 1; letter-spacing: .18em; font-weight: 800; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3rem, 5.6vw, 5.6rem); line-height: .98; letter-spacing: -.075em; font-weight: 780; } /* v2 fix */
.hero h1 .line { white-space: nowrap; } /* v2 fix */
.hero h1 em { color: var(--accent); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-style: normal; letter-spacing: -.08em; }
.hero-copy { max-width: 620px; margin: 2.4rem 0 2rem; font-size: clamp(1rem, 1.45vw, 1.22rem); color: var(--ink-soft); }
.hero-link { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; padding-bottom: .3rem; border-bottom: 1px solid currentColor; font-weight: 750; }
.hero-link span { color: var(--accent); }
.hero-visual { height: 490px; position: relative; }
.visual-card { position: absolute; padding: 2rem; border-radius: 4px; box-shadow: 0 26px 55px rgba(24, 51, 47, .13); display: flex; flex-direction: column; justify-content: space-between; }
.visual-card span { font-size: .65rem; letter-spacing: .2em; font-weight: 800; }
.visual-card strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.35; font-weight: 500; }
.visual-card-a { inset: 0 16% 13% 0; background: var(--ink); color: var(--white); transform: rotate(-5deg); justify-content: flex-start; gap: 1.4rem; } /* v2 fix */
.visual-card-b { width: 56%; height: 50%; right: 0; bottom: 0; background: var(--mint); transform: rotate(7deg); } /* v2 fix */
.visual-card-b strong { font-size: clamp(1.15rem, 1.75vw, 1.75rem); } /* v2 fix */
.visual-orbit { position: absolute; width: 110px; height: 110px; top: 6%; right: 6%; border: 28px solid var(--accent); border-radius: 50%; }

.apps-section { background: var(--ink); color: var(--white); padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 4rem); }
.apps-section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; margin-bottom: 4.5rem; }
.section-heading h2, .about-section h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.25rem, 4.6vw, 4.3rem); line-height: 1.28; font-weight: 500; letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: rgba(255,255,255,.68); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 2.8vw, 2.5rem); background: transparent; }
.app-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.app-card-featured { grid-column: auto; display: block; }
.app-image { display: block; min-width: 0; overflow: hidden; background: #fff; aspect-ratio: 16 / 9; }
.app-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.app-image:hover img { transform: scale(1.018); }
.app-body { padding: clamp(1.6rem, 4vw, 3.5rem); position: relative; }
.app-number { position: absolute; top: 1.5rem; right: 1.6rem; color: rgba(255,255,255,.28); font-size: .72rem; letter-spacing: .12em; }
.app-kicker { margin: 0 0 .8rem; color: #9bc7b3; font-size: .75rem; font-weight: 750; }
.app-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.85rem, 3.5vw, 3.1rem); line-height: 1.1; font-weight: 500; }
.app-card h3 span { display: block; margin-top: .75rem; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: .48em; line-height: 1.45; }
.app-description { margin: 1.4rem 0; color: rgba(255,255,255,.67); font-size: .9rem; }
.platforms { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.platforms li { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .25rem .75rem; font-size: .7rem; color: rgba(255,255,255,.74); }
.detail-link { display: inline-flex; gap: .7rem; text-underline-offset: .35rem; font-size: .85rem; font-weight: 750; }
.detail-link span { color: var(--accent); }
.availability-note { max-width: 780px; margin-top: 3.5rem; padding-left: 1.2rem; border-left: 2px solid var(--accent); color: rgba(255,255,255,.62); font-size: .78rem; }

.about-section { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.about-copy > p { margin: 0 0 3rem; font-size: 1.1rem; color: var(--ink-soft); }
.about-copy dl { margin: 0; border-top: 1px solid var(--line); }
.about-copy dl div { padding: 1.2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.about-copy dt { font-size: .76rem; font-weight: 750; }
.about-copy dd { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.about-copy a { text-underline-offset: .25rem; }

.site-footer { padding: 3rem clamp(1.25rem, 5vw, 4rem); background: var(--white); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.site-footer p { margin: .15rem 0; color: var(--ink-soft); font-size: .72rem; text-align: right; }

@media (max-width: 820px) {
  .site-header { height: 72px; }
  .site-nav a:nth-child(2) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero h1 { font-size: clamp(3.05rem, 13vw, 5.4rem); }
  .hero-visual { height: 330px; margin-top: 1rem; }
  .visual-card-a { right: 12%; }
  .visual-card-b { width: 50%; }
  .visual-orbit { width: 76px; height: 76px; border-width: 20px; }
  .section-heading, .about-section { grid-template-columns: 1fr; gap: 2rem; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card-featured { grid-column: auto; display: block; }
  .app-card h3 { font-size: clamp(2rem, 9vw, 3rem); }
  .app-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 520px) {
  .site-nav { display: none; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-copy { font-size: .95rem; }
  .hero-visual { height: 280px; }
  .visual-card { padding: 1.35rem; }
  .visual-card-a { inset: 0 10% 12% 0; }
  .visual-card-b { width: 56%; height: 44%; } /* v2 fix */
  .visual-card-a { gap: 1rem; } /* v2 fix */
  .visual-card-a strong { font-size: 1.4rem; } /* v2 fix */
  .apps-section { padding-left: 1rem; padding-right: 1rem; }
  .section-heading { margin-bottom: 3rem; }
  .app-body { padding: 1.5rem 1.25rem 2rem; }
  .about-copy dl div { grid-template-columns: 1fr; gap: .35rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer p { text-align: left; }
}

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

/* ---- app pages (v2) ---- */
.app-hero { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2.5rem, 5vw, 4rem); }
.app-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; overflow-wrap: break-word; }
.app-title-sub { font-size: .55em; color: var(--ink-soft); white-space: nowrap; }
.app-title .app-catch { display: block; margin-top: 1rem; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1.45; letter-spacing: -.02em; color: var(--accent); white-space: normal; }
.app-lead { max-width: 780px; margin: 2rem 0 1.6rem; font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--ink-soft); }
.app-hero .platforms { margin-bottom: 0; }
.app-hero .platforms li { border-color: var(--line); color: var(--ink-soft); }
.other-back { min-height: 44px; }

.app-band { background: var(--ink); color: var(--white); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 2rem); }
.app-band + .other-apps { border-top: 1px solid rgba(255,255,255,.14); }
.app-visual { max-width: var(--max); margin: 0 auto; }
.app-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border-radius: 4px; }
.app-note { margin-top: .8rem; color: rgba(255,255,255,.62); font-size: .72rem; }
.band-actions { max-width: var(--max); margin: 2.2rem auto 0; display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; }
.band-actions .hero-link { min-height: 44px; }
.band-sub { max-width: var(--max); margin: 1rem auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.6rem; font-size: .78rem; }
.band-sub a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.72); text-underline-offset: .3rem; }
.band-sub a:hover { color: var(--mint); }
.get-lead { margin: 0 0 1.4rem !important; color: var(--ink-soft); }

.app-sections { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 2rem); }
.app-section { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; padding: clamp(2.5rem, 4.5vw, 3.8rem) 0; border-top: 1px solid var(--line); }
.app-section:last-child { border-bottom: 1px solid var(--line); }
.app-section > h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.35; font-weight: 500; letter-spacing: -.03em; }
.app-section .about-copy > p { margin: 0; font-size: .95rem; }
.rule-list, .link-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rule-list li { padding: 1rem 0 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; position: relative; overflow-wrap: anywhere; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 1.85em; width: .45rem; height: 1px; background: var(--accent); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list .detail-link { min-height: 44px; padding: .55rem 0; align-items: center; }
.link-list + .rule-list { margin-top: 2rem; }

.other-apps { background: var(--ink); color: var(--white); padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 4rem); }
.other-inner { max-width: var(--max); margin: 0 auto; }
.other-apps h2 { margin: 0 0 2.5rem; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.28; font-weight: 500; letter-spacing: -.045em; }
.other-list { margin: 0 0 3rem; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.other-list li { border-bottom: 1px solid rgba(255,255,255,.14); }
.other-list a { display: grid; grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: baseline; gap: 1.5rem; min-height: 44px; padding: 1.4rem 0; text-decoration: none; }
.other-num { color: rgba(255,255,255,.4); font-size: .72rem; letter-spacing: .12em; }
.other-name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }
.other-kicker { color: #9bc7b3; font-size: .78rem; font-weight: 750; }
.other-more { font-size: .82rem; font-weight: 750; text-decoration: underline; text-underline-offset: .35rem; white-space: nowrap; }
.other-more span { color: var(--accent); }
.other-list a:hover .other-name { color: var(--mint); }

.notfound { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 4vw, 2rem); min-height: 55vh; }
.notfound h1 { margin: 0 0 1.6rem; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.3; font-weight: 500; letter-spacing: -.045em; }
.notfound p:not(.eyebrow) { margin: 0 0 2.4rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .app-section { grid-template-columns: 1fr; gap: 1.6rem; }
  .other-list a { grid-template-columns: 2.5rem minmax(0, 1fr) auto; row-gap: .3rem; }
  .other-kicker { grid-column: 2; grid-row: 2; }
  .other-more { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 520px) {
  .other-apps { padding-left: 1rem; padding-right: 1rem; }
  .other-list a { grid-template-columns: 2rem minmax(0, 1fr); gap: .3rem 1rem; }
  .other-more { grid-column: 2; grid-row: 3; margin-top: .4rem; }
}
