/* ==========================================================================
   Orbit Core LP — style.css
   ========================================================================== */

:root {
  --navy: #1c2154;
  --navy-card: #1a2744;
  --teal: #63b4b8;
  --teal-dark: #0b9da4;
  --teal-deep: #00868c;
  --cyan-bright: #29c4cb;
  --indigo: #4c56b8;
  --indigo-light: #737cde;
  --gold: #ffd46e;
  --text-body: #2e2e2e;
  --line: #e2e5ee;
  --white: #ffffff;

  /* Web フォント（Noto Sans JP）が届くまでの数百 ms と、社内ネットワーク等で
     fonts.googleapis.com が塞がれている環境では、この控えがそのまま表示される。
     ・Windows：Yu Gothic の Regular は線が細く別物に見えるので Medium を先に置く。
       Windows 8.1 以前や一部の Windows Server には游ゴシックが無いので Meiryo。
     ・macOS 10.10 以前 / 古い iOS：Hiragino Sans が無いので ProN を控えに。 */
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
             'Yu Gothic Medium', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif;
  --font-en: 'DM Sans', var(--font-jp);

  --container-w: 1160px;
  /* how far the works navy band may bleed past the container on wide screens */
  --case-band-bleed: 200px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* iOS Safari と Chrome for Android は、端末を横向きにすると本文だけを勝手に
     拡大する（テキスト自動調整）。見出しと本文の比率が崩れるので固定する。 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; }

body {
  font-family: var(--font-jp);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 「視差効果を減らす」設定への対応 ----------
   macOS / iOS の「視差効果を減らす」、Windows の「アニメーションを表示する：オフ」を
   選んでいる人には、動きを止めて最終状態だけを見せる。ローダーの SVG は自前で
   同じ指定を持っているが、ページ側（reveal・ホバー・スムーススクロール）は
   対応が抜けていた。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--teal-deep), var(--indigo));
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(11, 157, 164, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(11, 157, 164, .65); }
.btn-secondary {
  background: rgba(255,255,255,.92);
  color: var(--navy);
  border: 1px solid #1A2744;
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--white); }
.btn-small { padding: 10px 22px; font-size: 13px; border-radius: 3px; }

/* ---------- Section labels / headings ---------- */
.section-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
}
.rule { display: block;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #0B9DA4 0%, #4C56B8 100%);
  margin-top: 10px;
 }
 .rule2{
  margin-top: 0px;
 }
 .rule-gold{
  background: #ffd46e !important;
 }
 .other-rule{
  margin: 10px auto 0;
 }
.label-teal { color: var(--teal-dark); }
.label-gold { color: var(--gold); }
.label-teal{ display: inline-block; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .label-teal {
    background: linear-gradient(90deg, #1fb8c0 0%, #7782e0 100%);
    -webkit-background-clip: text;  /* Chrome<120 / Safari<14 用。標準版と同値 */
    background-clip: text;
    color: transparent;
  }
}
.section-heading {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.55;
  letter-spacing: .1em;
  margin-bottom: 28px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.heading-navy { color: var(--navy); }
.heading-white { color: var(--white); }

.section { position: relative; padding: 80px 0 var(--section-pad); overflow: hidden; scroll-margin-top: 100px; }
#top, #hero { scroll-margin-top: 0; }
.section-dark { background: var(--navy); }
.section-light { background: var(--white); }

/* Continuous decorative background shared by ABOUT → PROFILE → OTHER */
.soft-bg-wrap { position: relative; background: #f6f9fc; }
.soft-bg-layer {
  position: absolute; inset: 0;
  background-image: url('../images/profile-back.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  /* background-attachment:fixed is unreliable on touch browsers (iOS/iPadOS Safari).
     Keyed on the primary input, not width, so iPad portrait (1024px) is caught too. */
  .soft-bg-layer { background-attachment: scroll; }
}
.soft-bg-wrap .section-light { background: transparent; }
.soft-bg-wrap .about-section { background: #fff; }

/* ==========================================================================
   Loader
   ========================================================================== */
body.is-loading { overflow: hidden; }

/* 2 回目以降の読み込み。<head> のインラインスクリプトが html に .no-loader を付ける。
   JS の実行を待たず CSS で消すので、ローダーは 1 フレームも描画されない。 */
.no-loader .loader { display: none; }
.no-loader body.is-loading { overflow: visible; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, #232a63 0%, var(--navy) 62%, #141833 100%);
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner { display: flex; flex-direction: column; align-items: center; }

/* The lockup is one inline SVG (mark + wordmark + tagline); its motion lives
   with the markup in index.html so the whole logo stays a single asset. */
.loader-logo {
  display: block;
  width: min(340px, 62vw);
  height: auto;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .loader { transition: opacity .2s linear; }
}

/* FLOW section's own wave background (distinct graphic from the ABOUT-block one) */
.flow-bg-wave {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  min-width: 480px;
  background-image: url('../images/wave-back.webp');
  background-repeat: no-repeat;
  background-size: contain;
  /* anchored to the top so that if the box ever gets taller than the artwork's
     ratio, the leftover space falls at the bottom rather than against the navy
     section above */
  background-position: top center;
  pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px 0;
  background: transparent;
  transition: padding .25s ease;
}
.site-header.is-scrolled { padding-top: 8px; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  background: rgba(255,255,255,.8);
  border-radius: 5px;
  transition: box-shadow .25s ease, background-color .25s ease;
}
/* Only the blur lives on the pseudo-element. backdrop-filter on .header-inner
   itself would make it a containing block for fixed-position descendants, which
   anchors the off-canvas .main-nav to this pill instead of the viewport —
   translateX(100%) then leaves a sliver of the closed menu down the right edge.
   The white panel stays on .header-inner so the visible bar is always drawn by
   the real element and can never depend on how the pseudo resolves. */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled .header-inner {
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px -12px rgba(28,33,84,.25);
}
.logo img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; align-items: center; gap: 18px; }
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--teal-dark);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta { flex-shrink: 0; }
/* drawer-only: the header already carries the logo on desktop */
.nav-logo { display: none; }
/* scrim behind the open drawer — mobile only */
.nav-overlay { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: visible;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.38) 28%, rgba(28,33,84,.08) 56%, rgba(28,33,84,.3) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px 24px 60px clamp(100px, 12%, 200px);
  max-width: 1400px;
  width: 100%;
  margin: auto
}
.hero-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.8px;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.hero-label .rule { background: var(--teal-deep); }
.hero-title {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow: 0 2px 18px rgba(255,255,255,.55), 0 1px 0 rgba(255,255,255,.4);
}
.hero-sub {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
  color: #383c5c;
  margin-bottom: 34px;
  text-shadow: 0 2px 14px rgba(255,255,255,.6);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-ctas a{border-radius: 3px;}
.green{
  color: #00868C;
}
.hero-badge {
  position: absolute;
  right: max(30px, calc((100% - 1440px) / 2 + 30px));
  bottom: -68px;
  width: 130px; height: 130px;
  z-index: 20;
  animation: spin 22s linear infinite;
}
.hero-badge-svg { width: 100%; height: 100%; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Pain points
   ========================================================================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.pain-card {
  background: var(--white);
  border-radius: 20px 0 0 0;
  padding: 26px 24px;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.35);
}
.pain-num {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.pain-section{
  padding-bottom: 0;
}
.pain-card p { color: var(--navy); font-size: 16px; line-height: 1.65; }
.pain-note { color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.9; font-weight: 700;}
.consulting-title{
  margin-bottom: 40px;
}
/* ==========================================================================
   Transition (dark photo section)
   ========================================================================== */
.transition-section { min-height: 560px; display: flex; align-items: center; background: var(--navy); margin-top: -1px; padding-top: 85px;}
.transition-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.4) 12%, #000 32%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.4) 12%, #000 32%);
}
.transition-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,33,84,.88) 0%, rgba(28,33,84,.55) 45%, rgba(28,33,84,.32) 100%);
}
.transition-inner {
  position: relative; z-index: 2;
  display: flex; align-items: top; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(24px, min(calc((100% - 1160px) / 2 + 24px), 164px));
  padding-right: 0;
}
.transition-img-sm{
border-radius: 5px 0 0 5px!important;
}
.transition-heading { color: var(--white); max-width: 480px; margin-bottom: 0; word-break: keep-all; padding-top:20px;}
@media (min-width: 1025px) {
  .transition-heading { max-width: 620px; }
}
.transition-images { display: flex; gap: 50px; align-items: flex-end; margin-left: auto;}
.transition-img { border-radius: 5px; object-fit: cover; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.transition-img-lg { width: 300px; height: 210px; margin-bottom: 105px;}
.transition-img-sm { width: 350px; height: 260px; }


/* ==========================================================================
   Service
   ========================================================================== */
.service-section { position: relative; }
.deco-wave {
  position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    pointer-events: none;
}
.deco-wave-right { right: -120px; }
@media (hover: none), (pointer: coarse) {
  /* background-attachment:fixed is unreliable on touch browsers (iOS/iPadOS Safari).
     Keyed on the primary input, not width, so iPad portrait (1024px) is caught too. */
  .deco-wave { background-attachment: scroll; }
}

.venn {
  /* 92vw counted the scrollbar and spilled past the container on small phones */
  width: min(560px, 100%);
  margin: 0px auto 30px;
}
.venn img {
  width: 100%;
  height: auto;
  display: block;
}

.tag-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 120px;
}
.tag-row li {
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 20px;
  border-radius: 3px;
}
.tag-row li::before { content: "• "; color: var(--gold); }

.service-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.service-title{
  margin-bottom: 0;
}
.service-row:last-child { margin-bottom: 0; }
.service-img { width: 100%; height: 220px; object-fit: cover; border-radius: 5px; }
.service-copy h3 { font-size: 21px; color: var(--navy); margin-bottom: 14px; font-weight: 700; }
.service-copy p { font-size: 16px; color: #4b4f6b; line-height: 1.85; }

/* ==========================================================================
   Works / Case studies
   ========================================================================== */
.case-grid { position: relative; display: flex; flex-direction: column; gap: 90px; }
.case-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* the gap gives way before the cards do, so 3-up still breathes at ~1025px */
  gap: clamp(26px, 3.4vw, 50px);
}
.case-row::after {
  content: "";
    position: absolute;
    left: 75px;
    /* Bleeds to the viewport edge on normal screens, but the overflow stops
       growing past --case-band-bleed so the band never runs away on wide monitors. */
    right: max(calc(50% - 50vw), calc(-1 * var(--case-band-bleed)));
    top: 170px;
    bottom: -28px;
    background: var(--navy);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 16px 34px -14px rgba(28, 33, 84, .45);
    z-index: 0;
}
.case-card {
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
  border-radius: 20px 0 0 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, rgb(30, 196, 205), rgb(114, 123, 211)) border-box;
  overflow: hidden;
  box-shadow: 0 18px 30px -22px rgba(28,33,84,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 22px 34px -18px rgba(28,33,84,.45); }
.case-card img { 
  width: 74%;
  margin: 30px auto 20px;
  height: 170px;
  object-fit: cover;
 }
.case-tag {
  display: block;
  margin: 16px 18px 0;
  background: var(--navy-card);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 8px 10px;
  border-radius: 4px;
}
.case-title{
margin-bottom: 45px;
}
.case-card p {
  font-size: 16px;
  color: #565a76;
  line-height: 1.75;
  padding: 14px 18px 20px;
}
.works-section{
  padding-bottom: 130px;
}
/* ==========================================================================
   Why choose
   ========================================================================== */
.why-badge {
  display: inline-block;
  background: #ffffffd1;
  color: #1c2154;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  margin-bottom: 44px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 22px;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.4);
}
.why-icon-img { width: 50px; height: auto; }
.why-item p { color: var(--navy); font-size: 16px; font-weight: 500; line-height: 1.5; }

/* ==========================================================================
   Flow / Timeline
   ========================================================================== */
.flow-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.timeline { position: relative; }
.timeline li {
  position: relative;
  display: flex;
  gap: 22px;
  padding-bottom: 44px;
  padding-left: 4px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 21px; top: 44px; bottom: -4px;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.tl-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-dark);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  background: var(--white);
  z-index: 1;
}
.tl-body h3 {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.tl-body p { font-size: 16px; color: #4b4f6b; line-height: 1.8; }

.flow-images { position: relative; height: 100%; min-height: 620px; }
.flow-img { position: absolute; border-radius: 20px 0 0 0; object-fit: cover; box-shadow: 0 20px 40px -18px rgba(28,33,84,.3); }
.flow-img-1 { top: 0; right: 15%; width: 45%; height: 140px; }
.flow-img-2 { top: 210px; right: -10%; width: 54%; height: 175px; }
/* ここだけ 100vw を残す。包含ブロックの .flow-images はグリッドの 1 カラムで
   ページ全幅ではないため、100% に置き換えると別の値になってしまう。Windows では
   縦スクロールバー幅の半分（約 8px）だけ外側に出るが、overflow-x:hidden で切られる。 */
.flow-img-3 { top: 455px;
  right: calc(-1 * max(24px, min(calc((100vw - 1160px) / 2 + 24px), 164px)));
  width: 88%;
  height: 195px;
 }
.flow-section{
  padding-bottom: 90px;
}
/* ==========================================================================
   About
   ========================================================================== */
.about-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.about-logo { width: 100%; max-width: 260px; margin: 0 auto; }
.about-copy p { font-size: 16px; color: #4b4f6b; line-height: 1.9; margin-bottom: 18px; }
.about-copy p:last-child { margin-bottom: 0; }

.about-table { border-top: 1px solid var(--line); }
.about-table .row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.about-table .th { font-weight: 400; color: var(--navy); font-size: 16px; }
.about-table .td { font-size: 16px; color: #4b4f6b; line-height: 1.8; }
.about-table .td a { color: var(--teal-dark); text-decoration: underline; }
.about-section{
  padding-top: 0;
}
/* ==========================================================================
   Profile
   ========================================================================== */
.profile-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  margin-bottom: 120px;
  padding-top: 20px;
}
.profile-section{
  padding-top: 65px;
}
.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: #d9d9d9;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.profile-role { font-size: 14px; color: #6b7089; margin-bottom: 6px; }
.profile-name { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
/* .profile-en は <p> なので .profile-copy p (詳細度 0,1,1) に負ける。
   色を確実に当てるため、こちらも子孫セレクタで 0,2,0 にしておく。 */
.profile-copy .profile-en { font-family: var(--font-en); font-size: 13px; display: inline-block; letter-spacing: 1px; color: var(--teal-dark); font-weight: 700; margin-bottom: 20px; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .profile-copy .profile-en {
    background: linear-gradient(90deg, #1fb8c0 0%, #7782e0 100%);
    -webkit-background-clip: text;  /* Chrome<120 / Safari<14 用。標準版と同値 */
    background-clip: text;
    color: transparent;
  }
}
.profile-copy p { font-size: 16px; color: #4b4f6b; line-height: 1.9; margin-bottom: 16px; }
.profile-copy p:last-child { margin-bottom: 0; }

/* ---------- Reason (card inside profile section) ---------- */
.reason-card {
  background: var(--navy-card);
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
}
.reason-label { align-items: center; margin-bottom: 10px; }
.reason-heading { text-align: center; margin-bottom: 40px; }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.reason-item { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.reason-item img {
  width: 112px; height: 112px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 14px 26px -14px rgba(28,33,84,.6);
}
.reason-item p { color: var(--white); font-size: 16px; line-height: 1.6; font-weight: 500; }

/* ==========================================================================
   Other — design comp centers this entire block
   ========================================================================== */
.other-section .container { text-align: center; }
.other-section .section-label { align-items: center; }
.other-lead { font-size: 16px; color: #4b4f6b; margin-bottom: 30px; }
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.other-card {
  background: var(--navy);
  border: 1.5px solid var(--cyan-bright);
  border-radius: 8px;
  padding: 24px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.other-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(28,33,84,.5); }
.other-badge {
  align-self: center;
  background: rgba(255,255,255,.5);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  padding: 0px 20px;
  border-radius: 2px;
}
.other-title { font-family: var(--font-en); font-weight: 500; font-size: 22px; color: var(--teal-dark); display: inline-block; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .other-title {
    background: linear-gradient(90deg, #39ced6 0%, #98a1f6 100%);
    -webkit-background-clip: text;  /* Chrome<120 / Safari<14 用。標準版と同値 */
    background-clip: text;
    color: transparent;
  }
}
.other-section{
  padding-top: 0;
}
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); padding: 60px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { height: 50px; width: auto; }
.footer-nav { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,.85); }
.footer-col a:hover { color: var(--teal); }
.footer-copy {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  padding: 22px 0;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px;
  padding: 11px 0 10px;
  border-radius: 999px;
  /* frosted panel, same language as the header pill — keeps the mark legible
     whether the button is floating over a light section or the navy footer */
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -10px rgba(28,33,84,.45);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease,
              box-shadow .25s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: 0 14px 28px -10px rgba(28,33,84,.55); }
.to-top.is-visible:hover { transform: translateY(-3px); }

.to-top__mark { display: block; width: 30px; height: auto; }
.to-top__label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--navy);
}

/* the rail: a faint track with a bright segment running up it, echoing the
   direction of travel */
.to-top__rail {
  position: relative;
  width: 1px;
  height: 22px;
  overflow: hidden;
  background: rgba(28,33,84,.16);
}
.to-top__rail::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 11px;
  background: linear-gradient(to top, rgba(0,134,140,0), var(--teal-deep));
  animation: toTopRail 1.9s cubic-bezier(.45,0,.2,1) infinite;
}
.to-top:hover .to-top__rail::after { animation-duration: 1.1s; }
@keyframes toTopRail {
  0%        { transform: translateY(22px); opacity: 0; }
  15%, 70%  { opacity: 1; }
  100%      { transform: translateY(-11px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top__rail::after { animation: none; transform: translateY(5px); opacity: .8; }
  .to-top.is-visible:hover { transform: translateY(0); }
}

/* ==========================================================================
   Responsive — Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024.98px) {
  :root { --container-w: 92%; }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  /* All six cards flow as one grid, so a 2-up layout never leaves an orphan
     card stranded on a row of its own. */
  .case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }
  .case-row { display: contents; }
  .case-row::after { content: none; }
  .case-grid::after {
    content: "";
    position: absolute;
    left: 60px;
    right: max(calc(50% - 50vw), calc(-1 * var(--case-band-bleed)));
    top: 170px;
    bottom: -28px;
    background: var(--navy);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 16px 34px -14px rgba(28, 33, 84, .45);
    z-index: 0;
  }
  .why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .service-row { grid-template-columns: 280px 1fr; gap: 28px; }
  .flow-wrap { grid-template-columns: 1fr; }
  /* The box hits its 480px min-width while the section grows taller here, so it
     ends up narrower than the artwork's 1098:2215 ratio and `contain` letterboxes
     it — leaving white above the wave, right under the navy section. Fill the box
     instead; the horizontal crop is only ~3%. */
  .flow-bg-wave { background-size: cover; }
  /* The staggered collage is positioned for the narrow desktop column. Once
     .flow-wrap goes single-column the images span the full width, so their
     fixed heights crop them into strips (and .flow-img-3 overflowed the
     container). Lay them out in flow instead and let the ratio set the height. */
  .flow-images {
    height: auto;
    min-height: 0;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    z-index: 1; /* stay above .flow-bg-wave, which the absolute layout cleared */
  }
  .flow-img,
  .flow-img-1,
  .flow-img-2,
  .flow-img-3 {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .about-top { grid-template-columns: 200px 1fr; gap: 32px; }
  .profile-wrap { grid-template-columns: 200px 1fr; gap: 32px; }
  .reason-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .deco-wave { opacity: .35; width: 320px; }
}

/* ==========================================================================
   Responsive — Mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  .sp-only { display: inline; }
  :root { --section-pad: 64px; }

  .container { padding: 0 20px; }

  /* Header / nav */
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto;
    width: clamp(300px, 90vw, 400px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -12px 0 30px -12px rgba(28,33,84,.2);
  }
  .main-nav.is-open { transform: translateX(0); }
  /* Sits above the header bar so the sliver of the pill left uncovered by the
     drawer is tinted too, but below the drawer and the close button. */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    /* pointer-events is belt-and-braces: even mid-fade the scrim must never
       swallow clicks meant for the page underneath */
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
  }
  body.nav-open .nav-overlay { opacity: .9; visibility: visible; pointer-events: auto; }
  .main-nav { z-index: 108; }
  /* Logo at the top of the drawer, on the same baseline as the close button. */
  .main-nav { padding-top: 16px; }
  .nav-logo {
    display: flex;
    align-items: center;
    height: 70px;
    margin-bottom: 26px;
    flex-shrink: 0;
  }
  .nav-logo img { display: block; height: 35px; width: auto; max-width: 100%; }
  /* The open drawer starts mid-way across the header, slicing the header logo in
     half. The drawer carries its own, so fade this one out while it is open. */
  .logo { transition: opacity .25s ease; }
  body.nav-open .site-header .logo { opacity: 0; pointer-events: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; width: 100%; margin-bottom: 32px; }
  .nav-link { font-size: 17px; }
  .nav-cta { width: 100%; text-align: center; }

  /* Hero */
  .hero { min-height: 640px; }
  .hero-gradient { background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.6) 45%, rgba(28,33,84,.4) 100%); }
  .hero-inner { margin-left: 0; padding: 150px 20px 160px; max-width: 100%; }
  .hero-title { font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 300px; }
  .hero-badge { width: 120px; height: 120px; right: 18px; bottom: 24px; }

  /* Pain */
  .pain-grid { grid-template-columns: 1fr; }

  /* Transition */
  .transition-inner { flex-direction: column; align-items: flex-start; }
  .transition-images { width: 100%; justify-content: space-between; }
  /* Widths go fluid here while the heights stayed pinned, squashing these
     4:3 photos to ~2.5:1. Let the ratio set the height instead. */
  .transition-img-lg { width: 56%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 56px; }
  .transition-img-sm { width: 40%; height: auto; aspect-ratio: 4 / 3; }

  /* Service */
  .venn { margin: 32px auto 24px; }
  .service-row { grid-template-columns: 1fr; gap: 18px; }
  .service-img { height: 250px; }
  .deco-wave { display: none; }

  /* Why */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .why-item { max-width: 215px; padding: 16px; }
  .why-icon-img { width: 38px; }
  .why-item p { font-size: 16px; }

  /* Flow */
  .flow-images { display: none; }
  .flow-bg-wave{
opacity: .4;
  }

  /* About */
  .about-top { grid-template-columns: 1fr; text-align: center; }
  .about-logo { max-width: 180px; }
  .about-table .row { grid-template-columns: 1fr; gap: 6px; }
  

  /* Profile */
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-photo { max-width: 220px; margin: 0 auto; }
  .profile-copy { text-align: left; }

  /* Reason */
  .reason-card { padding: 40px 22px; }
  .reason-grid { grid-template-columns: 1fr; gap: 30px; max-width: 320px; }

  /* Other */
  .other-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; }
  /* menu pushed to the right, opposite the logo, with breathing room before
     the divider rule */
  .footer-nav { gap: 40px; align-self: flex-end; margin-bottom: 60px; }
  .footer-col { align-items: flex-end; text-align: right; }
}

/* ==========================================================================
   Responsive — Phone (≤600px)
   ========================================================================== */
@media (max-width: 600px) {
  /* Two columns stop being readable below this, so the cards go single file. */
  .case-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-grid::after { left: 12px; top: 18px; bottom: -18px; }
}

/* ==========================================================================
   Responsive — Small mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 14.5px; }
  .section-heading { font-size: 22px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-brand { align-self: center; }
  /* the two link columns stack into one centred list — the 14px gap matches
     .footer-col's own so the join is invisible */
  .footer-nav { flex-direction: column; align-self: center; align-items: center; gap: 14px; }
  .footer-col { align-items: center; text-align: center; }
  .transition-images { flex-direction: column; align-items: center; }
  /* stacked now — the stagger offset would just be dead space */
  .transition-img-lg, .transition-img-sm { width: 82%; }
  .transition-img-lg { margin-bottom: 0; }
  /* .transition-inner already runs its padding-right to 0, so aligning to the
     end of the row bleeds this one off the right edge — same treatment it gets
     on desktop and in the 2-up tablet layout. */
  .transition-img-sm { align-self: flex-end; }
  .about-copy{
    text-align: left;
  }
}

/* <img> の width / height 属性は「縦横比の目安」（読み込み中のレイアウトずれ防止）にだけ使い、
   表示サイズは従来どおり CSS で決める。:where() で詳細度を 0 にしてあるので、
   クラスで幅・高さを指定している画像（.service-img など）はそちらが優先される。 */
:where(img[width][height]) { width: auto; height: auto; }
