/* =========================================================
   Autiv - style.css
   White base / Gray text / Black frame
   IPAex Mincho (Japanese serif) typography
   Layout reference: lion.co.jp
   ========================================================= */

:root {
  /* Base */
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAFAFA;
  --color-bg-section: #F5F5F5;
  --color-bg-deep: #1A1A1A;

  /* Text — gray-led */
  --color-text: #4A4A4A;
  --color-text-strong: #1A1A1A;
  --color-text-mute: #888888;
  --color-text-soft: #B5B5B5;
  --color-text-on-dark: #FFFFFF;

  /* Borders — black "frame" */
  --color-border: #1A1A1A;
  --color-border-light: #E5E5E5;
  --color-border-dark: rgba(255, 255, 255, 0.18);

  /* Accent colors — used very sparingly, matching the logo */
  --color-accent-green: #58C172;
  --color-accent-yellow: #E5BD22;
  --color-accent-red: #E03A3A;

  --container: 1600px;
  --container-narrow: 920px;

  /* Mincho serif font (IPAex Mincho first; Noto Serif JP loaded as web fallback) */
  --font-jp: "IPAex Mincho", "IPAexMincho", "Noto Serif JP", "Shippori Mincho", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "游明朝", "YuMincho", "MS Mincho", serif;
  --font-en: "Cormorant Garamond", "IPAex Mincho", "Noto Serif JP", Georgia, "Times New Roman", serif;

  --header-h: 80px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--color-text-strong);
  opacity: 0.65;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  font-family: var(--font-jp);
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--color-text-strong);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 56px);
}

.section {
  padding: clamp(72px, 8vw, 144px) 0;
  position: relative;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-grey {
  background: var(--color-bg-section);
}

.section-dark {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
}

.section-head {
  margin-bottom: 64px;
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-strong);
  margin: 0;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  flex-shrink: 0;
  min-width: 140px;
}

.section-dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.5;
}

.section-head-center .section-title {
  margin-top: 8px;
}

.section-dark .section-title {
  color: #fff;
}

.section-lead {
  font-size: 14.5px;
  color: var(--color-text);
  max-width: 720px;
  margin: 0;
  line-height: 2.1;
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.section-head-body {
  flex: 1;
  min-width: 0;
}

.prose {
  max-width: 820px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 2.2;
}

.prose p {
  margin: 0 0 1.5em;
}

/* ===== Buttons (clean, black-bordered) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  cursor: pointer;
  letter-spacing: 0.08em;
  background: #fff;
  color: var(--color-text-strong);
  position: relative;
}

.btn::after {
  content: "→";
  font-family: var(--font-en);
  font-size: 16px;
  transition: transform 0.25s ease;
}

.btn:hover {
  background: var(--color-text-strong);
  color: #fff;
  opacity: 1;
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--color-text-strong);
  color: #fff;
}

.btn-primary:hover {
  background: #fff;
  color: var(--color-text-strong);
}

.btn-large {
  padding: 22px 44px;
  font-size: 15px;
}

.btn-no-arrow::after {
  display: none;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-strong);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  font-family: var(--font-jp);
}

.logo:hover {
  color: var(--color-text-strong);
  opacity: 1;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav ul a {
  color: var(--color-text-strong);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.08em;
}

.global-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--color-text-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.global-nav ul a:hover {
  color: var(--color-text-strong);
  opacity: 1;
}

.global-nav ul a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--color-text-strong);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: clamp(96px, 10vw, 160px) 0 clamp(96px, 10vw, 160px);
  background-color: #0E0E0E;
  background-image:
    linear-gradient(180deg, rgba(14, 14, 14, 0.55) 0%, rgba(14, 14, 14, 0.65) 50%, rgba(14, 14, 14, 0.78) 100%),
    url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

/* Override text colors inside the hero so they're readable on the dark image */
.hero .eyebrow,
.hero .eyebrow::before,
.hero .hero-title,
.hero .hero-sub,
.hero .hero-lead {
  color: #FFFFFF;
}

.hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.85);
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.92);
}

.hero .hero-lead {
  color: rgba(255, 255, 255, 0.7);
}

.hero .btn {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.hero .btn:hover {
  background: #FFFFFF;
  color: var(--color-text-strong);
}

.hero .btn-primary {
  background: #FFFFFF;
  color: var(--color-text-strong);
  border-color: #FFFFFF;
}

.hero .btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
}

.hero-inner {
  max-width: 1760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-inner > .hero-cta {
  margin: 12px 0 0;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-strong);
  margin: 0 0 32px;
  font-weight: 500;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-text-strong);
}

.hero-title {
  font-size: clamp(48px, 6vw, 104px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--color-text-strong);
  max-width: 14em;
}

.hero-sub {
  font-size: clamp(14.5px, 1vw, 17px);
  line-height: 2.1;
  color: var(--color-text);
  max-width: 38em;
}

.hero-lead {
  font-size: clamp(13.5px, 0.9vw, 15.5px);
  color: var(--color-text-mute);
  max-width: 38em;
  line-height: 2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Topics banner ===== */
.topics-section {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--color-bg);
}

.topics-banner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  background: linear-gradient(135deg, #4FB466 0%, #58C172 60%, #6CCF85 100%);
  padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3.2vw, 48px);
  border-radius: 4px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(60, 150, 90, 0.18);
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.topics-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 200px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.topics-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(60, 150, 90, 0.24);
  color: #FFFFFF;
  opacity: 1;
}

.topics-label {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.topics-date {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.06em;
  font-style: italic;
  white-space: nowrap;
  opacity: 0.95;
}

.topics-text {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.topics-arrow {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  transition: transform 0.35s ease;
}

.topics-banner:hover .topics-arrow {
  transform: translateX(6px);
}

/* ===== About section (video background) ===== */
.section-about {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0E0E0E;
  color: #FFFFFF;
}

.about-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.about-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.70) 100%),
    radial-gradient(900px 480px at 0% 50%, rgba(0, 0, 0, 0.35), transparent 60%);
}

.section-about .section-eyebrow {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.section-about .section-title {
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.section-about .about-prose {
  max-width: 720px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(28px, 3.4vw, 48px);
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.section-about .about-prose p {
  font-size: clamp(14.5px, 1vw, 16.5px);
  line-height: 2.15;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  margin: 0 0 1.4em;
}

.section-about .about-prose p:last-child {
  margin-bottom: 0;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  gap: 24px;
}

.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 36px 32px;
  transition: background-color 0.25s ease;
  position: relative;
}

.card:hover {
  background: var(--color-bg-soft);
}

.card-num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-mute);
  margin-bottom: 16px;
  font-style: italic;
}

.card-title {
  font-size: 18px;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text-strong);
}

.card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
}

.card-dark {
  background: #2A2A2A;
  border-color: rgba(255, 255, 255, 0.4);
}

.card-dark:hover {
  background: #333333;
}

.card-dark .card-title {
  color: #fff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Philosophy cards (single accent dot per card) */
.card-philosophy {
  text-align: left;
  padding: 40px 32px;
}

.card-philosophy .card-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 24px;
  background: var(--color-accent-green);
}

.card-philosophy:nth-child(2) .card-dot { background: var(--color-accent-yellow); }
.card-philosophy:nth-child(3) .card-dot { background: var(--color-accent-red); }

/* Philosophy "便利" card with image background */
.card-philosophy-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #FFFFFF;
  border-color: transparent;
  min-height: 280px;
}

.card-philosophy-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.78) 100%),
    url('../assets/images/philosophy-convenient.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: transform 1s ease;
}

.card-philosophy-image:hover {
  background: transparent;
}

.card-philosophy-image:hover::before {
  transform: scale(1.04);
}

.card-philosophy-image .card-title {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.card-philosophy-image p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 1;
}

.card-philosophy-image .card-dot {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

/* ===== Notice ===== */
.notice {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 56px 32px;
  text-align: center;
  color: var(--color-text-mute);
  font-size: 14px;
}

/* ===== News ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.25s ease;
}

.news-list .news-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.news-item:hover {
  background: var(--color-bg-soft);
}

.news-date {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-text-strong);
  letter-spacing: 0.06em;
  font-style: italic;
}

.news-tag {
  display: inline-block;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  background: transparent;
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
  border-radius: 0;
  letter-spacing: 0.16em;
  font-family: var(--font-jp);
  justify-self: start;
}

.news-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-text-strong);
  line-height: 1.85;
}

/* ===== Profile Table ===== */
.profile-table-wrap {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.profile-table th,
.profile-table td {
  padding: 22px 24px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: 0;
}

.profile-table th {
  width: 220px;
  font-weight: 500;
  color: var(--color-text-strong);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding-top: 26px;
}

.profile-table td {
  color: var(--color-text-strong);
}

.profile-table a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-table a:hover {
  opacity: 0.6;
}

/* ===== Contact ===== */
.section-cta {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.contact-list {
  margin: 0 auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 8px 32px;
}

.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row dt {
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-mute);
  letter-spacing: 0.16em;
  font-family: var(--font-en);
  font-style: italic;
}

.contact-row dd {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-strong);
}

.contact-row dd a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-row dd a:hover {
  opacity: 0.6;
}

.contact-note {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-mute);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-brand .footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 24px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
  max-width: 420px;
  letter-spacing: 0.04em;
}

.footer-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-nav-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  font-family: var(--font-en);
  font-style: italic;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.65;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: 24px 0;
}

.footer-bottom small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  letter-spacing: 0.2em;
  font-family: var(--font-en);
  font-style: italic;
}

/* ===== Legal / Privacy pages ===== */
.page-header {
  padding: 112px 0 56px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.page-header .container {
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.page-header .section-eyebrow {
  margin: 0;
}

.page-header .section-title {
  margin: 0;
}

.page-content {
  padding: 80px 0 120px;
  background: var(--color-bg);
}

.page-content .container {
  max-width: var(--container-narrow);
}

.page-content h2 {
  font-size: 20px;
  margin: 64px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 16px;
  margin: 32px 0 12px;
  letter-spacing: 0.04em;
}

.page-content p,
.page-content li {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.page-content a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  opacity: 0.6;
}

.page-content ul,
.page-content ol {
  padding-left: 1.4em;
  margin: 0 0 20px;
  list-style: square;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 6px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 220px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--color-text-strong);
  font-weight: 500;
}

.legal-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-mute);
}

.page-back {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.page-back a {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-text-strong);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Topics banner: stack on tablet */
  .topics-banner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "label date arrow"
      "text  text text";
    row-gap: 12px;
  }
  .topics-label { grid-area: label; }
  .topics-date  { grid-area: date; }
  .topics-text  { grid-area: text; }
  .topics-arrow { grid-area: arrow; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }

  .section-head { margin-bottom: 40px; }

  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.04);
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .global-nav ul li {
    border-bottom: 1px solid var(--color-border-light);
  }

  .global-nav ul a {
    display: block;
    padding: 16px 4px;
    font-size: 14px;
  }

  .global-nav ul a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
    align-self: flex-start;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }

  .news-tag {
    justify-self: start;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 14px 8px;
  }

  .profile-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 4px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-header {
    padding: 80px 0 40px;
  }

  .page-header .container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

/* ===== Smart fade-in animations (CSS animation based) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes softFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lineRise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.fade-in {
  animation: fadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--anim-delay, 0ms) both;
  animation-play-state: paused;
  will-change: opacity, transform;
}

.fade-in.is-visible {
  animation-play-state: running;
}

/* About prose: a touch slower for weight */
.about-prose.fade-in {
  animation-duration: 1.2s;
}

/* ---- Hero title: parent does not fade — its lines rise ---- */
.hero-title.fade-in {
  animation: none;
  opacity: 1;
  transform: none;
}

.hero-title .title-line {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  padding-bottom: 0.06em; /* prevent descender clipping for "。" */
}

.hero-title .title-line > span {
  display: inline-block;
}

.hero-title.fade-in .title-line > span {
  animation: lineRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}

.hero-title.fade-in .title-line:nth-child(1) > span { animation-delay: 80ms; }
.hero-title.fade-in .title-line:nth-child(2) > span { animation-delay: 220ms; }
.hero-title.fade-in .title-line:nth-child(3) > span { animation-delay: 360ms; }

.hero-title.fade-in.is-visible .title-line > span {
  animation-play-state: running;
}

/* ---- Hero sub / lead: gentle "じわっと" fade ---- */
.hero-sub.fade-in,
.hero-lead.fade-in {
  animation-name: softFade;
  animation-duration: 1.8s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-sub.fade-in  { animation-delay: 480ms; }
.hero-lead.fade-in { animation-delay: 640ms; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
