:root {
  /* color */
  --color-navy: #203459;
  --color-navy-70: rgba(32, 52, 89, 0.7);
  --color-primary: #013f97;
  --color-primary-light: #176ac2;
  --color-accent: #ff4949;
  --color-sky: #6dc3f8;
  --color-sun-core: #fed74c;
  --color-sun: #fee64c;
  --color-sun-rim: rgba(255, 255, 255, 0.65);
  --color-bg-light: #ebf8ff;
  --color-white: #fff;
  --color-placeholder: #f0f2f5;
  --color-border: #e5e8ed;
  --color-text-dark: #1f262e;
  --color-line: rgba(32, 52, 89, 0.15);
  --color-white-75: rgba(255, 255, 255, 0.75);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-10: rgba(255, 255, 255, 0.1);

  /* font */
  --font-mincho: "Shippori Antique", serif;
  --font-gothic: "Noto Sans JP", sans-serif;
  --font-nav: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Roboto", sans-serif;
  --tracking: 0.28px;

  /* shape */
  --radius-pill: 9999px;
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
address { font-style: normal; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

body {
  /* page colors */
  --bg: var(--color-bg-light);
  --fg: var(--color-navy);
  --fg2: var(--color-navy-70);
  --line: var(--color-line);
  --link: var(--color-primary-light);
  font-family: var(--font-gothic);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.sp-only { display: none; }
@media (max-width: 767px) {
  .pc-only { display: none !important; }
  .sp-only { display: block; }
  br.sp-only { display: inline; }
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px;
}
.header__logo {
  display: block;
  width: 122px;
  height: 30px;
  overflow: hidden;
}
.header__logo img {
  width: auto;
  max-width: none;
  height: 100%;
}
.header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: var(--tracking);
  white-space: nowrap;
}
.nav-list a:hover { opacity: 0.7; }
.header__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: var(--tracking);
}
.nav-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--color-white);
}
.nav-btn span {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 1px;
  background: var(--color-navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-btn span:nth-child(1) { top: 14px; }
.nav-btn span:nth-child(2) { top: 19px; }
.nav-btn span:nth-child(3) { top: 24px; }
.nav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Collapse nav before it overflows */
@media (max-width: 1199px) {
  .header__right { gap: 8px; }
  .nav-btn { display: block; }
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    padding: 24px;
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: var(--shadow-float);
  }
  .header__nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* header on top, city image at the bottom */
  gap: 10px;
  height: 100svh;
  min-height: 640px;
  background: linear-gradient(to bottom, var(--color-sky), var(--color-bg-light) 70%);
}
/* Positions scale with whichever is tighter: viewport width or height (1440 x 900 base) */
.hero__sun {
  position: absolute;
  top: min(calc(162 / 1440 * 100vw), calc(162 / 900 * 100svh));
  left: 50%;
  width: 94px;
  height: 94px;
  transform: translateX(-50%);
  pointer-events: none;
}
/* SVG includes glow filter area around the 94px circle */
.hero__sun img {
  position: absolute;
  top: -170.21%;
  left: -163.83%;
  width: 427.66%;
  max-width: none;
  height: auto;
}
.hero__title {
  position: absolute;
  z-index: 1;
  top: min(calc(295 / 1440 * 100vw), calc(295 / 900 * 100svh));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(48px, min(calc(80 / 1440 * 100vw), calc(80 / 900 * 100svh)), 80px);
  line-height: 1.275;
  letter-spacing: var(--tracking);
  text-align: center;
  white-space: nowrap;
}
.hero__mv img {
  width: 100%;
  aspect-ratio: 1460 / 776;
  /* on short viewports, crop the sky at the top instead of overflowing */
  max-height: max(526px, calc(100svh - 114px));
  object-fit: cover;
  object-position: bottom;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%);
  color: var(--color-navy);
  pointer-events: none;
  transition: opacity 0.3s;
}
.scroll-hint__text {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  padding-left: 0.2em; /* optically center with letter-spacing */
}
.scroll-hint__arrow {
  font-size: 16px;
  line-height: 23px;
  animation: scroll-hint-bounce 2s infinite;
}
.scroll-hint.is-hidden { opacity: 0; }
@keyframes scroll-hint-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ---------- FV scroll transition ----------
   Enabled by JS (html.is-fv-anim). Without it, hero and purpose stack statically. */
.fv__burst { display: none; }

.is-fv-anim .fv {
  /* pin height + scroll distance for the transition */
  height: calc(var(--fv-h, 100svh) + var(--fv-dist, 160svh));
}
.is-fv-anim .fv__pin {
  position: sticky;
  /* if the hero is taller than the viewport, stick once its bottom reaches the viewport bottom */
  top: var(--fv-top, 0px);
  z-index: 1;
  overflow: hidden;
}
.is-fv-anim .fv__burst {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  /* sun body + soft white rim, matching the sun.svg glow */
  background: radial-gradient(
    circle at var(--burst-x, 50%) var(--burst-y, 0),
    var(--color-sun-core) 0,
    var(--color-sun) var(--burst-r, 47px),
    var(--color-sun-rim) calc(var(--burst-r, 47px) + 3px),
    transparent calc(var(--burst-r, 47px) + 80px)
  );
  pointer-events: none;
}
.is-fv-anim .fv__burst.is-done { background: var(--color-bg-light); }
.is-fv-anim .fv__burst span {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--color-bg-light);
}
.is-fv-anim .purpose {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(100%, 100svh);
  padding: 104px 16px 40px; /* keep clear of the header */
  background: none;
  visibility: hidden;
  opacity: 0;
}
.is-fv-anim .purpose__inner { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 50px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: var(--tracking);
  transition: background-color 0.2s, color 0.2s;
}
.btn::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 19px;
  width: 14px;
  height: 13px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
  mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
}
.btn:hover { background: var(--color-primary); color: var(--color-white); }

/* ---------- Purpose ---------- */
.purpose {
  position: relative;
  overflow: hidden;
  padding: 64px 16px 40px;
  background: var(--color-bg-light);
}
.purpose__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.purpose__lead {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 64px;
  line-height: 80px;
  letter-spacing: var(--tracking);
}
.purpose__text {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 32px;
}
.purpose__btns {
  display: flex;
  gap: 12px;
}
.btn--purpose {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  padding: 0 40px 0 25px;
}
.btn--purpose::after { top: 50%; right: 25px; }
.btn--purpose:hover { background: var(--color-primary-light); }
.btn--solid {
  padding: 0 40px 0 25px;
  border-color: var(--color-primary-light);
  background: var(--color-primary-light);
  color: var(--color-white);
}
.btn--solid::after { top: 50%; right: 25px; }
.btn--solid:hover { background: var(--color-white); color: var(--color-primary-light); }
/* Scroll prompt to the following content (text + bouncing down arrow, not a button) */
.scroll-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: -8px;
  color: var(--color-primary-light);
}
.scroll-more__text {
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.2em;
  padding-left: 0.2em; /* optically center with letter-spacing */
}
.scroll-more__arrow {
  position: relative;
  width: 1px;
  height: 40px;
  background: currentColor;
  animation: scroll-more-flow 2s ease-in-out infinite;
}
.scroll-more__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
}
.scroll-more:hover .scroll-more__text { text-decoration: underline; text-underline-offset: 4px; }
@keyframes scroll-more-flow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-more__arrow, .scroll-hint__arrow { animation: none; }
}

/* Background clock */
.intro-clock {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1200px, 120vw, 110svh);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.07;
  fill: none;
  stroke: var(--color-navy);
  stroke-linecap: round;
  pointer-events: none;
}
.intro-clock__sec { stroke-width: 2; }
.intro-clock__pin { fill: var(--color-navy); stroke: none; }
.intro-clock [data-clock-hand] {
  transform-box: view-box;
  transform-origin: 200px 200px;
}
/* tick with a slight overshoot */
.intro-clock.is-ready .intro-clock__sec { transition: transform 0.35s cubic-bezier(0.4, 2.2, 0.55, 1); }

/* ---------- Common (sections below the intro, structure per wireframe) ---------- */
.in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.sec {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.h2t {
  margin-bottom: 16px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: var(--tracking);
}
.leadt {
  max-width: 760px;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 2;
  color: var(--fg2);
}
.more {
  margin-top: 32px;
  text-align: right;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: var(--tracking);
  transition: opacity 0.2s, color 0.8s;
}
.link-arrow::after {
  content: "";
  flex: none;
  width: 14px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
  mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
}
.link-arrow:hover { opacity: 0.7; }
/* image placeholder */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 6px;
  background: var(--color-placeholder);
  color: var(--color-navy-70);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Day: one day in Osaka ----------
   Content works without JS. With JS (html.is-day-js) the fixed time display,
   sun arc and walker appear while the hours are on screen (.day.is-live). */
.day {
  /* scene colors; --day-bg is updated by JS from the current scene's hour */
  --day-bg: var(--color-bg-light);
  --day-fg: var(--color-navy);
  --day-fg2: var(--color-navy-70);
  --day-line: rgba(32, 52, 89, 0.12);
  --day-word: rgba(23, 106, 194, 0.07);
  --day-accent: var(--color-primary-light);
  --day-sun-core: var(--color-sun-core);
  --day-sun: var(--color-sun);
  /* layout: left gutter holds the time display on PC */
  --gutter: clamp(240px, 20vw, 300px);
  --pad-r: clamp(40px, 5vw, 80px);
  --ground: 84px; /* bottom band where the walker walks */
  --font-num: "Cormorant Garamond", serif;
  --font-poppins: "Poppins", sans-serif;
  position: relative;
  overflow-x: clip;
  background: var(--day-bg);
  color: var(--day-fg);
  transition: background-color 0.9s ease, color 0.6s ease;
}
.day.is-dusk {
  --day-sun-core: #ffc04c;
  --day-sun: #ffa94d;
}
.day.is-night {
  --day-fg: var(--color-white);
  --day-fg2: rgba(255, 255, 255, 0.78);
  --day-line: rgba(255, 255, 255, 0.16);
  --day-word: rgba(255, 255, 255, 0.06);
  --day-accent: var(--color-sun);
}

/* Section head (Figma: 1440w light / 390w light) */
.day__head {
  position: relative;
  z-index: 1;
  padding: 120px var(--pad-r) 40px var(--gutter);
}
.day__en {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.103;
  color: var(--day-fg);
}
.day__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.24em;
}
.day__title-icon { flex: none; fill: #087de6; }

/* ---------- Scenes ---------- */
.hours {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-r) 80px var(--gutter);
}
.hour {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  padding: 160px 0;
}
/* Large English word behind each scene */
.hour__en {
  position: absolute;
  z-index: -1;
  top: var(--en-top, 36px);
  left: 0;
  right: 0;
  font-family: var(--font-poppins);
  font-weight: 300;
  font-size: clamp(72px, 6.95vw, 100px);
  line-height: 1;
  white-space: nowrap;
  color: var(--day-word);
  pointer-events: none;
  transition: color 0.6s;
}
.hour--en-r .hour__en { text-align: right; }
/* Time label inside each scene: shown on SP and without JS; PC uses the fixed display */
.hour__time {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--day-fg2);
}
.hour__time span {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--day-fg);
}
.hour__cat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--day-fg2);
}
.hour__cat::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.hour__title {
  margin-top: 19px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(30px, 2.78vw, 40px);
  line-height: 1.45;
  letter-spacing: 0.056em;
}
.hour__ph {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio, 3 / 2);
}
/* placeholder now, <img> later: both fill the frame exactly */
.hour__ph > img,
.hour__ph > .ph {
  display: flex;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.hour__text {
  max-width: 450px;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--day-fg2);
}
/* Service link: round arrow + label */
.hour__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  color: var(--day-fg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.hour__link-icon {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--day-accent);
  border-radius: 50%;
  color: var(--day-accent);
  transition: background-color 0.25s, color 0.25s, border-color 0.6s;
}
.hour__link-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
  mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
}
.hour__link:hover .hour__link-icon { background: var(--day-accent); color: var(--day-bg); }
.hour__link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Image placeholder (replace with <img> in .hour__ph) */
.day .ph {
  position: relative;
  justify-content: center;
  padding: 24px;
  border-radius: 0;
  background: linear-gradient(170deg, #d9eefc, #b9dcf5);
  color: var(--color-navy);
  font-size: 13px;
  line-height: 1.6;
  transition: background 0.6s, color 0.6s;
}
.day.is-night .ph:not(.ph--night) { background: linear-gradient(170deg, #34497a, #263c66); color: var(--color-white); }
.ph__note { font-weight: 700; }
.day .ph--night {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  background: linear-gradient(180deg, #2a3466 0%, #2b2d52 55%, #1c1f3a 100%);
  color: var(--color-white);
}
/* stand-in for the lit sign */
.ph__sign {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 44%;
  height: 32%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff3b0;
  color: #8a5a00;
  font-family: var(--font-num);
  font-size: 43px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  box-shadow: 0 0 24px 6px rgba(255, 220, 110, 0.75), 0 0 120px 40px rgba(255, 180, 80, 0.35);
}
/* Small sub photo overlapping the main photo (PC: Office / Arcade, SP: Desk) */
.hour__sub {
  position: absolute;
  right: -6%;
  bottom: -80px;
  width: 40%;
  aspect-ratio: 247 / 154;
  border: 8px solid var(--day-bg);
  transition: border-color 0.9s;
}
.hour__sub .ph { width: 100%; height: 100%; padding: 12px; font-size: 11px; }
.hour__sub--sp { display: none; }

/* --- Layout A (6:30 / 10:00 / 12:30): large photo left, text right --- */
.hour--a { grid-template-columns: minmax(0, 617fr) minmax(0, 431fr); column-gap: 32px; }
.hour--a .hour__ph { grid-column: 1; grid-row: 2 / 5; margin-bottom: 80px; }
.hour--a .hour__head { grid-column: 2; grid-row: 2; padding: 64px 0 40px 24px; }
.hour--a .hour__body { grid-column: 2; grid-row: 3; padding-left: 24px; }

/* --- Layout B: text and photo side by side (alternating) --- */
.hour--b { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 6.67vw, 96px); grid-template-rows: auto auto auto 1fr; }
.hour--b .hour__head { grid-column: 1; grid-row: 2; }
.hour--b .hour__body { grid-column: 1; grid-row: 3; padding-top: 19px; }
.hour--b .hour__ph { grid-column: 2; grid-row: 2 / 5; align-self: start; }
.hour--rev .hour__head,
.hour--rev .hour__body { grid-column: 2; }
.hour--rev .hour__ph { grid-column: 1; }

/* 18:30: the lit sign, dusk turning to night */
.hour--glow .hour__ph { box-shadow: 0 0 140px 10px rgba(255, 190, 90, 0.22); }
/* afterglow of the sunset across the full width */
.hour--glow::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--pad-r));
  height: 480px;
  background: linear-gradient(180deg, rgba(255, 160, 100, 0), rgba(255, 160, 100, 0.26) 45%, rgba(255, 160, 100, 0));
  pointer-events: none;
}

/* Reveal on scroll (JS adds .is-in; skipped with reduced motion) */
.is-day-reveal .hour [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-day-reveal .hour .hour__ph[data-reveal] { transition-delay: 0.12s; }
.is-day-reveal .hour .hour__body[data-reveal] { transition-delay: 0.24s; }
.is-day-reveal .hour [data-reveal].is-in { opacity: 1; transform: none; }

/* End of the day: night fades back into the page color */
.day__end {
  height: 32vh;
  background: linear-gradient(to bottom, rgba(235, 248, 255, 0), var(--color-bg-light));
}

/* ---------- Fixed layers (JS only) ---------- */
.day__sky,
.day__ground,
.day__now { display: none; }
.is-day-js .day__sky,
.is-day-js .day__ground,
.is-day-js .day__now {
  display: block;
  position: fixed;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.is-day-js .day.is-live .day__sky,
.is-day-js .day.is-live .day__ground,
.is-day-js .day.is-live .day__now { opacity: 1; visibility: visible; }

/* Sky: big arc behind the content */
.is-day-js .day__sky { inset: 0; z-index: 0; }
.day__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.day__arc path {
  fill: none;
  stroke: var(--day-accent);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.6s;
}
/* vertical rule between the time display and the content */
.day__sky::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) - 40px);
  width: 1px;
  background: var(--day-line);
}
/* Sun: same colors as the intro sun */
.day__sun {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--day-sun-core), var(--day-sun));
  box-shadow: 0 0 0 4px var(--color-sun-rim), 0 0 36px 10px rgba(254, 215, 76, 0.35);
  will-change: transform;
  transition: opacity 0.4s;
}

/* Ground: walker band at the bottom */
.is-day-js .day__ground {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: var(--ground);
  background: linear-gradient(to top, var(--day-bg) 62%, transparent);
  color: var(--day-fg);
  transition: opacity 0.5s, visibility 0.5s, background-color 0.9s;
}
.day__ground::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) - 40px);
  right: 0;
  bottom: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.day__walk {
  position: absolute;
  left: 0;
  bottom: 22px;
  height: 56px;
  line-height: 0;
  will-change: transform;
}
.day__walk svg { display: block; width: auto; height: 100%; overflow: visible; transform: scaleX(-1); }
/* simple silhouette that matches the small people in the FV illustration */
.day__walk path { fill: currentColor; }
.wk-legA, .wk-legB { transform-box: view-box; transform-origin: 53px 300px; }
.wk-arm { transform-box: view-box; transform-origin: 80px 160px; }
.wk-body { transform-box: view-box; }

/* Current time / place / progress */
.is-day-js .day__now {
  z-index: 4;
  left: 56px;
  top: 50%;
  transform: translateY(-60%);
}
.now__label {
  position: absolute;
  left: -40px;
  top: 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-num);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--day-fg2);
}
.now__time {
  display: flex;
  font-family: var(--font-num);
  font-weight: 500;
  font-size: clamp(56px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
/* rolling digits */
.now__dg {
  display: block;
  width: 0.5em;
  height: 1.1em;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.4s;
}
.now__dg.is-blank { width: 0; opacity: 0; }
.now__col {
  display: block;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1);
}
.now__col span { display: block; height: 1.1em; line-height: 1.1em; text-align: center; }
.now__colon { line-height: 1.02; padding: 0 0.04em; }
.now__place {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  transition: opacity 0.3s, transform 0.3s;
}
.now__place.is-swap { opacity: 0; transform: translateY(6px); }
.now__prog {
  display: flex;
  gap: 4px;
  width: 150px;
  margin-top: 24px;
}
.now__prog i {
  flex: 1;
  height: 2px;
  background: var(--day-line);
  transition: background-color 0.4s;
}
.now__prog i.on { background: var(--day-accent); }

/* PC with JS: the fixed display replaces the in-scene time label */
@media (min-width: 1024px) {
  .is-day-js .hour__time {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
/* Without JS the gutter is not needed */
html:not(.is-day-js) .day { --gutter: var(--pad-r); }

@media (prefers-reduced-motion: reduce) {
  .wk-legA, .wk-legB, .wk-arm, .wk-body { transform: none !important; }
  .now__col, .now__dg, .now__place { transition: none; }
}

/* ---------- Day: TB / SP (rebuilt as a single column) ---------- */
@media (max-width: 1023px) {
  .day {
    --gutter: 20px;
    --pad-r: 20px;
    --ground: 92px; /* tall enough to hold the chat button */
  }
  .day__head { max-width: 680px; margin: 0 auto; padding: 96px 20px 56px; }
  .day__en { font-weight: 500; font-size: 40px; line-height: 1.2; }
  .hours { max-width: 680px; margin: 0 auto; padding: 0 20px 64px; }
  /* single column: time -> heading -> photo -> text -> link */
  .hour,
  .hour--a,
  .hour--b {
    display: flex;
    flex-direction: column;
    padding: 72px 0;
  }
  .hour__en,
  .hour--en-l .hour__en { top: 14px; font-size: 50px; line-height: 100px; text-align: right; }
  .hour--a .hour__head,
  .hour__head { padding: 0; margin-bottom: 28px; }
  .hour__cat { font-size: 11px; letter-spacing: 0.16em; }
  .hour__title { margin-top: 11px; font-size: clamp(22px, 6.6vw, 26px); line-height: 1.55; letter-spacing: 0.06em; }
  .hour__ph,
  .hour--a .hour__ph,
  .hour--b .hour__ph { align-self: stretch; aspect-ratio: 350 / 210; margin: 0 0 28px; }
  .hour--a .hour__body,
  .hour--b .hour__body { padding: 0; }
  .hour__text { max-width: none; font-size: 14px; line-height: 2; }
  .hour__link { margin-top: 24px; }
  .hour__link-icon { width: 48px; height: 48px; }
  .day .ph { padding: 16px; font-size: 12px; }
  .hour__sub--pc { display: none; }
  /* 14:00: taller photo with the sub photo */
  .hour--desk .hour__ph { aspect-ratio: 351 / 238; margin-bottom: 72px; }
  .hour__sub--sp { display: block; right: -10px; bottom: -57px; width: 50%; aspect-ratio: 176 / 110; border-width: 6px; }
  /* 18:30: the sign photo runs edge to edge */
  .hour--glow { padding-top: 96px; }
  .hour--glow .hour__ph { aspect-ratio: 390 / 445; margin: 0 -20px 70px; }
  .hour--glow::after { left: calc(50% - 50vw); right: calc(50% - 50vw); height: 320px; }
  .ph__sign { top: 16%; width: 44%; height: 22%; font-size: 20px; }

  /* sky arc + sun + walker are gathered in the bottom band */
  .is-day-js .day__sky {
    top: auto;
    left: 0;
    right: 84px; /* keep clear of the chat button */
    bottom: 0;
    z-index: 4;
    height: var(--ground);
  }
  .day__sky::before { display: none; }
  .day__arc path { stroke-dasharray: 2 4; }
  .day__sun { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 3px var(--color-sun-rim), 0 0 14px 4px rgba(254, 215, 76, 0.4); }
  .day__ground::before { left: 0; bottom: 14px; }
  .day__walk { bottom: 14px; height: 36px; }

  /* compact time bar at the top */
  .is-day-js .day__now {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: var(--day-bg);
    border-bottom: 1px solid var(--day-line);
    transition: opacity 0.5s, visibility 0.5s, background-color 0.9s;
  }
  .now__label { display: none; }
  .now__time { font-size: 30px; }
  .now__place { margin: 0; font-size: 12px; }
  .now__prog { width: 80px; margin: 0 0 0 auto; }
  /* the page-top button would sit on the text; the chat button stays inside the ground band */
  .is-day-live .totop.is-show { opacity: 0; visibility: hidden; }
}

/* ---------- Design: steps + stats ---------- */
.stp3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stp3 a {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-navy);
  transition: border-color 0.2s;
}
.stp3 a:hover { border-color: var(--color-primary-light); }
.stp3 b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-primary-light);
}
.stp3 h4 { margin-bottom: 8px; font-size: 17px; line-height: 1.6; }
.stp3 p { font-size: 13px; line-height: 1.8; color: var(--color-navy-70); }
.statt {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}
.statt a {
  display: block;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}
.statt a:last-child { border-right: none; }
.statt b {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
}
.statt b small { margin-left: 4px; font-family: var(--font-gothic); font-size: 13px; font-weight: 500; }
.statt span { font-size: 12px; color: var(--fg2); }

/* ---------- Cards (works / vacancy) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-navy);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-float); }
.card .ph { aspect-ratio: 1 / 1; border-radius: 0; background: var(--color-placeholder); color: var(--color-navy-70); }
.card .b { padding: 16px 18px 20px; }
.card h3 { margin: 8px 0 6px; font-size: 16px; line-height: 1.6; }
.card p { font-size: 13px; line-height: 1.8; color: var(--color-navy-70); }
.card .nm { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.card .meta { font-size: 12px; line-height: 1.9; color: var(--color-navy-70); }
.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
}

/* ---------- Omoi (message) ---------- */
.omoi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sunset {
  position: relative;
  height: 260px;
  border-bottom: 1px solid var(--fg);
}
.sunset i {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 220px;
  height: 110px;
  margin-left: -110px;
  border-radius: 220px 220px 0 0;
  background: radial-gradient(circle at 50% 100%, var(--color-sun-core), var(--color-sun));
}
.sunset span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--fg2);
}
.omoi h2 {
  margin-bottom: 20px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.7;
}
.omoi p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 2.2;
  color: var(--fg2);
}

/* ---------- FAQ ---------- */
.faqt a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s;
}
.faqt a:first-child { border-top: 1px solid var(--line); }
.faqt a::after {
  content: "";
  flex: none;
  width: 14px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
  mask: url("../assets/arrow.svg") no-repeat center / 14px 13px;
}
.faqt a:hover { color: var(--link); }

/* ---------- CTA ---------- */
.cta {
  padding: 72px 20px 80px;
  background: var(--color-primary-light);
  color: var(--color-white);
  text-align: center;
}
.cta .h {
  margin-bottom: 32px;
  font-family: var(--font-mincho);
  font-size: 28px;
  line-height: 1.6;
  letter-spacing: var(--tracking);
}
.cta .bx {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.cta .b {
  display: block;
  width: 300px;
  padding: 20px 16px;
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-navy);
  line-height: 1.4;
  transition: opacity 0.2s;
}
.cta .b:hover { opacity: 0.85; }
.cta .b small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.cta .b small::before { content: "＼"; }
.cta .b b { display: block; font-family: var(--font-en); font-weight: 500; font-size: 24px; letter-spacing: 0.02em; }
.cta .b em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; font-weight: 700; }

/* ---------- Footer ---------- */
.ft {
  padding: 24px 0 40px;
  background: var(--color-navy);
  color: var(--color-white);
}
.ft .tp {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 56px;
  font-size: 11px;
  font-weight: 700;
}
.ft .tp a { padding: 0 14px; border-left: 1px solid var(--color-white-20); line-height: 1; }
.ft .tp a:first-child { border-left: none; }
.ft .bd {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.ft .logo img { width: 220px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.ft address { font-size: 12px; line-height: 1.9; color: var(--color-white-75); }
.ft .fnav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 48px;
  font-size: 13px;
  font-weight: 700;
  line-height: 2;
}
.ft a:hover { opacity: 0.7; }
.ft .cp { margin-top: 40px; font-size: 11px; text-align: center; color: var(--color-white-75); }

/* ---------- Page top ---------- */
.totop {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.totop.is-show { opacity: 1; visibility: visible; }


/* ---------- Chatbot ---------- */
.chatbot {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 190px;
  height: 56px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: var(--shadow-float);
}
.chatbot__label {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-dark);
  white-space: nowrap;
}
.chatbot__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-navy);
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .header { padding: 16px; }
  .header__logo { width: 100px; height: 24.72px; }

  .hero { gap: 0; }
  .hero__sun {
    top: 110px;
    left: calc(50% - 0.5px);
    width: 65px;
    height: 65px;
  }
  .hero__title {
    top: 210px;
    font-size: 36px;
    line-height: 58px;
  }
  .hero__mv { margin-top: auto; }
  .hero__mv img { aspect-ratio: 390 / 351; }

  .purpose { padding: 40px 16px 0; }
  .is-fv-anim .purpose { padding: 72px 16px 24px; }
  .purpose__inner { gap: 48px; }
  .purpose__lead { font-size: 24px; line-height: 44px; }
  .purpose__inner > .purpose__lead { margin-bottom: -16px; } /* 32px between lead and text */
  .purpose__btns { flex-direction: column; gap: 16px; }
  .btn--purpose {
    width: 280px;
    padding: 0;
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .btn--purpose::after { top: calc(50% - 0.5px); right: 19px; }
  .btn--purpose:hover { background: var(--color-primary); }
  .btn--solid {
    width: 280px;
    padding: 0;
    border-color: var(--color-primary);
    background: var(--color-primary);
  }
  .btn--solid::after { top: calc(50% - 0.5px); right: 19px; }
  .scroll-more { margin-top: -24px; color: var(--color-primary); }
  .btn--solid:hover { color: var(--color-primary); }


  .chatbot {
    right: 10px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid var(--color-white); /* stay visible on the navy footer / night sections */
    background: var(--color-navy);
    box-shadow: none;
  }
  .chatbot__label { display: none; }
  .chatbot__icon { width: 60px; height: 60px; }
}

/* ---------- Sections below the intro: TB / SP ---------- */
@media (max-width: 1023px) {
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .in { padding: 0 20px; }
  .sec { padding: 64px 0; }
  .h2t { font-size: 26px; }
  .leadt { margin-bottom: 28px; font-size: 14px; }

  .stp3 { grid-template-columns: 1fr; gap: 12px; }
  .stp3 a { padding: 20px; }
  .statt { grid-template-columns: 1fr 1fr; }
  .statt a { padding: 16px; border-bottom: 1px solid var(--line); }
  .statt a:nth-child(2n) { border-right: none; }
  .statt a:nth-child(n+3) { border-bottom: none; }
  .statt b { font-size: 32px; }

  .cards, .cards.c4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards:not(.c4) { grid-template-columns: 1fr; }
  .card .b { padding: 10px 12px 14px; }
  .card p, .card .meta { font-size: 11px; }
  .card .nm { flex-wrap: wrap; gap: 6px; font-size: 14px; }

  .omoi { grid-template-columns: 1fr; gap: 56px; }
  .sunset { height: 160px; }
  .sunset i { width: 160px; height: 80px; margin-left: -80px; }
  .omoi h2 { font-size: 22px; }
  .omoi p { font-size: 13px; }

  .cta .h { font-size: 20px; margin-bottom: 24px; }
  .cta .b { width: 100%; }

  .ft .tp { justify-content: flex-start; margin-bottom: 32px; }
  .ft .bd { grid-template-columns: 1fr; gap: 24px; }
  .ft .fnav { grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 12px; }

  .totop { right: 20px; bottom: 96px; }
}
