/* ================================================================
   shared.css — 介護タクシー フラネ 共通スタイル
   全ページ（index / about / contact）で使用
================================================================ */

/* ================================================================
   ROOT — Design Tokens
================================================================ */
:root {
  /* ロゴ由来パレット：アプリコットオレンジ × 黄緑 × ピンク × ブラウン */
  --orange-50:  #FEF8EF;
  --orange-100: #FBEBD4;
  --orange-200: #F8D8A8;
  --orange-300: #F4BE78;
  --orange-400: #F0A24C;
  --orange-500: #E68B33;
  --orange-600: #C97323;
  --orange-700: #9A5518;
  --orange-800: #693A10;

  --leaf-100: #F0F6DD;
  --leaf-300: #CFE49C;
  --leaf-500: #A6CC55;
  --leaf-600: #7FA83A;
  --leaf-700: #567A26;

  --pink-100: #FBE9EC;
  --pink-300: #F3BAC2;
  --pink-500: #E9939F;
  --pink-600: #D66E7D;
  --pink-700: #B24B5B;

  --cream:   #FFFCF4;
  --cream-2: #FBF6E9;
  --paper:   #F7F2E5;
  --bone:    #EFE9D8;

  --ink:       #45362A;
  --ink-soft:  #6E5C4A;
  --ink-mute:  #9A8A77;
  --ink-faint: #BFB3A2;

  --line:       #E8E0CB;
  --line-soft:  #F0EAD8;
  --line-faint: #F7F3E8;

  /* 書体は2ファミリーのみ（役割で使い分け）
     1. 見出し・本文・UI → --font-jp / --font-display（Noto Sans JP）
     2. 数字・英字       → --font-num（Manrope）          */
  --font-jp:      "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-display: var(--font-jp);
  --font-num:     "Manrope", "Inter", system-ui, sans-serif;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-xs:   0 1px 2px rgba(80,55,15,.06);
  --shadow-sm:   0 1px 2px rgba(80,55,15,.04), 0 4px 12px -4px rgba(80,55,15,.08);
  --shadow-md:   0 2px 4px rgba(80,55,15,.06), 0 12px 28px -10px rgba(80,55,15,.12);
  --shadow-lg:   0 4px 8px rgba(80,55,15,.05), 0 30px 60px -20px rgba(80,55,15,.18);
  --shadow-warm: 0 4px 14px -6px rgba(245,147,0,.18), 0 24px 48px -16px rgba(245,147,0,.20);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 36px);
}

/* ================================================================
   BASE RESET
================================================================ */
* { box-sizing: border-box }
*::selection { background: var(--orange-200); color: var(--ink) }
html { scroll-behavior: smooth }
html, body { margin: 0; padding: 0 }
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0 }
ul { list-style: none; padding: 0; margin: 0 }

/* ================================================================
   UTILITIES
================================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--orange-600);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange-500);
}
.eyebrow.center { justify-content: center }
.eyebrow.light { color: var(--orange-200) }
.eyebrow.light::before { background: var(--orange-300) }

.section-head { margin-bottom: clamp(48px, 6vw, 80px) }
.section-head.center { text-align: center }
.section-head.center .eyebrow { justify-content: center }
.section-head h2 {
  font-family: var(--font-jp);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .06em;
  color: var(--ink);
  margin: 18px 0 0;
}
.section-head h2 em {
  font-style: normal;
  color: var(--orange-500);
  background: linear-gradient(transparent calc(100% - 7px), var(--orange-200) calc(100% - 7px));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 2px;
}
.section-head .lead {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2;
}
.section-head.center .lead { text-align: center }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0 }
.btn-primary {
  background: linear-gradient(180deg, var(--orange-400), var(--orange-500));
  color: #fff;
  box-shadow: var(--shadow-warm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(245,147,0,.35), 0 30px 56px -12px rgba(245,147,0,.30);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--orange-400);
  color: var(--orange-600);
  transform: translateY(-1px);
}
.btn-ghost.green {
  color: var(--leaf-600);
  border: 1.5px solid var(--leaf-300);
}
.btn-ghost.green:hover {
  border-color: var(--leaf-600);
  color: var(--leaf-700);
  background: var(--leaf-100);
}

/* ================================================================
   HEADER
================================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(232,224,203,.4);
}
.site-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px }
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100% }

/* フッター：白角丸チップにロゴを載せて視認性確保 */
.footer-logo-chip {
  display: inline-flex;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.35);
}
.footer-logo-chip img {
  height: 96px;
  width: auto;
  display: block;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05 }
.brand-name .tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.brand-name .ja {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .06em;
  color: var(--ink);
  white-space: nowrap;
  margin-top: 1px;
}
.brand-name .en {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--leaf-600);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}
nav.primary { display: flex; gap: 4px; align-items: center }
nav.primary a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: color .2s, background .2s;
  line-height: 1.3;
  gap: 2px;
  white-space: nowrap;
}
nav.primary a:hover { color: var(--orange-600); background: var(--orange-50) }
nav.primary a .sub {
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .25em;
  color: var(--ink-faint);
  font-weight: 600;
}
/* アクティブナビ */
nav.primary a.active {
  color: var(--leaf-600);
  background: var(--leaf-100);
  position: relative;
}
nav.primary a.active .sub { color: var(--leaf-600) }
nav.primary a.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  background: var(--leaf-500);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 18px }
.phone-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.phone-pill .num {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 24px;
  color: var(--orange-600);
  letter-spacing: .01em;
  white-space: nowrap;
}
.phone-pill .num svg { width: 19px; height: 19px; color: var(--orange-500) }
.phone-pill .hours {
  font-size: 10.5px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: .04em;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-500));
  color: #fff;
  height: 52px;
  padding: 0 22px 0 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-warm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  white-space: nowrap;
}
.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(245,147,0,.4);
}
.btn-contact .cic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.btn-contact .cic svg { width: 18px; height: 18px }
.btn-contact .ctxt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}
.btn-contact .ctxt small {
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .25em;
  font-weight: 600;
  opacity: .85;
  margin-top: 2px;
}
/* お問い合わせページでアクティブ時 */
.btn-contact.current {
  background: linear-gradient(180deg, var(--leaf-500), var(--leaf-600));
  box-shadow: 0 4px 16px -4px rgba(79,139,54,.45);
}

/* ================================================================
   FOOTER
================================================================ */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 80px 0 32px;
}
footer.site .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
footer.site h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
footer.site h5::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--orange-400);
}
footer.site .brand { margin-bottom: 24px }
footer.site .brand-name .ja { color: #fff }
footer.site .brand-name .en { color: var(--orange-300) }
footer.site ul { display: flex; flex-direction: column; gap: 12px }
footer.site li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
footer.site li a:hover { color: var(--orange-300) }
footer.site li a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--orange-300);
  transition: width .25s;
}
footer.site li a:hover::before { width: 12px }
footer.site .info {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255,255,255,.65);
}
footer.site .info b { color: #fff; font-weight: 700 }
footer.site .info .phone {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-300);
  letter-spacing: .02em;
  display: block;
  margin: 8px 0;
}
footer.site .bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 16px;
  letter-spacing: .04em;
}
footer.site .bottom .legal { display: flex; gap: 24px }
footer.site .bottom .legal a:hover { color: rgba(255,255,255,.8) }

/* ================================================================
   PAGE HERO（下層ページ共通: about / contact）
================================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--paper) 0%, var(--bone) 100%);
  padding: clamp(56px,7vw,88px) 0 clamp(40px,5vw,56px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(122,172,96,.08), transparent 70%);
  pointer-events: none;
}
.pg-eyebrow {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--orange-600);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pg-eyebrow::before,
.pg-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange-400);
}
.page-hero h1 {
  font-family: var(--font-jp);
  font-size: clamp(38px,5.5vw,64px);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.3;
}
.pg-sub {
  font-size: 16px;
  color: var(--ink-mute);
  letter-spacing: .1em;
  margin: 0 0 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  margin-top: 22px;
}
.breadcrumb a { color: var(--ink-mute); transition: color .2s }
.breadcrumb a:hover { color: var(--orange-600) }
.breadcrumb .sep { color: var(--line) }

/* ================================================================
   SCROLL REVEAL（共通）
================================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* 基本：ふわっと下から */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22,.7,.3,1);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── 見出しは中の要素が順番に立ち上がる ───────────── */
  .section-head.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .section-head.reveal > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,.7,.3,1);
  }
  .section-head.reveal.in > * {
    opacity: 1;
    transform: translateY(0);
  }
  .section-head.reveal.in .eyebrow { transition-delay: .05s }
  .section-head.reveal.in h2      { transition-delay: .18s }
  .section-head.reveal.in .lead   { transition-delay: .34s }

  /* 見出しの下線（em の蛍光ペン）を後から伸ばす */
  .section-head.reveal h2 em {
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .9s cubic-bezier(.22,.7,.3,1) .5s;
  }
  .section-head.reveal.in h2 em { background-size: 100% 100% }

  /* ── ページ読み込み時：TOPのメインタイトル ────────── */
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(26px) }
    to   { opacity: 1; transform: translateY(0) }
  }
  @keyframes softIn {
    from { opacity: 0 }
    to   { opacity: 1 }
  }
  .hero h1        { animation: riseIn 1s cubic-bezier(.22,.7,.3,1) .15s both }
  .hero .lead     { animation: riseIn 1s cubic-bezier(.22,.7,.3,1) .45s both }
  .hero-visual img{ animation: softIn 1.4s ease .05s both }

  /* ── 下層ページのページタイトル ──────────────────── */
  .page-hero .pg-eyebrow { animation: riseIn .9s cubic-bezier(.22,.7,.3,1) .1s both }
  .page-hero h1          { animation: riseIn .9s cubic-bezier(.22,.7,.3,1) .25s both }
  .page-hero .pg-sub     { animation: riseIn .9s cubic-bezier(.22,.7,.3,1) .42s both }
  .page-hero .breadcrumb { animation: riseIn .9s cubic-bezier(.22,.7,.3,1) .58s both }
}

/* ================================================================
   MOBILE NAV（ハンバーガーメニュー）
================================================================ */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--cream-2);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.nav-toggle.open span:nth-child(2) { opacity: 0 }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 28px 48px -28px rgba(80,55,15,.3);
  padding: 8px var(--pad) 24px;
}
.mobile-nav.open { display: block }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-faint);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav a .sub {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.mobile-nav .m-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-500));
  color: #fff;
  border-bottom: none;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-warm);
}
.mobile-nav .m-tel svg { width: 17px; height: 17px }
.mobile-nav .m-tel small {
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 500;
  opacity: .9;
}
@media (min-width: 1181px) {
  .mobile-nav { display: none !important }
}

/* ================================================================
   RESPONSIVE（共通コンポーネント）
================================================================ */
@media (max-width: 1180px) {
  nav.primary { display: none }
  .nav-toggle { display: flex }
}
@media (max-width: 980px) {
  .phone-pill { display: none }
}
@media (max-width: 640px) {
  .btn-contact { padding: 0; width: 52px }
  .btn-contact .cic { margin: 0 }
  .btn-contact .ctxt { display: none }
  .brand-name .ja { font-size: 20px }
  .brand-mark { width: 42px; height: 42px }
  .brand-logo { height: 48px }
  .footer-logo-chip img { height: 78px }
}
@media (max-width: 900px) {
  footer.site .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  footer.site .footer-grid { grid-template-columns: 1fr }
}
