/* ------------------------------------------------------------------
   Reset & base
------------------------------------------------------------------ */
:root {
  --color-primary: #E2453C;
  --color-primary-dark: #C43A32;
  --color-primary-light: #F7D9D6;
  --color-text: #262626;
  --color-text-sub: #767676;
  --color-bg: #EDEDED;
  --color-panel: #FAFAFA;
  --color-border: #DDDDDD;
  --font-base: "Noto Sans JP", "Hiragino Sans", sans-serif;
  /* Figma指定: 日本語=Noto Sans JP / 英字・数字=Raleway / ヒーロー筆記体=Vujahday Script */
  --font-round: var(--font-base);
  --font-en: "Raleway", "Noto Sans JP", sans-serif;
  --font-script: "Vujahday Script", cursive;
  --container-w: 1200px;
  --header-h: 100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; /* 装飾円のはみ出しによる横スクロール防止(ビューポート端でのみ切る) */ }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dt, dd, figure { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }

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

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}

.sprite { display: none; }

/* ------------------------------------------------------------------
   Shared parts
------------------------------------------------------------------ */
.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .05em;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  padding: 4px 24px;
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(26px, 2.92vw, 42px); /* 42px @1440 */
  line-height: 1.4;
  letter-spacing: .05em;
}
.section-heading__en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(16px, 1.67vw, 24px); /* 24px @1440 */
  font-weight: 700;
  color: #333333;
  letter-spacing: .05em;
  margin-top: 8px;
}
.section-heading--center { text-align: center; }

@media (min-width: 900px) {
  .section-heading--group .section-heading__brand {
    display: block;
    font-size: 40px;
  }
  .section-heading--group.section-heading {
    font-size: 56px;
  }
  .section-heading__en {
    font-size: 56px;
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: clamp(18px, 1.67vw, 24px); /* 24px @1440 */
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}
.btn-more__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(226, 69, 60, .3);
}
.btn-more__circle svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: transparent;
  z-index: 500;
  transition: background-color .12s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.site-header__inner {
  height: 100%;
  padding: 0 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__mark {
  width: 170px;
  height: auto;
  transition: width .3s, transform .3s ease, opacity .3s ease;
}
.brand:hover .brand__mark {
  transform: scale(1.05);
  opacity: .85;
}

.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex;
  gap: 34px;
  align-items: center;
  flex-wrap: wrap;
}
.global-nav a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #333;
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--color-primary);
}
.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (min-width: 1251px) {
  .global-nav a { font-size: 17px; }
}
/* On the hero (transparent header over the red circle), hover in white instead of red */
@media (min-width: 900px) {
  .site-header:not(.is-scrolled) .global-nav a:hover,
  .site-header:not(.is-scrolled) .global-nav a:focus-visible {
    color: #fff;
  }
  .site-header:not(.is-scrolled) .global-nav a::after {
    background: #fff;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-actions__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease,
              background-color .25s ease, color .25s ease;
}
.header-actions__btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(226, 69, 60, .35);
}
.header-actions__btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.header-actions__btn--fill:hover {
  background: #fff;
  color: var(--color-primary);
}
.header-actions__btn svg { width: 20px; height: 20px; }
.header-actions__btn--outline {
  background: #fff;
  color: var(--color-primary);
}
.header-actions__btn--fill {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}
.site-header.is-scrolled .header-actions__btn--outline {
  background: #fff;
  border: 1px solid var(--color-primary-light);
}
.site-header.is-scrolled .header-actions__btn--fill {
  background: var(--color-primary);
}
.site-header.is-scrolled .header-actions__btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.site-header.is-scrolled .header-actions__btn--fill:hover {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 40px;
}
.menu-toggle__box {
  width: 24px;
  height: 18px;
  position: relative;
  display: block;
}
.menu-toggle__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform .25s, opacity .25s;
}
.menu-toggle__box span:nth-child(1) { top: 0; }
.menu-toggle__box span:nth-child(2) { top: 8px; }
.menu-toggle__box span:nth-child(3) { top: 16px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------
   Animations
------------------------------------------------------------------ */
/* 円(太陽)がふわっと広がりながら現れる出現 */
@keyframes heroCircleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* 円の色が初期色(朝焼け)から本来の色へ5秒かけて変化 */
@keyframes heroCircleColor {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* もや(ぼかし)の中から浮かび上がる出現 */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px) scale(1.02); filter: blur(14px); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Scroll reveal (class added by JS) */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__sub, .hero__company,
  .hero__scroll, .hero__circle,
  .hero__circle::after { animation: none !important; }
  .marquee span { animation: none; }
}

/* ------------------------------------------------------------------
   Hero  (design: circle r=718 center(1003,234) @1440)
------------------------------------------------------------------ */
/* Hero scales proportionally with viewport width (design base: 1440px).
   --hu(ヒーロー単位): 通常は1vwだが、横長で高さが足りない画面では1.6vh基準に
   切り替わり、ヒーロー全体(円・文字・ロゴ・SCROLL)が常に1画面内に収まる */
.hero {
  --hu: min(1vw, 1.55vh);
  --hu: min(1vw, 1.55svh);
  position: sticky;
  top: 0;
  height: calc(59.72 * var(--hu)); /* 860px @1440x900 */
  min-height: 560px;
  min-height: min(560px, 100svh); /* 画面高より大きくならない */
  background: #F2F2F2;
  z-index: 0;
}
.hero__circle {
  position: absolute;
  top: calc(-27.78 * var(--hu));   /* -400px @1440 */
  /* rightは--hu(高さにも依存)基準だとブラウザの高さで位置がずれるため、
     leftをビューポート幅のみで算出し、幅1440pxの時に左端が285pxになるよう固定 */
  left: calc(100vw - 1155px);
  width: calc(99.79 * var(--hu));  /* 1437px @1440 */
  height: calc(99.79 * var(--hu));
  border-radius: 50%;
  background: linear-gradient(45deg, #DB667A 0%, #F7988D 100%);
  z-index: 1;
  pointer-events: none;
  animation: heroCircleIn 1.6s ease-out both;
}
.hero__circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, #D21A0E 0%, #DB667A 50%, #F7988D 100%);
  animation: heroCircleColor 3s ease 2s both;
}

.hero__copy {
  position: absolute;
  right: calc(8.33 * var(--hu));  /* 120px @1440 — 円と同じ右端基準ではみ出しを防ぐ */
  top: calc(15.625 * var(--hu));  /* 225px @1440 */
  width: calc(59.375 * var(--hu)); /* 855px @1440 */
  text-align: center;
  z-index: 2;
}
.hero__title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(30px, calc(5.02 * var(--hu)), 74px); /* 70px @1440x900 */
  line-height: 1.8;
  color: #fff;
  letter-spacing: .05em;
  text-align: right;
  white-space: nowrap;
  animation: heroFadeUp 1.6s ease .4s both;
}
.hero__title mark {
  background: none;
  color: #fff;
  border-radius: 10px;
}
.hero__break--sp,
.hero__sub-break--sp,
.hero__company-break--sp { display: none; }
.hero__sub {
  margin-top: calc(2.78 * var(--hu));  /* 40px @1440 */
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(24px, calc(3.75 * var(--hu)), 54px); /* 54px @1440 */
  color: rgba(255, 226, 223, .85);
  letter-spacing: .05em;
  white-space: nowrap;
  animation: heroFadeUp 1.6s ease .8s both;
}
.hero__company {
  position: absolute;
  left: calc(8.33 * var(--hu));   /* 120px @1440 */
  top: calc(49.03 * var(--hu));   /* 706px @1440 */
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #1E1E1E;
  font-weight: 700;
  font-size: clamp(23px, calc(2.78 * var(--hu)), 40px); /* 40px @1440 */
  letter-spacing: .05em;
  z-index: 2;
  animation: heroFadeUp 1.6s ease 1.2s both;
}
.hero__company span { font-size: clamp(26px, calc(3.33 * var(--hu)), 48px); } /* 48px @1440 */

.hero__scroll {
  display: none;
  position: absolute;
  left: calc(3.05 * var(--hu));  /* 44px @1440 */
  bottom: calc(2.08 * var(--hu)); /* ヒーロー下端基準(=740px @1440)。縮小時も欠けない */
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: heroFadeUp 1.6s ease 1.9s both;
}
.hero__scroll-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
}
.hero__scroll-label {
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--color-primary);
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Page panel (rounded sheet under the hero)
------------------------------------------------------------------ */
.page-panel {
  position: relative;
  z-index: 1;
  /* 上端だけ半透明にして、下のヒーローが透けながら被さっていくように。
     .mvvのpadding-top(200px)までに完全な不透明になるよう距離を短縮
     — Mission見出し表示時にヒーローの文字が透けて重なるのを防ぐ。 */
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 250, .5) 0,
    rgba(250, 250, 250, .82) 85px,
    var(--color-panel) 200px
  );
  border-radius: 40px 40px 0 0;
  margin-top: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .08);
}

/* ------------------------------------------------------------------
   Mission / Vision / Value
------------------------------------------------------------------ */
.mvv { padding: 200px 0; }
.mvv .container { display: grid; gap: 190px; }

.mvv__item { position: relative; }
.mvv__item--mission { max-width: 800px; margin-left: 40px; }
.mvv__item--vision  { max-width: 780px; margin-left: auto; }
.mvv__item--value   { max-width: 800px; margin-left: 40px; }

.mvv__head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}
.mvv__heading {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(26px, 2.22vw, 32px); /* 32px @1440 */
  color: var(--color-primary);
  letter-spacing: .05em;
}
@media (min-width: 900px) {
  .mvv__heading {
    font-size: 48px;
  }
}
.mvv__text {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(15px, 1.46vw, 21px);
  line-height: 1.8;
  letter-spacing: .05em;
  color: #3A3A3A;
}

.mvv__ring {
  position: absolute;
  max-width: 55vw;
  height: auto;
  z-index: -1;
  pointer-events: none;
}
/* Figma実寸(vision.pdf 1440基準): Group78=Mission右 / Group79=Vision左 / Frame745=Value右 */
.mvv__ring--mission { width: 426px; right: -500px; top: -180px; }
.mvv__ring--vision  { width: 468px; left: -584px; top: -110px; }
.mvv__ring--value   { width: 478px; right: -470px; top: 255px; }

/* 701〜1100px: PCと同じ構図のまま、見える量を確保した中間配置 */
@media (min-width: 701px) and (max-width: 1100px) {
  .mvv__ring--mission { width: 330px; right: -140px; top: -190px; }
  .mvv__ring--vision  { width: 340px; left: -180px; top: 0; }
  .mvv__ring--value   { width: 340px; right: -140px; top: 420px; }
}

/* 3D円筒リング: 縦軸回転(rotateY)で文字が横に潰れながら回り込む。表=濃赤/裏=薄赤
   ── devツール調整用の変数(リング要素で上書き) ──
   --rz    : リング全体の画面上の回転
   --tilt  : 奥行きの見下ろし角(rotateX)
   --lean  : 文字を仰向けに寝かせる角度
   --r     : 円筒半径 / --fs: 文字サイズ / --persp: 遠近の強さ(小=強)
   --op    : リング全体の不透明度
   --gtilt : 文字の面内回転 / --gskew: 文字の斜体 / --gsx,--gsy: 文字の横・縦倍率
   --c-front / --c-back : 表・裏の文字色
   ── 帯(.ring3d__band)ごと ──
   --by: 上下位置 / --brz: 帯の傾き(鏡との接触角) / --phase: 回転の位相ずらし
   ── 回転部(.ring3d__rot) ──
   --dur: 一周の秒数 / --adir: normal|reverse(回転方向)
   ── 鏡(.ring3d__band--mirror) ──
   --mop: 反射の濃さ / --mblur: 反射のぼかし量 */
.ring3d {
  container-type: inline-size;
  transform: rotate(var(--rz, 0deg));
  opacity: var(--op, .85);
}
.ring3d__scene {
  position: absolute;
  inset: 0;
  perspective: var(--persp, 300cqw);
  transform-style: preserve-3d;
}
.ring3d__band {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translateY(var(--by, 0)) rotateZ(var(--brz, 0deg)) rotateX(var(--tilt, -26deg)) rotateY(var(--phase, 0deg));
}
/* 下段 = 鏡面反射: 上下反転+強ぼかしでほぼ読めない薄さ
   ── 鏡専用の変数(この帯のstyleで上書き。上の帯には影響しない) ──
   --m-x: 横位置 / --by: 縦位置 / --brz: 傾き / --m-tilt: 奥行き角
   --m-scale: 大きさ / --lean,--gtilt,--gskew,--gsx,--gsy,--r,--fs: この帯の文字だけに効く */
.ring3d__band--mirror {
  transform: translateX(var(--m-x, 0px)) translateY(var(--by, 0)) scaleY(-1)
             rotateY(var(--m-yaw, 0deg))
             rotateZ(var(--brz, 0deg)) rotateX(var(--m-tilt, var(--tilt, -26deg)))
             rotateY(var(--phase, 0deg)) scale(var(--m-scale, 1));
  /* 注意: ここにopacityを書くと3Dが平面化される(CSS仕様)。薄さは文字側の--mopで制御 */
}
.ring3d__band--mirror .ring3d__f,
.ring3d__band--mirror .ring3d__b {
  opacity: var(--mop, .5);
}
.ring3d__band--mirror .ring3d__f {
  color: transparent;
  text-shadow:
    0 0 var(--mblur, 16px) rgba(223, 42, 60, .68),
    0 0 calc(var(--mblur, 16px) * 2) rgba(223, 42, 60, .38),
    0 0 calc(var(--mblur, 16px) * 3.6) rgba(223, 42, 60, .22);
}
.ring3d__band--mirror .ring3d__b {
  color: transparent;
  text-shadow:
    0 0 calc(var(--mblur, 16px) + 2px) rgba(242, 167, 173, .6),
    0 0 calc(var(--mblur, 16px) * 2.2) rgba(242, 167, 173, .34),
    0 0 calc(var(--mblur, 16px) * 3.8) rgba(242, 167, 173, .2);
}
.ring3d__rot {
  position: absolute;
  transform-style: preserve-3d;
  animation: ring3dSpin var(--dur, 34s) linear infinite;
  animation-direction: var(--adir, normal);
}
@keyframes ring3dSpin {
  from { transform: rotateY(360deg); }
  to   { transform: rotateY(0deg); }
}
.ring3d__slot {
  position: absolute;
  transform-style: preserve-3d;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: var(--fs, 9.9cqw);
  line-height: 1;
}
.ring3d__f,
.ring3d__b {
  position: absolute;
  backface-visibility: hidden;
}
.ring3d__f {
  color: var(--c-front, #DF2A3C);
  transform: translate(-50%, -50%) rotateZ(var(--gtilt, 0deg)) skewX(var(--gskew, 0deg)) scale(var(--gsx, 1), var(--gsy, 1));
}
.ring3d__b {
  transform: translate(-50%, -50%) rotateY(180deg) rotateZ(var(--gtilt, 0deg)) skewX(var(--gskew, 0deg)) scale(var(--gsx, 1), var(--gsy, 1));
  color: var(--c-back, rgba(242, 167, 173, .9));
  text-shadow: 0 0 5px var(--c-back, rgba(242, 167, 173, .8));
}
.ring3d__b > span { display: block; transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  .ring3d__rot { animation: none; }
}

.value-list {
  display: grid;
  gap: 20px;
}
.value-list h3 {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(20px, 2.08vw, 30px); /* 30px @1440 */
  line-height: 1.8;
  letter-spacing: .05em;
}
.value-list h3 span {
  font-family: var(--font-en);
}
.value-list p {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: .05em;
  line-height: 1.8;
}

/* ------------------------------------------------------------------
   Group Company
------------------------------------------------------------------ */
.group-company {
  position: relative;
  padding: 90px 0 200px;
  background: #EFEFEF;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

/* 相関図(PC実寸: マップ領域1200x780 @1440 を%換算) */
.group-map {
  margin-top: 40px;
  position: relative;
  aspect-ratio: 1200 / 780;
}
.group-map__ring {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: #F89C90;
}
.group-map__ring--1 { left: 27.29%; top: 12.5%;  width: 45.42%; opacity: .3; }
.group-map__ring--2 { left: 31.67%; top: 19.23%; width: 36.67%; opacity: .5; }
.group-map__ring--3 { left: 36.25%; top: 26.28%; width: 27.5%; }
.group-map__center {
  position: absolute;
  left: 0; right: 0;
  top: 45.5%;
  text-align: center;
  font-size: clamp(14px, 1.53vw, 22px);
  font-weight: 700;
  letter-spacing: .05em;
  z-index: 1;
}
.group-map__center-break--sp { display: none; }
.group-map__node {
  position: absolute;
  width: 12.33%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 1;
}
.group-map__node img {
  position: absolute;
  inset: 0;
  margin: auto;
  object-fit: contain;
  max-width: 72%;
  max-height: 58%;
}
/* 正六角形配置(中心600,370 / 半径260 / 頂点は上下と±30度) */
.group-map__node--care    { left: 43.83%; top: 4.62%; }
.group-map__node--solaris { left: 25.07%; top: 21.28%; }
.group-map__node--myoraku { left: 62.6%;  top: 21.28%; }
.group-map__node--enya    { left: 25.07%; top: 54.62%; }
.group-map__node--linx    { left: 62.6%;  top: 54.62%; }
.group-map__node--hoiku   { left: 43.83%; top: 71.28%; }
.group-map__node--hoiku img { max-width: 78%; max-height: 55%; }
.group-map__node--care img,
.group-map__node--solaris img { max-width: 95%; max-height: 70%; }
.group-map__node--enya img  { max-width: 98%; max-height: 88%; }
.group-map__node--linx img  { max-width: 90%; max-height: 45%; }

/* 相関図ラベル */
.group-map__label { position: absolute; z-index: 2; }
.group-map__label--l { left: 0;     width: 23%; }
.group-map__label--r { left: 78.5%; width: 21.5%; }
.group-map__co {
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
  color: #333;
}
.group-map__name {
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  color: #333;
}
.group-map__name a { color: inherit; transition: opacity .2s ease; }
.group-map__name a:hover { opacity: .7; text-decoration: underline; }
.group-map__ext {
  width: 15px;
  height: 13px;
  margin-left: 6px;
  vertical-align: -1px;
  color: #555;
}
.group-map__pre { font-size: .74em; }
.group-map__list {
  margin-top: 5px;
  font-size: clamp(10px, .87vw, 12.5px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .02em;
  padding-left: 1.15em;
  color: rgba(26, 26, 26, .72);
}
.group-map__list li { white-space: nowrap; }
.group-map__logo { position: relative; }
.group-map__logo img { height: clamp(56px, 5.7vw, 82px); width: auto; }
.group-map__caption {
  margin-top: 8px;
  font-size: clamp(12px, 1.04vw, 14.5px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .02em;
  color: rgba(26, 26, 26, .72);
}
.group-map__desc {
  margin-top: 6px;
  font-size: clamp(12px, 1.08vw, 15px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
  color: rgba(26, 26, 26, .72);
}

/* 引き出し線(先端の丸が円の縁を指す) */
.group-map__line { position: relative; height: 1px; background: #333; }
.group-map__line::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}
/* 左ラベル: 見出しの直後から円へ伸ばす */
.group-map__label--l .group-map__name { display: flex; align-items: center; }
.group-map__label--l .group-map__name a { flex: 0 0 auto; }
.group-map__label--l .group-map__line { flex: 1 1 auto; margin-left: 10px; }
.group-map__label--l .group-map__line::after { right: 0; }
/* 右ラベル: ブロック左端から円へ伸ばす */
.group-map__label--r .group-map__line {
  position: absolute;
  right: calc(100% + 10px);
  font-size: clamp(13px, 1.25vw, 18px);
  top: .75em;
}
.group-map__label--r .group-map__line::after { left: 0; }

.group-map__label--care    { top: 9.71%; }
.group-map__label--solaris { top: 32.04%; }
.group-map__label--enya    { top: 59.71%; }
.group-map__label--taikaya { top: 8.85%; }
.group-map__label--myoraku { top: 32.04%; }
.group-map__label--linx    { top: 62.37%; }
.group-map__label--hoiku   { top: 79.04%; }
/* 線の終点 = 各円の縁 */
.group-map__label--care .group-map__name    { width: 190.58%; }
.group-map__label--solaris .group-map__name { width: 108.99%; }
.group-map__label--enya .group-map__name    { width: 108.99%; }
.group-map__label--enya .group-map__co,
.group-map__label--enya .group-map__name { font-family: "Noto Serif JP", serif; }
.group-map__label--taikaya .group-map__line { width: 100%; top: 50%; }
.group-map__label--myoraku .group-map__line { width: 12.71%; }
.group-map__label--linx .group-map__line    { width: 12.71%; }
.group-map__label--hoiku .group-map__line   { width: 100%; }

/* グループ会社リスト(箇条書き) */
.group-cards {
  margin-top: 40px;
  display: block;
}
.group-card { margin-bottom: 28px; }
.group-card:last-child { margin-bottom: 0; }
.group-card--taiyo,
.group-card--solaris,
.group-card--light { background: none; border-radius: 0; padding: 0; }
.group-card__name {
  position: relative;
  padding-left: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: left;
  color: #333;
}
.group-card__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.group-card--taiyo .group-card__name,
.group-card--solaris .group-card__name { color: #333; }
.group-card__box {
  background: none;
  border-radius: 0;
  padding: 0;
  margin-top: 14px;
}
.group-card__box:first-of-type { margin-top: 8px; }
.group-card__service {
  position: relative;
  padding-left: 20px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: left;
  color: #333;
}
.group-card__service::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.group-card__ext {
  width: 17px;
  height: 15px;
  margin-left: 8px;
  vertical-align: -1px;
  color: #555;
}
.group-card__desc {
  margin-top: 4px;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .05em;
  text-align: left;
  color: rgba(26, 26, 26, .7);
}
.group-card__service a,
.group-card__name a { color: inherit; transition: opacity .2s ease; }
.group-card__service a:hover,
.group-card__name a:hover { opacity: .7; text-decoration: underline; }
.group-card--light .group-card__box { padding: 0; }
.group-card--light .group-card__desc { margin-top: 4px; text-align: left; }

/* PCは相関図のみ / SPはカードのみ */
@media (min-width: 900px) {
  .group-cards { display: none; }
  /* 太華家・縁屋の事業説明のみ明朝体に(PC限定。太華家はSPでも例外表示されるためmin-widthで区切る) */
  .group-map__label--taikaya .group-map__caption,
  .group-map__label--enya .group-map__list {
    font-family: "Noto Serif JP", serif;
  }
}
@media (max-width: 900px) {
  /* ラベルを省き(太華家のみ例外で表示)、円クラスター(キャンバスの26.5%〜73.5%)を画面幅いっぱいに拡大 */
  .group-company { overflow: clip; }
  .group-map { margin-top: 24px; width: 200%; margin-left: calc(-50% - 20px); }
  .group-map__label { display: none; }
  .group-map__label--taikaya {
    display: block;
    left: calc(58% + 40px);
    top: 4%;
    width: 16%;
  }
  .group-map__label--taikaya .group-map__line {
    right: calc(100% + 6px);
    width: 60px;
  }
  .group-map__label--taikaya .group-map__caption { display: none; }
  .group-map__center {
    left: 25px;
    right: -25px;
    top: calc(45.5% - 20px);
    font-size: 20px;
    line-height: 1.6;
    color: #333333;
  }
  .group-map__center-break--sp { display: block; }
  .group-map__node { width: 116px; }
  .group-map__ring--1 { left: calc(27.29% + 25px); }
  .group-map__ring--2 { left: calc(31.67% + 25px); }
  .group-map__ring--3 { left: calc(36.25% + 25px); }
}

.group-diagram__caption {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-sub);
  letter-spacing: .08em;
}

/* ------------------------------------------------------------------
   Company Data
------------------------------------------------------------------ */
.company-data {
  position: relative;
  padding: 110px 0 200px;
  overflow: hidden;
  background: #EAEAEA;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

.stat { width: 330px; max-width: 100%; }
.stat__label {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  letter-spacing: .1em;
}
.stat__en {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-sub);
  letter-spacing: .1em;
  margin-top: 2px;
}
.stat__value {
  margin-top: 15px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: .05em;
  border-bottom: 4px solid var(--color-text);
  padding-bottom: 13px;
  font-variant-numeric: tabular-nums;
}
.stat__value--right { text-align: right; }
.stat--wide .stat__value { font-size: clamp(40px, 6vw, 86px); }
.stat__unit {
  font-family: var(--font-base);
  font-size: clamp(18px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: .05em;
  margin-left: 6px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 60px;
}
.stat-row--first  { margin-top: 60px; }
.stat-row--second { margin-top: 80px; }

.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin: 30px 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(64px, 8.33vw, 115px);
  letter-spacing: .05em;
  color: rgba(30, 30, 30, .08); /* Figma実データ: #1E1E1E 8% */
}
.marquee.is-hidden { display: none; }
.marquee span {
  display: inline-block;
  padding-right: 24px;
  animation: marquee 60s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
/* 「Company Data」は他のマーキー文字("Numbers"/"Message")より長く、
   translateX(-100%)が自身の横幅基準のため同じ60sでは速く見える。
   実測幅比(約1.59倍)に合わせてdurationを延長し速度を統一。 */
.marquee--companydata span {
  animation-duration: 96s;
}

.property-block {
  display: grid;
  gap: 60px;
  align-items: start;
}
.property-block__text { max-width: 640px; }
.property-block__text .stat--wide { width: 100%; }
.property-block__list {
  margin-top: 28px;
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 2.3;
  letter-spacing: .03em;
}

.property-collage {
  position: relative;
  min-height: 560px;
}
.property-collage__item {
  position: absolute;
  width: 62%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transition: left .55s cubic-bezier(.4, 0, .2, 1), top .55s cubic-bezier(.4, 0, .2, 1),
              width .55s cubic-bezier(.4, 0, .2, 1),
              opacity .45s ease, transform .45s ease;
}
.property-collage__item.is-leaving { opacity: 0; transform: translateY(50px); }
.property-collage__item.is-entering { opacity: 0; }
.property-collage__item.no-transition { transition: none; }
.property-collage__item.is-waiting { opacity: 0; pointer-events: none; }
.property-collage__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.property-collage__item--1 { left: 38%; top: 0;     z-index: 1; }
.property-collage__item--2 { left: 0;   top: 85px;  z-index: 2; }
.property-collage__item--3 { left: 34%; top: 175px; z-index: 3; }
.property-collage__item--4 { left: 2%;  top: 265px; z-index: 4; width: 68%; }

@media (min-width: 900px) {
  .property-block { grid-template-columns: 1.15fr 1fr; }
}

/* ------------------------------------------------------------------
   Topics (white sheet)
------------------------------------------------------------------ */
.topics {
  position: relative;
  background: #fff;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding: 110px 0 200px;
}
.topics-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}
.topics-list a { display: block; }
.topics-list__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
}
.topics-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.topics-list__thumb--brand {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topics-list__thumb--brand img {
  width: auto;
  height: auto;
  max-width: 52%;
  max-height: 52%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.topics-list time {
  display: block;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-sub);
  letter-spacing: .05em;
}
.topics-list__title {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .05em;
}
.topics-list__cat {
  display: inline-block;
  margin-top: 16px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 2px 18px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}

@media (min-width: 900px) {
  .topics-list { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------------
   Message
------------------------------------------------------------------ */
/* 2026-07-17 Figma「Message 7/17」デザインに更新 */
.message {
  position: relative;
  padding: 120px 0 100px;
  overflow: clip; /* 装飾円をセクション内に収める */
  background: #F5F5F5;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}
.message__ring {
  position: absolute;
  top: -314px;
  right: -239px;
  width: 588px;
  height: 588px;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 42%, #F2A79E 46%, #E2453C 76%, #D8544A 100%);
  opacity: .6;
  pointer-events: none;
}
.message .container { position: relative; z-index: 1; }
.message-body {
  max-width: 960px;
  margin: 56px auto 0;
  text-align: left;
}
.message-body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: .05em;
  color: #333;
}
.message-body p + p { margin-top: 32px; }
.message-body p.message-lead {
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .05em;
  color: #1E1E1E;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 56px;
}
@media (max-width: 1180px) {
  .message-body p.message-lead br { display: none; }
}
.message-body p.message-body__signature {
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
}
.message .marquee { margin-top: 0; }

@media (max-width: 899px) {
  .message-body { margin: 48px auto 0; }
  .message__ring { width: 420px; height: 420px; top: -220px; right: -180px; }
}

/* ------------------------------------------------------------------
   History
------------------------------------------------------------------ */
.history {
  position: relative;
  padding: 110px 0 200px;
  background: #FAFAFA;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

.history__scroll {
  overflow-x: auto;
  overflow-y: hidden; /* js-revealのtranslateYで縦スクロールが生まれるのを防ぐ */
  padding: 70px 24px 10px;
  scrollbar-width: none;
}
.history__scroll::-webkit-scrollbar { display: none; }

.history-timeline {
  display: inline-flex;
  gap: 70px;
  min-width: max-content;
  padding: 0 max(24px, calc((100vw - var(--container-w)) / 2 + 24px)) 0 0;
  margin-left: max(0px, calc((100vw - var(--container-w)) / 2));
  position: relative;
}
.history-timeline::before {
  content: "";
  position: absolute;
  left: 0; right: -100px; top: -28px;
  border-top: 2px dotted #999;
}
.history-timeline li {
  width: 200px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
}
.history-timeline li::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #262626;
}
.history-timeline time {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(32px, 3.89vw, 56px); /* 56px @1440 */
  letter-spacing: .05em;
}
.history-timeline p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .05em;
  min-height: 3.6em;
}
.history-timeline__logo {
  background: #F4F4F4;
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100px;
}
.history-timeline__logo img {
  max-height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
}
/* 2ロゴ並び(2026): 縁屋を大きく、たいよう保育園を控えめに */
.history-timeline__logo--multi img:first-child { flex: 0 0 auto; height: 100%; width: auto; }
.history-timeline__logo--multi img:last-child { max-width: 46%; }

.history__nav {
  position: relative;
  margin-top: 56px;
  border-top: 1px solid #C9C9C9;
}
.history__handle {
  position: absolute;
  left: 0;
  top: -32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(226, 69, 60, .35);
  cursor: grab;
  touch-action: none;
}
.history__handle:active { cursor: grabbing; }
.history__handle svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------
   Outline
------------------------------------------------------------------ */
.outline {
  position: relative;
  padding: 120px 0 100px;
  background: #F2F2F2;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

.outline-table { margin-top: 56px; border-top: 1px solid var(--color-border); }
.outline-table__row {
  display: grid;
  gap: 12px 60px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}
.outline-table__row > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.outline-table__row .outline-table__full { grid-column: 1 / -1; }
.outline-table dt { font-weight: 600; font-size: 16px; line-height: 1.8; letter-spacing: .05em; }
.outline-table dd { font-size: 16px; line-height: 1.8; letter-spacing: .05em; }

.outline-map { margin-top: 64px; }
.outline-map.is-hidden { display: none; }
.outline-map iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

@media (min-width: 900px) {
  .outline-table__row { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------
   Sub page hero (e.g. contact)
------------------------------------------------------------------ */
.page-hero {
  position: relative;
  background: #F2F2F2;
  padding: 200px 0 110px;
  overflow: clip;
}
.page-hero--article { padding-bottom: 150px; }
.page-hero__ring {
  position: absolute;
  top: -300px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 56%, #F2A79E 58%, #E2453C 88%, #D8544A 100%);
  opacity: .85;
  pointer-events: none;
}
.page-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(27px, 3.33vw, 48px); /* 48px @1440 */
  letter-spacing: .05em;
}
.page-hero__title span {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(35px, 4.87vw, 70px); /* 70px @1440 */
  color: var(--color-text);
  letter-spacing: .05em;
  margin-top: 0;
}

.page-panel--white { background: #fff; }

/* ------------------------------------------------------------------
   News list page
------------------------------------------------------------------ */
.news-sec { padding: 90px 0 120px; }

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.news-filter button {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  border-radius: 999px;
  padding: 5px 24px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.news-filter button:hover { transform: translateY(-1px); background: var(--color-primary-light); }
.news-filter button.is-active {
  background: var(--color-primary);
  color: #fff;
}

.topics-list--wide { gap: 56px 40px; }
@media (min-width: 900px) {
  .topics-list--wide { grid-template-columns: repeat(3, 1fr); }
}
.topics-list li.is-hidden { display: none; }

.topics-list__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 72px;
}
.news-more-wrap .btn-more__circle svg { transform: rotate(90deg); }
.news-more-wrap .btn-more--back .btn-more__circle svg { transform: rotate(180deg); }

/* ------------------------------------------------------------------
   Contact form
------------------------------------------------------------------ */
.contact-form-sec { padding: 110px 0 130px; }

.contact-intro {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: .05em;
}

.contact-form {
  max-width: 920px;
  margin: 72px auto 0;
  display: grid;
  gap: 28px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 16px 24px;
  align-items: start;
}
.contact-form__label {
  font-size: 16px;
  font-weight: 500;
  padding-top: 16px;
  letter-spacing: .05em;
}
.contact-form__req {
  color: var(--color-primary);
  font-size: 14px;
  margin-left: 10px;
}
.contact-form__row input[type="text"],
.contact-form__row input[type="tel"],
.contact-form__row input[type="email"],
.contact-form__row textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  padding: 15px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form__row input::placeholder,
.contact-form__row textarea::placeholder { color: #B5B5B5; }
.contact-form__row input:focus,
.contact-form__row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(226, 69, 60, .12);
}
.contact-form__row textarea {
  min-height: 260px;
  resize: vertical;
}

.contact-form__policy {
  grid-column: 2;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  padding: 16px 18px;
  height: 120px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
}
.contact-form__policy p { margin-bottom: 1em; }
.contact-form__policy p:last-child { margin-bottom: 0; }
.contact-form__policy strong { font-weight: 600; color: #333; }
.contact-form__agree {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.contact-form__agree input {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
}

.contact-form__submit {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #262626;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .2em;
  border-radius: 999px;
  padding: 18px 44px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.contact-form__submit svg { width: 20px; height: 20px; }
.contact-form__submit:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(226, 69, 60, .3);
}

@media (max-width: 899px) {
  .page-hero { padding: 130px 0 64px; }
  .page-hero--article { padding-bottom: 100px; }
  .page-hero__ring { width: 420px; height: 420px; top: -210px; right: -240px; }
  .contact-form-sec { padding: 72px 0 90px; }
  .contact-form { margin-top: 48px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 8px; }
  .contact-form__label { padding-top: 0; }
  .contact-form__policy,
  .contact-form__agree,
  .contact-form__submit { grid-column: 1; }
  .contact-form__submit { justify-self: center; }
}

/* ------------------------------------------------------------------
   Thanks page
------------------------------------------------------------------ */
.thanks-page { background: #fff; }

.thanks-sec {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: clip;
  background: #fff;
  padding: 140px 24px 80px;
}
.thanks-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, transparent 50%, #F0A9A0 53%, #EC7A6E 85%, #EFA294 100%);
  opacity: .9;
}
.thanks-ring--tr {
  width: 760px;
  height: 760px;
  top: -360px;
  right: -340px;
}
.thanks-ring--bl {
  width: 640px;
  height: 640px;
  left: -300px;
  bottom: -320px;
}

.thanks-body { position: relative; z-index: 1; }
.thanks-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 2.78vw, 40px); /* 40px @1440 */
  line-height: 1.4;
  color: #E8404E;
  letter-spacing: .05em;
}
.thanks-title--404 {
  font-size: clamp(56px, 5.56vw, 80px); /* 80px @1440 */
  letter-spacing: .05em;
}
.thanks-text {
  margin-top: 40px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .08em;
}
.thanks-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 16px 48px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .2em;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.thanks-top-btn svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}
.thanks-top-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 899px) {
  .thanks-ring--tr { width: 440px; height: 440px; top: -120px; right: -160px; }
  .thanks-ring--bl { width: 380px; height: 380px; left: -200px; bottom: -190px; }
}

/* ------------------------------------------------------------------
   Contact CTA
------------------------------------------------------------------ */
.contact-cta {
  padding: 0 0 200px;
  background: #F2F2F2;
}
.contact-cta__banner {
  background: radial-gradient(circle at 30% 20%, #EB5B52, var(--color-primary) 60%, var(--color-primary-dark) 100%);
  border-radius: 24px;
  padding: 52px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(226, 69, 60, .25);
}
.contact-cta__title {
  font-family: var(--font-round);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .06em;
}
.contact-cta__en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  opacity: .8;
  margin-left: 16px;
  letter-spacing: .05em;
}
.contact-cta__desc {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .04em;
}
.contact-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 14px 18px 14px 32px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-cta__btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.contact-cta__btn-circle svg { width: 18px; height: 18px; }
.contact-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.contact-cta__btn:hover .contact-cta__btn-circle {
  transform: translateX(4px);
}

@media (max-width: 899px) {
  .contact-cta { padding-bottom: 72px; }
  .contact-cta__banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid #3A3A3A;
  padding: 28px 0 56px;
}
.site-footer__inner { position: relative; }
.copyright {
  text-align: right;
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: .05em;
}
.to-top {
  position: absolute;
  right: 24px;
  top: -92px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.to-top svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
/* 日本語ナビは幅を取るため、1250px以下でハンバーガーに切り替える */
@media (max-width: 1250px) {
  .menu-toggle { display: flex; }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    margin-left: 0;
  }
  .global-nav[data-open="true"] { transform: translateX(0); }
  .global-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px;
  }
  .global-nav li { width: 100%; border-bottom: 1px solid var(--color-border); }
  .global-nav a { display: block; padding: 18px 4px; color: var(--color-text); }

  /* ナビがfixedで抜けるため、ボタン群を右端へ寄せる */
  .header-actions { margin-left: auto; }

  /* ハンバーガーも他ボタンと同じ円形に(SPデザイン) */
  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    justify-content: center;
  }
  .site-header.is-scrolled .menu-toggle { background: rgba(226, 69, 60, .1); }
  .menu-toggle__box { width: 16px; height: 10px; }
  .menu-toggle__box span:nth-child(1) { top: 0; }
  .menu-toggle__box span:nth-child(2) { display: none; }
  .menu-toggle__box span:nth-child(3) { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(1) { top: 4px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(3) { top: 4px; }
  .menu-toggle[aria-expanded="true"] { background: rgba(226, 69, 60, .1); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__box span { background: var(--color-text); }
}

@media (max-width: 700px) {
  :root { --header-h: 68px; }

  .brand__mark { width: 84px; }
  .header-actions__btn { width: 44px; height: 44px; }

  /* SPヒーロー(デザイン基準375px: 円 中心(359,303) r=382 — PDF実測フィット) */
  /* --shu(SPヒーロー単位): 通常は1vwだが、縦が短い画面(SE等)では
     100svh/206 に切り替わり、ヒーロー全体が1画面内に収まる */
  .hero {
    --shu: min(1vw, 0.485vh);
    --shu: min(1vw, 0.485svh);
    height: calc(175 * var(--shu));
    min-height: 0;
  }
  .hero__circle {
    width: calc(203.9 * var(--shu));
    height: calc(203.9 * var(--shu));
    top: calc(-21.1 * var(--shu));
    right: auto;
    /* 通常は従来位置(100vw-106.3単位)。縦短い画面で円が縮んでも
       左端が画面内に入らないよう-12pxでクランプ=太陽が左下寄りになる */
    left: min(calc(100vw - 106.3 * var(--shu)), -12px);
  }
  .hero__copy {
    top: calc(50 * var(--shu) - 30px);
    left: 16px;
    right: 24px;
    width: auto;
    margin-left: 0;
    transform: none;
    text-align: right;
  }
  .hero__title { font-size: 35px; line-height: 1.8; text-align: left; }
  .hero__title mark { border-radius: 6px; }
  .hero__break--sp { display: block; }
  .hero__sub { margin-top: 0px; font-size: 24px; text-align: right; }
  .hero__sub-break--sp { display: block; }
  .hero__company {
    /* 独立配置化(デスクトップ側のFigma指定)に合わせた近似値。
       SP版の正式な位置指定があれば別途更新。 */
    display: block;
    left: 16px;
    right: 24px;
    top: calc(126.67 * var(--shu) + 30px);
    text-align: left;
    font-size: 20px;
  }
  .hero__company span { font-size: 24px; }
  .hero__company-break--sp { display: block; }
  .hero__scroll { display: none; }

  .mvv { padding: 160px 0 280px; }
  .mvv .container { gap: 160px; }
  .mvv__heading { font-size: 26px; }
  .mvv__item--mission,
  .mvv__item--value { margin-left: 0; }
  .mvv__text { font-size: 16px; line-height: 2.1; }
  /* モバイルでもリングを表示。481〜700pxは崩れない汎用配置(見出し付近に固定) */
  .mvv__ring--mission { width: 240px; right: -70px; top: -150px; }
  .mvv__ring--vision  { width: 250px; left: -95px; top: 140px; }
  /* Valueはリスト下部あたり(下端基準なので幅が変わっても追従) */
  .mvv__ring--value   { width: 250px; right: -80px; top: auto; bottom: -150px; }

  .group-company { padding: 50px 0 100px; border-radius: 24px 24px 0 0; }
  .company-data { padding: 70px 0 110px; border-radius: 24px 24px 0 0; }
  .property-block__list { font-size: 14px; }

  .stat-row--second { margin-left: 0; }
  .stat { width: min(340px, 44vw); }
  .stat-row { gap: 40px 32px; }
  .marquee { margin: 30px 0; font-size: 44px; }

  .property-collage { min-height: 0; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .property-collage__item { position: static; width: auto; }
  .property-collage__item--4 { width: auto; }
  .property-collage__item.is-waiting { opacity: 1; pointer-events: auto; }

  .section-heading { font-size: 28px; color: #1E1E1E; }
  .section-heading__en { font-size: 32px; line-height: 1.4; }

  .topics { border-radius: 24px 24px 0 0; padding: 72px 0 110px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }

  .message { padding: 80px 0 60px; border-radius: 24px 24px 0 0; }

  .history { padding: 80px 0 110px; border-radius: 24px 24px 0 0; }
  .outline { padding: 80px 0 60px; border-radius: 24px 24px 0 0; }
  /* SPは1カラムで行の区切りが意味を持たないため、中の線は消して上下のみ */
  .outline-table { border-bottom: 1px solid var(--color-border); }
  .outline-table__row { border-bottom: 0; padding: 14px 0; }
  .outline-table__row:first-child { padding-top: 28px; }
  .outline-table__row:last-child { padding-bottom: 28px; }
  .outline-table dt,
  .outline-table dd { font-size: 15px; }
  .outline-map iframe { height: 320px; }

  .to-top { width: 60px; height: 60px; top: -76px; }
}

/* 390px基準の完成形(480px以下でのみ適用し、幅が広いときの崩れを防ぐ) */
@media (max-width: 480px) {
  .mvv__ring--mission { width: 240px; right: -70px; top: 155px; }
  .mvv__ring--vision  { width: 250px; left: -45px; top: 260px; }
  .mvv__ring--value   { width: 250px; right: -50px; top: 730px; bottom: auto; }
}

@media (max-width: 599px) {
  .topics-list { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .topics-list time { font-size: 14px; }
  .topics-list__title { font-size: 15px; }
  .stat { width: 100%; }
  .stat-row { gap: 36px; }
  .stat__value { font-size: 36px; }
}


/* ===== News article (記事詳細・仮) ===== */
.news-article { max-width: 860px; margin: 0 auto; }
.news-article__head { margin-bottom: 32px; }
.news-article__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.news-article__meta time { font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: .05em; color: #333; }
.news-article__title { font-family: var(--font-base); font-size: 32px; font-weight: 600; line-height: 1.8; letter-spacing: .05em; }
.news-article__thumb { margin: 0 0 32px; border-radius: 20px; overflow: hidden; }
.news-article__thumb img { display: block; width: 100%; height: auto; }
.news-article__body { font-size: 15px; font-weight: 500; line-height: 2.2; letter-spacing: .05em; }
.news-article__body p { margin-bottom: 1.5em; }
.news-article__body h2 { font-family: var(--font-base); font-size: 18px; font-weight: 700; margin: 2em 0 1em; }
.news-article__body h3 { font-size: 18px; margin: 1.6em 0 0.8em; }
.news-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.news-article__body a { color: #E2453C; text-decoration: underline; }
@media (max-width: 700px) {
  .news-article__title { font-size: 22px; }
}


/* ===== Contact Form 7 対応 ===== */
/* reCAPTCHAバッジが.page-panel(z-index:1)に隠れるのを防ぐ */
.grecaptcha-badge { z-index: 100; }

.contact-form__row .wpcf7-form-control-wrap { display: block; }
.contact-form__agree .wpcf7-form-control-wrap { display: inline-flex; }
.contact-form__agree .wpcf7-list-item { margin: 0; display: inline-flex; align-items: center; gap: 12px; }
.contact-form__agree .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.wpcf7-not-valid-tip { display: block; margin-top: 8px; font-size: 13px; color: #E2453C; }
.wpcf7 form .wpcf7-response-output {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid #E2453C;
  border-radius: 8px;
  font-size: 14px;
  color: #C43A32;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #4CAF50; color: #2E7D32; }
.wpcf7-spinner { margin: 0 0 0 12px; }
