/* Home only. Shared layouts and the existing hero retain their own styles. */
.home {
  color-scheme: dark;
  --bg: #000000;
  --bg-raise: #0a0d14;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --text: #f3f5f9;
  --muted: #9aa3b5;
  --blue: #2f6bff;
  --cyan: #39d7ff;
  --x-grad: linear-gradient(135deg, #0047fa 0%, #2f6bff 50%, #39d7ff 100%);
  --link: var(--text);
  background: var(--bg);
  color: var(--text);
}
.home .site-header { --header-color: var(--text); color: var(--text); background: transparent; border-bottom: 1px solid var(--line); }
.home .site-header.is-scrolled { background: rgba(0,0,0,.72); backdrop-filter: blur(20px); box-shadow: none; }
.home.is-nav-open .site-header { background: var(--bg); backdrop-filter: none; }
.home .site-header .site-header__logo--dark { display: none; }
.home .site-header .site-header__logo--light { display: block; }
.home .site-header .nav { --header-color: var(--text); background: var(--bg); }
.home .site-header .nav__link:hover { background: var(--bg-raise); color: var(--text); box-shadow: none; }
.home .nav__cta .btn { color: #000; background: var(--text); border-color: var(--text); }
.home .site-footer { --line: rgba(255,255,255,.08); --muted: #9aa3b5; background: var(--bg); border-top: 1px solid var(--line); }
.home :focus-visible { outline-color: var(--cyan); }
.home-container { width: min(1200px, calc(100% - clamp(20px, 5vw, 64px) * 2)); margin-inline: auto; }
.home-section { position: relative; isolation: isolate; padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.home-section h2 { max-width: 25em; font: 700 clamp(1.75rem, 1.2rem + 2.2vw, 3rem)/1.5 var(--font-body); letter-spacing: .04em; text-align: left; }
.home-label { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; color: var(--muted); font: 500 12px/1.5 var(--font-display); letter-spacing: .16em; }
.home-label > span { color: var(--cyan); }
.home-heading { margin-bottom: 64px; }
.home-heading > p:last-child:not(.home-label) { margin-top: 24px; }
.home-heading > p:last-child:not(.home-label), .business-copy > p, .stance-list p, .news-empty p, .destination-row > p, .home-contact .home-container > p { max-width: 36em; color: var(--muted); font-size: 16px; line-height: 2; }
.home-mission { overflow: hidden; }
.home-mission h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.5; letter-spacing: -.025em; }
.home-mission h2 > span { display: block; }
.home-mission .reveal { transform: none; transition: opacity 1s ease; }
.home-mission h2 > span:nth-child(2) { transition-delay: .16s; }
.home-mission .home-container > p:last-child { margin-top: 40px; max-width: 36em; font-size: 20px; line-height: 2; }
.x-motif { position: absolute; z-index: -1; right: -60px; top: 50%; width: 600px; height: 600px; transform: translateY(-50%); opacity: .16; pointer-events: none; }
.x-motif::before, .x-motif::after { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 28px; background: var(--x-grad); transform: translate(-50%,-50%) rotate(45deg); }
.x-motif::after { transform: translate(-50%,-50%) rotate(-45deg); }
.business-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.business-copy { min-width: 0; }
.business-copy > .business-label { margin-bottom: 20px; color: var(--text); font-size: 13px; letter-spacing: .05em; }
.business-copy h3 { margin-bottom: 28px; font: 700 clamp(1.75rem, 1.2rem + 1.7vw, 2.65rem)/1.5 var(--font-body); letter-spacing: .02em; }
.business-copy > .home-note { margin-top: 24px; font-size: 12px; line-height: 1.9; }
.home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 15px 28px; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; background: transparent; }
.home-button:hover { border-color: var(--muted); background: var(--bg-raise); }
.business-copy > .home-button { margin-top: 32px; }
.x-divider { position: relative; height: 112px; overflow: hidden; }
.x-divider::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #2f6bff99 30%, #39d7ffcc 50%, #2f6bff99 70%, transparent); }
.x-divider::after { content: ""; position: absolute; left: calc(50% - 9px); top: calc(50% - 9px); width: 18px; height: 18px; background: linear-gradient(45deg, transparent calc(50% - 1px), var(--cyan) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(-45deg, transparent calc(50% - 1px), var(--blue) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--bg); }
.business-panel--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); }
.business-panel--reverse .business-copy { grid-column: 2; grid-row: 1; }
.business-panel--reverse .mock { grid-column: 1; grid-row: 1; }
.mock { min-width: 0; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: var(--bg-raise); color: var(--muted); font-size: 11px; }
.mock-bar { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); min-height: 70px; }
.mock-bar img { width: 100px; height: auto; object-fit: contain; }
.mock-bar > span { margin-left: auto; font-family: var(--font-display); font-size: 10px; letter-spacing: .03em; }
.demo { display: inline-block; width: fit-content; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font: 500 9px/1.5 var(--font-display); letter-spacing: .1em; }
.dashboard-body { display: grid; grid-template-columns: 130px minmax(0, 1fr); min-height: 290px; }
.site-list { padding: 24px 14px; border-right: 1px solid var(--line); }
.mock-label { margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.site-list > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; color: var(--text); }
.site-list small { flex-basis: 100%; margin-left: 14px; color: var(--muted); font-size: 9px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--cyan); animation: status-pulse 3.6s ease-in-out infinite; }
.status-dot.waiting { background: #f5c96a; animation-delay: .6s; }
.status-dot.alert { background: #ff8c98; animation: none; }
.dashboard-main { padding: 24px 18px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 30px; }
.metrics > div { padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; }
.metrics span { font-size: 9px; white-space: nowrap; }
.metrics strong { display: block; margin-top: 4px; color: var(--text); font: 500 28px/1.2 var(--font-display); }
.mock-events p { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 10px; color: var(--text); }
.mock-events time { color: var(--muted); font-family: var(--font-display); }
.mock-events p > span { margin-left: auto; color: var(--muted); }
.event-new { animation: event-arrive 10s both infinite; }
.event-new:last-child { animation-delay: 1.8s; }
.flow .mock-bar > span { margin-left: 0; margin-right: auto; }
.flow-nodes { display: flex; align-items: center; padding: 72px 32px 40px; }
.flow-node { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 16px; padding: 32px 8px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--text); background: #ffffff05; }
.flow-node svg { width: 40px; color: var(--cyan); }
.flow-node span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.flow-node small { color: var(--muted); font-family: var(--font-display); }
.flow-wire { position: relative; flex: 0 0 40px; height: 1px; background: var(--line-strong); }
.flow-wire i { position: absolute; top: -1px; width: 4px; height: 3px; background: var(--cyan); animation: flow-travel 3s linear infinite; }
.flow-caption { display: flex; justify-content: space-between; gap: 12px; margin: 0 32px; padding: 24px 0 40px; font: 11px/1.5 var(--font-display); letter-spacing: .04em; }
.product-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.product-tile { min-width: 0; padding: 32px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, transform .2s; }
.product-tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.product-tile h3 { font: 500 clamp(1rem, .8rem + .5vw, 1.25rem)/1.7 var(--font-body); }
.product-tile--map { grid-row: span 2; display: flex; flex-direction: column; }
.site-map { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin-top: 28px; }
.site-map svg { width: 100%; margin-block: 10px; }
.map-legend { display: flex; align-items: center; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.map-legend > span { margin-left: auto; }
.check-mock, .alert-mock { margin-top: 24px; font-size: 11px; color: var(--muted); }
.check-mock > .demo, .alert-mock > .demo { margin-bottom: 12px; }
.check-mock p { display: flex; align-items: center; gap: 8px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.check-mock p > span { color: var(--cyan); }
.check-mock time { margin-left: auto; font: 10px var(--font-display); }
.alert-mock > div { display: flex; gap: 10px; align-items: center; margin: 8px 0 10px; }
.alert-mock strong { color: var(--text); font-weight: 500; }
.alert-mock > p { margin-left: 16px; }
.alert-state { display: inline-block; margin: 18px 0 0 16px; color: #ff8c98; }
.stance-list { padding: 0; list-style: none; }
.stance-list li { display: grid; grid-template-columns: 80px minmax(0,1fr) minmax(0,1.5fr); align-items: start; gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.stance-list li:last-child { border-bottom: 1px solid var(--line); }
.stance-number { font: 500 48px/1.2 var(--font-display); background: var(--x-grad); background-clip: text; color: transparent; }
.stance-list h3 { padding-top: 8px; font: 700 20px/1.7 var(--font-body); }
.home-news { padding-bottom: 80px; }
.news-empty { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; border-block: 1px solid var(--line); }
.news-empty a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; color: var(--text); font-size: 14px; text-decoration: none; }
.news-empty a:hover { text-decoration: underline; }
.home-destinations { padding-bottom: clamp(96px, 12vw, 160px); }
.destination-row { display: grid; grid-template-columns: 1fr 1.4fr 32px; gap: 48px; align-items: center; padding: 48px 24px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.destination-row:last-child { border-bottom: 1px solid var(--line); }
.destination-row > div > span { font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.2 var(--font-display); letter-spacing: -.03em; }
.destination-row h2 { margin-top: 12px; color: var(--muted); font: 500 13px/1.5 var(--font-body); }
.destination-row > span { font-size: 28px; transition: transform .2s; }
.destination-row:hover { background: var(--bg-raise); }
.destination-row:hover > span { transform: translateX(4px); }
.home-contact { overflow: hidden; }
.home-contact h2 { font-size: clamp(2rem, 1.4rem + 3vw, 4rem); }
.home-contact .home-container > p { margin-top: 32px; }
.home-contact .x-motif { right: -120px; opacity: .3; }
.home-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.home-button--primary { background: var(--text); color: #000; border-color: var(--text); }
.home-button--primary:hover { background: #fff; border-color: #fff; }
@keyframes status-pulse { 50% { opacity: .4; } }
@keyframes event-arrive { 0%, 12% { opacity: 0; transform: translateY(4px); } 24%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes flow-travel { from { left: 0; opacity: 0; } 15%,85% { opacity: 1; } to { left: calc(100% - 4px); opacity: 0; } }
@media (min-width: 1024px) { .home .site-header .nav { background: transparent; } }
@media (max-width: 1023px) {
  .business-panel, .business-panel--reverse { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .business-panel--reverse .business-copy, .business-panel--reverse .mock { grid-column: auto; grid-row: auto; }
  .mock { width: 100%; }
  .dashboard-body { grid-template-columns: 170px minmax(0,1fr); }
  .product-tile { padding: 24px; }
  .product-grid { grid-template-columns: 1.4fr 1fr; }
  .stance-list li { grid-template-columns: 64px minmax(0,1fr); gap: 16px 24px; }
  .stance-list p { grid-column: 2; }
  .destination-row { gap: 24px; grid-template-columns: 1fr 1.4fr 24px; padding-inline: 0; }
}
@media (max-width: 767px) {
  .home-heading { margin-bottom: 40px; }
  .home-label { margin-bottom: 24px; }
  .home-mission h2 { letter-spacing: -.035em; }
  .home-mission .home-container > p:last-child { font-size: 20px; }
  .x-motif { right: -300px; opacity: .13; }
  .x-divider { height: 96px; }
  .mock-bar { padding: 16px 12px; gap: 10px; }
  .dashboard-body { grid-template-columns: 88px minmax(0,1fr); }
  .site-list { padding: 20px 10px; }
  .site-list > div { gap: 5px; }
  .dashboard-main { padding: 20px 10px; }
  .metrics { gap: 4px; }
  .metrics > div { padding: 8px 4px; }
  .metrics strong { font-size: 24px; }
  .mock-events p { gap: 6px; font-size: 9px; }
  .mock-events p > span { display: none; }
  .flow-nodes { padding: 40px 12px 20px; }
  .flow-node span { font-size: 12px; }
  .flow-wire { flex-basis: 18px; }
  .flow-caption { margin-inline: 12px; font-size: 10px; }
  .product-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .product-tile { padding: 24px; }
  .product-tile--map { grid-row: auto; }
  .site-map svg { margin-block: 20px; }
  .stance-list li { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .stance-list p { grid-column: auto; }
  .stance-list h3 { padding-top: 0; }
  .stance-number { font-size: 40px; }
  .news-empty { align-items: flex-start; flex-direction: column; gap: 16px; }
  .destination-row { grid-template-columns: minmax(0,1fr) 24px; gap: 24px 16px; }
  .destination-row > p { grid-row: 2; }
  .destination-row > span { grid-column: 2; grid-row: 1 / 3; }
  .home-contact .x-motif { right: -360px; opacity: .2; }
  .home-actions { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .home .reveal { opacity: 1 !important; transform: none !important; }
  .home .product-tile:hover, .home .destination-row:hover > span { transform: none; }
}

/* 日本語の見出し・本文を文節で改行する（非対応ブラウザでは無視される） */
.home main :is(h2, h3, p) { word-break: auto-phrase; text-wrap: pretty; }
