/* =============================================================
   Them. — 線画と淡いブルー  v3.0
   今治の海・空・橋を細い線で描く、上品で澄んだデザイン
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:        #2f5570;   /* 本文テキスト */
  --ink-strong: #1f3d54;   /* 見出し・フッター */
  --sub:        #52799a;   /* サブテキスト */
  --accent:     #3f97c4;   /* アクセント（大きな文字・線） */
  --accent-deep:#2f7fae;   /* 小さめテキストのアクセント */
  --pop:        #0d7fc2;   /* 差し色（CTA・バッジの塗り。彩度高めのブルー） */
  --pop-deep:   #0a689e;   /* --popのhover/濃色版 */
  --pop-tint:   #dcf0fb;   /* --popの淡色背景（バッジ用） */
  --art:        #7fb2cf;   /* 線画メインストローク */
  --art-soft:   #b7d8e8;   /* 線画サブストローク */
  --pale:       #f6fbfe;   /* ベース背景 */
  --tint:       #ecf6fb;   /* セクション背景 */
  --tint-2:     #e2f1f9;   /* 濃いめのセクション背景 */
  --white:      #ffffff;

  /* 暖色アクセント（ミュート系のみ。線とワンポイントに限定して使う） */
  --sun:        #e3aa4e;   /* ゴールド：太陽・宝石（線・ボーダー） */
  --sun-deep:   #a8761f;   /* ゴールド：小さいテキスト */
  --sun-tint:   #fbf3e1;   /* ゴールド：淡背景 */
  --coral:      #e59a86;   /* コーラル：肉球・ふれあい（線・ボーダー） */
  --coral-deep: #c05f4a;   /* コーラル：小さいテキスト */
  --coral-tint: #fdefe9;   /* コーラル：淡背景 */
  --leaf:       #9ccaa9;   /* セージ：島・安らぎ（線・ボーダー） */
  --leaf-deep:  #46845c;   /* セージ：小さいテキスト */
  --leaf-tint:  #eef7f0;   /* セージ：淡背景 */
  --cream:      #fdf9f0;   /* 暖色の淡ベース背景 */

  --hair:   1px solid rgba(63, 124, 161, .22);
  --hair-w: 1.5px solid rgba(63, 124, 161, .35);
  --shadow: 0 12px 36px rgba(47, 85, 112, .07);
  --shadow-lift: 0 20px 44px rgba(47, 85, 112, .12);

  --r-lg: 24px;
  --r-md: 16px;

  --font-en: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --font-script: 'Sacramento', cursive;

  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);

  --pad-x: clamp(20px, 5vw, 64px);
  --max-w: 1140px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { cursor: pointer; touch-action: manipulation; }
button { font-family: inherit; border: none; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Arkhe リセット */
.l-main { max-width: none !important; padding: 0 !important; }

/* ---------- 日本語の折り返し制御 ---------- */
/* 見出し・リード文は文節単位で折り返す（Chrome系。非対応ブラウザは通常折返し） */
.them-hero__title, .them-sec__title, .them-svc-card__title, .them-vision__lead,
.them-cta__title, .them-page__title, .them-page__section h3,
.them-hero__lead, .them-sec__sub, .them-svc-card__lead, .them-mission__lead,
.them-cta__sub, .them-page__lead, .them-feature__text, .them-process__body,
.them-base__name, .them-base__sub, .them-location__name, .them-location__sub {
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* 途中で切りたくない短いフレーズ用 */
.nb { display: inline-block; }

.them-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* =============================================================
   LOADER
   ============================================================= */
.them-loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity .6s var(--smooth), visibility .6s;
}
.them-loader.is-hidden { opacity: 0; visibility: hidden; }
.them-loader__logo {
  font-family: var(--font-script); font-weight: 400; font-size: 60px; color: var(--ink-strong);
  line-height: 1;
}
.them-loader__logo em { font-style: normal; color: var(--coral); }
.them-loader__img {
  width: clamp(150px, 24vw, 210px); height: auto;
  animation: themLoaderFloat 2.4s ease-in-out infinite;
}
@keyframes themLoaderFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.them-loader__paw { animation: themPawBounce .9s var(--spring) infinite alternate; }
@keyframes themPawBounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* =============================================================
   NAV（フローティングピル）
   ============================================================= */
.them-nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), var(--max-w));
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 24px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--hair);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .4s var(--smooth);
}
.them-nav.is-away { transform: translateX(-50%) translateY(-180%); }
.them-nav__logo {
  color: var(--ink-strong);
  margin-right: auto;
  display: flex; align-items: center; gap: 10px;
}
.them-nav__script {
  font-family: var(--font-script); font-weight: 400; font-size: 31px; line-height: .9;
  transform: translateY(-3px);
}
.them-nav__script em, .them-nav__logo em { font-style: normal; color: var(--coral); }
.them-nav__logo svg { transition: transform .35s var(--spring); }
.them-nav__logo:hover svg { transform: rotate(-12deg); }
.them-nav__img {
  height: 58px; width: auto;
  margin: -6px 0;   /* ピルの高さは増やさず、ロゴだけ大きく見せる */
  transition: transform .35s var(--spring);
}
.them-nav__logo:hover .them-nav__img { transform: scale(1.06) rotate(-3deg); }
.them-nav__links { display: flex; gap: 2px; }
.them-nav__links a {
  font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
  padding: 10px 14px; border-radius: 999px;
  transition: color .2s, background .25s;
}
.them-nav__links a:hover { color: var(--accent-deep); background: var(--tint); }
.them-nav__links a.is-current { color: var(--accent-deep); background: var(--tint); }
.them-nav__cta {
  font-size: 13.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink);
  border: var(--hair-w); border-radius: 999px; padding: 10px 20px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--spring);
}
.them-nav__cta:hover { background: var(--pop); border-color: var(--pop); color: #fff; transform: translateY(-2px); }
.them-nav__hb {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: var(--hair-w); background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  flex-shrink: 0;
  transition: background .25s;
}
.them-nav__hb:hover { background: var(--tint); }
.them-nav__hb span {
  width: 17px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--spring), opacity .2s;
}
body.menu-open .them-nav__hb span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .them-nav__hb span:nth-child(2) { opacity: 0; }
body.menu-open .them-nav__hb span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================================
   フルスクリーンメニュー
   ============================================================= */
.them-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(246, 251, 254, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity .35s, transform .45s var(--smooth), visibility .35s;
}
.them-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.them-menu__link {
  font-weight: 500; font-size: clamp(22px, 6vw, 32px); letter-spacing: .06em;
  color: var(--ink-strong); padding: 10px 20px; text-align: center;
  transition: color .25s, transform .3s var(--spring);
}
.them-menu__link em {
  display: block; font-family: var(--font-en); font-style: normal; font-weight: 400;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--art);
}
.them-menu__link:hover { color: var(--accent); transform: translateY(-3px); }
.them-menu__foot { margin-top: 30px; color: var(--sub); font-size: 12px; letter-spacing: .12em; }
.them-menu__wave { position: absolute; bottom: 40px; left: 0; width: 100%; pointer-events: none; }

/* =============================================================
   HERO — 線で描く今治
   ============================================================= */
.them-hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #eef8fd 0%, var(--white) 46%, #f2f9fd 100%);
  padding: 150px var(--pad-x) 190px;
}
.them-hero__inner {
  position: relative; z-index: 6;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}

/* 太陽（線画・ゴールド） */
.them-sun {
  position: absolute; top: clamp(90px, 12vh, 150px); right: clamp(5%, 10vw, 14%);
  width: clamp(80px, 10vw, 130px); height: clamp(80px, 10vw, 130px);
  z-index: 1;
}
.them-sun::before {
  content: ''; position: absolute; inset: -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 170, 78, .16) 0%, rgba(227, 170, 78, 0) 68%);
  pointer-events: none;
}
.them-sun__core {
  position: absolute; inset: 22%;
  border: 2px solid var(--sun); border-radius: 50%;
  animation: themSunPulse 5s ease-in-out infinite;
}
.them-sun__rays { position: absolute; inset: 0; width: 100%; height: 100%; animation: themSpin 40s linear infinite; }
@keyframes themSpin { to { transform: rotate(360deg); } }
@keyframes themSunPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: .75; }
}

/* 雲（線画） */
.them-cloud {
  position: absolute; z-index: 2;
  animation: themDrift linear infinite;
}
.them-cloud--1 { top: 13%; left: -180px; animation-duration: 62s; }
.them-cloud--2 { top: 28%; left: -260px; animation-duration: 84s; animation-delay: -34s; scale: .68; opacity: .7; }
.them-cloud--3 { top: 7%;  left: -220px; animation-duration: 74s; animation-delay: -55s; scale: .5; opacity: .5; }
@keyframes themDrift { to { translate: calc(100vw + 460px) 0; } }

/* 島と橋（線画シルエット） */
.them-hero__islands {
  position: absolute; left: 0; right: 0; bottom: 80px; z-index: 3;
  width: 100%; pointer-events: none;
}
.them-hero__islands svg { width: 100%; height: auto; display: block; }

/* 波（線のみ・3層ドリフト） */
.them-waves {
  position: absolute; left: 0; right: 0; z-index: 4;
  pointer-events: none; overflow: hidden;
}
.them-waves svg { display: block; width: 200%; height: clamp(40px, 7vw, 80px); }
.them-waves--back  { bottom: 92px; opacity: .5; }
.them-waves--mid   { bottom: 52px; opacity: .75; }
.them-waves--front { bottom: 14px; }
.them-waves--back svg  { animation: themWave 17s linear infinite; }
.them-waves--mid svg   { animation: themWave 12s linear infinite reverse; }
.them-waves--front svg { animation: themWave 9s  linear infinite; }
@keyframes themWave { to { transform: translateX(-50%); } }

/* 船（線画） */
.them-boat {
  position: absolute; z-index: 3; bottom: 96px; left: 12%;
  animation: themBob 5s ease-in-out infinite;
}
@keyframes themBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-8px) rotate(1.5deg); }
}

/* コピー */
.them-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .14em;
  color: var(--sub);
  margin-bottom: 30px;
}
.them-hero__eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--art); }
.them-hero__eyebrow em { font-family: var(--font-en); font-style: normal; font-weight: 400; color: var(--accent-deep); letter-spacing: .22em; }
.them-hero__title {
  margin: 0 0 28px;
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 700; line-height: 1.24; letter-spacing: .02em;
  color: var(--ink-strong);
}
.them-hero__title .accent { color: var(--accent); position: relative; display: inline-block; }
.them-hero__title .accent::after {
  content: ''; position: absolute; left: 1%; right: 1%; bottom: -.02em; height: 2px;
  background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  animation: themUnderline .7s var(--smooth) 1.25s forwards;
}
@keyframes themUnderline { to { transform: scaleX(1); } }

/* 1文字ずつふわっと（JSで .char に分割） */
.them-hero__title .char {
  display: inline-block;
  animation: themCharIn .7s var(--smooth) both;
  animation-delay: calc(.3s + var(--i) * .04s);
}
@keyframes themCharIn {
  from { opacity: 0; transform: translateY(.4em); }
  to   { opacity: 1; transform: none; }
}

.them-hero__lead {
  max-width: 500px; font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 2.2; color: var(--sub); margin: 0 0 40px;
}
.them-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ヒーローのロゴアート（背景透過PNG） */
.them-hero__logoart {
  position: absolute; right: 1%; top: 50%; translate: 0 -54%; z-index: 5;
  width: clamp(300px, 32vw, 440px);
  animation: themFloatP 8s ease-in-out infinite;
  pointer-events: none;
}
.them-hero__logoart img { width: 100%; height: auto; opacity: 0.8; }

/* フローティング写真（細線フレーム） */
.them-hero__photos {
  position: absolute; right: 0; top: 50%; z-index: 5;
  width: clamp(280px, 30vw, 400px); height: 0;
}
.them-polaroid {
  position: absolute;
  background: #fff; border: var(--hair); border-radius: 6px;
  padding: 8px 8px 30px; box-shadow: var(--shadow);
}
.them-polaroid__float { animation: themFloatP 8s ease-in-out infinite; }
.them-polaroid img { border-radius: 3px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.them-polaroid__tag {
  position: absolute; bottom: 8px; left: 12px;
  font-family: var(--font-en); font-weight: 400; font-size: 11px; letter-spacing: .24em; color: var(--art);
}
.them-polaroid--1 { width: 58%; right: 34%; top: -180px; transform: rotate(-3deg); z-index: 2; }
.them-polaroid--2 { width: 50%; right: 0; top: -50px; transform: rotate(2.5deg); }
.them-polaroid--2 .them-polaroid__float { animation-delay: -3.6s; }
@keyframes themFloatP {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
.them-sticker {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .9); color: var(--coral-deep);
  font-family: var(--font-en); font-weight: 400; font-size: 11.5px; letter-spacing: .2em;
  border: 1.5px solid var(--coral); border-radius: 999px;
  padding: 8px 16px;
  animation: themWiggle 4s ease-in-out infinite;
}
.them-sticker--hero { right: 22%; top: 34px; }
@keyframes themWiggle {
  0%, 100% { rotate: -1.5deg; }
  50%      { rotate: 2deg; }
}

/* スクロールサイン */
.them-hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-en); font-weight: 400; font-size: 10.5px; letter-spacing: .34em;
  color: var(--art);
}
.them-hero__scroll span { display: inline-flex; animation: themBob 2.4s ease-in-out infinite; }

/* =============================================================
   ボタン
   ============================================================= */
.them-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-jp); font-weight: 500; font-size: 14.5px; letter-spacing: .06em;
  color: var(--ink-strong); background: transparent;
  border: 1.5px solid var(--ink-strong); border-radius: 999px;
  padding: 15px 32px;
  transition: transform .3s var(--spring), background .3s, color .3s, box-shadow .3s;
}
.them-btn:hover {
  background: var(--ink-strong); color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.them-btn:active { transform: translateY(0); }
.them-btn--ghost { border-color: rgba(63, 124, 161, .4); color: var(--ink); }
.them-btn--ghost:hover { background: var(--tint); color: var(--ink-strong); box-shadow: none; }
.them-btn--sun { background: var(--pop); color: #fff; border-color: var(--pop); }
.them-btn--sun:hover { background: var(--pop-deep); border-color: var(--pop-deep); }
.them-btn__arrow { display: inline-flex; transition: transform .3s var(--spring); }
.them-btn:hover .them-btn__arrow { transform: translateX(4px); }

/* =============================================================
   マーキー
   ============================================================= */
.them-marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--white); color: var(--art);
  padding: 18px 0;
  border-top: var(--hair);
  border-bottom: var(--hair);
  position: relative; z-index: 8;
}
.them-marquee--coral { background: var(--cream); color: #d3a558; border-color: rgba(227, 170, 78, .3); }
.them-marquee__track svg { color: var(--coral); }
.them-marquee__track {
  display: inline-flex; align-items: center;
  animation: themMarquee var(--mq-speed, 30s) linear infinite;
  will-change: transform;
}
.them-marquee--rev .them-marquee__track { animation-direction: reverse; }
.them-marquee__track span {
  font-family: var(--font-en); font-weight: 400; font-size: 14px; letter-spacing: .3em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 48px; padding-right: 48px;
}
.them-marquee__track svg { flex-shrink: 0; }
.them-marquee--coral .them-marquee__track svg { color: var(--sun); }
@keyframes themMarquee { to { transform: translateX(-50%); } }

/* =============================================================
   セクション共通
   ============================================================= */
.them-sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.them-sec__head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); position: relative; }
.them-sec__en {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-weight: 400; font-size: 12.5px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 20px;
}
.them-sec__en::before, .them-sec__en::after {
  content: ''; width: 30px; height: 1px; background: var(--art);
}
.them-sec__title {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 42px); font-weight: 700; line-height: 1.5; letter-spacing: .03em;
  color: var(--ink-strong);
}
.them-sec__title .accent { color: var(--accent); }
.them-sec__sub { margin: 20px auto 0; max-width: 560px; color: var(--sub); line-height: 2.2; font-size: 14.5px; }

/* 区切り（線の波） */
.them-divider { display: block; width: 100%; height: auto; margin: 0; position: relative; z-index: 5; }

/* =============================================================
   SERVICES — カード
   ============================================================= */
.them-services { background: var(--pale); }
.them-svc-list { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }

/* サービスごとのテーマカラー：01 いぬばり=コーラル / 02 エーデレミニス=ゴールド / 03 遺骨=セージ */
.them-svc-list > .them-svc-card:nth-child(1) { --svc: var(--coral); --svc-deep: var(--coral-deep); --svc-tint: var(--coral-tint); }
.them-svc-list > .them-svc-card:nth-child(2) { --svc: var(--sun);   --svc-deep: var(--sun-deep);   --svc-tint: var(--sun-tint); }
.them-svc-list > .them-svc-card:nth-child(3) { --svc: var(--leaf);  --svc-deep: var(--leaf-deep);  --svc-tint: var(--leaf-tint); }

.them-svc-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  background: #fff; border: var(--hair); border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 48px);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .35s var(--spring), box-shadow .35s;
}
.them-svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--svc, var(--art)); }
.them-svc-card:nth-child(even) .them-svc-card__media { order: 2; }

.them-svc-card__media { position: relative; }
.them-svc-card__img {
  border-radius: var(--r-md); overflow: hidden;
  border: var(--hair);
  aspect-ratio: 4 / 3;
}
.them-svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--smooth); }
.them-svc-card:hover .them-svc-card__img img { transform: scale(1.05); }
.them-svc-card__num {
  position: absolute; top: -16px; left: -12px; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--svc, var(--art));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 400; font-size: 17px; letter-spacing: .06em;
  color: var(--svc-deep, var(--accent-deep));
  transition: transform .3s var(--spring);
  box-shadow: var(--shadow);
}
.them-svc-card:hover .them-svc-card__num { transform: scale(1.1); }
.them-svc-card__badge {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  background: var(--pop-tint); color: var(--pop-deep);
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  border: 1.5px solid var(--pop);
  border-radius: 999px;
  padding: 7px 14px;
}
.them-svc-card__en {
  font-family: var(--font-en); font-weight: 400; font-size: 12.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--svc-deep, var(--accent-deep)); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.them-svc-card__en::before { content: ''; width: 28px; height: 1px; background: var(--svc, var(--art)); }
.them-svc-card__title { margin: 0 0 16px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 700; line-height: 1.6; letter-spacing: .03em; color: var(--ink-strong); }
.them-svc-card__lead { margin: 0 0 26px; color: var(--sub); line-height: 2.2; font-size: 14.5px; }
.them-svc-card__link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 13.5px; letter-spacing: .06em; color: var(--ink-strong);
  border: 1.5px solid var(--ink-strong);
  border-radius: 999px; padding: 11px 24px;
  transition: background .25s, transform .3s var(--spring), color .25s;
}
.them-svc-card__link:hover {
  background: var(--svc-deep, var(--ink-strong)); border-color: var(--svc-deep, var(--ink-strong));
  color: #fff; transform: translateX(4px);
}

/* =============================================================
   MISSION
   ============================================================= */
.them-mission { background: var(--white); overflow: hidden; }
.them-mission__grid {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  max-width: 560px; margin: 0 auto; text-align: center;
}
.them-mission__lead { font-size: 15px; line-height: 2.4; color: var(--sub); margin: 0; }
.them-credit {
  padding-top: 24px; border-top: 1.5px solid var(--sun); width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.them-credit__role { font-size: 12px; color: var(--sub); letter-spacing: .06em; }
.them-credit__name { font-weight: 700; font-size: 18px; color: var(--ink-strong); letter-spacing: .04em; }

/* =============================================================
   VISION — 2拠点
   ============================================================= */
.them-vision { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%); }
.them-vision__lead { text-align: center; font-size: clamp(18px, 2.4vw, 24px); font-weight: 500; line-height: 2.2; letter-spacing: .04em; margin: 0 0 56px; color: var(--ink-strong); }
.them-vision__lead .accent { color: var(--accent); }
.them-bases {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 36px);
  max-width: 800px; margin: 0 auto;
}
.them-base {
  background: #fff; border: var(--hair); border-radius: var(--r-lg);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.them-base:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.them-base__label {
  display: inline-block;
  font-family: var(--font-en); font-weight: 400; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-deep); border: var(--hair-w); border-radius: 999px; padding: 5px 16px; margin-bottom: 16px;
}
/* 今治拠点はセージ（海と山）、hoverもそれぞれの色に */
.them-base--imabari .them-base__label { color: var(--leaf-deep); border: 1.5px solid var(--leaf); }
.them-base--imabari:hover { border-color: var(--leaf); }
.them-base:first-child:hover { border-color: var(--art); }
.them-base__name { font-weight: 700; font-size: 20px; color: var(--ink-strong); letter-spacing: .05em; }
.them-base__sub { font-size: 12.5px; color: var(--sub); margin-top: 10px; line-height: 1.9; letter-spacing: .04em; }
.them-bases__route { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--art); }
.them-bases__route svg { animation: themRouteSlide 2.6s ease-in-out infinite; }
@keyframes themRouteSlide {
  0%, 100% { transform: translateX(-3px); opacity: .7; }
  50%      { transform: translateX(3px); opacity: 1; }
}
.them-bases__route span { font-family: var(--font-en); font-size: 9.5px; font-weight: 400; letter-spacing: .26em; }

/* =============================================================
   CTA バンド
   ============================================================= */
.them-cta {
  background: linear-gradient(180deg, var(--tint) 0%, #f3f6ee 55%, #faf1e0 100%);
  position: relative; overflow: hidden; text-align: center;
}
.them-cta .them-wrap { position: relative; z-index: 2; }
.them-cta__title { color: var(--ink-strong); font-size: clamp(24px, 3.6vw, 36px); font-weight: 700; margin: 0 0 16px; line-height: 1.7; letter-spacing: .04em; }
.them-cta__sub { color: var(--sub); font-size: 14.5px; margin: 0 0 38px; line-height: 2.2; }
.them-cta__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.them-cta__bubbles i {
  position: absolute; bottom: -80px; border-radius: 50%;
  border: 1.5px solid var(--art-soft);
  animation: themRise linear infinite;
}
.them-cta__bubbles i:nth-child(3n)   { border-color: var(--sun); opacity: .55; }
.them-cta__bubbles i:nth-child(3n+2) { border-color: var(--coral); opacity: .55; }
@keyframes themRise {
  from { transform: translateY(0); opacity: .9; }
  to   { transform: translateY(-120vh) translateX(40px); opacity: 0; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.them-footer { background: var(--ink-strong); color: #fff; position: relative; padding: 76px 0 40px; }
.them-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: space-between; margin-bottom: 52px; }
.them-footer__logo { font-family: var(--font-script); font-weight: 400; font-size: 52px; line-height: .9; }
.them-footer__logo em { font-style: normal; color: var(--coral); }
/* 黒線ロゴPNGを紺背景用に白抜き反転 */
.them-footer__img {
  width: 132px; height: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.them-footer__tag { margin-top: 16px; font-size: 12.5px; color: #9dbdd2; line-height: 2.1; letter-spacing: .05em; }
.them-footer__nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.them-footer__nav a {
  font-size: 13px; font-weight: 400; letter-spacing: .06em; color: #c6dcea; padding: 6px 2px;
  transition: color .2s; display: inline-block;
  border-bottom: 1px solid transparent;
}
.them-footer__nav a:hover { color: #fff; border-bottom-color: var(--art); }
.them-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 26px;
  font-size: 11.5px; color: #8db0c7; letter-spacing: .06em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.them-footer__copy em { font-style: normal; font-family: var(--font-en); letter-spacing: .22em; }

/* =============================================================
   下層ページ
   ============================================================= */
.them-page__hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #eef8fd 0%, var(--white) 100%);
  padding: 180px var(--pad-x) 120px;
  text-align: center;
}
.them-page__hero .them-sun { top: 100px; right: 8%; scale: .7; }
.them-page__crumbs {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-en); font-size: 11px; font-weight: 400; letter-spacing: .24em;
  color: var(--art);
  margin-bottom: 24px; position: relative; z-index: 2;
}
.them-page__crumbs a { color: var(--accent-deep); }
.them-page__crumbs a:hover { color: var(--ink-strong); }
.them-page__title { margin: 0 auto 24px; font-size: clamp(25px, 5vw, 48px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; max-width: 900px; color: var(--ink-strong); position: relative; z-index: 2; }
.them-page__title em {
  display: block; font-style: normal;
  font-family: var(--font-en); font-weight: 400; font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: .4em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 18px;
}
.them-page__lead { max-width: 620px; margin: 0 auto; font-size: 14.5px; line-height: 2.3; color: var(--sub); position: relative; z-index: 2; }
.them-badge {
  display: inline-block; margin-bottom: 20px; position: relative; z-index: 2;
  background: var(--pop-tint); color: var(--pop-deep);
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  border: 1.5px solid var(--pop); border-radius: 999px; padding: 8px 18px;
  animation: themWiggle 4s ease-in-out infinite;
}

.them-page__hero-img {
  max-width: 960px; margin: -50px auto 0; position: relative; z-index: 6;
  padding: 0 var(--pad-x);
}
.them-page__hero-img img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  border: var(--hair); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}

.them-page__section { padding: clamp(64px, 8vw, 110px) 0; }
.them-page__section.is-tinted { background: var(--pale); }
.them-page__section h3 {
  font-size: clamp(21px, 2.8vw, 28px); font-weight: 700; letter-spacing: .04em; margin: 0 0 40px; line-height: 1.6;
  color: var(--ink-strong);
}
.them-page__section h3 em {
  display: flex; align-items: center; gap: 12px; font-style: normal;
  font-family: var(--font-en); font-weight: 400; font-size: 12px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px;
}
.them-page__section h3 em::before { content: ''; width: 28px; height: 1px; background: var(--art); }
.them-page__section p { line-height: 2.3; color: var(--sub); font-size: 14.5px; }

/* パートナー */
.them-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.them-partner {
  background: #fff; border: var(--hair); border-radius: var(--r-md);
  padding: 26px 24px; font-weight: 500; font-size: 15.5px; letter-spacing: .03em; color: var(--ink-strong);
  box-shadow: var(--shadow);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.them-partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.them-partner em {
  display: block; font-style: normal; font-family: var(--font-en); font-weight: 400;
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--art); margin-top: 10px;
}

/* 特徴 */
.them-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.them-feature {
  background: #fff; border: var(--hair); border-radius: var(--r-md);
  padding: 28px 26px; display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.them-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.them-feature__num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--art); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 400; font-size: 14px;
}
.them-feature__text { font-weight: 500; font-size: 15.5px; line-height: 1.7; color: var(--ink-strong); letter-spacing: .03em; }
.them-feature__sub { display: block; font-weight: 400; font-size: 13px; color: var(--sub); margin-top: 9px; line-height: 2; }

/* スペック */
.them-specs { margin: 0; display: grid; gap: 10px; }
.them-spec {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: #fff; border: var(--hair); border-radius: 999px;
  padding: 17px 30px;
  transition: transform .25s var(--spring), border-color .25s;
}
.them-spec:hover { transform: translateX(6px); border-color: var(--art); }
.them-spec dt { font-weight: 500; font-size: 14.5px; color: var(--ink-strong); letter-spacing: .04em; }
.them-spec dd { margin: 0; font-size: 13.5px; color: var(--accent-deep); text-align: right; letter-spacing: .03em; }

/* プロセス */
.them-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.them-process__step {
  background: #fff; border: var(--hair); border-radius: var(--r-md);
  padding: 26px; display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.them-process__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.them-process__num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--art); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 400; font-size: 14px;
}
.them-process__body h4 { margin: 6px 0 10px; font-size: 15.5px; font-weight: 500; color: var(--ink-strong); letter-spacing: .04em; }
.them-process__body p { margin: 0; font-size: 13px; line-height: 2; color: var(--sub); }

/* リンク行 */
.them-links { display: grid; gap: 10px; }
.them-link-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #fff; border: var(--hair); border-radius: 999px;
  padding: 18px 30px;
  transition: transform .25s var(--spring), border-color .25s, background .25s;
}
.them-link-row:hover { transform: translateX(6px); border-color: var(--art); background: var(--pale); }
.them-link-row__label { font-weight: 500; font-size: 14.5px; color: var(--ink-strong); letter-spacing: .04em; }
.them-link-row__url { font-family: var(--font-en); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--accent-deep); text-align: right; }

/* 拠点（remains） */
.them-locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.them-location {
  background: #fff; border: var(--hair); border-radius: var(--r-md);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.them-location:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.them-location__label {
  display: inline-block; font-family: var(--font-en); font-weight: 400; font-size: 10.5px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent-deep);
  border: var(--hair-w); border-radius: 999px; padding: 5px 15px; margin-bottom: 16px;
}
.them-location__name { font-weight: 700; font-size: 19px; color: var(--ink-strong); letter-spacing: .05em; }
.them-location__sub { font-size: 12.5px; color: var(--sub); margin-top: 9px; letter-spacing: .03em; }

/* ページごとのアクセントカラー（bodyクラスで切替：
   いぬばり=コーラル / エーデレミニス=ゴールド / 遺骨=セージ） */
body.them-accent--coral { --pg: var(--coral); --pg-deep: var(--coral-deep); }
body.them-accent--gold  { --pg: var(--sun);   --pg-deep: var(--sun-deep); }
body.them-accent--leaf  { --pg: var(--leaf);  --pg-deep: var(--leaf-deep); }

.them-page__title em { color: var(--pg-deep, var(--accent-deep)); }
.them-page__section h3 em { color: var(--pg-deep, var(--accent-deep)); }
.them-page__section h3 em::before { background: var(--pg, var(--art)); }
.them-feature__num, .them-process__num {
  border-color: var(--pg, var(--art));
  color: var(--pg-deep, var(--accent-deep));
}
.them-partner em { color: var(--pg, var(--art)); }
.them-spec:hover { border-color: var(--pg, var(--art)); }
.them-link-row:hover { border-color: var(--pg, var(--art)); }
.them-location__label { border-color: var(--pg, rgba(63, 124, 161, .35)); color: var(--pg-deep, var(--accent-deep)); }
.them-location:hover, .them-partner:hover, .them-feature:hover, .them-process__step:hover {
  border-color: var(--pg, var(--art));
}

/* =============================================================
   スクロールリビール
   ============================================================= */
.rv {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--smooth), transform .9s var(--smooth);
  transition-delay: var(--d, 0s);
}
.rv.is-in { opacity: 1; transform: none; }
.rv--pop { transform: translateY(24px) scale(.97); }
.rv--left { transform: translateX(-40px); }
.rv--right { transform: translateX(40px); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .them-hero__photos { display: none; }
  .them-hero__logoart { position: static; translate: none; width: clamp(180px, 40vw, 260px); margin: 0 auto 28px; }
  .them-nav__links { display: none; }
  .them-nav__hb { display: flex; }
}
@media (max-width: 768px) {
  .them-nav { top: 12px; padding: 8px 10px 8px 18px; }
  .them-nav__cta { display: none; }
  .them-nav__img { height: 50px; margin: -5px 0; }
  .them-link-row { flex-wrap: wrap; row-gap: 4px; }
  .them-link-row__url { word-break: break-all; text-align: left; }
  .them-hero { padding-top: 120px; padding-bottom: 160px; }
  .them-hero__lead { font-size: 14px; }
  .them-sticker--hero { display: none; }
  .them-svc-card { grid-template-columns: 1fr; gap: 22px; }
  .them-svc-card:nth-child(even) .them-svc-card__media { order: 0; }
  .them-svc-card__num { top: -14px; left: -6px; width: 46px; height: 46px; font-size: 14px; }
  .them-bases { grid-template-columns: 1fr; }
  .them-bases__route { rotate: 90deg; margin: -2px 0; }
  .them-boat { display: none; }
  .them-page__hero { padding-top: 140px; padding-bottom: 100px; }
  .them-page__hero .them-sun { display: none; }
  .them-page__hero-img { margin-top: -36px; }
  .them-spec { flex-direction: column; align-items: flex-start; gap: 6px; border-radius: var(--r-md); }
  .them-spec dd { text-align: left; }
  .them-footer__grid { flex-direction: column; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .them-hero__title .char { animation: none; opacity: 1; }
  .them-hero__title .accent::after { transform: scaleX(1); animation: none; }
}
