@charset "UTF-8";

/* =========================================================
   rootichi LP  -  style.css  (Mobile First)
   Color: Navy × Teal  (ロゴ準拠)
   ========================================================= */

:root {
  /* --- Brand colors (ロゴから実測抽出: 濃紺 × 明るいティール) --- */
  --navy:        #1a3355;   /* メインカラー：深いネイビー（ロゴ文字色） */
  --navy-deep:   #12263f;   /* さらに濃い紺（フッター等） */
  --teal:        #5dc1cd;   /* アクセント：明るいティール／シアン（ロゴの芽・根・内枠） */
  --teal-bright: #82d3da;   /* ホバー等の明るいティール */
  --teal-deep:   #2f8c97;   /* ティールの濃い影（白背景上のテキスト/リンク用） */

  /* --- Neutrals --- */
  --white:       #ffffff;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fb;   /* 極めて薄いグレー／ブルー */
  --bg-line:     #e3ecf3;
  --text:        #1d2b38;
  --text-mut:    #5a6b7a;
  --text-light:  #cfe0ee;

  /* --- Effects --- */
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(15, 46, 77, .08);
  --shadow-lg:   0 18px 48px rgba(15, 46, 77, .14);
  --grad:        linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  --grad-navy:   linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);

  --header-h:    62px;
  --maxw:        1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- 背景装飾：脈打つ（拡大・縮小）円のアニメーション ---------- */
.bg-decor {
  position: fixed;     /* スクロールしても背景に固定 */
  inset: 0;
  z-index: 0;          /* 背面（コンテンツは z-index:1 で前面） */
  overflow: hidden;
  pointer-events: none;
}
.bg-decor__circle {
  position: absolute;
  border-radius: 50%;
  transform-origin: center;
  will-change: transform;
  /* 各円ごとに animation プロパティで個別に時間・遅延を指定 */
  animation-name: pulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.bg-decor__circle--1 {
  width: 340px; height: 340px;
  top: 8%; left: -70px;
  background: radial-gradient(circle at center, rgba(93, 193, 205, .55) 0%, rgba(93, 193, 205, 0) 70%);
  opacity: .85;
  animation-duration: 4s;
}
.bg-decor__circle--2 {
  width: 480px; height: 480px;
  top: 36%; right: -130px;
  background: radial-gradient(circle at center, rgba(93, 193, 205, .45) 0%, rgba(93, 193, 205, 0) 70%);
  opacity: .8;
  animation-duration: 5.5s;
  animation-delay: -1.5s;
}
.bg-decor__circle--3 {
  width: 280px; height: 280px;
  bottom: 12%; left: 5%;
  background: radial-gradient(circle at center, rgba(26, 51, 85, .30) 0%, rgba(26, 51, 85, 0) 70%);
  opacity: .75;
  animation-duration: 4.8s;
  animation-delay: -2.4s;
}
.bg-decor__circle--4 {
  width: 240px; height: 240px;
  top: 64%; left: 42%;
  background: radial-gradient(circle at center, rgba(130, 211, 218, .50) 0%, rgba(130, 211, 218, 0) 70%);
  opacity: .85;
  animation-duration: 3.4s;
  animation-delay: -0.8s;
}
/* 脈打つアニメーション：scale で拡大・縮小を大きく滑らかに繰り返す */
@keyframes pulse {
  from { transform: scale(0.6); }
  to   { transform: scale(1.4); }
}

/* コンテンツを装飾の前面へ（透明な背景のセクションから円が透けて見える） */
main, .footer { position: relative; z-index: 1; }
a   { color: var(--teal-deep); text-decoration: none; }
ul, ol { list-style: none; }

/* 表示切替ユーティリティ */
.sp-only { display: inline; }
.pc-only { display: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 64px 0; position: relative; }

.section__head { text-align: center; margin-bottom: 36px; }

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--teal-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__label--light { color: var(--teal-bright); }

.section__title {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .04em;
}
.section__title--light { color: var(--white); }

.section__title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--grad);
}

.section__desc {
  margin-top: 18px;
  color: var(--text-mut);
  font-size: 15px;
}
.section__desc--light { color: var(--text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  /* 透明ボーダーは廃止（border-radius:999px の透明枠が左右に継ぎ目を生むため）。
     枠線が必要な --ghost は inset box-shadow で表現し、ボタンの寸法は全種で統一する */
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(21, 192, 200, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21, 192, 200, .45); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  /* ドロワー(.gnav)はこのヘッダー内にあるため、ヘッダー自体を
     オーバーレイ(z-index:104)より前面に置く必要がある（重なり順の要） */
  z-index: 200;
  background: rgba(255, 255, 255, 0);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 18px rgba(15, 46, 77, .08);
  backdrop-filter: saturate(160%) blur(8px);
}

.header__inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logotext {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.05;
  color: #fff;
  transition: color .3s ease;
}
/* SEO・読み仮名：「rootichi」の下に小さく「ルートイチ」 */
.header__logoread {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--teal-bright);
  margin-top: 2px;
}
.header.is-scrolled .header__logotext { color: var(--navy); }
.header.is-scrolled .header__logoread { color: var(--teal-deep); }

.header__logo img {
  height: 40px;
  width: auto;
  /* 白背景の正方形ロゴを円形にクロップして、どの背景でも自然に表示 */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  transition: box-shadow .3s ease, transform .2s ease;
}
/* スクロール前（暗いヒーロー上）はロゴの円を縁取りして浮かせる */
.header:not(.is-scrolled) .header__logo img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 4px 14px rgba(0, 0, 0, .25);
}
.header__logo:hover img { transform: scale(1.04); }

/* PC ナビ（モバイルでは非表示） */
.gnav { display: none; }

/* ---------- Hamburger ---------- */
.hamburger {
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.hamburger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease, background .3s ease;
}
.header.is-scrolled .hamburger span { background: var(--navy); }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }

/* 開いた状態（×印・常に濃色） */
.hamburger.is-open span { background: var(--navy); }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.gnav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(78vw, 320px);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  box-shadow: -12px 0 40px rgba(15, 46, 77, .18);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
  display: block;
  padding: calc(var(--header-h) + 24px) 28px 40px;
  z-index: 105;
  overflow-y: auto;
}
.gnav.is-open { transform: translateX(0); }

.gnav__list { display: flex; flex-direction: column; gap: 4px; }
.gnav__link {
  display: block;
  padding: 15px 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--bg-line);
  transition: color .2s ease;
}
.gnav__link:hover { color: var(--teal-deep); }
.gnav__link--cta {
  margin-top: 18px;
  border: none;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(21, 192, 200, .3);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 34, 56, .5);
  z-index: 104;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; }

body.no-scroll { overflow: hidden; }

/* =========================================================
   Hero / First View
   ========================================================= */
.hero {
  position: relative;
  /* JSが初期表示時の innerHeight を --vh に固定。スクロール時のアドレスバー
     変動では再計算しないためガタつかない。height ではなく min-height を使い、
     コンテンツが増えても見切れないようにする（--vh 未設定時は 1vh をフォールバック） */
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 20px) 22px 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(21, 192, 200, .42) 0%, rgba(21, 192, 200, 0) 55%),
    radial-gradient(90% 80% at 8% 95%, rgba(42, 215, 208, .25) 0%, rgba(42, 215, 208, 0) 50%),
    var(--grad-navy);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

/* ---------- ヒーローのIT/開発を想起させるアニメーション ---------- */
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 1;          /* hero__bg より前面、テキスト(z2)より背面 */
  overflow: hidden;
  pointer-events: none;
}
/* ゆっくり脈打つ発光オーブ */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  animation: heroOrb 6s ease-in-out infinite;
}
.hero__orb--a {
  width: 220px; height: 220px;
  top: 12%; left: 8%;
  background: radial-gradient(circle, rgba(93, 193, 205, .55), transparent 70%);
}
.hero__orb--b {
  width: 300px; height: 300px;
  bottom: 6%; right: 4%;
  background: radial-gradient(circle, rgba(42, 132, 160, .5), transparent 70%);
  animation-delay: -2.5s;
}
@keyframes heroOrb {
  0%, 100% { transform: scale(.85); opacity: .5; }
  50%      { transform: scale(1.25); opacity: .95; }
}

/* 浮遊する光の粒子 → 「データ・ネットワーク」感 */
.hero__dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 14px 2px rgba(130, 211, 218, .9);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero__dot--1 { top: 22%; left: 18%; animation-delay: 0s;   }
.hero__dot--2 { top: 30%; right: 16%; animation-delay: -1.4s; }
.hero__dot--3 { bottom: 26%; left: 26%; animation-delay: -2.8s; }
.hero__dot--4 { top: 60%; right: 28%; animation-delay: -4.2s; }
.hero__dot--5 { bottom: 18%; right: 40%; animation-delay: -5.6s; width: 6px; height: 6px; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1);    opacity: .4; }
  50%      { transform: translateY(-22px) scale(1.4); opacity: 1; }
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero__copy {
  font-size: clamp(34px, 11vw, 60px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: .03em;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}
.hero__sub {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-light);
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero__actions .btn { width: 100%; max-width: 320px; }

/* ---------- ヒーロー：読み込み直後にすらっと登場するアニメーション ---------- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero__eyebrow,
.hero__copy,
.hero__sub,
.hero__actions {
  opacity: 0; /* 表示前は隠しておく */
  animation: heroReveal .9s cubic-bezier(.22, .61, .36, 1) both;
}
.hero__eyebrow { animation-delay: .15s; }
.hero__copy    { animation-delay: .35s; }
.hero__sub     { animation-delay: .60s; }
.hero__actions { animation-delay: .85s; }
/* スクロール指標は中央寄せ(transform)を保つため不透明度のみフェード */
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__scroll { animation: heroFadeIn 1s ease both; animation-delay: 1.2s; }

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--teal-bright);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   Problem
   ========================================================= */
.problem { background: var(--bg-soft); }
.problem__list { display: flex; flex-direction: column; gap: 16px; }
.problem__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.problem__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.problem__text { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.problem__text strong { color: var(--teal-deep); }
.problem__lead {
  margin-top: 30px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.problem__lead em { font-style: normal; color: var(--teal-deep); }

/* =========================================================
   Services
   ========================================================= */
.services__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(21,192,200,.4); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 40px;
  font-weight: 900;
  color: var(--bg-line);
  line-height: 1;
}
.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(21, 192, 200, .12);
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card__text {
  font-size: 14.5px;
  color: var(--text-mut);
  margin-bottom: 16px;
}
.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card__tags li {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(21, 192, 200, .1);
  border-radius: 999px;
  padding: 5px 12px;
}

/* =========================================================
   Why Choose Us
   ========================================================= */
.why { background: var(--grad-navy); }
.why .section__title::after { background: var(--teal-bright); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why__card {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(2px);
}
.why__no {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-deep);
  background: var(--teal-bright);
  border-radius: 8px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.why__title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.why__text { font-size: 14.5px; color: var(--text-light); }

/* =========================================================
   Works
   ========================================================= */
.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--grad-navy);
  color: rgba(255, 255, 255, .5);
}
.work-card__thumb svg { width: 54px; height: 54px; }
.work-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--teal-bright);
  border-radius: 999px;
  padding: 5px 12px;
}
.work-card__body { padding: 20px 22px 24px; }
.work-card__title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.work-card__text { font-size: 14px; color: var(--text-mut); }
.works__note {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mut);
}

/* =========================================================
   Partner
   ========================================================= */
.partner { background: var(--bg-soft); }
.partner__box {
  background: var(--grad-navy);
  border-radius: 22px;
  padding: 44px 26px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.partner__box::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  top: -90px; right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,192,200,.4), transparent 70%);
}
.partner__head { position: relative; margin-bottom: 18px; }
.partner__text {
  position: relative;
  color: var(--text-light);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 28px;
}
.partner__text strong { color: var(--teal-bright); }

/* =========================================================
   About
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.about__visual {
  display: grid;
  place-items: center;
}
/* カード形式：四角い角丸コンテナにロゴを配置（円形マスクは使わない） */
.about__logomark {
  width: 100%;
  max-width: 340px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.about__logomark img { width: 80%; max-width: 220px; height: auto; }
.about__lead {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.about__lead::before {
  content: "";
  display: block;
  width: 38px; height: 4px;
  border-radius: 4px;
  background: var(--grad);
  margin-bottom: 14px;
}
.about__text { font-size: 14.5px; color: var(--text-mut); margin-bottom: 14px; }
.about__text strong { color: var(--teal-deep); }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--grad-navy); }
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 30px 22px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.req {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--teal-deep);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: 1px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* iOS の自動ズーム防止 */
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--bg-line);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 192, 200, .18);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #9fb0bf; }

.form-note { font-size: 13px; min-height: 20px; margin-bottom: 10px; font-weight: 600; }
.form-note.is-error { color: #e0506b; }
.form-note.is-ok { color: var(--teal-deep); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--navy-deep);
  color: var(--text-light);
  /* 端末下部のセーフエリア分を加味してコピーライトの見切れを防止 */
  padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
/* ロゴ＋タグラインを縦中央揃え（ロゴがテキスト幅基準で左寄せになるのを防ぐ） */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer__logo {
  height: 64px;
  width: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}
.footer__tagline { margin-top: 12px; font-size: 13px; color: var(--text-light); letter-spacing: .08em; text-indent: .08em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer__nav a { color: var(--text-light); font-size: 13.5px; transition: color .2s ease; }
.footer__nav a:hover { color: var(--teal-bright); }
.footer__copy {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(207, 224, 238, .55);
  letter-spacing: .04em;
}

/* =========================================================
   Floating CTA (mobile)
   ========================================================= */
.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  /* 非表示時は画面外へ十分に移動し、不透明度とクリック判定も無効化 */
  transform: translate(-50%, 150px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .04em;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(21, 192, 200, .45);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
  white-space: nowrap;
}
.floating-cta.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .bg-decor__circle { animation: none; }
  .hero__orb, .hero__dot { animation: none; }
  /* 登場アニメーションを無効化し、テキストは最初から表示 */
  .hero__eyebrow, .hero__copy, .hero__sub, .hero__actions {
    opacity: 1;
    animation: none;
    filter: none;
    transform: none;
  }
  .hero__scroll { opacity: 1; animation: none; } /* 中央寄せ(transform)は保持 */
}

/* =========================================================
   ============   Tablet / PC  (min-width:768px)   =========
   ========================================================= */
@media (min-width: 768px) {
  :root { --header-h: 74px; }

  .sp-only { display: none; }
  .pc-only { display: inline; }

  .container { padding: 0 32px; }
  .section { padding: 96px 0; }
  .section__title { font-size: 34px; }
  .section__head { margin-bottom: 52px; }

  /* --- Header: ハンバーガー→横並びナビ --- */
  .hamburger { display: none; }
  .gnav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
    padding: 0;
    overflow: visible;
  }
  .gnav__list { flex-direction: row; align-items: center; gap: 4px; }
  .gnav__link {
    padding: 8px 14px;
    font-size: 14px;
    border: none;
    color: #fff;
    border-radius: 8px;
  }
  .header.is-scrolled .gnav__link { color: var(--navy); }
  .gnav__link:hover { color: var(--teal-bright); }
  .header.is-scrolled .gnav__link:hover { color: var(--teal-deep); }
  .gnav__link--cta {
    margin: 0 0 0 8px;
    padding: 10px 22px;
    color: #fff !important;
  }
  /* 法務リンクはPCの横並びナビでは非表示（フッターに集約・モバイルドロワーには表示） */
  .gnav__item--legal { display: none; }
  .header__logo img { height: 40px; }
  .nav-overlay { display: none !important; }

  /* --- Hero --- */
  .hero__sub { font-size: 17px; }
  .hero__actions { flex-direction: row; justify-content: center; }
  .hero__actions .btn { width: auto; min-width: 200px; }

  /* --- Problem --- */
  .problem__list { flex-direction: row; }
  .problem__card { flex-direction: column; text-align: center; flex: 1; padding: 32px 24px; }
  .problem__text { font-size: 16px; }

  /* --- Services: 横3列 --- */
  .services__grid { flex-direction: row; }
  .service-card { flex: 1; }

  /* --- Why: 2列 --- */
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* --- Works: 3列 --- */
  .works__grid { grid-template-columns: repeat(3, 1fr); }

  /* --- Partner --- */
  .partner__box { padding: 60px 56px; }
  .partner__text { font-size: 16px; max-width: 760px; margin: 0 auto 32px; }

  /* --- About: 2カラム --- */
  .about__grid { grid-template-columns: 360px 1fr; align-items: center; gap: 48px; }
  .about__lead { font-size: 24px; }
  .about__text { font-size: 15.5px; }

  /* --- Contact --- */
  .contact-form { padding: 44px 48px; }

  /* PC ではフローティングCTA非表示 */
  .floating-cta { display: none; }
}

@media (min-width: 1024px) {
  .hero__copy { font-size: 64px; }
  .section__title { font-size: 38px; }
  .why__grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   ============   Legal pages (privacy / tokushoho)   ======
   ========================================================= */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 14px rgba(15, 46, 77, .08);
  backdrop-filter: saturate(160%) blur(8px);
}
.legal-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-header__brand { display: flex; align-items: center; gap: 10px; }
.legal-header__brand img {
  height: 38px; width: 38px;
  object-fit: cover; border-radius: 50%;
  background: #fff;
}
.legal-header__name {
  display: flex; flex-direction: column; line-height: 1.05;
  font-size: 18px; font-weight: 800; color: var(--navy);
}
.legal-header__name small {
  font-size: 9px; font-weight: 600; letter-spacing: .18em;
  color: var(--teal-deep); margin-top: 2px;
}
.legal-header__back {
  font-size: 13px; font-weight: 700; color: var(--teal-deep);
  border: 1.5px solid rgba(47, 140, 151, .4);
  border-radius: 999px; padding: 8px 16px;
  transition: background .2s ease, color .2s ease;
}
.legal-header__back:hover { background: var(--teal-deep); color: #fff; }

.legal-hero {
  background: var(--grad-navy);
  color: #fff;
  padding: 48px 22px 40px;
  text-align: center;
}
.legal-hero__label {
  font-size: 12px; letter-spacing: .22em; font-weight: 700;
  color: var(--teal-bright); text-transform: uppercase; margin-bottom: 10px;
}
.legal-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: .04em; }

.legal-main { padding: 44px 0 64px; }
.legal-main .container { max-width: 860px; }

.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: 18px; font-weight: 800; color: var(--navy);
  padding-left: 14px; margin-bottom: 14px;
  border-left: 4px solid var(--teal);
}
.legal-section h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 18px 0 8px; }
.legal-section p { font-size: 14.5px; color: var(--text-mut); margin-bottom: 12px; }
.legal-section ul { margin: 0 0 12px; padding-left: 0; }
.legal-section ul li {
  position: relative; font-size: 14.5px; color: var(--text-mut);
  padding: 4px 0 4px 20px;
}
.legal-section ul li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}

/* 情報テーブル（特商法表記） */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: 16px 18px; font-size: 14.5px;
  border-bottom: 1px solid var(--bg-line);
}
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 38%; background: var(--bg-soft);
  color: var(--navy); font-weight: 700;
}
.legal-table td { color: var(--text); }

.legal-meta { font-size: 13px; color: var(--text-mut); margin-top: 28px; }

.legal-footer {
  background: var(--navy-deep);
  color: rgba(207, 224, 238, .6);
  text-align: center;
  padding: 26px 18px;
  font-size: 12px;
}
.legal-footer a { color: var(--text-light); font-weight: 700; }

@media (min-width: 768px) {
  .legal-hero { padding: 64px 22px 52px; }
  .legal-hero h1 { font-size: 30px; }
  .legal-section h2 { font-size: 20px; }
  .legal-table th { width: 32%; }
}
