/* ============================================================
   BODY DIRECTOR — responsive.css
   Breakpoint: 768px以上（PC・タブレット向け）
   モバイルファーストのため、768px以上に上書きスタイルを定義
   Cross-browser: Chrome / Safari 両対応
   ============================================================ */

/* ============================================
   CROSS-BROWSER BASE（ブレークポイント外）
   Chrome・Safari 共通の互換補完
   ============================================ */

/* backdrop-filter: Safari requires -webkit- prefix */
.hero-stats {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Smooth font rendering (Safari) */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Box-sizing (念のため全体に明示) */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Flexbox gap: Safari 14未満の補完（古いSafari向け） */
.hero-stats {
  display: -webkit-flex;
  display: flex;
}

/* ============================================
   SOFT MESSAGE BASE（全画面共通）
   ============================================ */

#soft-message {
  background: #f0f0f0;
  padding: var(--section-pad);
}

.soft-message-body {
  font-family: var(--font-ja);
  font-size: 18px;
  line-height: 2;
  color: var(--text-secondary);
  max-width: 980px;
  margin: 0 auto 32px;
  text-align: center;
}

.soft-message-closing {
  font-family: var(--font-ja);
  font-size: 18px;
  line-height: 2;
  color: var(--espresso);
  font-weight: 300;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

/* IntersectionObserver の fade-in は JS依存のため
   JS無効時のフォールバック（Safari・Chrome共通） */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) {

  /* ============================================
     BASE LAYOUT
     ============================================ */

  .page-inner {
    max-width: 860px;
    margin: 0 auto;
  }

  .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 40px;
  }

  #gate-content {
    width: 100%;
    max-width: none;
  }

  :root {
    --section-pad: 80px 0;
  }


  /* ============================================
     HEADER
     ============================================ */

  #site-header {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
  }

  .header-logo {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .header-cta {
    font-size: 11px;
    padding: 8px 20px;
  }


  /* ============================================
     HERO
     ============================================ */

  /* #hero {
    min-height: 400px;
  }*/

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 20px;
  }

  .hero-h1 {
    font-size: 31px;
    line-height: 1.15;
    /* margin-bottom: 20px; */
  }

  .hero-subline {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-concept {
    font-size: 11px;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
  }

  .hero-target {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-stats {
    padding: 16px 40px;
    gap: 32px;
  }

  .hero-stat-num {
    font-size: 26px;
  }

  .hero-stat-desc {
    font-size: 10px;
  }


  /* ============================================
     SECTION TYPOGRAPHY
     ============================================ */

  .section-tag {
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 16px;
  }

  .section-heading {
    font-size: 29px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .section-heading-ja {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
  }

  .section-body {
    font-size: 18px;
    line-height: 2;
  }

  .ornament-divider {
    margin: 20px 0;
  }


  /* ============================================
     DATA-DRIVEN SECTION
     ============================================ */

  .data-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .data-card {
    display: flex;
    flex-direction: column;
  }

  .data-card-img {
    flex: 1;
    min-height: 160px;
  }

  .flow-branch {
    gap: 32px;
  }

  .flow-chart-title {
    font-size: 13px;
  }

  .flow-node {
    font-size: 16px;
    padding: 16px 20px;
  }

  .flow-branch-node {
    font-size: 15px;
    padding: 14px 16px;
  }


  /* ============================================
     BIOHACK SECTION
     ============================================ */

  .bio-data-note {
    font-size: 13px;
  }

  .bio-chart-title {
    font-size: 16px;
  }

  .bio-chart-sub {
    font-size: 13px;
    line-height: 1.7;
  }

  .bio-chart-wrap {
    max-width: 680px;
  }

  .bio-sub-heading {
    font-size: 14px;
    margin: 32px 0 16px;
  }

  .bio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .bio-card {
    padding: 18px 16px 18px 22px;
  }

  .bio-card-title {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .bio-card-body {
    font-size: 15px;
    line-height: 1.8;
  }

  .bio-stat-label {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .bio-stat-value {
    font-size: 28px;
  }

  .bio-stat-sub {
    font-size: 14px;
    margin-top: 8px;
  }


  /* ============================================
     CREATOR / EXECUTIVE HEALTH SECTIONS
     ============================================ */

  .creator-profile {
    gap: 28px;
    align-items: flex-start;
  }

  .creator-avatar {
    width: 156px;
    height: 156px;
  }

  .creator-info-name {
    font-size: 32px;
    line-height: 1.2;
  }

  .creator-info-title {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 16px;
  }

  .creator-bio-heading {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
  }

  .creator-story-heading {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
    letter-spacing: 0.06em;
  }

  .creator-bio-text,
  .creator-story-body {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.06em;
  }

  .exec-text {
    font-size: 18px;
    line-height: 2;
  }

  .exec-emphasis {
    font-size: 20px;
    line-height: 1.9;
  }

  .exec-note {
    font-size: 13px;
  }

  .exec-4grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .exec-factor {
    padding: 20px;
  }

  .exec-closing {
    padding: 24px 32px;
  }


  /* ============================================
     FRAMEWORK SECTION
     ============================================ */

  .framework-diagram {
    padding: 32px 0;
  }

  .framework-center {
    padding: 16px 32px;
  }

  .framework-center-label {
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1.4;
  }

  .framework-hub-line {
    height: 24px;
  }

  .framework-nodes {
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
  }

  .framework-node {
    padding: 18px 20px;
  }

  .framework-node-text {
    font-size: 17px;
    letter-spacing: 1.2px;
    line-height: 1.6;
  }

  .framework-node-text small {
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.7;
  }


  /* ============================================
     SOFT GATE / FORM
     ============================================ */

  #soft-gate .container {
    max-width: 680px;
  }

  .gate-form {
    max-width: 560px;
    margin: 0 auto;
  }

  .form-input {
    font-size: 17px;
    padding: 12px 16px;
  }

  .form-label {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .form-label-note {
    font-size: 14px;
  }

  .radio-item label {
    font-size: 17px;
    line-height: 1.8;
  }

  .gate-lock {
    font-size: 12px;
    letter-spacing: 5px;
    margin-bottom: 20px;
  }

  .gate-title {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .gate-sub {
    font-size: 18px;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
  }

  .btn-gate {
    font-size: 20px;
    letter-spacing: 2px;
    padding: 22px 24px;
  }

  .form-privacy {
    font-size: 13px;
    line-height: 1.8;
  }

  .gate-submit-btn {
    max-width: 360px;
    margin: 32px auto 0;
  }


  /* ============================================
     PROTOCOL SECTION
     ============================================ */

  .protocol-lead {
    font-size: 18px;
    line-height: 2;
    max-width: 600px;
  }

  .deliverable-num {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .deliverable-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  .deliverable-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .protocol-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .protocol-branch-heading {
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .protocol-tree-item-title {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 6px;
  }

  .protocol-tree-item-body {
    font-size: 17px;
    line-height: 1.9;
  }

  .protocol-branch-lead {
    font-size: 17px;
    line-height: 1.9;
  }

  .protocol-grey-text {
    font-size: 17px;
    line-height: 1.9;
  }


  /* ============================================
     VALUE ARCHITECTURE
     ============================================ */

  .value-grid {
    max-width: 680px;
  }

  #value-architecture .section-heading-ja {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    /* white-space: nowrap; */
  }

  #value-architecture .section-body {
    font-size: 18px;
    line-height: 2;
    max-width: 900px;
  }

  .value-item {
    padding: 24px 0;
  }

  .value-item-title {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .value-item-body {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0;
  }

  .value-closing-message {
    font-size: 20px;
    line-height: 2;
    padding: 28px 24px;
    max-width: 760px;
  }


  /* ============================================
     CLIENT CASE
     ============================================ */

  .case-photos-top {
    gap: 16px;
  }

  /* .case-photo {
    padding-bottom: 130%;
  } */

  .case-stat-num {
    font-size: 36px;
  }

  .case-stat-num--text {
    font-size: 17px;
  }

  .case-stats-row {
    gap: 24px;
  }

  .case-stat-label {
    font-size: 14px;
  }

  .case-stat-unit {
    font-size: 14px;
  }

  .case-impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .case-impact-item {
    font-size: 16px;
    padding: 14px 16px 14px 18px;
    line-height: 1.7;
  }

  .case-comment-text {
    font-size: 18px;
    line-height: 2.1;
  }


  /* ============================================
     MEDICAL ASSESSMENT
     ============================================ */

  #medical .section-heading-ja {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  #medical .section-body {
    font-size: 18px;
  }

  .medical-sub-heading {
    font-size: 15px;
  }

  .medical-card-title {
    font-size: 15px;
  }

  .medical-card-body {
    font-size: 17px;
    line-height: 1.9;
  }

  .medical-card-note {
    font-size: 14px;
  }

  /* ============================================
     FIT CHECK
     ============================================ */

  .fit-grid {
    gap: 10px;
  }

  .fit-item {
    font-size: 16px;
    line-height: 1.8;
  }


  /* ============================================
     PROGRAM STRUCTURE
     ============================================ */

  #program-structure .section-body {
    max-width: 600px;
  }

  .program-elements {
    max-width: 560px;
  }

  .program-element {
    font-size: 18px;
    padding: 16px 0 16px 20px;
  }

  .program-closing {
    max-width: 600px;
    padding: 28px 36px;
  }

  .program-closing-text {
    font-size: 18px;
    line-height: 1.9;
  }

  .program-closing-emphasis {
    font-size: 20px;
    line-height: 1.8;
    font-weight: 300;
    color: var(--text-secondary);
  }


  /* ============================================
     PRICING BRIDGE
     ============================================ */

  .pricing-pre-message {
    font-size: 18px;
    line-height: 2;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
  }


  /* ============================================
     PRICING
     ============================================ */

  .price-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 48px;
  }

  .price-tier {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }

  .price-tagline {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .price-amount {
    font-size: 31px;
  }

  .price-unit {
    font-size: 14px;
  }

  .price-tax {
    font-size: 13px;
  }

  .price-include-list {
    margin-top: 28px;
    gap: 12px;
  }

  .price-include-item {
    font-size: 17px;
    line-height: 1.8;
    padding: 12px 0;
  }

  .capacity-box {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 28px 36px;
  }

  .capacity-box-body {
    font-size: 17px;
    line-height: 2;
  }


  /* ============================================
     SOFT MESSAGE
     ============================================ */

  .soft-message-body {
    max-width: 980px;
    margin: 0 auto 32px;
    font-size: 18px;
  }

  .soft-message-closing {
    max-width: 980px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 2;
    font-weight: 300;
  }


  /* ============================================
     LINE CTA
     ============================================ */

  #line-cta .container {
    max-width: 560px;
  }

  .line-btn {
    max-width: 360px;
    margin: 0 auto;
    padding: 18px 24px;
    font-size: 15px;
  }

  .line-qr {
    max-width: 140px;
    margin: 28px auto 0;
  }


  /* ============================================
     FOOTER
     ============================================ */

  footer {
    padding: 40px;
  }

  .footer-logo {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .footer-tagline {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .footer-copy {
    font-size: 10px;
  }


  /* ============================================
     FIXED LINE BUTTON
     ============================================ */

  #fixed-line {
    max-width: 860px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 100%;
  }

  #fixed-line a {
    max-width: 480px;
    margin: 0 auto;
    display: block;
  }

} /* end @media (min-width: 768px) */

/* ============================================
   FRAMEWORK — モバイル最適化
   ============================================ */

/* モバイル：1カラム、イメージは1枚のみ表示 */
.framework-layout {
  display: block;
}

.framework-images {
  display: none; /* モバイルでは非表示 */
}

@media (min-width: 768px) {
  .framework-layout {
    display: grid;
    grid-template-columns: 1fr 44%;
    gap: 48px;
  }

  .framework-images {
    display: flex;
  }
}

/* Deliverable-01: モバイルは縦並び（写真が下） */
.deliverable-two-col {
  flex-direction: column;
}

.deliverable-two-col-text,
.deliverable-two-col-photo-col {
  flex: none;
  width: 100%;
}

/* モバイル: 写真3枚は縦並び均等 */
.deliverable-two-col-photo-col .deliverable-two-col-photo-item {
  aspect-ratio: 2 / 1;
}

@media (min-width: 768px) {
  .deliverable-two-col {
    flex-direction: row;
  }

  .deliverable-two-col-text {
    flex: 0 0 60%;
  }

  .deliverable-two-col-photo-col {
    flex: 1;
  }
}

/* Medical unit: モバイルは縦並び（写真が下） */
.medical-unit {
  flex-direction: column;
}

.medical-unit-text,
.medical-unit-photo {
  flex: none;
  width: 100%;
}

.medical-unit-photo {
  min-height: 140px;
}

@media (min-width: 768px) {
  .medical-unit {
    flex-direction: row;
  }

  .medical-unit-text {
    flex: 0 0 60%;
  }

  .medical-unit-photo {
    flex: 1;
    min-height: 0;
  }
}
