@charset "UTF-8";

/* Layout: ロゴに合わせた配色とモチーフ — 青→緑のグラデーション、うろこ模様、医療の十字、ロゴ下のスウッシュ */
:root {
  --ink: #173a4a;          /* deep marine: text */
  --ink-soft: #4d6873;
  --ground: #f4fafa;       /* pale aqua */
  --surface: #ffffff;
  --line: #d5e8ec;
  --blue: #1d6f99;         /* primary (文字・ボタンに使える濃さ) */
  --blue-deep: #144f6e;
  --green-ink: #2b7a4f;    /* 文字用の緑 */
  --brand-blue: #3794bf;   /* ロゴの青 */
  --brand-sky: #62b3ce;    /* ロゴ「Run」の水色 */
  --brand-green: #5caf7d;  /* ロゴ「Care」の緑 */
  --sky-soft: #e4f3f8;
  --green-soft: #e6f4ec;
  --mark: #fff2c7;         /* placeholder highlight */
  --brand-grad: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
  --ink-grad: linear-gradient(120deg, var(--blue), var(--green-ink));
  --scales: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='1.5'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0M24 12a24 24 0 0 1 48 0'/%3E%3C/g%3E%3C/svg%3E");

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-latin: "Fredoka", "Zen Maru Gothic", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  --step-4: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);

  --radius: 24px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  /* 日本語の改行：行頭に「ー」「ッ」や句読点を置かず、文節の途中で折り返さない（auto-phrase は Chrome/Edge） */
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
/* 最終行が1〜2文字だけになるのを防ぐ */
p, li, dd, th, td, caption, label, summary { text-wrap: pretty; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.4;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
  /* 見出しは語の途中で折らない。Safari などは句読点と <wbr> の位置で折り返す */
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
p { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* 見出しを語のまとまりの途中で改行させない */
.phrase { display: inline-block; }

/* 要入力箇所の目印（公開前に削除・差し替え） */
.placeholder {
  background: var(--mark);
  border-radius: 4px;
  padding-inline: 0.3em;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.7em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
/* ホバーで色面が左から流れ込む */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill, var(--blue-deep));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary {
  --fill: var(--green-ink);
  background: var(--ink-grad);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(29, 111, 153, 0.6);
}
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(29, 111, 153, 0.7); }
.btn-ghost { --fill: var(--blue); border-color: var(--blue); color: var(--blue); background: var(--surface); }
.btn-ghost:hover { color: #fff; }
.btn-light { --fill: var(--blue-deep); background: #fff; color: var(--blue-deep); }
.btn-light:hover { color: #fff; }

/* 矢印が右へ抜けて、左から戻ってくる */
.btn-arrow {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  position: relative;
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-arrow::before,
.btn-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.btn-arrow::after { transform: translateX(-130%); }
:is(.btn, .circle-link, .about-card, .pagetop):hover .btn-arrow::before { transform: translateX(130%); }
:is(.btn, .circle-link, .about-card, .pagetop):hover .btn-arrow::after { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s ease, box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(23, 58, 74, 0.5); }
/* 下へスクロール中は隠し、上へ戻ると出す */
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { width: 48px; height: 48px; display: block; }
.logo-word { width: auto; height: 36px; display: block; }

.global-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.global-nav a { text-decoration: none; }
.global-nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta {
  background: var(--ink-grad);
  color: #fff;
  padding: 0.5em 1.2em;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1.2rem max(16px, env(safe-area-inset-left, 0px));
    font-size: var(--step-0);
    display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); }
  .global-nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
/* 写真を画面いっぱいに敷き、顔が写る上半分を残して下側にコピーを重ねる */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(560px, calc(100svh - 72px), 900px);
  padding-block: 6rem clamp(5rem, 9vw, 7.5rem);
  overflow: hidden;
  color: #fff;
  background: var(--blue-deep);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg.is-active { opacity: 1; animation: hero-zoom 8s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.12); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 44, 61, 0.92) 0%, rgba(12, 44, 61, 0.7) 30%, rgba(12, 44, 61, 0.15) 62%, transparent 80%),
    linear-gradient(100deg, rgba(20, 79, 110, 0.35), transparent 60%);
}
.hero-inner { width: 100%; }
.hero-copy { min-width: 0; display: grid; gap: 1.1rem; max-width: 62rem; }
.hero .lead { max-width: 32em; }
.eyebrow {
  font-family: var(--font-latin);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  justify-self: start;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  background: rgba(12, 44, 61, 0.6);
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.35;
  word-break: auto-phrase;
  text-shadow: 0 2px 24px rgba(8, 32, 45, 0.45);
}
.hero h1 em {
  font-style: normal;
  color: #fff;
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--brand-green) 85%, transparent) 64%);
}
.lead { color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero .btn-ghost { --fill: #fff; background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; backdrop-filter: blur(4px); }
.hero .btn-ghost:hover { color: var(--blue-deep); }

.hero-tags {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag {
  display: grid;
  padding: 0.45rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 4px solid var(--lane, #fff);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.tag b { font-family: var(--font-display); font-size: 0.92rem; color: #fff; }
.tag-kids { --lane: var(--brand-sky); }
.tag-school { --lane: var(--brand-blue); }
.tag-fit { --lane: var(--brand-green); }

/* ロゴ下のスウッシュを区切り線に */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  display: block;
  width: 100%;
  height: clamp(32px, 5vw, 60px);
}
.hero-wave-fill { fill: var(--surface); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.section-label::before {
  content: "";
  width: 1.6rem; height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-grad);
}
.section-lead { max-width: 44em; color: var(--ink-soft); margin-bottom: 2.5rem; }
.note { font-size: var(--step--1); color: var(--ink-soft); }

/* About */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}
.about-body { display: grid; gap: 1.2rem; min-width: 0; max-width: 40em; }
.about-body strong { font-family: var(--font-latin); font-weight: 600; font-size: 1.2em; }
.about-body strong.run { color: var(--blue); }
.about-body strong.care { color: var(--green-ink); }
.about { position: relative; overflow: hidden; }
/* 背景にロゴ色のやわらかい光 */
.about::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 46rem; height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sky-soft) 0%, transparent 65%);
  pointer-events: none;
}
.about .wrap { position: relative; }
.about-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.about-head h2 { margin-bottom: 0; }
.about-intro {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 2.1;
}
.about-mark {
  font-weight: 700;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--brand-sky) 35%, transparent) 62%);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.about-card {
  --lane: var(--brand-blue);
  --lane-soft: var(--sky-soft);
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--lane-soft), var(--surface) 70%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(23, 58, 74, 0.45); }
.about-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--lane);
}
.about-card-fit { --lane: var(--brand-green); --lane-soft: var(--green-soft); }
.about-card-en {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lane);
}
.about-card-en span { font-size: 2.6rem; line-height: 1; }
.about-card h3 { font-size: var(--step-2); }
.about-card h3 small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  color: var(--green-ink);
}
.about-card > p:last-child { color: var(--ink-soft); }

.about-message {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem 3.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--scales), var(--ink-grad);
  color: #fff;
}
.about-message-label {
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.about-message h3 { font-size: var(--step-1); margin-bottom: 1.2rem; }
.about-quote {
  position: relative;
  padding-top: 2.2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
  line-height: 1.5;
  word-break: keep-all;
}
.about-quote::before {
  content: "\201C";
  position: absolute;
  top: -1.2rem; left: -0.3rem;
  font-family: var(--font-latin);
  font-size: 5.5rem;
  line-height: 1;
  opacity: 0.35;
}
.about-message-body { display: grid; gap: 1.2rem; align-content: center; }
.about-sign {
  justify-self: end;
  margin-top: 0.4rem;
  font-size: var(--step--1);
  opacity: 0.9;
}
.about-sign b {
  display: inline-block;
  white-space: nowrap;
  margin-left: 0.8em;
  font-family: var(--font-display);
  font-size: var(--step-1);
}
.values { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.2rem; }
.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}
.values span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1;
}
.values small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-0);
  color: var(--ink-soft);
}

/* Services */
.service-list { display: grid; gap: 2rem; }
.service {
  --lane: var(--brand-blue);
  --lane-soft: var(--sky-soft);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem 3rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-top: 8px solid var(--lane);
  box-shadow: 0 12px 30px -24px rgba(23, 58, 74, 0.5);
}
.service > * { min-width: 0; }
.service > :not(.service-head) { grid-column: 2; }
.service-head { grid-row: span 3; }
.service-kids { --lane: var(--brand-sky); }
.service-school { --lane: var(--brand-blue); }
.service-fit { --lane: var(--brand-green); --lane-soft: var(--green-soft); }
.service-age {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink);
  background: var(--lane-soft);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
  margin-bottom: 0.7rem;
}
.service h3 { font-size: var(--step-2); }
.photo-mask {
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  border-bottom: 6px solid var(--lane);
}
.service-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service:hover .service-photo { transform: scale(1.06); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.checks li { position: relative; padding-left: 1.8rem; }
/* ロゴ中央の十字をモチーフにした行頭マーク */
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 1rem; height: 1rem;
  background:
    linear-gradient(var(--lane), var(--lane)) center / 100% 36% no-repeat,
    linear-gradient(var(--lane), var(--lane)) center / 36% 100% no-repeat;
  border-radius: 3px;
}

/* メディカルフィットネス：開業準備中の告知 */
.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: #fff;
  background: var(--green-ink);
  border-radius: 999px;
  padding: 0.1rem 0.9rem;
  justify-self: start;
}
.coming-soon {
  background: var(--lane-soft);
  border-left: 5px solid var(--lane);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.coming-soon .coming-soon-badge { margin-bottom: 0.4rem; }
.service-kids .coming-soon-badge { background: var(--blue); }

.sns-box {
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
}
.sns-title { font-weight: 700; font-family: var(--font-display); }
.sns-links {
  display: grid;
  /* 2枚並べられない幅では縦に積む */
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 480px;
  gap: 1rem;
  margin: 0.8rem 0;
}
.sns-card {
  --brand-color: var(--lane);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 1rem 0.9rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
/* カード上辺にブランド色のライン */
.sns-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--sns-grad);
}
.sns-card:has(.sns-line) { --sns-grad: linear-gradient(120deg, #06b44c, #00873c); --brand-color: #00873c; }
.sns-card:has(.sns-insta) { --sns-grad: linear-gradient(120deg, #e1306c 0%, #c13584 45%, #833ab4 75%, #5851db 100%); --brand-color: #c13584; }
.sns-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-color) 40%, var(--line));
  box-shadow: 0 18px 30px -20px color-mix(in srgb, var(--brand-color) 70%, transparent);
}
.sns-qr { display: block; width: 100%; max-width: 160px; height: auto; border-radius: 10px; }
.sns-card .sns-link { width: 100%; gap: 0.45em; padding: 0.45em 1em 0.45em 0.45em; letter-spacing: 0.02em; }

/* SNSボタン：ブランド色の塗り＋光が走る＋矢印が出る */
.sns-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.5em 1.4em 0.5em 0.5em;
  border-radius: 999px;
  background: var(--sns-grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand-color) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, background-position 0.6s;
}
.sns-line { --sns-grad: linear-gradient(120deg, #06b44c, #00873c); --brand-color: #00873c; }
.sns-insta { --sns-grad: linear-gradient(120deg, #e1306c 0%, #c13584 45%, #833ab4 75%, #5851db 100%); --brand-color: #c13584; }
/* 白い丸の中にアイコン */
.sns-link svg {
  width: 2.1em;
  height: 2.1em;
  padding: 0.38em;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-color);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sns-line svg { fill: currentColor; }
/* 右端の矢印（ホバーで出てくる） */
.sns-link::after {
  content: "";
  width: 0.9em;
  height: 0.9em;
  margin-left: auto;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
  transition: transform 0.3s, opacity 0.3s;
}
/* 光の帯 */
.sns-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.sns-link:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 14px 24px -12px color-mix(in srgb, var(--brand-color) 95%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sns-link:hover svg { transform: rotate(-10deg) scale(1.08); }
.sns-link:hover::after { transform: translateX(4px); opacity: 1; }
.sns-link:active { transform: translateY(0) scale(0.97); }
.sns-link:focus-visible { outline: 3px solid var(--brand-color); outline-offset: 3px; }
.motion .sns-link:hover::before { transition: transform 0.7s ease; transform: translateX(120%); }
/* 動きを減らす設定のときは光の帯・回転なし */
html:not(.motion) .sns-link,
html:not(.motion) .sns-link svg,
html:not(.motion) .sns-card { transition: none; }
html:not(.motion) .sns-link:hover svg { transform: none; }

.timeline-wrap { margin-top: 0.5rem; }
.timeline-title { font-weight: 700; font-size: var(--step--1); margin-bottom: 0.6rem; }
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.timeline li {
  background: var(--ground);
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  font-size: var(--step--1);
  line-height: 1.5;
}
.timeline time {
  display: block;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* Flow */
.flow {
  background: var(--scales), linear-gradient(135deg, #0f3d55, #15524b);
  color: #fff;
}
.flow .section-label { color: #c4ecf7; }
.flow .section-label::before { background: linear-gradient(120deg, var(--brand-sky), var(--brand-green)); }
.flow .section-lead { color: #f0f8fa; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  /* 背景の模様や英字が透けないよう不透明の面にする */
  background: #0b2f42;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.steps li::before {
  content: "STEP " counter(step, decimal-leading-zero);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.1em;
  color: #b8f0d0;
}
.steps h3 { font-size: var(--step-2); color: #fff; }
.steps p { font-size: var(--step-0); color: #eaf5f8; line-height: 1.8; }

/* Fee */
.fee-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.fee-grid > div { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.fee-grid h2 { margin-bottom: 0.5rem; }
.table-scroll { overflow-x: auto; }
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.fee-table caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
  padding-bottom: 0.6rem;
}
.fee-table th, .fee-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table thead th { background: var(--blue-deep); color: #fff; font-size: var(--step--1); }
.fee-table tbody th { font-weight: 500; }
.fee-table td {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--blue);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fee-table tr:last-child > * { border-bottom: 0; }

/* News */
.news { background: var(--surface); }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.news-list time { font-family: var(--font-latin); font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news-list a { text-decoration: none; min-width: 0; }
.news-list a:hover { color: var(--blue); text-decoration: underline; }
.cat {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.8rem;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--blue);
}
.cat-event { background: var(--green-soft); color: var(--green-ink); }
.cat-recruit { background: var(--blue); color: #fff; }

/* Recruit */
.recruit {
  background: var(--scales), var(--ink-grad);
  color: #fff;
}
.recruit-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.recruit-inner > div { max-width: 36em; display: grid; gap: 1rem; }
.recruit h2 { font-size: var(--step-3); }
.recruit .section-label { color: #fff; }
.recruit .section-label::before { background: #fff; }

/* Company */
.company-table { margin: 0; border-top: 2px solid var(--blue); }
.company-table div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.company-table dt { font-weight: 700; color: var(--blue); }
.company-table dd { margin: 0; min-width: 0; }

/* Contact */
.contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}
.contact-grid > * { min-width: 0; }
.tel-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-soft), var(--green-soft));
  display: grid;
  gap: 0.3rem;
}
.tel-label { font-size: var(--step--1); font-weight: 700; }
.tel {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-2);
  color: var(--blue);
  justify-self: start;
}
.tel-hours { font-size: var(--step--1); justify-self: start; }

.contact-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 700; font-size: var(--step--1); }
.req {
  font-size: 0.7rem;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--ground);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}
.field.has-error input, .field.has-error select { border-color: #d0563f; }

/* 個人情報の同意 */
.privacy { font-size: var(--step--1); color: var(--ink-soft); }
.privacy summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.privacy p { margin-top: 0.4rem; padding: 0.8rem 1rem; background: var(--ground); border-radius: 12px; }
.field .consent { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-0); cursor: pointer; }
.field .consent input { width: 1.3rem; height: 1.3rem; padding: 0; flex-shrink: 0; accent-color: var(--green-ink); }
.field-consent.has-error .consent { color: #c4472a; }

/* 料金の後の申し込み導線 */
.cta-band {
  background: var(--scales), var(--ink-grad);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 2rem 3rem;
}
.cta-band-en { font-family: var(--font-latin); font-weight: 600; letter-spacing: 0.1em; color: #d8f5e4; }
.cta-band h2 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.cta-band p:last-child { color: #f0f8fa; max-width: 34em; }
.cta-band-actions { display: grid; gap: 0.9rem; justify-items: start; }
.cta-band .btn-primary { --fill: var(--blue-deep); background: #fff; color: var(--blue-deep); font-size: var(--step-1); min-height: 60px; padding-inline: 2em; }
.cta-band .btn-primary:hover { color: #fff; }
.cta-band-tel {
  display: grid;
  color: #fff;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.3;
  text-decoration: none;
}
.cta-band-tel small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: #e3f2f5; }
.cta-band-tel:hover { text-decoration: underline; }

/* スマホ用の固定ボタン（PCでは出さない） */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    padding: 0.6rem max(16px, env(safe-area-inset-right, 0px)) calc(0.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(23, 58, 74, 0.5);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-height: 50px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-cta-tel { padding-inline: 1.1em; border: 2px solid var(--blue); color: var(--blue); background: var(--surface); }
  .mobile-cta-tel svg { width: 1.2em; height: 1.2em; }
  .mobile-cta-main { background: var(--ink-grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(29, 111, 153, 0.7); }
  /* 固定ボタンにページ末尾やページトップボタンが隠れないように */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .pagetop { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .cta-band-inner { grid-template-columns: 1fr; }
}
.contact-form .btn { justify-self: start; }
.form-status { font-weight: 700; min-height: 1.5em; }
.form-status.is-error { color: #c4472a; }
.form-status.is-ok { color: var(--green-ink); }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--ground), var(--sky-soft));
  border-top: 4px solid transparent;
  border-image: var(--brand-grad) 1;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: var(--step--1); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.logo-footer .logo-mark { width: 64px; height: 64px; }
.logo-footer .logo-word { height: 44px; }
.footer-sns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-sns .sns-link { min-height: 44px; padding: 0.35em 1.1em 0.35em 0.4em; font-size: var(--step--1); }
.site-footer small { width: 100%; font-family: var(--font-latin); }

/* Scroll-in (content stays visible without JS) */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
  transition-delay: var(--d, 0s);
}
.reveal.is-pending { opacity: 0.001; transform: translateY(32px); }
/* 写真は横からワイプで現れる */
.photo-mask.reveal { transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1); }
.photo-mask.reveal.is-pending { opacity: 1; transform: none; clip-path: inset(0 0 0 100%); }
.photo-mask.reveal.is-pending .service-photo { transform: scale(1.25); }
.photo-mask.reveal .service-photo { transition-duration: 1.6s; }

/* ==========================================================
   Motion — 演出（html.motion は「動きを減らす」設定でない時だけ付く）
   ========================================================== */

/* Loader：ロゴが出て、白→グラデーションの順に幕が上がる */
.loader, .loader-curtain { display: none; }
.motion:not(.no-loader) .loader,
.motion:not(.no-loader) .loader-curtain {
  display: grid;
  position: fixed;
  inset: 0;
  place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.8, 0, 0.2, 1);
}
.motion .loader { z-index: 300; background: var(--surface); }
.motion .loader-curtain { z-index: 299; background: var(--scales), var(--ink-grad); transition-delay: 0.18s; }
.motion.is-loaded .loader,
.motion.is-loaded .loader-curtain { clip-path: inset(0 0 100% 0); pointer-events: none; }
.motion:not(.no-loader):not(.is-loaded) body { overflow: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 1rem; }
.loader-mark { width: 96px; height: 96px; animation: loader-mark 1.1s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
.loader-word { width: 150px; height: auto; animation: loader-fade 0.8s 0.4s ease both; }
.loader-bar {
  width: 160px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--brand-grad);
  transform-origin: left;
  animation: loader-bar 1.5s 0.2s cubic-bezier(0.6, 0, 0.2, 1) both;
}
@keyframes loader-mark { from { opacity: 0; transform: scale(0.4) rotate(-180deg); } }
@keyframes loader-fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes loader-bar { from { transform: scaleX(0); } }

/* Hero：見出しが1文字ずつ浮かび上がる */
.hero h1 .char { display: inline-block; }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.motion .hero h1 .char {
  opacity: 0;
  transform: translateY(0.7em) rotate(10deg);
  filter: blur(8px);
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s;
  transition-delay: calc(var(--i) * 45ms + 0.1s);
}
.motion.is-ready .hero h1 .char { opacity: 1; transform: none; filter: none; }
.hero h1 em { background-repeat: no-repeat; background-size: 100% 100%; }
.motion .hero h1 em { background-size: 0% 100%; transition: background-size 0.8s 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
.motion.is-ready .hero h1 em { background-size: 100% 100%; }

.motion :is(.eyebrow, .hero .lead, .hero-actions, .hero-tags, .hero-badge, .hero-pager) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion .eyebrow { transition-delay: 0s; }
/* ボタンを早めに出して、すぐ押せるようにする */
.motion .hero-actions { transition-delay: 0.35s; }
.motion .hero .lead { transition-delay: 0.5s; }
.motion .hero-tags { transition-delay: 0.65s; }
.motion .hero-badge, .motion .hero-pager { transition-delay: 0.8s; }
.motion.is-ready :is(.eyebrow, .hero .lead, .hero-actions, .hero-tags, .hero-badge, .hero-pager) { opacity: 1; transform: none; }

/* 回転するサークルバッジ */
.hero-badge {
  position: absolute;
  top: clamp(1.5rem, 5vw, 3.5rem);
  right: max(16px, 4vw);
  width: clamp(96px, 11vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}
.hero-badge text {
  fill: #fff;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 14px;
}
.hero-badge img {
  width: 44%;
  height: auto;
  border-radius: 50%;
  background: #fff;
  padding: 6%;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* スライドのページャー（進行バー付き） */
.hero-pager {
  position: absolute;
  right: max(16px, 4vw);
  bottom: clamp(4.5rem, 9vw, 7rem);
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}
.hero-count {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}
.hero-count b { font-size: var(--step-2); font-weight: 600; color: #fff; }
.hero-dots { display: flex; gap: 0.4rem; }
.hero-dot {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  align-items: center;
}
.hero-dot span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.hero-dot span::after {
  content: "";
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.is-active span::after { transform: scaleX(1); }
.motion .hero-dot.is-active span::after { animation: dot-progress var(--slide-ms, 6000ms) linear both; }
@keyframes dot-progress { from { transform: scaleX(0); } }

/* 流れつづける巨大な英字 */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 3rem);
  background: var(--ground);
}
.marquee-contact { background: var(--surface); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  padding-right: clamp(1.5rem, 3vw, 3rem);
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 1.1;
  white-space: nowrap;
  background: var(--ink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.marquee-track span.is-outline {
  background: none;
  -webkit-text-stroke: 1.5px var(--blue);
}
/* ロゴの十字 */
.marquee-cross {
  flex-shrink: 0;
  width: clamp(1.6rem, 3.5vw, 3rem);
  aspect-ratio: 1;
  background:
    linear-gradient(var(--brand-green), var(--brand-green)) center / 100% 34% no-repeat,
    linear-gradient(var(--brand-green), var(--brand-green)) center / 34% 100% no-repeat;
  animation: spin 8s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* セクション背景の大きな英字（スクロールで横に流れる） */
[data-bg] { position: relative; isolation: isolate; overflow: hidden; }
[data-bg]::before {
  content: attr(data-bg);
  content: attr(data-bg) / "";
  position: absolute;
  top: clamp(1rem, 3vw, 2.5rem);
  left: 0;
  z-index: -1;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: clamp(5rem, 17vw, 16rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand-blue) 16%, transparent);
  transform: translateX(var(--shift, 0px));
  pointer-events: none;
}
.flow[data-bg]::before { -webkit-text-stroke-color: rgba(255, 255, 255, 0.07); }

/* 見出しのマーカーがスッと引かれる */
.h2-mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--brand-sky) 32%, transparent) 62%) no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:is(.flow, .recruit) .h2-mark { background-image: linear-gradient(transparent 62%, rgba(169, 232, 196, 0.35) 62%); }
.motion .h2-mark { background-size: 0% 100%; transition: background-size 1s 0.25s cubic-bezier(0.7, 0, 0.2, 1); }
.motion .is-inview .h2-mark { background-size: 100% 100%; }

/* About カードの丸い矢印ボタン */
.circle-link {
  position: absolute;
  top: clamp(1.6rem, 4vw, 2.6rem);
  right: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--lane);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1.4);
}
.about-card:hover .circle-link { transform: scale(1.15); }

/* ページトップ（外周がスクロール量に合わせて伸びる） */
.pagetop {
  position: fixed;
  right: max(16px, 2vw);
  bottom: max(16px, 2vw);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 10px 24px -12px rgba(23, 58, 74, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pagetop circle { fill: none; stroke-width: 2.5; }
.pagetop-track { stroke: var(--line); }
.pagetop-ring {
  stroke: var(--green-ink);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--progress-rest, 1);
}
.pagetop .btn-arrow { transform: rotate(-90deg); }

/* マウスについてくるカーソル（マウス操作の端末のみ） */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--brand-blue);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s, height 0.3s, margin 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover {
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-color: transparent;
  background: color-mix(in srgb, var(--brand-green) 22%, transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .fee-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-head, .about-cards, .about-message { grid-template-columns: 1fr; }
  .about-head { gap: 1.2rem; }
  .about-sign { justify-self: start; }
  /* 縦長画面では写真を上部に置き、下の濃い面にコピーを載せる */
  .hero { padding-top: 46svh; min-height: 0; }
  .hero-bg { height: 58svh; object-position: 58% 30%; }
  .hero-slides { bottom: auto; height: 58svh; }
  .hero-badge { top: 1rem; }
  .hero-pager { top: calc(46svh - 4.5rem); bottom: auto; }
  .hero::before {
    background: linear-gradient(to bottom, transparent 0, transparent 26svh, rgba(12, 44, 61, 0.75) 44svh, #0c2c3d 58svh);
  }
  .service-photo { aspect-ratio: 16 / 9; }
  .service { grid-template-columns: 1fr; }
  .service > :not(.service-head) { grid-column: 1; }
  .service-head { grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { line-height: 1.85; }
  .header-inner { min-height: 64px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-word { height: 30px; }
  .hero h1 br { display: none; }
  .steps, .field-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .company-table div { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
