/* ここアプリ / KOKO App — site styles (mobile first) */
:root {
  --cream: #FCF8F1;
  --panel: #F2EEE4;
  --white: #FFFFFF;
  --ink: #24302B;
  --sub: #4A524D;
  --aqua: #2B8085;
  --aqua-deep: #22666A;
  --aqua-soft: #EAF2F3;
  --mint: #DDEBE6;
  --sky: #DCE8EE;
  --butter: #FBEBC2;
  --marker: #F5DAA9;
  --dark: #16201D;
  --footer: #24302B;
  --radius-l: 28px;
  --radius-m: 20px;
  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-deep); }
a:hover { color: var(--dark); }
h1, h2, h3 { margin: 0; line-height: 1.4; word-break: auto-phrase; }
.section-title span { white-space: nowrap; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; }
.round { font-family: var(--font-round); font-weight: 900; }
.accent { color: var(--aqua); }
.marker { background: linear-gradient(transparent 62%, var(--marker) 62%); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: relative; z-index: 3; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 30px; width: auto; }
.nav { display: none; flex: 1; justify-content: flex-end; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--aqua); font-weight: 700; }
.lang { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--aqua); color: var(--white); }
.btn-primary:hover { background: var(--aqua-deep); color: var(--white); }
.header-cta { display: none; }
@media (min-width: 900px) {
  .brand img { height: 36px; }
  .nav { display: flex; }
  .lang { margin-left: 0; }
  .header-cta { display: inline-flex; }
}

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { min-height: 56px; padding: 0 20px; border-radius: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.store-play { background: var(--dark); color: var(--white); }
.store-play:hover { background: #000; color: var(--white); }
.store-play small { display: block; font-size: 11px; line-height: 1.2; }
.store-play strong { display: block; font-size: 17px; line-height: 1.3; }
.store-ios { border: 2px dashed #8A9590; color: var(--sub); font-size: 14px; font-weight: 700; }
.stores.center { justify-content: center; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: 16px 0 12px; }
.hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: center 62%; opacity: 0.9; }
.hero-fade { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; background: linear-gradient(180deg, rgba(252,248,241,0.94) 0%, rgba(252,248,241,0.82) 45%, rgba(252,248,241,0.2) 100%); }
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.pill { align-self: flex-start; padding: 6px 16px; border-radius: 999px; background: var(--white); color: var(--aqua-deep); font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(36,48,43,0.08); }
.hero h1 { font-size: clamp(30px, 8.4vw, 54px); line-height: 1.35; letter-spacing: 0.02em; }
.hero h1 span.line { display: block; white-space: nowrap; }
.lead { font-size: 17px; color: #3B4541; max-width: 30em; }
.note { font-size: 13px; color: var(--sub); }
.hero-visual { position: relative; height: 338px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.hero .lead { display: none; }
/* スマホ：画面の中身（通知とアプリのボタン）の長さに合わせて、絵の高さを自動で決める。言語で文の長さが変わっても、ボタンが波に隠れない */
@media (max-width: 899px) {
  .hero .hero-visual { height: auto; }
  .hero .phone { height: auto; padding-bottom: 70px; margin-bottom: -18px; }
}
/* とても狭い画面（幅380未満）では、見出しの強調部分も折り返す（横にはみ出さないように） */
@media (max-width: 379px) {
  .section-title span { white-space: normal; }
}
.hero-woman { position: absolute; left: 0; bottom: -2px; width: 140px; z-index: 1; }
.phone { position: relative; width: 236px; height: 470px; margin-left: 120px; border-radius: 40px; border: 9px solid #2E3431; background: #F4F9F9; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px rgba(22,32,29,0.25); }
.phone-notch { align-self: center; width: 72px; height: 18px; border-radius: 9px; background: #2E3431; }
.phone-time { font-size: 12px; font-weight: 700; color: var(--sub); padding: 0 6px; }
.notif { background: var(--white); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 14px rgba(22,32,29,0.12); }
.notif-app { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #55625D; }
.notif-app img { width: 16px; height: 16px; border-radius: 4px; }
.notif-title { font-size: 14px; font-weight: 700; }
.notif-body { font-size: 12px; color: #55625D; }
.notif-actions { display: flex; gap: 8px; padding-top: 2px; font-size: 10px; font-weight: 700; color: var(--aqua-deep); white-space: nowrap; }
.launcher { background: var(--white); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.launcher-title { font-size: 12px; font-weight: 700; color: var(--aqua-deep); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: var(--aqua-soft); font-size: 11px; font-weight: 700; }
.tile img { width: 30px; height: 30px; }
.wave { position: absolute; z-index: 2; left: -2px; bottom: -4px; width: calc(100% + 4px); height: 80px; }
.wave-cover { position: absolute; z-index: 2; left: 0; right: 0; bottom: -4px; height: 14px; background: var(--cream); }
@media (min-width: 900px) {
  .hero { margin-top: -76px; padding: 140px 0 140px; }
  .hero .lead { display: block; }
  .hero-visual { height: auto; overflow: visible; align-items: flex-end; }
  .hero-fade { background: linear-gradient(90deg, rgba(252,248,241,0.92) 0%, rgba(252,248,241,0.7) 42%, rgba(252,248,241,0) 70%); }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(36px, 4vw, 54px); }
  .lead { font-size: 18px; }
  .hero-visual { min-height: 560px; }
  .hero-woman { left: 4%; width: 190px; bottom: -10px; z-index: 0; }
  .phone { width: 280px; height: 560px; margin-left: 30%; border-width: 10px; border-radius: 44px; padding: 16px 12px; gap: 12px; }
  .wave { height: 100px; }
  .notif-actions { gap: 10px; font-size: 11px; }
}

/* sections */
.section { padding: 64px 0; }
.section-title { text-align: center; font-size: clamp(26px, 6vw, 40px); }
.eyebrow { display: block; text-align: center; font-size: 14px; font-weight: 700; color: var(--aqua); letter-spacing: 0.2em; margin-bottom: 4px; }
.grid { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .section { padding: 88px 0; } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--white); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { font-size: 15px; color: var(--sub); }
.card .ic { width: 60px; height: 60px; }

/* steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.step-circle { position: relative; width: 152px; height: 152px; border-radius: 50%; border: 6px solid var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(60,50,30,0.1); }
.step-circle img { width: 90px; height: 90px; }
.step-num { position: absolute; left: -6px; top: -6px; width: 42px; height: 42px; border-radius: 50%; background: var(--aqua); color: var(--white); font-family: var(--font-round); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-family: var(--font-round); font-weight: 900; font-size: 22px; }
.step p { font-size: 15px; color: var(--sub); max-width: 22em; }
.bg-mint { background: var(--mint); } .bg-sky { background: var(--sky); } .bg-butter { background: var(--butter); }

/* videos: スマホは横スワイプ＋左右ボタン、パソコンは2本並べる */
.video-lead { text-align: center; color: var(--sub); margin-top: 8px; }
.carousel { position: relative; margin: 24px auto 0; max-width: 360px; padding: 0 52px; }
.videos { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.videos::-webkit-scrollbar { display: none; }
.video { margin: 0; flex: 0 0 100%; padding: 0 2px; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 8px; }
.video video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: var(--dark); }
.video figcaption { text-align: center; font-size: 14px; font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.car-btn { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--aqua-deep); box-shadow: 0 4px 12px rgba(22,32,29,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.car-btn:disabled { opacity: 0.35; cursor: default; }
.car-prev { left: 0; } .car-next { right: 0; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.car-dot { width: 8px; height: 8px; border-radius: 4px; background: #CBD3CF; transition: width 0.2s; }
.car-dot.on { width: 24px; background: var(--aqua); }
@media (min-width: 900px) {
  .carousel { margin: 28px auto 0; max-width: 680px; padding: 0; }
  .videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; overflow: visible; padding: 0; }
  .video { padding: 0; }
  .video video { box-shadow: 0 12px 30px rgba(22,32,29,0.16); }
  .video figcaption { font-size: 16px; }
  .car-btn, .car-dots { display: none; }
}

/* scenes */
.scenes { background: var(--panel); }
.scene { background: var(--white); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.scene-pic { position: relative; height: 210px; overflow: hidden; }
.scene-pic .bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.scene-pic .person { position: absolute; left: 50%; bottom: 0; height: 180px; width: auto; transform: translateX(-50%); }
.scene-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.scene-body h3 { font-family: var(--font-round); font-weight: 900; font-size: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--aqua-soft); font-size: 13px; font-weight: 700; }
.chip img { width: 24px; height: 24px; }

/* features */
.feature { background: var(--white); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.feature svg { width: 34px; height: 34px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--sub); }

/* privacy band */
.privacy-band { border-radius: 32px; background: var(--aqua); color: var(--white); padding: 40px 24px; display: grid; gap: 28px; align-items: center; }
.privacy-band .eyebrow { text-align: left; color: #CFE6E4; }
.privacy-band h2 { font-family: var(--font-round); font-weight: 900; font-size: clamp(24px, 5.6vw, 36px); line-height: 1.45; }
.privacy-band p { color: #E6F1F0; margin-top: 12px; }
.privacy-band a { color: var(--white); font-weight: 700; display: inline-block; margin-top: 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,0.12); border-radius: 16px; padding: 14px 16px; font-weight: 500; }
.checks svg { flex-shrink: 0; }
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1fr 1fr; padding: 56px 48px; } }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.faq details { background: var(--white); border-radius: 18px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--sub); }

/* cta */
.cta { background: var(--aqua-soft); padding: 72px 0 80px; text-align: center; }
.cta .app-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 18px; box-shadow: 0 12px 30px rgba(22,32,29,0.18); }
.cta h2 { font-size: clamp(26px, 6vw, 42px); margin-bottom: 22px; }

/* sub pages */
.page-hero { background: var(--aqua-soft); padding: 48px 0 40px; }
.page-hero h1 { font-family: var(--font-round); font-weight: 900; font-size: clamp(30px, 7vw, 44px); }
.page-hero p { margin-top: 10px; color: #3B4541; }
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
@media (min-width: 900px) { .toc { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.toc a { min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.toc img { width: 28px; height: 28px; }
.doc { padding: 48px 0 72px; display: flex; flex-direction: column; gap: 48px; }
.doc h2 { font-family: var(--font-round); font-weight: 900; font-size: 26px; margin-bottom: 16px; }
.doc .rule { font-family: var(--font-body); font-weight: 700; font-size: 20px; border-bottom: 2px solid var(--aqua); padding-bottom: 6px; margin-bottom: 12px; }
.doc ul { padding-left: 1.3em; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.summary-box { background: var(--aqua-soft); border-radius: 24px; padding: 24px; }
.info { background: var(--white); border-radius: 18px; padding: 18px 20px; }
.info + .info { margin-top: 12px; }
.info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.info p { color: #3B4541; font-size: 15px; }
.table-box { overflow-x: auto; border-radius: 18px; background: var(--white); margin-top: 12px; }
.table-box table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table-box th { background: var(--aqua-soft); text-align: left; padding: 12px 16px; }
.table-box td { padding: 12px 16px; border-top: 1px solid #ECE6DA; vertical-align: top; }
.contact-box { background: var(--aqua); color: var(--white); border-radius: 28px; padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-box h2 { color: var(--white); margin-bottom: 0; }
.contact-box p { color: #E6F1F0; font-size: 15px; }
.contact-box .btn { align-self: flex-start; background: var(--white); color: var(--aqua-deep); word-break: break-all; }
.updated { font-size: 14px; color: var(--sub); margin-top: 8px; }

/* footer */
.site-footer { background: var(--footer); color: #E1E6E3; padding: 32px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--white); }

/* Language selection and wrapping for translated content. */
.language-menu { position: relative; }
.language-menu summary { cursor: pointer; list-style: none; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu nav { position: absolute; top: 100%; right: 0; z-index: 10; min-width: 160px; padding: 8px; background: var(--white); border: 1px solid var(--aqua-soft); border-radius: 14px; box-shadow: 0 8px 24px rgba(36,48,43,.15); }
.language-menu nav a { display: block; padding: 6px 12px; text-decoration: none; border-radius: 6px; }
.language-menu nav a[aria-current] { background: var(--aqua-soft); }
html:not([lang="ja"]) .hero h1 span.line,
html:not([lang="ja"]) .section-title span { white-space: normal; }
html:not([lang="ja"]) .hero-copy,
html:not([lang="ja"]) .hero-visual { min-width: 0; }
html:not([lang="ja"]) .store-ios { padding-top: 10px; padding-bottom: 10px; }
html:not([lang="ja"]) .notif-actions { flex-wrap: wrap; white-space: normal; }
