/* ============================================================
   HAKOBUNE INC. — Design System
   Based on mock1 Luxury Brand Design
   ============================================================ */

/* --- Font Import (DS v1.4: Outfit + Cormorant は self-host / Noto Sans JP は Google CDN) --- */
@import url('/shared/fonts/fonts.css');
/* weight 600 は未使用 (本文は 300/400/500 のみ) のため読み込まない */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* --- CSS Variables (Design Tokens — v1.0.1 反映 / italic 使用禁止) --- */
:root {
  /* Colors — Monochrome Palette (v1.0.1 ink/stone/silver) */
  --color-bg: #F0EEE9;            /* hk-stone (warm off-white) */
  --color-bg-alt: #E8DFD2;        /* hk-travertine (BG alt) */
  --color-text: #0A0908;          /* hk-ink (warm black, 18.94:1 AAA) */
  --color-text-secondary: #5F6063; /* hk-text-sub (5.42:1 AA・WCAG手元検証済) */
  --color-text-light: #6E6F72;    /* hk-silver-dim (装飾用・本文NG) */
  --color-white: #FFFFFF;
  --color-border: #D4D5D9;        /* hk-silver-light */
  --color-overlay: rgba(10, 9, 8, 0.45);

  /* Typography (v1.3: Cormorant Garamond をエディトリアル見出しに導入・italic 使用禁止) */
  --font-heading: 'Outfit', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Outfit', 'Noto Sans JP', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', 'Outfit', 'Noto Sans JP', serif;

  /* Spacing */
  --section-padding: 120px;
  --content-padding: 6vw;
  --gap-lg: 60px;
  --gap-md: 40px;
  --gap-sm: 20px;

  /* Transitions — B&O smooth easing (ease-out-expo) */
  --transition-base: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;

  /* Mobile / Safe Area (v1.1 — AI 協議統合) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --tap-target-ios: 44px;
  --tap-target-android: 48px;

  /* Color scheme hint (light only by design) */
  color-scheme: light;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Touch target enforcement (Apple HIG 44px / Material 48px) --- */
/* hamburger / icon-only button は除外 (.header__nav-toggle 等) */
.btn,
[role="button"]:not(.header__nav-toggle),
a.btn,
a.lp-cta__btn,
a.story-cta__btn,
button.lp-cta__btn,
button.story-cta__btn {
  min-height: var(--tap-target-android);
  touch-action: manipulation;
}

/* --- Focus-visible (keyboard / accessibility) --- */
:focus-visible {
  outline: 2px solid rgba(10, 9, 8, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Reduced motion (battery + accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video,
  video.hero-video {
    display: none;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.section-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  border: 1px solid currentColor;
  background: transparent;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  border-radius: 999px; /* B&O DS: pill button */
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-white);
}

.btn--white {
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-white);
  color: var(--color-text);
}

.btn--line {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
  font-size: 14px;
  padding: 18px 56px;
  letter-spacing: 0.08em;
}

.btn--line:hover {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-padding);
  transition: background-color var(--transition-base),
    border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background-color: rgba(240, 238, 233, 0.92); /* warm stone tint, v1.0.1 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-white);
  transition: color var(--transition-base);
  z-index: 1001;
}
.header__logo--dark { color: var(--color-text); }

.header.is-scrolled .header__logo {
  color: var(--color-text);
}

.header__nav-toggle {
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header__nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-white);
  transition: var(--transition-base);
  transform-origin: center;
}

.header.is-scrolled .header__nav-toggle span {
  background: var(--color-text);
}

.header__nav-toggle.is-active span:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}

.header__nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.header__nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 9, 8, 0.97); /* v1.0.1 ink */
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__list {
  text-align: center;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.nav-overlay__list::-webkit-scrollbar {
  display: none;
}

.nav-overlay__item {
  margin-bottom: 4px;
}

.nav-overlay__link {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.03em;
  transition: opacity var(--transition-fast);
  display: inline-block;
  padding: 4px 0;
}

.nav-overlay__link:hover {
  opacity: 0.5;
}

.nav-overlay__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* iOS Safari のアドレスバー表示時、100vh固定だと下部コンテンツが可視領域外に隠れるため最小ビューポート高を優先。100dvhはスクロール中にアドレスバー収縮のたび再計算されジャンク(ズームして見える)を起こすため不採用 */
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.is-loaded .hero__bg img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 8, 5, 0.7) 0%,
      rgba(10, 8, 5, 0.2) 40%,
      rgba(10, 8, 5, 0.05) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--content-padding) 80px;
  max-width: 800px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero__title em {
  font-style: normal;
  font-weight: 300;
}

.hero__lead {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   PHILOSOPHY SECTION
   ============================================================ */
.philosophy {
  padding: var(--section-padding) 0;
  text-align: center;
}

.philosophy__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.philosophy__quote {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 32px;
}

.philosophy__divider {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 32px auto;
}

.philosophy__body {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.services__header {
  text-align: center;
  margin-bottom: 80px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-border);
}

.service-card {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: var(--transition-base);
}

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

.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__content {
  padding: 32px 28px;
}

.service-card__number {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: block;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.service-card__title-en {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 16px;
  display: block;
}

.service-card__desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* v1.3 — service card 脱均質: 1 枚目をヒーロー扱い (Cormorant 見出し + 影 + 内部 padding 増) */
@media (min-width: 769px) {
  .services__grid > .service-card--hero {
    grid-column: span 2;
    grid-row: span 2;
  }
  .service-card--hero .service-card__image {
    aspect-ratio: 16 / 11;
  }
  .service-card--hero .service-card__content {
    padding: 48px 40px;
  }
  .service-card--hero .service-card__title {
    font-size: 36px;
    letter-spacing: 0.01em;
  }
  .service-card--hero .service-card__desc {
    font-size: 14px;
    line-height: 1.95;
    max-width: 540px;
  }
  .service-card--hero .service-card__number::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--color-text-secondary);
    vertical-align: middle;
    margin-right: 12px;
  }
  /* v1.4 — 7 cards (1 hero + 6 small) のときの orphan 防止: 最後のカードを全幅 */
  .services__grid > .service-card:last-child {
    grid-column: 1 / -1;
  }
  .services__grid > .service-card:last-child .service-card__image {
    aspect-ratio: 21 / 9;
  }
  .services__grid > .service-card:last-child .service-card__content {
    padding: 40px 48px;
  }
}

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
.community {
  padding: var(--section-padding) 0;
  background: var(--color-text);
  color: var(--color-white);
  overflow: hidden;
}

.community__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.community__content {
  padding: 80px var(--content-padding) 80px calc(var(--content-padding) + 40px);
}

.community .section-label {
  color: rgba(255, 255, 255, 0.4);
}

.community .section-heading {
  color: var(--color-white);
}

.community .section-body {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 48px;
}

.community__image {
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.community__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community__features {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.community__feature {
  flex: 1;
}

.community__feature-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 4px;
}

.community__feature-text {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* TRACK RECORD セクション (ライト背景) では色を反転 */
#track-record .community__feature-number {
  color: var(--color-text);
}

#track-record .community__feature-text {
  color: var(--color-text-secondary);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: 64px 0 80px;
  background: var(--color-bg);
}

.contact__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact__inner .section-heading {
  margin-bottom: 16px;
}

.contact__inner .section-body {
  margin: 0 auto 48px;
  text-align: center;
}

.contact__line-btn {
  margin-bottom: 24px;
}

.contact__note {
  font-size: 12px;
  color: var(--color-text-secondary); /* 本文相当: WCAG AA 5.42:1 */
  letter-spacing: 0.02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 40px;
  background: var(--color-text);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer__brand {
  flex: 1;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
}

.footer__nav {
  display: flex;
  gap: 60px;
}

.footer__nav-group h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer__nav-group a {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer__nav-group a:hover {
  color: var(--color-white);
}

.footer__disclaimer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 1100px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

.footer__social {
  display: flex;
  gap: 20px;
}

.footer__social a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--color-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
    --content-padding: 5vw;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community__inner {
    grid-template-columns: 1fr;
  }

  .community__content {
    padding: 60px var(--content-padding);
    order: 2;
  }

  .community__image {
    min-height: 400px;
    order: 1;
  }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .lp-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --header-height: 64px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-bottom: 120px; /* mobile-sticky-cta (下部固定LINEバー) との余白確保 */
  }

  /* hero.webp は右側にヨットのデッキ・手すりが写っているため、中央クロップだと
     モバイル縦画面でほぼ海と空だけになってしまう。焦点を右へ寄せて船体を見せる */
  .hero__bg img {
    object-position: 78% center;
  }

  .community__features {
    flex-direction: column;
    gap: 24px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .lp-features__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-results__grid {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    height: 60vh;
    min-height: 400px;
  }

  .lp-pricing__table {
    font-size: 12px;
  }

  .lp-pricing__table th,
  .lp-pricing__table td {
    padding: 14px 12px;
  }
}

/* ============================================================
   v1.0.2 — Story link CTA (LP / cushion 共通)
   ============================================================ */
.story-link-cta {
  background: var(--color-text);
  color: var(--color-white);
  padding: 80px var(--content-padding);
  text-align: center;
}
.story-link-cta .section-label { color: var(--color-white); opacity: 0.7; }
.section-label--invert { color: var(--color-white); opacity: 0.7; }
.story-link-cta__heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.6;
  margin: 24px 0 32px;
  color: var(--color-white);
  font-style: normal;
}
.story-link-cta__body {
  font-size: 14px;
  line-height: 1.95;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 40px;
}
.story-link-cta .btn--invert {
  background: var(--color-white);
  color: var(--color-text);
}

/* ============================================================
   v1.0.2 — Service card "Coming Soon" variant
   ============================================================ */
.service-card--coming { background: var(--color-bg-alt); }
.service-card--coming .service-card__image {
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 240px;
}


/* ============================================================
   v1.0.4 — DS Canonical Hover (B&O 風 lift + soft shadow)
   - card 系: translateY(-4px) + soft shadow + border emphasis
   - button: 既に invert pattern (.btn / .btn--white / .btn--line)
   - transition: 0.35s ease (var(--transition-base))
   ============================================================ */
.box-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}
.box-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -16px rgba(10, 9, 8, 0.08);
  border-color: rgba(10, 9, 8, 0.15);
}

/* italic 完全禁止の保険 */
.hero__title em,
.hero__title { font-style: normal; }

/* ============================================================
   v1.0.3 — Utility classes (LP inline style 削減)
   utility は必ずコンポーネント側の margin/padding を上書きできる必要が
   あるため !important を付与 (base.css → style.css の読み込み順により、
   同じ詳細度だと style.css 側の "margin: 0 auto" 等が後勝ちして utility
   が無効化される事故が複数ページで発生したため 2026-08-05 追加)
   ============================================================ */
.u-mt-16 { margin-top: 16px !important; }
.u-mt-24 { margin-top: 24px !important; }
.u-mt-32 { margin-top: 32px !important; }
.u-mt-48 { margin-top: 48px !important; }
.u-mt-56 { margin-top: 56px !important; }
.u-mt-64 { margin-top: 64px !important; }
.u-mt-80 { margin-top: 80px !important; }
.u-mb-8 { margin-bottom: 8px !important; }
.u-mb-16 { margin-bottom: 16px !important; }
.u-mb-24 { margin-bottom: 24px !important; }
.u-mb-32 { margin-bottom: 32px !important; }
.u-mb-48 { margin-bottom: 48px !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-pt-0 { padding-top: 0 !important; }
.u-mt-0 { margin-top: 0 !important; }
.u-text-center { text-align: center; }
.u-text-center-mt-56 { text-align: center; margin-top: 56px; }
.u-fw-400 { font-weight: 400; }
.u-fw-500 { font-weight: 500; }
.u-list-emphasis { font-size: 16px; line-height: 2; padding-left: 24px; }
.u-unit-half { font-size: 0.5em; }
.u-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; max-width: 1100px; margin: 0 auto; text-align: center; }
/* story 専用 */
.story-h3-sub { font-size: 16px; font-weight: 500; letter-spacing: 0.05em; margin: 48px 0 16px; color: var(--color-text-secondary); font-style: normal; }
.story-h3-sub--lg-margin { font-size: 16px; font-weight: 500; letter-spacing: 0.05em; margin: 64px 0 24px; color: var(--color-text-secondary); font-style: normal; }
.story-paragraph { color: var(--color-text-secondary); line-height: 1.9; margin-bottom: 24px; }
.story-paragraph--text { color: var(--color-text); }
.story-card-grid--wide { max-width: 1100px !important; margin: 64px auto 0 !important; }
.story-narrow--center { text-align: center; }
.story-meta-note { color: var(--color-text-light); font-size: 12px; letter-spacing: 0.05em; margin-top: 16px; }
.dlp-figure-grid--mt-24-mb-24 { margin: 24px 0; }
/* pricing-grid (max-width:1100px) と幅を揃える修飾子。写真行+価格カード行を
   縦に並べる estate 等のレイアウトで、上下の BOX 幅を一致させるために使う */
.dlp-figure-grid--pricing-match { max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important; }
.privacy-meta-note { margin-top: 48px; font-size: 12px; color: var(--color-text-light); }
.chart-caption { font-size: 12px; color: var(--color-text-light); line-height: 1.7; margin-top: 12px; }
/* SVG decorative */
.svg-faint { opacity: 0.35; }
/* home 専用 */
.philosophy--alt-bg { background: var(--color-bg-alt); }
.section-body--centered { margin: 0 auto; max-width: 680px; }
.section-body--wide { margin: 0 auto; max-width: 720px; font-size: 14px; color: var(--color-text-secondary); }
.community-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; max-width: 1100px; margin: 64px auto 0; text-align: center; }
.community__feature-number--lg { font-size: 48px; font-weight: 300; letter-spacing: 0.02em; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__definition { font-size: 12px; letter-spacing: 0.05em; line-height: 1.9; color: rgba(255,255,255,0.75); max-width: 540px; margin: 24px 0 32px; }
.hero__definition strong { color: rgba(255,255,255,0.9); font-weight: 400; }
.services__header--with-margin-top { text-align: center; margin-top: 72px; }
.services__header--center { text-align: center; }

/* ============================================================
   v1.1 Mobile Polish (AI Council 統合: iOS HIG + Material 3 + Perf + UX + Luxury)
   - safe-area / notch 対応
   - 44/48px touch target
   - 360-375px 小型 device 専用調整
   - landscape 横向き対応
   - hero video CLS 防止
   ============================================================ */

/* hero video aspect-ratio 予約 (CLS 防止) */
video.hero-video,
.hero__bg video {
  aspect-ratio: 16 / 9;
  background: var(--color-text);
}

/* lazy 画像 CLS 防止 */
img[loading="lazy"]:not([width]):not([height]) {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

/* footer 安全領域 (header は fixed + height 固定なので padding 上書き禁止) */
.footer,
footer.site-footer {
  padding-bottom: calc(40px + var(--safe-bottom));
}

/* small device (390px 以下: iPhone 12-15 mini, 標準系一部) */
@media (max-width: 390px) {
  :root {
    --section-padding: 56px;
    --content-padding: 20px;
    --gap-lg: 40px;
    --gap-md: 28px;
    --gap-sm: 16px;
  }
  .hero__title,
  .lp-hero__title {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  .hero__lead,
  .lp-hero__lead {
    font-size: 14px;
    line-height: 1.85;
  }
  .section-title,
  .lp-section__title {
    font-size: clamp(22px, 6.5vw, 28px);
  }
  .lp-pricing__table {
    font-size: 11px;
  }
  .btn,
  a.btn {
    padding: 14px 24px;
    font-size: 13px;
  }
}

/* extra small (340px 以下: 旧型 Android / SE 1st) */
@media (max-width: 340px) {
  :root {
    --content-padding: 16px;
  }
  .hero__title,
  .lp-hero__title {
    font-size: 26px;
  }
  .section-title,
  .lp-section__title {
    font-size: 20px;
  }
}

/* landscape 横向き (短い高さ) — hero 短縮 */
@media (orientation: landscape) and (max-height: 500px) {
  .hero,
  .lp-hero {
    height: auto;
    min-height: 380px;
    padding-top: calc(72px + var(--safe-top));
    padding-bottom: 32px;
  }
  .hero__content {
    padding-bottom: 40px;
  }
}

/* low-power-mode / data-saver 配慮: hero video 隠して poster だけ */
@media (prefers-reduced-data: reduce) {
  .hero-video,
  .hero__bg video {
    display: none;
  }
}

/* mobile sticky LINE CTA (768px 以下) */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    left: max(16px, var(--safe-left));
    right: max(16px, var(--safe-right));
    bottom: max(16px, var(--safe-bottom));
    z-index: 80;
    display: flex;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  /* Hero 表示中は隠す (main.js の scroll ハンドラが付与・SCROLL インジケーターと重なるため) */
  .mobile-sticky-cta.is-hidden {
    opacity: 0;
    transform: translateY(16px);
  }
  .mobile-sticky-cta.is-hidden .mobile-sticky-cta__btn {
    pointer-events: none;
  }
  .mobile-sticky-cta__btn {
    pointer-events: auto;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    background: var(--color-text);
    color: var(--color-white);
    border: 1px solid var(--color-text);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: 0 16px 40px rgba(10, 9, 8, 0.18);
    text-decoration: none;
    font-style: normal;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  .mobile-sticky-cta__btn:hover,
  .mobile-sticky-cta__btn:focus-visible {
    background: var(--color-bg);
    color: var(--color-text);
  }
  /* footer (背景 var(--color-text) = 黒) に重なった時は白反転して視認性を確保 (main.js が付与) */
  .mobile-sticky-cta.is-on-dark .mobile-sticky-cta__btn {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
  }
  .mobile-sticky-cta.is-on-dark .mobile-sticky-cta__btn:hover,
  .mobile-sticky-cta.is-on-dark .mobile-sticky-cta__btn:focus-visible {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-white);
  }
}

/* desktop では sticky CTA を非表示 */
@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* ============================================================
   v1.2 Micro-interactions (AI 協議統合: Visual Polish + Tactile)
   ============================================================ */

/* fade-up: IntersectionObserver で .is-visible を付与 */
.fx-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fx-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fx-fade-up--delay-1 { transition-delay: 0.08s; }
.fx-fade-up--delay-2 { transition-delay: 0.16s; }
.fx-fade-up--delay-3 { transition-delay: 0.24s; }
.fx-fade-up--delay-4 { transition-delay: 0.32s; }

/* card hover lift (既存 box-hover の上品強化) */
.service-card,
.dlp-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .dlp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px -16px rgba(10, 9, 8, 0.14);
  }
}

/* tap fb (mobile) — :active scale 微圧 */
.btn:active,
.lp-cta__btn:active,
.story-cta__btn:active,
.mobile-sticky-cta__btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease-out;
}

/* link underline reveal (inline link 用) */
.fx-link {
  background-image: linear-gradient(transparent calc(100% - 1px), currentColor 1px);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-link:hover,
.fx-link:focus-visible {
  background-size: 100% 100%;
}

/* prefers-reduced-motion で全 fx 停止 */
@media (prefers-reduced-motion: reduce) {
  .fx-fade-up { opacity: 1; transform: none; transition: none; }
  .service-card:hover,
  .dlp-card:hover,
  .story-origin-card:hover { transform: none; box-shadow: none; }
}

/* ============================================================
   v1.3 Hero CTA group (LINE 主 CTA + 副 CTA + 信頼バッジ)
   ============================================================ */
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}
.btn--line-primary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-white);
  padding: 18px 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}
.btn--line-primary::after {
  content: '→';
  font-size: 16px;
  letter-spacing: 0;
  transition: transform var(--transition-fast);
}
.btn--line-primary:hover {
  background: transparent;
  color: var(--color-white);
}
.btn--line-primary:hover::after {
  transform: translateX(4px);
}
.btn--ghost-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 18px 36px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  font-style: normal;
  transition: var(--transition-fast);
}
.btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}
.hero__trust {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}
@media (max-width: 640px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn--line-primary,
  .btn--ghost-white {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .hero__trust {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-top: 20px;
  }
}

/* ============================================================
   v1.5 Cookie / 第三者送信 同意バナー (Hakobune DS 準拠 pill)
   ============================================================ */
.consent-banner {
  position: fixed;
  left: max(16px, var(--safe-left, 0px));
  right: max(16px, var(--safe-right, 0px));
  bottom: max(20px, var(--safe-bottom, 0px));
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--transition-base, ease),
              transform 0.4s var(--transition-base, ease);
  pointer-events: none;
}
.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.consent-banner__inner {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 24px;
  padding: 20px 24px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 48px -16px rgba(10, 9, 8, 0.32);
  font-style: normal;
}
.consent-banner__text {
  font-size: 12px;
  line-height: 1.85;
  margin: 0;
  color: rgba(240, 238, 233, 0.92);
  letter-spacing: 0.02em;
}
.consent-banner__link {
  color: var(--color-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.consent-banner__btn {
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(240, 238, 233, 0.5);
  background: transparent;
  color: var(--color-bg);
  font-style: normal;
  transition: var(--transition-fast, all 0.2s ease);
}
.consent-banner__btn--accept {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-bg);
}
.consent-banner__btn:hover {
  background: rgba(240, 238, 233, 0.1);
  border-color: var(--color-bg);
}
.consent-banner__btn--accept:hover {
  background: rgba(240, 238, 233, 0.85);
  color: var(--color-text);
}
@media (min-width: 769px) {
  .consent-banner__inner {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px 16px 28px;
  }
  .consent-banner__text { flex: 1; }
}
@media (max-width: 480px) {
  .consent-banner__btn {
    flex: 1;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

/* ============================================================
   v1.3 Cormorant Garamond — 純欧字限定 (和文混在 heading は Outfit 維持)
   理由: 和文混在で Cormorant fallback すると数字のみ serif になり破綻
   Cormorant は 404 数字 / ブランド wordmark など欧字単独で使用
   ============================================================ */
.fx-display-en {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  font-style: normal;
}
