/* TOP only. Do not load on product, About, Contact or PCC pages. */
:root { color-scheme: light; --home-ink:#203c36; --home-muted:#52655f; --home-paper:#f8faf7; --home-line:#dae2dc; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
body { margin:0; color:var(--home-ink); background:var(--home-paper); font-family:'Noto Sans JP',system-ui,sans-serif; line-height:1.7; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
button { font:inherit; }
button,a,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #28665a; outline-offset:5px; }
img { max-width:100%; }
h1,h2,h3,p { margin:0; }
.home-wrap { width:min(1240px,calc(100% - 96px)); margin-inline:auto; }
.home-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.home-skip { position:fixed; top:8px; left:16px; z-index:2000; padding:10px 18px; background:#fff; transform:translateY(-160%); }
.home-skip:focus { transform:none; }
.home-kicker { font-size:11px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--home-muted); }
.home-link { display:inline-flex; gap:20px; align-items:center; font-size:13px; font-weight:600; text-decoration:none; border-bottom:1px solid #a4b6ad; padding-block:8px; }
.home-link::after { content:'↗'; font-size:17px; }
.home-link:hover { color:#176651; border-color:currentColor; }
.home-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:28px; }
.home-heading h2 { margin-top:8px; font-size:clamp(24px,2.6vw,34px); font-weight:500; letter-spacing:.02em; line-height:1.4; }
.home-heading>p { font-size:13px; color:var(--home-muted); }
.home-hero { position:relative; display:grid; grid-template-columns:180px minmax(0,1fr); min-height:620px; height:calc(100svh - 96px); max-height:960px; background:#edf3ed; }
.home-hero-rail { display:flex; flex-direction:column; justify-content:center; padding:30px 20px; background:#f8faf7; border-right:1px solid var(--home-line); z-index:2; }
.home-hero-rail>.home-kicker { margin:0 0 38px 12px; font-size:10px; }
.home-tabs { display:flex; flex-direction:column; gap:10px; }
.home-tab { position:relative; display:flex; align-items:center; gap:10px; width:100%; min-height:58px; padding:10px 8px; border:0; border-radius:8px; background:none; color:#53665e; cursor:pointer; text-align:left; font-size:12px; line-height:1.4; }
.home-tab img { width:30px; height:30px; border-radius:9px; }
.home-tab[aria-selected=true] { color:#203c36; background:#e7eee8; font-weight:600; }
.home-tab[aria-selected=true]::before { content:''; position:absolute; left:-20px; width:3px; height:26px; background:#3f735e; }
.home-tab:hover { background:#edf1eb; }
.home-hero-stage { position:relative; min-width:0; overflow:hidden; touch-action:pan-y pinch-zoom; }
.home-slide { position:absolute; inset:0; background:#edf3ed; }
.home-slide[hidden] { display:none; }
.home-slide picture { position:absolute; inset:0; }
.home-slide picture img { width:100%; height:100%; object-fit:cover; object-position:50% 40%; }
.home-slide::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(0deg,rgba(247,250,245,.98),rgba(247,250,245,.88) 17%,rgba(247,250,245,.22) 43%,transparent 62%); }
.home-hero-copy { position:absolute; z-index:1; left:clamp(28px,4vw,68px); right:30px; bottom:54px; max-width:650px; }
.home-hero-name { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:12px; font-weight:600; letter-spacing:.1em; margin-bottom:16px; }
.home-hero-copy h2 { font-size:clamp(32px,3.9vw,57px); font-weight:500; line-height:1.35; letter-spacing:.035em; text-wrap:balance; }
.home-hero-copy p { margin-top:18px; max-width:470px; font-size:14px; line-height:1.9; }
.home-hero-copy .home-link { margin-top:14px; }
.home-hero-controls { position:absolute; z-index:3; right:24px; bottom:20px; display:flex; gap:14px; align-items:center; font-size:11px; font-variant-numeric:tabular-nums; }
.home-play { border:1px solid #a6b8ac; background:#f8faf7; color:var(--home-ink); border-radius:99px; min-height:38px; padding:6px 14px; font-size:11px; cursor:pointer; }
.home-hero-controls[hidden],.home-tabs[hidden] { display:none; }
.home-apps { padding-block:48px 54px; background:#fff; border-bottom:1px solid var(--home-line); }
.home-apps .home-wrap { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; }
.home-apps h2 { margin-top:7px; font-size:24px; font-weight:500; }
.home-apps-copy>p:last-child { margin-top:8px; font-size:12px; color:var(--home-muted); }
.home-app-list { list-style:none; margin:0; padding:4px; display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:18px; }
.home-app-list a { display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; padding:6px; border-radius:12px; }
.home-app-list img { width:68px; height:68px; border-radius:16px; box-shadow:0 3px 12px #203c3612; transition:transform .2s; }
.home-app-list a:hover img { transform:translateY(-3px); }
.home-app-list strong { margin-top:12px; font-size:12px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.home-app-list span { font-size:11px; color:var(--home-muted); }
.home-products { position:relative; padding-block:66px 72px; }
.home-anchor { position:absolute; top:0; }
.home-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:start; }
.home-card { background:white; border:1px solid var(--home-line); border-radius:16px; overflow:hidden; scroll-margin-top:96px; }
.home-card-art { display:block; width:100%; height:auto; aspect-ratio:3/1; object-fit:cover; }
.home-card-body { padding:20px 24px; }
.home-card-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.home-card h3 { font-size:20px; font-weight:500; letter-spacing:-.02em; }
.home-status { display:inline-flex; padding:3px 8px; border:1px solid #b9c7bd; border-radius:99px; background:#f8faf7; color:#465c51; font-size:10px; font-weight:500; letter-spacing:0; line-height:1.6; }
.home-card-description { min-height:48px; margin-top:10px; font-size:13px; line-height:1.8; color:var(--home-muted); }
.home-card-products { margin-top:10px; font-size:10px; font-weight:500; letter-spacing:.02em; color:#58695f; }
.home-card .home-link { margin-top:8px; font-size:12px; }
.home-card details { margin-top:16px; font-size:12px; }
.home-card summary { cursor:pointer; font-weight:600; width:fit-content; min-height:32px; }
.home-card details p { margin-top:10px; color:var(--home-muted); line-height:1.85; }
.home-card-note { font-size:11px; color:var(--home-muted); margin-top:8px; }
/* Equal-height closing panels, inspired by the original PCC banner. */
.home-finale { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding-bottom:80px; }
.home-panel { min-width:0; min-height:510px; padding:48px; border-radius:20px; display:flex; flex-direction:column; align-items:flex-start; }
.home-panel h2 { font-family:'Noto Serif JP',Georgia,serif; font-weight:400; font-size:clamp(36px,3.5vw,50px); line-height:1.25; letter-spacing:-.025em; margin:24px 0 28px; }
.home-panel-copy { font-size:14px; line-height:1.95; margin-bottom:32px; }
.home-panel-copy p+p { margin-top:14px; }
.home-panel .home-link { margin-top:auto; min-height:48px; padding:10px 22px; border:1px solid currentColor; border-radius:99px; }
.home-pcc { background:radial-gradient(circle at 90% 12%,#91d3ea26,transparent 45%),radial-gradient(circle at 6% 96%,#97d7b51f,transparent 40%),#14211f; color:#f8faf8; }
.home-pcc .home-kicker { color:#a8d8bd; }
.home-pcc .home-panel-copy { color:#d3dfd7; }
.home-pcc .home-link { color:#14211f; background:#f8faf8; border-color:#f8faf8; }
.home-pcc :focus-visible { outline-color:#a8d8bd; }
.home-brand { background:#f2eee3; }
.home-brand h2 { letter-spacing:.04em; }
.home-brand .home-panel-copy { color:#485e54; }
.home-panel .home-link:hover { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:900px) { .home-finale { grid-template-columns:1fr; } .home-panel { min-height:460px; } }
html[lang=en] .home-hero-copy h2 { letter-spacing:-.035em; line-height:1.1; font-size:clamp(38px,4.4vw,64px); }
html[lang=en] .home-brand h2 { letter-spacing:-.03em; }
@media(min-width:1600px) { .home-hero { grid-template-columns:220px minmax(0,1fr); } .home-hero-copy { max-width:780px; } }
@media(max-width:1050px) {
  .home-wrap { width:calc(100% - 48px); }
  .home-hero { grid-template-columns:145px minmax(0,1fr); min-height:600px; max-height:820px; }
  .home-hero-rail { padding-inline:10px; }
  .home-tab[aria-selected=true]::before { left:-10px; }
  .home-tab { font-size:11px; gap:7px; }
  .home-apps .home-wrap { grid-template-columns:1fr; gap:22px; }
  .home-app-list { width:100%; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .home-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

}
@media(max-width:650px) {
  html { scroll-padding-top:75px; }
  .home-wrap { width:calc(100% - 36px); }
  .home-heading { display:block; margin-bottom:22px; }
  .home-heading>p { margin-top:12px; }
  .home-hero { display:flex; flex-direction:column; height:auto; min-height:0; max-height:none; }
  .home-hero-stage { order:0; min-height:0; }
  .home-slide { position:relative; padding-bottom:48px; }
  .home-slide picture { display:block; position:relative; aspect-ratio:1672/941; }
  .home-slide picture img { display:block; object-fit:contain; }
  .home-slide::after { inset:0 0 auto; height:calc((100vw * 941 / 1672) + 1px); background:linear-gradient(0deg,#edf3ed,transparent 28%); }
  .home-hero-copy { position:relative; left:auto; right:auto; bottom:auto; padding:14px 24px 16px; min-height:300px; }
  .home-hero-name { margin-bottom:12px; font-size:11px; }
  .home-hero-copy h2 { font-size:32px; }
  .home-hero-copy p { font-size:13px; margin-top:14px; }
  .home-hero-copy .home-link { margin-top:10px; }
  .home-hero-rail { order:1; padding:10px 12px; border-right:0; border-block:1px solid var(--home-line); }
  .home-hero-rail>.home-kicker { display:none; }
  .home-tabs { flex-direction:row; gap:4px; overflow-x:auto; }
  .home-tab { flex:1 0 76px; flex-direction:column; justify-content:center; gap:6px; min-height:66px; text-align:center; padding:8px 3px; font-size:10px; }
  .home-tab img { width:25px; height:25px; border-radius:7px; }
  .home-tab[aria-selected=true]::before { left:calc(50% - 10px); bottom:0; height:2px; width:20px; }
  .home-hero-controls { bottom:100px; right:20px; }
  .home-apps { padding-block:32px; }
  .home-apps h2 { font-size:22px; }
  .home-app-list { display:flex; overflow-x:auto; gap:14px; padding:8px 6px 12px; scroll-snap-type:x proximity; }
  .home-app-list li { flex:0 0 118px; scroll-snap-align:start; }
  .home-app-list img { width:60px; height:60px; }
  .home-app-list strong { font-size:11px; }
  .home-products { padding-block:44px; }
  .home-product-grid { grid-template-columns:1fr; gap:18px; }
  .home-card-body { padding:18px 22px; }
  .home-card-description { min-height:0; }
  .home-finale { gap:18px; padding-bottom:44px; }
  .home-panel { padding:30px 24px; min-height:460px; }
  .home-panel h2 { font-size:34px; }
  .home-panel-copy { font-size:13px; }
  .home-panel .home-link { font-size:12px; padding-inline:18px; }
  html[lang=en] .home-hero-copy h2 { font-size:38px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
  .home-app-list a:hover img { transform:none; }
}

/* Phase 1.2: full-bleed artwork with two adjoining, left-aligned glass surfaces.
   Mobile keeps the existing image, copy and tab layout unchanged. */
@media(min-width:651px) {
  .home-hero { display:block; }
  .home-hero-stage { position:absolute; inset:0; }
  .home-slide::after { background:none; }
  .home-hero-rail,
  .home-hero-copy {
    background:rgba(255,255,255,.42);
    border:1px solid rgba(255,255,255,.58);
    border-radius:20px;
    box-shadow:0 8px 28px rgba(24,49,39,.10),inset 0 1px 0 rgba(255,255,255,.25);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
  }
  .home-hero-rail {
    position:absolute; left:24px; top:50%; transform:translateY(-50%);
    width:156px; padding:24px 12px;
  }
  .home-hero-rail>.home-kicker { margin:0 0 24px 8px; }
  .home-tab { padding-inline:6px; gap:8px; color:#40584b; }
  .home-hero-rail>.home-kicker { color:#40584b; }
  .home-tab[aria-selected=true]::before { left:-12px; }
  .home-hero-copy {
    left:196px; right:auto; bottom:54px;
    width:clamp(360px,32vw,460px); max-width:none; padding:28px;
  }
  .home-hero-copy h2 { font-size:clamp(30px,2.65vw,38px); }
  html[lang=en] .home-hero-copy h2 { font-size:clamp(34px,3vw,44px); }
  .home-hero-copy p { font-size:13px; }
  .home-hero-controls { background:rgba(248,250,247,.9); border-radius:99px; padding:5px 6px 5px 16px; }
}
@media(min-width:651px) and (max-width:1050px) {
  .home-hero-rail { left:16px; width:125px; padding-inline:8px; }
  .home-hero-rail>.home-kicker { margin-left:3px; font-size:9px; letter-spacing:.12em; }
  .home-tab { padding-inline:3px; gap:5px; font-size:10px; }
  .home-tab img { width:26px; height:26px; }
  .home-tab[aria-selected=true]::before { left:-8px; }
  .home-hero-copy { left:155px; width:310px; padding:24px; bottom:54px; }
  .home-hero-copy h2 { font-size:24px; }
  .home-slide picture img { object-position:30% 40%; }
  html[lang=en] .home-hero-copy h2 { font-size:30px; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  @media(min-width:651px) {
    .home-hero-rail,.home-hero-copy { background:rgba(248,250,247,.96); }
  }
}

/* One native link per group card, including its copy and padding. */
.home-card { display:block; color:inherit; text-decoration:none; transition:border-color .18s ease,box-shadow .18s ease; }
.home-card-banner { display:block; }
.home-card:hover { border-color:#9bb8a5; box-shadow:0 6px 20px rgba(32,60,45,.08); }
.home-card:focus-visible { outline:3px solid #39755f; outline-offset:4px; }
@media(prefers-reduced-motion:reduce) { .home-card { transition:none; } }
