/* Approved Sunny Departure homepage. Shared learning-page tokens are unchanged. */
.home-page {
  --paper: #fff; --card: #fff; --paper2: #f1f8fa; --ink: #12335d; --ink2: #5b6f86;
  --ink3: #5b6f86; --ai: #157e86; --ai-soft: #edf8f7; --line: #dbe5ec; --line2: #c4d8df;
  --sun: #ffe33e; --sun-hover: #f4d622; --sans: var(--ui);
  --departure-serif: "Tabika Departure Serif", "Songti SC", "Noto Serif CJK SC", serif;
  --home-frame: 1580px;
  color-scheme: light; background: #fff; color: var(--ink); font-family: var(--ui);
}
.home-page main { min-height: 0; padding-bottom: 0; }
.home-page .wrap { max-width: var(--home-frame); padding: 0 70px; }
.home-page section { margin: 0; }
.home-page ::selection { background: #ffe879; color: #12335d; }
.home-page :focus-visible { outline: 2px solid #157e86; outline-offset: 4px; }
.home-page a { text-underline-offset: 5px; }
body.home-page #hdr { top: 0; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; background: #fffffff9; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.home-page .hdr-in { height: 68px; max-width: var(--home-frame); padding: 0 70px; gap: 28px; }
.home-page .logo { gap: 9px; }
.home-page .logo b { font-family: ui-rounded, "Arial Rounded MT Bold", var(--ui); font-size: 36px; font-weight: 750; color: #157e86; }
.home-page .brand-flower .icon { width: 30px; height: 30px; color: #ff83a6; }
.home-page nav.main { margin-left: 32px; gap: 46px; }
.home-page nav.main a { padding: 8px 0; font: 600 18px/1.5 var(--ui); color: #12335d; }
.home-page .header-youtube { color: #12335d; font-size: 16px; font-weight: 600; }
.home-page .header-search { width: 44px; border-left: 1px solid #dbe5ec; background: none; }
.home-page .header-search .icon { color: #12335d; width: 26px; height: 26px; }
.departure-hero { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1402 / 530; max-height: calc(100svh - 140px); }
.hero-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; width: 100%; height: 100%; }
.hero-copy-inner { width: 600px; max-width: 49%; padding-bottom: 36px; }
.hero-copy h1 { position: relative; width: max-content; max-width: 100%; margin: 0 0 22px; color: #12335d; font: 700 120px/1 "Times New Roman", var(--departure-serif); }
.hero-copy h1::after { content: ""; position: absolute; left: 3px; right: -30px; bottom: -15px; height: 25px; background: url('/assets/illustrations/departure-underline.webp') center 51% / 100% auto no-repeat; pointer-events: none; }
.hero-heading { margin: 0 0 9px; font: 600 36px/1.5 var(--departure-serif); color: #12335d; }
.hero-description { margin: 0 0 28px; font-size: 22px; line-height: 1.6; color: #12335d; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; }
.text-link .icon { width: 26px; height: 26px; flex-shrink: 0; }
.home-page .hero-start { min-width: 220px; min-height: 60px; max-width: 100%; padding: 12px 34px; border: 0; border-radius: 32px; background: var(--sun); color: #12335d; font: 700 24px/1.5 var(--ui); justify-content: center; }
.home-page .hero-start:hover { background: var(--sun-hover); color: #12335d; }
.hero-shadowing { font-size: 22px; font-weight: 600; color: #12335d; }
.hero-shadowing:hover, .tool-link:hover, .route-link:hover h2 { color: #157e86; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-link { display: grid; grid-template-columns: 134px minmax(0, 1fr); align-items: center; gap: 16px; position: relative; min-height: 212px; padding: 25px 28px 25px 0; color: #12335d; }
.route-link + .route-link { padding-left: 24px; }
.route-link + .route-link::before { content: ""; position: absolute; width: 1px; height: 106px; top: 53px; left: 0; background: #dbe5ec; }
.route-link:last-child { padding-right: 0; }
.route-link > img { width: 134px; height: 144px; object-fit: contain; transform: scale(1.12); }
.route-copy { min-width: 0; }
.route-copy h2 { min-height: 46px; margin: 0 0 8px; font: 700 32px/1.4 var(--departure-serif); color: #12335d; }
.route-description { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.route-description p { display: flex; flex-wrap: wrap; gap: 0 5px; margin: 0; font-size: 19px; line-height: 1.6; }
.route-description p > span { white-space: nowrap; }
.route-description .icon { width: 27px; height: 27px; color: #157e86; flex-shrink: 0; }
.daily-inner { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) 44px 144px; align-items: center; gap: 24px; min-height: 88px; padding: 12px 32px; border-top: 1px solid #dbe5ec; border-bottom: 1px solid #dbe5ec; }
.daily-practice { position: relative; z-index: 3; background: #fff; }
.daily-label { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; border-right: 1px solid #dbe5ec; }
.daily-label h2 { margin: 0; white-space: nowrap; font: 700 30px/1.5 var(--departure-serif); color: #12335d; }
.phrase-practice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 28px; min-width: 0; }
.preview-japanese { min-width: 0; margin: 0; font: 600 32px/1.6 var(--departure-serif); color: #12335d; overflow-wrap: anywhere; }
.preview-japanese rt { font-size: 11px; font-weight: 400; line-height: 1; }
.preview-japanese.preview-hide-ruby rt { visibility: hidden; }
.preview-chinese { margin: 0; font-size: 20px; color: #5b6f86; line-height: 1.5; }
.preview-chinese.translation-hidden { visibility: hidden; }
.practice-listen { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 0; background: transparent; color: #12335d; cursor: pointer; }
.practice-listen .icon { width: 32px; height: 32px; }
.practice-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 24px; background: var(--sun); color: #12335d; font: 700 18px/1.5 var(--ui); cursor: pointer; }
.practice-play:hover { background: var(--sun-hover); }
.practice-play .icon { width: 20px; height: 20px; flex-shrink: 0; }
.practice-status { position: absolute; left: 32px; right: 32px; top: 100%; margin: 4px 0 0; font-size: 12px; color: #5b6f86; line-height: 1.5; }
.practice-status[data-quiet="true"] { visibility: hidden; }
.practice-options { position: relative; z-index: 4; }
.practice-options > summary { list-style: none; display: flex; justify-content: center; align-items: center; width: 32px; height: 44px; padding: 6px; background: transparent; color: #5b6f86; border: 0; border-radius: 0; cursor: pointer; }
.practice-options > summary::-webkit-details-marker { display: none; }
.practice-options-panel { position: absolute; bottom: 49px; left: 0; width: 310px; max-width: calc(100vw - 44px); padding: 16px; background: #fff; border: 1px solid #c4d8df; border-radius: 8px; box-shadow: 0 8px 22px #12335d19; }
.practice-controls { display: flex; gap: 8px; }
.practice-controls .icon-button { width: 42px; height: 42px; padding: 9px; flex-shrink: 0; border: 1px solid #c4d8df; background: #fff; color: #157e86; }
.practice-controls [aria-pressed="true"] { background: #157e86; color: #fff; }
.practice-count, .practice-options-panel > a { display: block; margin-top: 10px; font-size: 13px; color: #157e86; }
.practice-options-panel > a .icon { width: 14px; height: 14px; }
.practice-progress { display: block; width: 100%; height: 4px; appearance: none; margin: 12px 0; border: 0; background: #dbe5ec; accent-color: #157e86; }
.home-page button:disabled { cursor: not-allowed; opacity: .55; }
.home-page .home-tools { position: relative; z-index: 2; padding: 26px 0 0; background: transparent; }
.home-tools > .wrap { display: flex; justify-content: center; align-items: center; gap: 72px; min-height: 102px; }
.tool-link { display: flex; align-items: center; gap: 24px; min-height: 64px; color: #12335d; font: 600 26px/1.5 var(--ui); }
.tool-link > img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.youtube-mark { width: 56px; height: 44px; color: #ef3040; flex-shrink: 0; }
.home-kotomichi { padding-left: 72px; border-left: 1px solid #dbe5ec; }
.tool-arrow { width: 26px; height: 26px; color: #157e86; flex-shrink: 0; }
.home-page #ftr { position: relative; isolation: isolate; max-width: none; margin: 0; height: 96px; padding: 0; border: 0; background: transparent; }
.home-page #ftr .wrap { display: none; }
.home-page #ftr::before { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 320px; background: url('/assets/illustrations/departure-footer.webp') center bottom / 100% auto no-repeat; pointer-events: none; }
.home-page #ftr::after { display: none; }
@media (min-width: 1600px) {
  .hero-copy-inner { padding-bottom: 30px; }
  .hero-copy h1 { font-size: 124px; }
  .hero-heading { font-size: 40px; }
  .hero-description { font-size: 24px; }
  .home-page #ftr { height: 170px; }
}
@media (max-width: 1250px) {
  .home-page .wrap { padding-left: 44px; padding-right: 44px; }
  .home-page .hdr-in { padding: 0 44px; gap: 20px; }
  .home-page .logo b { font-size: 32px; }
  .home-page nav.main { margin-left: 16px; gap: 28px; }
  .home-page nav.main a { font-size: 16px; }
  .home-page .header-youtube { font-size: 13px; }
  .hero-copy-inner { max-width: 52%; padding-bottom: 10px; }
  .hero-copy h1 { font-size: 90px; margin-bottom: 18px; }
  .hero-heading { font-size: 30px; }
  .hero-description { font-size: 18px; margin-bottom: 22px; }
  .home-page .hero-start { min-width: 180px; min-height: 52px; padding: 10px 24px; font-size: 20px; }
  .hero-shadowing { font-size: 18px; }
  .hero-actions { gap: 12px 24px; }
  .route-link { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding-right: 20px; min-height: 190px; }
  .route-link + .route-link { padding-left: 20px; }
  .route-link > img { width: 104px; height: 124px; }
  .route-copy h2 { font-size: 26px; min-height: 37px; }
  .route-description p { font-size: 16px; min-height: 51px; }
  .route-divider { display: none; }
  .route-description .icon { width: 23px; height: 23px; }
  .route-link + .route-link::before { top: 42px; }
  .daily-inner { grid-template-columns: 150px minmax(0, 1fr) 40px 126px; gap: 18px; padding-left: 24px; padding-right: 24px; min-height: 100px; }
  .daily-label h2 { font-size: 26px; }
  .preview-japanese { font-size: 28px; }
  .preview-chinese { font-size: 17px; }
  .tool-link { font-size: 20px; gap: 18px; }
  .home-tools > .wrap { gap: 40px; }
  .home-kotomichi { padding-left: 40px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .home-page .wrap { padding-left: 30px; padding-right: 30px; }
  .home-page .hdr-in { padding: 0 30px; gap: 16px; }
  .home-page .header-youtube span { display: none; }
  .home-page nav.main { margin-left: 12px; gap: 26px; }
  .home-page nav.main a { font-size: 14px; }
  .hero-copy h1 { font-size: 72px; margin-bottom: 16px; }
  .hero-heading { font-size: 25px; margin-bottom: 7px; }
  .hero-description { font-size: 16px; margin-bottom: 18px; }
  .home-page .hero-start { min-width: 154px; min-height: 46px; padding: 8px 18px; font-size: 18px; gap: 10px; }
  .hero-shadowing { font-size: 16px; gap: 8px; }
  .hero-actions { gap: 12px 18px; }
  .hero-actions .icon { width: 21px; height: 21px; }
  .route-link { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding-right: 14px; min-height: 170px; }
  .route-link + .route-link { padding-left: 14px; }
  .route-link > img { width: 78px; height: 104px; }
  .route-copy h2 { font-size: 22px; min-height: 32px; }
  .route-description { gap: 5px; }
  .route-description p { font-size: 14px; min-height: 45px; }
  .route-description .icon { width: 20px; height: 20px; }
  .route-link + .route-link::before { top: 32px; }
  .daily-inner { grid-template-columns: 136px minmax(0, 1fr) 36px 116px; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .daily-label h2 { font-size: 24px; }
  .daily-label { gap: 0; }
  .preview-japanese { font-size: 24px; }
  .practice-play { font-size: 16px; padding: 8px 12px; }
  .tool-link { font-size: 16px; gap: 14px; }
  .tool-link > img { width: 48px; height: 48px; }
  .youtube-mark { width: 42px; height: 36px; }
  .home-tools > .wrap { gap: 30px; }
  .home-kotomichi { padding-left: 30px; }
}
@media (max-width: 760px) {
  .home-page .wrap { padding-left: 24px; padding-right: 24px; }
  .home-page .hdr-in { height: 56px; padding: 0 22px; gap: 12px; }
  .home-page .logo b { font-size: 27px; }
  .home-page .brand-flower .icon { width: 23px; height: 23px; }
  .home-page .header-search { width: 32px; border: 0; }
  .home-page .header-youtube { margin-left: auto; }
  .home-page nav.main { top: 56px; margin-left: 0; gap: 0; background: #fffffff9; }
  .home-page nav.main a { font-size: 15px; padding: 13px 4px; }
  .home-page .menu-toggle { color: #12335d; background: #fff; }
  .departure-hero { aspect-ratio: auto; height: min(680px, calc(100svh - 146px)); min-height: 440px; max-height: none; }
  .hero-art { min-height: 600px; object-position: right top; }
  .hero-copy { align-items: flex-start; padding-top: 26px !important; }
  .hero-copy-inner { width: 100%; max-width: 100%; padding-bottom: 0; }
  .hero-copy h1 { font-size: 64px; margin-bottom: 16px; }
  .hero-copy h1::after { bottom: -11px; height: 18px; right: -18px; }
  .hero-heading { font-size: 24px; margin-bottom: 7px; }
  .hero-description { max-width: 300px; font-size: 16px; margin-bottom: 18px; line-height: 1.6; }
  .hero-actions { gap: 10px 18px; }
  .home-page .hero-start { min-width: 152px; min-height: 46px; padding: 8px 20px; font-size: 18px; gap: 12px; }
  .hero-shadowing { font-size: 16px; gap: 8px; }
  .hero-actions .icon { width: 21px; height: 21px; }
  .route-grid { grid-template-columns: minmax(0, 1fr); }
  .route-link, .route-link + .route-link { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; min-height: 130px; padding: 14px 0; }
  .route-link + .route-link::before { top: 0; height: 1px; width: 100%; }
  .route-link > img { width: 90px; height: 100px; }
  .route-copy h2 { font-size: 26px; min-height: 37px; margin-bottom: 3px; }
  .route-description p { font-size: 16px; min-height: 0; }
  .route-divider { display: inline; }
  .route-description .icon { width: 24px; height: 24px; }
  .daily-inner { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; padding: 16px 0; }
  .daily-label { grid-column: 1 / -1; border: 0; justify-content: space-between; }
  .daily-label h2 { font-size: 24px; }
  .practice-options { position: static; }
  .practice-options > summary { width: 44px; }
  .practice-options-panel { left: 0; bottom: 48px; }
  .phrase-practice { grid-column: 1 / -1; display: block; padding-bottom: 6px; }
  .preview-japanese { font-size: 24px; }
  .preview-chinese { margin-top: 5px; font-size: 18px; }
  .practice-play { width: 128px; justify-self: end; font-size: 17px; }
  .practice-status { left: 0; right: 0; }
  .home-page .home-tools { padding-top: 40px; }
  .home-tools > .wrap { flex-direction: column; align-items: stretch; gap: 16px; }
  .tool-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 14px; font-size: 17px; min-height: 54px; }
  .tool-link > img { width: 44px; height: 44px; }
  .youtube-mark { width: 40px; height: 34px; }
  .tool-arrow { width: 22px; height: 22px; }
  .home-kotomichi { padding: 0; border: 0; }
  .home-page #ftr { height: 110px; }
  .home-page #ftr::before { height: 140px; background-size: auto 200px; }
}
@media (max-width: 360px) {
  .hero-art { min-height: 550px; }
  .hero-copy h1 { font-size: 58px; }
  .hero-heading { font-size: 22px; }
  .hero-actions { gap: 8px 12px; }
  .home-page .hero-start { font-size: 16px; min-width: 142px; padding: 8px 17px; }
  .hero-shadowing { font-size: 14px; }
  .route-link, .route-link + .route-link { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
  .route-link > img { width: 74px; height: 90px; }
  .route-copy h2 { font-size: 24px; }
  .route-description p { font-size: 14px; }
  .preview-japanese { font-size: 22px; }
  .tool-link { font-size: 15px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto; transition: none; animation: none; }
}
