/* ========= VARIABLES ========= */
:root {
  --bg: #ffffff;
  --bg-mid: #eaf0f5;
  --bg-card: #ffffff;
  --text: #0c2236;
  --dim: #445466;
  --faint: #718092;
  --accent-blue: #0f3399;
  --accent-blue-dark: #0c287a;
  --accent-blue-light: #0099ff;
  --cta-start: #007acc;
  --cta-end: #00147a;
  --cta-hover-solid: #1c67c7;
  --border: rgba(12, 34, 54, .14);
  --story-bg: #081f31;
  --serif: 'Shippori Mincho B1', 'Shippori Mincho', serif;
  --sans: 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ========= COLOR RULES =========
  Base background: --bg
  Alternate section background: --bg-mid
  Card background: --bg-card
  Main text: --text
  Secondary text: --dim
  Micro text / notes: --faint
  Primary accent and CTA: --accent-blue
  Hover / active accent: --accent-blue-dark
  Accent on dark sections: --accent-blue-light
  Borders and separators: --border
  Dark story/podcast section background: --story-bg
*/

/* ========= TYPE SCALE =========
  Base text: 1rem
  Small text / nav / buttons / support copy: .875rem
  Micro text / legal / badges / notes: .75rem
  Small headings inside cards and lists: 1rem
  Section titles: clamp(1.75rem, 3vw, 2.25rem)
  Hero title: clamp(2.25rem, 5vw, 4rem)
*/

/* ========= RESET ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 2.0;
  letter-spacing: .03em;
  overflow-x: hidden;
}

/* ========= HEADER ========= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 62px;
  box-shadow: 0 1px 12px rgba(13, 34, 51, .06);
}

.logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo em {
  color: var(--accent-blue);
  font-style: normal;
}

header nav {
  display: flex;
  align-items: center;
}

header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35rem 0;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  color: #2f4457;
  margin-left: 1.6rem;
  transition: color .2s;
}

header nav a.nav-cta {
  position: relative;
  min-height: 30px;
  padding: .42rem 1rem;
  margin-left: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: none;
  color: #fff;
  white-space: nowrap;
  border-radius: 999px;
  border: none;
  box-shadow: none;
  outline: none;
  opacity: 1;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  transition: color .48s ease;
}

header nav a.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-blue);
  pointer-events: none;
  z-index: -2;
}

header > nav a.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--accent-blue);
  opacity: 0;
  transition: opacity .48s ease;
  pointer-events: none;
  z-index: -1;
}

header nav a:not(.nav-cta):hover {
  color: var(--accent-blue);
}

header nav a.nav-cta:hover {
  color: var(--accent-blue);
  border: none;
  box-shadow: none;
  outline: none;
}

header > nav a.nav-cta:hover::after {
  opacity: 1;
}

/* ========= HAMBURGER ========= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 0 auto;
  border-radius: 0;
  background: var(--text);
  transition: transform .3s, opacity .3s, background .2s;
}

.hamburger:hover span {
  background: var(--accent-blue);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.1rem;
  overflow-y: auto;
  padding: 1rem 5vw calc(2rem + env(safe-area-inset-bottom));
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #2f4457;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  padding: .35rem 0;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}

.nav-overlay a.nav-cta {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #2f4457;
  background: none;
  box-shadow: none;
}

.nav-overlay a:hover {
  color: rgba(15, 51, 153, .6);
  background: none;
}

.nav-overlay a.nav-cta:hover {
  color: rgba(15, 51, 153, .6);
  background: none;
  box-shadow: none;
}
body.menu-open {
  overflow: hidden;
}

body.menu-open .sticky-bar {
  transform: translateY(100%) !important;
}

/* ========= SECTIONS ========= */
section {
  padding: 6rem 5vw;
  background: var(--bg);
}

.section-eyebrow {
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  max-width: 600px;
  color: var(--text);
}

.section-body {
  font-size: 1.06rem;
  color: #34495b;
  max-width: 560px;
  line-height: 1.95;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 2rem;
  font-size: .94rem;
  letter-spacing: .1em;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

.section-link:hover {
  color: var(--accent-blue-dark);
  opacity: .88;
}

.section-link__icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: none;
  background-color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  outline: none;
  transition: background-color .2s ease;
}

.section-link__icon img {
  display: block;
  width: .95rem;
  height: .95rem;
  object-fit: contain;
  transition: transform .2s ease;
}

.section-link:hover .section-link__icon {
  background-color: var(--accent-blue-dark);
}

.section-link:hover .section-link__icon img {
  transform: translateX(2px);
}

.text-link-dotted,
.text-link-dotted:link,
.text-link-dotted:visited,
.text-link-dotted:active {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  color: var(--accent-blue);
  text-decoration-line: underline !important;
  text-decoration-style: dotted !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: .32em !important;
  transition: color .2s, opacity .2s;
}

.text-link-dotted:hover {
  background: none;
  color: rgba(15, 51, 153, .6) !important;
  text-decoration-color: currentColor !important;
  opacity: 1 !important;
}

.text-link-dotted-gold,
.text-link-dotted-gold:link,
.text-link-dotted-gold:visited,
.text-link-dotted-gold:active {
  color: #c9a86c !important;
  text-decoration-color: #c9a86c !important;
}

.text-link-dotted-gold:hover {
  color: #c9a86c !important;
  text-decoration-color: #c9a86c !important;
  opacity: .72 !important;
}

/* ========= BUTTONS ========= */
.btn-primary,
.btn-gold,
.btn-sticky,
#contactSubmit,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  color: #fff;
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .15em;
  font-weight: 700;
  min-height: 52px;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  border: none;
  transition: color .48s ease;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.btn-primary::before,
.btn-gold::before,
.btn-sticky::before,
#contactSubmit::before,
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-end) 100%);
  pointer-events: none;
  z-index: -2;
}

.btn-primary::after,
.btn-gold::after,
.btn-sticky::after,
#contactSubmit::after,
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--cta-hover-solid);
  opacity: 0;
  transition: opacity .48s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover,
.btn-gold:hover,
.btn-sticky:hover,
#contactSubmit:hover,
.btn-submit:hover {
  color: var(--cta-hover-solid);
}

.btn-primary:hover::before,
.btn-gold:hover::before,
.btn-sticky:hover::before,
#contactSubmit:hover::before,
.btn-submit:hover::before {
  opacity: 1;
}

.btn-primary:hover::after,
.btn-gold:hover::after,
.btn-sticky:hover::after,
#contactSubmit:hover::after,
.btn-submit:hover::after {
  opacity: 1;
}

.btn-gold {
  font-size: .94rem;
  padding: 1.1rem 3rem;
}

.btn-sticky {
  letter-spacing: .12em;
  padding: .65rem 1.8rem;
  white-space: nowrap;
}

#contactSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-start;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: .9rem;
  width: 100%;
  padding: 1.4rem 3rem;
  cursor: pointer;
}

#contactSubmit:disabled {
  background: var(--faint);
  cursor: wait;
}

.btn-submit:disabled {
  background: var(--faint);
  cursor: not-allowed;
}

.btn-platform,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  border: 1px solid transparent;
  padding: 0 var(--btn-platform-pad-x, 1.4rem);
  height: var(--btn-platform-height, 48px);
  min-width: var(--btn-platform-min-width, 140px);
  border-radius: var(--btn-platform-radius, 999px);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  transition: color .48s ease, border-color .48s ease;
  margin: .4rem .4rem 0 0;
}

.btn-platform::before,
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--btn-platform-bg, transparent);
  box-shadow: inset 0 0 0 1px var(--btn-platform-border, rgba(13, 34, 51, .12));
  pointer-events: none;
  z-index: -2;
}

.btn-platform::after,
.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--btn-platform-hover-border, var(--accent-blue));
  opacity: 0;
  transition: opacity .48s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-platform:hover,
.btn-outline:hover {
  color: var(--btn-platform-hover-border, var(--accent-blue));
}

.btn-platform:hover::after,
.btn-outline:hover::after {
  opacity: 1;
}

.btn-outline-dark {
  --btn-platform-bg: #081f31;
  --btn-platform-border: #081f31;
  --btn-platform-hover-border: #081f31;
  color: #fff;
}

.btn-outline-dark:hover {
  color: #081f31;
}

.card-hover-soft {
  transition: background-color .48s ease, color .48s ease, border-color .48s ease;
}

.card-hover-soft:hover {
  background: #f5f7f9;
}

.choice-hover-soft {
  transition: background-color .48s ease, color .48s ease, border-color .48s ease;
}

.choice-hover-soft:hover {
  background: #f5f7f9;
}

/* ========= PODCAST SECTION ========= */
.podcast-section {
  background: #181410;
  padding: 6rem 5vw;
}

.podcast-section .section-eyebrow {
  color: #c9a86c;
}

.podcast-section .section-eyebrow::before {
  background: #c9a86c;
}

.podcast-section .section-title {
  color: #edf3f7;
}

.podcast-section .section-body {
  color: rgba(237, 243, 247, .78);
}

.podcast-section .section-link {
  color: #c9a86c;
}

.podcast-section .section-link:hover {
  color: #c9a86c;
  opacity: .88;
}

.podcast-section .section-link__icon {
  background-color: #c9a86c;
}

.podcast-section .section-link:hover .section-link__icon {
  background-color: #c9a86c;
}

.podcast-section .btn-platform {
  border: none;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 0;
}

.podcast-section .btn-platform::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.podcast-section .btn-platform::after {
  display: none;
}

.podcast-section .btn-platform:hover {
  color: inherit;
}

.podcast-section .btn-platform:hover::before {
  box-shadow: inset 0 0 0 1px #c9a86c;
}

.platform-btns {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
}

/* ========= LIGHT SECTION ========= */
.section-light {
  background: #fff;
}

.section-light .section-eyebrow {
  color: var(--accent-blue);
}

.section-light .section-eyebrow::before {
  background: var(--accent-blue);
}

.section-light .section-title {
  color: var(--text);
}

.section-light .section-link {
  color: var(--accent-blue);
}

/* ========= CTA BOX ========= */
.cta-box {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  padding: 3.5rem;
  border: 1px solid var(--border);
  text-align: center;
  border-radius: 0;
}

.free-badge {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .15em;
  color: #fff;
  background: var(--accent-blue);
  border: none;
  box-shadow: none;
  outline: none;
  padding: .3rem .9rem;
  margin-bottom: 1.8rem;
}

/* ========= PRIVACY LINK ========= */
.privacy-link-bar {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 1.5rem 5vw;
  text-align: center;
}

.privacy-link-bar a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  color: var(--faint);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color .2s, opacity .2s;
}

.privacy-link-bar a:hover {
  color: var(--accent-blue);
  opacity: .88;
}

.privacy-link-bar a::after {
  content: '';
  flex: 0 0 auto;
  width: .82rem;
  height: .82rem;
  background-color: currentColor;
  mask-image: url('/images/yajirushi.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url('/images/yajirushi.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* ========= HERO ========= */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 92px 5vw 5rem;
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: .82rem;
  letter-spacing: .25em;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent-blue);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 680px;
  color: var(--text);
  margin-top: 0;
}

.page-eyebrow {
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
}

.hero-eyebrow,
.page-eyebrow,
.hero-eyebrow::before,
.page-eyebrow::before {
  display: none;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
  margin-top: 0;
}

/* ========= FOOTER ========= */
footer {
  background: #081f31;
  color: rgba(255, 255, 255, .35);
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

footer p {
  font-size: .82rem;
}

footer > div:first-child {
  width: 100%;
}

footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

footer nav a {
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-left: 1.6rem;
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

footer nav a:hover {
  color: #6daecc;
  opacity: .82;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  border: none;
  outline: none;
  white-space: nowrap;
  line-height: 1;
}

.footer-brand em {
  color: #8fc6e0;
  font-style: normal;
}

.footer-copy {
  font-family: var(--serif);
  font-size: .75rem;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.5;
}

footer > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  header nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex: 0 0 48px;
    margin-left: auto;
  }

  .logo {
    flex: 0 1 auto;
  }

  header {
    padding: .55rem 5vw;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  footer nav {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: .85rem !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: .25rem;
  }

  footer nav a {
    margin-left: 0;
    flex: 0 0 auto;
    font-size: .72rem;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

.mobile-main-offset {
  padding-top: 88px;
}

  .mobile-hero-offset {
    padding-top: 88px;
  }

  .page-hero {
    min-height: auto;
    padding-bottom: 3.5rem;
  }
}

/* ========= PAGE MAIN ========= */
.page-main {
  margin: 0 auto;
  padding: 120px 5vw 80px;
}

.page-main-narrow {
  max-width: 560px;
}

.page-main-wide {
  max-width: 720px;
}

.page-lead {
  font-size: 1rem;
  color: #34495b;
  line-height: 1.9;
}

.page-note {
  font-size: .78rem;
  color: var(--faint);
  line-height: 1.8;
}

.page-main a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

.page-main a:hover {
  color: var(--accent-blue-dark);
  opacity: .88;
}

.content-measure > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


@media (min-width: 769px) {
  footer {
    padding-top: .5rem !important;
    padding-bottom: 1.5rem !important;
  }

  footer nav {
    margin-bottom: 1rem !important;
  }

  .nav-overlay {
    display: none !important;
  }
}
