/* Round – common.css */

/* ---------- Tokens ---------- */
:root {
  --c-yellow: #FFD63B;
  --c-yellow-grad: linear-gradient(135deg, #FFCA3B, #FFD63B);
  --c-yellow-pale: #FFEFB1;
  --c-ink: #0D0D0D;
  --c-text: #000000;
  --c-text-sub: #333333;
  --c-line: #E8E8E8;
  --c-white: #FFFFFF;
  --c-black-4: rgba(0, 0, 0, .04);
  --c-gray-pale: #FAFAFA;
  --c-req: #E30F52;
  --shadow-card: 0 4px 4px -4px rgba(12, 12, 13, .05), 0 16px 32px -4px rgba(12, 12, 13, .10);
  --blur-glass: 4px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Poppins", "Noto Sans JP", sans-serif;
  --w-content: 1200px;
  --gutter: 40px;
  --w-form-btn: 225px;

  /* ---------- 余白スケール ---------- */
  --space-2: 2px;
  --space-5: 5px;
  --space-10: 10px;
  --space-12: 12px;
  --space-15: 15px;
  --space-20: 20px;
  --space-25: 25px;
  --space-30: 30px;
  --space-35: 35px;
  --space-40: 40px;
  --space-45: 45px;
  --space-50: 50px;
  --space-60: 60px;
  --space-70: 70px;
  --space-80: 80px;
  --space-90: 90px;
  --space-100: 100px;
  --space-110: 110px;
  --space-115: 115px;
  --space-120: 120px;
  --space-130: 130px;
  --space-140: 140px;
  --space-200: 200px;

  /* ---------- タップ領域の最小サイズ ---------- */
  --tap-min: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

:target, [id] { scroll-margin-top: 150px; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:where(input[type="submit"]) {
  font: inherit; color: inherit; border: 0; background: none;
  cursor: pointer; padding: 0; -webkit-appearance: none; appearance: none;
}

::selection { background: var(--c-yellow); color: var(--c-ink); }
::-moz-selection { background: var(--c-yellow); color: var(--c-ink); }

.container { width: min(var(--w-content), calc(100% - 80px)); margin-inline: auto; }

/* ---------- 汎用: 黄色マーカー下線 ---------- */
.u-marker {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: var(--c-yellow);
  text-decoration-skip-ink: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: var(--space-10) var(--space-30); border-radius: 50px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn--yellow { background: var(--c-yellow); color: var(--c-text); }
.btn--black { background: var(--c-ink); color: var(--c-white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 50px; left: 50%; translate: -50% 0;
  width: calc(96% - var(--gutter) * 2);
  z-index: 100;
  transition: top .35s ease;
}

.site-header.is-scrolled { top: 18px; }
.site-header.is-scrolled .site-header__bar {
  padding-top: var(--space-10); padding-bottom: var(--space-10);
  box-shadow:
    0 6px 20px -10px rgba(12, 12, 13, .22),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-15) var(--space-30); border-radius: 50px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(9px) saturate(180%);
  -webkit-backdrop-filter: blur(9px) saturate(180%);
  box-shadow:
    0 8px 32px -12px rgba(12, 12, 13, .18),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: padding .35s ease, box-shadow .35s ease;
}
.site-header__logo img { width: 136px; }
.site-header__right { display: flex; align-items: center; gap: var(--space-45); }
.site-header__nav { display: flex; align-items: center; gap: var(--space-40); }
.site-header__nav > li > a:hover,
.site-header__nav > li > button:hover,
.site-header__nav > li > a:focus-visible,
.site-header__nav > li > button:focus-visible { color: var(--c-yellow); }
.site-header__nav > li > a,
.site-header__nav > li > button {
  transition: color .25s ease;
  font-size: 14px; font-weight: 700; line-height: 1; color: var(--c-text);
  display: inline-flex; align-items: center; gap: var(--space-5);
  white-space: nowrap;
}
.site-header__cta { display: flex; align-items: center; gap: var(--space-10); }
.site-header__cta .btn { height: 38px; font-size: 14px; }

/* ---------- Mega menu ---------- */
.mega-menu {
  position: absolute; left: 50%; translate: -50% 0; top: calc(100% + 14px);
  width: min(1280px, 100%);
  display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: var(--space-40) var(--space-30);
  padding: var(--space-15); border-radius: 20px;
  background: var(--c-yellow);
  border: 2px solid var(--c-white);
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 190px); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mega-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-menu__intro {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--space-30); align-items: flex-start;
  background: var(--c-white); border-radius: 10px; padding: var(--space-30);
}
.mega-menu__intro > * { position: relative; z-index: 1; }
.mega-menu__intro::after {
  content: ""; position: absolute; left: -70px; bottom: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 36px solid var(--c-yellow); pointer-events: none; z-index: 0;
}
.mega-menu__label {
  display: flex; align-items: center; gap: var(--space-10);
  font-family: var(--font-en); font-weight: 700; font-size: 16px; line-height: 24px;
}
.mega-menu__label img { width: 10px; height: 10px; }
.mega-menu__copy { font-size: 20px; font-weight: 700; line-height: 1.8; }
.mega-menu__desc { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--c-text-sub); }

.mega-menu__list {
  display: flex; flex-direction: column; gap: var(--space-20); justify-content: center;
  padding: var(--space-10) var(--space-10) var(--space-10) 0;
}
.mega-menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-20);
  padding: var(--space-15) var(--space-20); border-radius: 5px;
  transition: background .2s ease;
}
.mega-menu__item:hover { background: var(--c-yellow-pale); }
.mega-menu__item-body { display: flex; gap: var(--space-20); align-items: flex-start; flex: 1; min-width: 0; }
.mega-menu__icon {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-yellow-pale);
  display: flex; align-items: center; justify-content: center; padding: var(--space-10);
}
.mega-menu__icon img { width: 100%; height: 100%; object-fit: contain; }
.mega-menu__item-text { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.mega-menu__item-title { font-size: 16px; font-weight: 700; line-height: 1; }
.mega-menu__item-desc { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--c-text-sub); max-width: 392px; }
.mega-menu__arrow { flex: 0 0 8px; width: 8px; height: 14px; }

.mega-menu__subgrid { display: flex; gap: var(--space-20); }
.mega-menu__sub { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5) 0; flex: 1 1 0; min-width: 0; }
.mega-menu__sub-head { display: flex; align-items: center; gap: var(--space-10); }
.mega-menu__sub-head img { width: 15px; height: 15px; }
.mega-menu__sub-head span { font-family: var(--font-en); font-weight: 700; font-size: 16px; line-height: 1.4; }
.mega-menu__thumb {
  width: 100%; max-width: 180px; height: 96px; border-radius: 5px; background: var(--c-white);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.mega-menu__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Hero ---------- */
.page-hero { position: relative; padding: var(--space-35) var(--gutter) 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 430px;
  background: var(--c-yellow-grad); z-index: -1;
}
.page-hero__panel {
  position: relative; height: 480px; border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-35) var(--space-80);
}
.page-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
}
.page-hero__bottom {
  flex: 1;
  margin-top: var(--space-70);
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.page-hero__left { display: flex; flex-direction: column; gap: var(--space-25); align-items: flex-start; }
.page-hero__tags { display: flex; flex-wrap: wrap; gap: var(--space-10); }
.page-hero__tag {
  display: inline-flex; align-items: center; gap: var(--space-10);
  background: var(--c-white); border-radius: 100px; padding: var(--space-10) var(--space-15);
  font-size: 14px; font-weight: 700; line-height: 1;
}
.page-hero__tag img { width: 10px; height: 10px; }
.page-hero__title { display: flex; flex-direction: column; gap: var(--space-15); align-items: flex-start; }
.page-hero__title span {
  display: inline-block; background: var(--c-white); border-radius: 5px;
  padding: var(--space-5) var(--space-10) var(--space-5) var(--space-20);
  font-size: clamp(24px, 4.57vw - 12.5px, 46px); font-weight: 700; line-height: 1.3;
}
.page-hero__en {
  font-family: var(--font-en); font-weight: 700; font-size: clamp(27px, 5.16vw - 14px, 52px);
  line-height: 1.15; color: var(--c-white); text-align: right; white-space: pre-line;
}

.page-hero--photo::before { height: 340px; }
.page-hero--photo .page-hero__panel { height: 386px; }
.page-hero--photo .page-hero__photo { transform: scaleX(-1); }
.page-hero--photo .page-hero__en { color: var(--c-text-sub); }
.page-hero__row {
  flex: 1; margin-top: var(--space-70);
  display: flex; align-items: center; justify-content: flex-end; width: 100%;
}

/* ---------- セクション見出し ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-15); text-align: center; }

.sec-head__eyebrow { font-size: 16px; font-weight: 500; letter-spacing: .1em; color: var(--c-text); }
.sec-head__title { font-family: var(--font-en); font-weight: 600; font-size: 56px; line-height: 1.1; }
.sec-head__title .dot { color: var(--c-yellow); font-size: .7em; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: var(--space-115) 0 0; color: var(--c-white);
  border-radius: 80px 80px 0 0;
}
.cta__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/top/message-bg.webp") center center / cover no-repeat;
  filter: blur(8px); transform: scale(1.08);
}
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(13, 13, 13, .5);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-60); }
.cta__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-30); }
.cta__title { font-size: 40px; font-weight: 700; line-height: 1.1; }
.cta__lead { font-size: 20px; font-weight: 700; line-height: 1.8; text-align: center; }
.cta__buttons { display: flex; gap: var(--space-20); flex-wrap: wrap; justify-content: center; }
.cta__btn {
  display: grid; grid-template-columns: 1fr 50px; align-items: center;
  width: 480px; height: 100px; padding: 0 var(--space-25); border-radius: 50px;
  font-size: 18px; font-weight: 700;
  transition: transform .25s ease;
}
.cta__btn:hover { transform: translateY(-3px); }
.cta__btn span { justify-self: center; }
.cta__btn img { justify-self: center; }
.cta__btn--white { background: var(--c-white); color: var(--c-text); }
.cta__btn--black { background: var(--c-ink); color: var(--c-white); border: 1px solid rgba(255,255,255,.35); }

/* ---------- Footer ---------- */
.site-footer { width: 100%; }
.site-footer__main {
  background: var(--c-yellow); color: var(--c-text);
  display: flex; gap: var(--space-200); align-items: center; justify-content: center;
  padding: var(--space-50) 0;
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-30); width: 247px; }
.site-footer__logo-wrap { display: flex; flex-direction: column; gap: var(--space-10); padding: var(--space-10); }
.site-footer__logo-wrap img { width: 200px; }
.site-footer__mission { font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.site-footer__company { display: flex; flex-direction: column; gap: var(--space-15); }
.site-footer__company-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.site-footer__address { font-size: 14px; font-weight: 400; line-height: 1.4; }
.site-footer__nav { display: flex; gap: var(--space-50); }
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-25); width: 160px; }
.site-footer__col-title { font-family: var(--font-en); font-weight: 600; font-size: 20px; line-height: 1.35; }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-15); }
.site-footer__col ul a { font-size: 14px; font-weight: 400; line-height: 1.1; transition: color .25s ease; }
.site-footer__col ul a:hover { color: var(--c-white); text-decoration: underline; }
.site-footer__bottom {
  background: var(--c-text); color: var(--c-white);
  padding: var(--space-20) var(--space-80);
}
.site-footer__bottom-inner {
  max-width: 1277px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.site-footer__copyright { font-family: var(--font-en); font-weight: 400; font-size: 16px; line-height: 1.35; }
.site-footer__privacy { font-size: 13px; font-weight: 400; line-height: 1.1; transition: color .25s ease; }
.site-footer__privacy:hover { color: var(--c-yellow); text-decoration: underline; }

/* ====================
   サービスページ共通カード
   ==================== */
.svc-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  background: var(--c-white);
  max-width: 1440px; margin-inline: auto;
}
.svc-card--about { gap: var(--space-40); border-radius: 30px; padding: var(--space-50) var(--space-30); }
.svc-card--pricing {
  gap: clamp(var(--space-30), 4vw, var(--space-60)); border-radius: 50px;
  padding: var(--space-50) clamp(var(--space-25), 6.3vw, var(--space-90));
}

/* ====================
   事例カルーセル
   ==================== */
.case__arrows { display: flex; gap: var(--space-10); align-items: center; }
.case__arrow {
  width: 50px; height: 50px; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.case__arrow img { display: block; width: 50px; height: 50px; }
.case__arrow--prev img { transform: rotate(180deg); }
.case__track {
  flex: 1 1 0; min-width: 0;
  display: flex; gap: var(--space-40); align-items: stretch;
  padding: var(--space-20); overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.case__track::-webkit-scrollbar { display: none; }
.case__track.is-dragging { cursor: grabbing; user-select: none; }
.case__track img { -webkit-user-drag: none; user-select: none; }
.case-card {
  flex: 0 0 580px; max-width: calc(100vw - 80px);
  padding: var(--space-30);
  background: var(--c-white); border: 2px solid var(--c-yellow); border-radius: 20px;
  filter: drop-shadow(0 3.67px 7.33px rgba(229, 229, 229, .75));
  display: flex; flex-direction: column; gap: var(--space-20);
}
.case-card__media {
  position: relative; width: 100%; height: 200px;
  border-radius: 10px; overflow: hidden; flex: 0 0 auto;
}
.case-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-card__photo--top { object-position: top; }

.case-card__media--fit { background: var(--c-gray-pale); }
.case-card__media--fit .case-card__photo { object-fit: contain; }

.case-card__media--zoom { cursor: pointer; }
.case-card__media--zoom::after {
  content: ""; position: absolute; right: var(--space-10); bottom: var(--space-10); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, .55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2h5v5M7 16H2v-5M16 2l-6 6M2 16l6-6'/%3E%3C/svg%3E")
    center / 16px 16px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.case-card__media--zoom:hover::after, .case-card__media--zoom:focus-visible::after {
  transform: scale(1.1); background-color: rgba(0, 0, 0, .75);
}
.case-card__media--veil::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(255, 255, 255, .3);
}
.case-card__flyer {
  position: absolute; left: 20px; top: 50%; translate: 0 -50%;
  width: 160px; height: 160px; object-fit: cover;
}
.case-card__phone {
  position: absolute; z-index: 2; left: 20px; top: 50%; translate: 0 -50%;
  width: 182px; height: 176px; object-fit: contain; object-position: left top;
}
.case-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-10); padding: 0 var(--space-10); }
.case-card__tags li {
  padding: var(--space-5) var(--space-10);
  background: rgba(255, 214, 59, .1);
  border: .75px solid var(--c-yellow); border-radius: 50px;
  font-size: 14px; line-height: normal; white-space: nowrap;
}
.case-card__ttl-wrap { display: flex; flex-direction: column; gap: var(--space-12); padding: 0 var(--space-10); }
.case-card__ttl { font-size: 22px; font-weight: 700; line-height: 34px; }
.case-card__ttl-rule { width: 30px; height: 2px; background: var(--c-yellow); }
.case-card__desc { padding: 0 var(--space-10); font-size: 14px; line-height: 23px; color: var(--c-text-sub); }
.case-more { display: none; }
.case-card__stats {
  margin: auto var(--space-10) 0;
  display: flex; gap: var(--space-30); align-items: center; justify-content: center;
  padding: var(--space-15); background: var(--c-gray-pale); border-radius: 10px;
}
.case-card__stats--between { justify-content: space-between; gap: var(--space-10); padding: var(--space-15) var(--space-25); }
.case-stat { display: flex; flex-direction: column; align-items: center; }
.case-stat__val {
  display: flex; gap: 0; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 600; line-height: normal; white-space: nowrap;
}
.case-stat__val .unit:first-child { margin-right: var(--space-2); }
.case-stat__val .num { font-size: 34px; letter-spacing: -1px; }
.case-stat__val .unit { font-size: 17px; }
.case-stat__arrow { width: 16px; height: 12px; margin-left: var(--space-10); }
.case-stat__arrow--up { transform: rotate(-90deg); }
.case-stat__arrow--down { transform: rotate(90deg); }
.case-stat__label { font-size: 12px; font-weight: 600; text-align: center; }
.case-stat__divider { align-self: center; width: 1px; height: 60px; background: #E6E6E6; }

.case-partner { display: flex; flex-direction: column; align-items: center; gap: var(--space-10); }
.case-partner__label { font-size: 11px; font-weight: 600; color: var(--c-text-sub); white-space: nowrap; }
.case-partner__link { display: inline-flex; transition: opacity .2s ease; }
.case-partner__link:hover { opacity: .7; }
.case-partner__logo { height: 22px; width: auto; aspect-ratio: 271 / 73; object-fit: contain; }
.work-card__stats .case-partner {
  padding: var(--space-10) var(--space-15);
  background: var(--c-gray-pale);
}
.case-partner--row { flex-direction: row; justify-content: center; gap: var(--space-10); }
@media (max-width: 833px) {
  .work-card__stats .case-partner {
    flex-direction: row; justify-content: center; gap: var(--space-10);
    padding: var(--space-5) var(--space-15);
  }
}

.case-card__result {
  margin: auto var(--space-10) 0;
  display: flex; align-items: center; gap: var(--space-20);
}
.case-card__result .case-card__stats { flex: 1 1 auto; margin: 0; }
.case-card__result .case-partner { flex: 0 0 auto; }
@media (max-width: 833px) {
  .case-card__result { display: none; flex-direction: column; align-items: stretch; gap: var(--space-15); margin: auto 0 0; }
  .case-card.is-open .case-card__result { display: flex; }
  .case-card__result .case-card__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 事例動画（サムネ → モーダル再生） ---------- */
.case-videos {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-15);
  height: 100%; align-content: center;
}
.case-video {
  position: relative; display: block; padding: 0; border: 0; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: 16px; background: var(--c-ink); cursor: pointer;
}
.case-video__thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-videos--band {
  flex: 0 0 auto; height: 200px;
  grid-template-columns: auto auto; justify-content: center; align-content: stretch;
}
.case-videos--band .case-video { height: 100%; width: auto; }
@media (max-width: 833px) {
  .case-videos--band { height: auto; grid-template-columns: 1fr 1fr; }
  .case-videos--band .case-video { height: auto; width: 100%; }
}
.case-video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, .55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M1 1l14 8-14 8z' fill='%23fff'/%3E%3C/svg%3E")
    center / 16px 18px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.case-video:hover .case-video__play, .case-video:focus-visible .case-video__play {
  transform: translate(-50%, -50%) scale(1.1); background-color: rgba(0, 0, 0, .75);
}

.media-modal[hidden] { display: none; }
.media-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-20); background: rgba(0, 0, 0, .82);
}
.media-modal__inner { position: relative; width: min(720px, 100%); }
.media-modal__video[hidden], .media-modal__img[hidden] { display: none; }
.media-modal__video { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; background: #000; }
.media-modal__img {
  display: block; width: 100%; height: auto;
  max-height: calc(100vh - var(--space-140)); object-fit: contain;
  border-radius: 16px;
}
.media-modal__close {
  position: absolute; top: calc(var(--tap-min) * -1 - var(--space-10)); right: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min); border-radius: 50%;
  background: var(--c-white); border: 0; cursor: pointer;
  font-size: 20px; line-height: 1;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ====================
   Mobile nav
   ==================== */

.site-header__burger {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-yellow);
  align-items: center; justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-header__burger:hover { box-shadow: var(--shadow-card); }
.site-header__burger:active { transform: scale(.94); }
.site-header__burger span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--c-ink);
  transition: transform .3s ease, opacity .2s ease;
}
.site-header__burger span:nth-child(1) { transform: translate(-50%, -6px); }
.site-header__burger span:nth-child(2) { transform: translate(-50%, 0); }
.site-header__burger span:nth-child(3) { transform: translate(-50%, 6px); }

.mnav { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; overflow: hidden; }
.mnav.is-open { visibility: visible; pointer-events: auto; }

.mnav__overlay {
  position: absolute; inset: 0;
  background: rgba(13, 13, 13, .5);

  opacity: 0; transition: opacity .3s ease;
}
.mnav.is-open .mnav__overlay { opacity: 1; }

.mnav__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(384px, 88vw);
  display: flex; flex-direction: column;
  background: var(--c-white);
  border-radius: 24px 0 0 24px;
  box-shadow: -20px 0 60px -20px rgba(12, 12, 13, .4);
  padding: var(--space-20) var(--space-25) calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;

  opacity: 0; transform: scale(.96); transform-origin: 100% 0;
  transition: opacity .28s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.mnav.is-open .mnav__panel { opacity: 1; transform: none; }

.mnav__panel::before {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 59, .55), rgba(255, 214, 59, 0) 70%);
  pointer-events: none;
}

.mnav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-20); margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--c-line);
}
.mnav__head-label {
  display: inline-flex; align-items: center; gap: var(--space-10);
  font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .12em;
  color: var(--c-ink);
}
.mnav__head-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-yellow);
}
.mnav__close {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-ink); flex: 0 0 auto;
  transition: transform .25s ease;
}
.mnav__close:hover { transform: rotate(90deg); }
.mnav__close::before, .mnav__close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; border-radius: 2px; background: var(--c-white);
}
.mnav__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mnav__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mnav__body { display: flex; flex-direction: column; padding: var(--space-5) 0; }

.mnav__link, .mnav__acc {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-10);
  width: 100%;
  padding: var(--space-15) var(--space-5);
  font-size: 17px; font-weight: 700; color: var(--c-ink); text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.mnav__link { transition: color .2s ease, padding-left .2s ease; }
.mnav__link:hover { color: #C79A00; padding-left: var(--space-10); }
.mnav__link .mnav__chevron { transition: transform .2s ease; }
.mnav__link:hover .mnav__chevron { transform: translateX(3px); }

.mnav__chevron { width: 7px; height: 12px; flex: 0 0 auto; }
.mnav__chevron path { stroke: currentColor; }

.mnav__acc .mnav__acc-icon {
  position: relative; width: 18px; height: 18px; flex: 0 0 auto;
}
.mnav__acc .mnav__acc-icon::before, .mnav__acc .mnav__acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--c-ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.mnav__acc .mnav__acc-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.mnav__acc .mnav__acc-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.mnav__group.is-open .mnav__acc .mnav__acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.mnav__sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.mnav__group.is-open .mnav__sub { grid-template-rows: 1fr; }
.mnav__sub-inner { overflow: hidden; }
.mnav__sub a {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-10) var(--space-5) var(--space-10) var(--space-5);
  font-size: 15px; font-weight: 500; color: var(--c-text-sub);
  border-bottom: 1px solid var(--c-line);
  transition: color .2s ease, padding-left .2s ease;
}
.mnav__sub a:hover { color: var(--c-ink); padding-left: var(--space-12); }
.mnav__sub a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-yellow); flex: 0 0 auto;
}

.mnav__cta { display: flex; flex-direction: column; gap: var(--space-12); margin-top: var(--space-20); }
.mnav__cta .btn { width: 100%; height: 52px; font-size: 15px; }

.mnav__item, .mnav__cta { opacity: 1; }

html.is-mnav-open, body.is-mnav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mnav__panel, .mnav__overlay, .mnav__item { transition-duration: .01ms; }
}

/* ---------- タブレット域のPCナビ ---------- */
@media (min-width: 834px) and (max-width: 1024px) {
  .site-header__bar { padding: var(--space-15) var(--space-20); }
  .site-header__right { gap: var(--space-25); }
  .site-header__nav { gap: var(--space-25); }
  .site-header__cta { gap: var(--space-5); }
  .site-header__cta .btn { padding-inline: var(--space-15); }
  .site-header__logo img { width: 120px; }

  .site-footer__main { flex-direction: column; align-items: flex-start; gap: var(--space-45); padding: var(--space-50) var(--space-40); }
  .site-footer__nav { flex-wrap: wrap; gap: var(--space-30) var(--space-50); }
  .site-footer__bottom { padding: var(--space-20) var(--space-40); }
}

/* ---------- ブレークポイント: ~833px ---------- */
@media (max-width: 833px) {
  .site-header { top: 16px; width: calc(100% - 32px); }
  .site-header.is-scrolled { top: 10px; }
  .site-header__bar {
    padding: var(--space-10) var(--space-12) var(--space-10) var(--space-20);

    background: rgba(255, 255, 255, .94);
    border-color: rgba(255, 255, 255, .95);
  }
  .site-header.is-scrolled .site-header__bar { padding-top: var(--space-5); padding-bottom: var(--space-5); }
  .site-header__logo img { width: 116px; }
  .site-header__right { display: none; }
  .mega-menu { display: none; }
  .site-header__burger {
    display: inline-flex;

    box-shadow: 0 0 0 2px var(--c-white), 0 2px 8px rgba(12, 12, 13, .12);
  }
}

/* ====================
   FAQ
   ==================== */
.faq { position: relative; overflow: hidden; padding: var(--space-100) var(--space-40); }
.faq__deco {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: auto; aspect-ratio: 1440 / 701;
  pointer-events: none;
}
.faq__inner {
  position: relative; z-index: 1;
  width: min(880px, 100%); margin-inline: auto;
  display: flex; flex-direction: column; gap: var(--space-30); align-items: center;
}
main .faq .sec-head { gap: var(--space-5); }
main .faq .sec-head__eyebrow { color: var(--c-text); }
.faq__divider { width: 100%; margin: 0; border: 0; border-top: 1px solid #E6E6E6; }
.faq__list { display: flex; flex-direction: column; gap: var(--space-20); width: 100%; }
.faq-item {
  width: 100%; padding: var(--space-15) var(--space-20);
  background: var(--c-white); border: 1px solid var(--c-yellow); border-radius: 10px;
}
.faq-item__q {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; align-items: center;
  width: 100%; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-jp); text-align: left;
}
.faq-item__mark {
  justify-self: center;
  font-family: var(--font-en); font-weight: 600; font-size: 32px; line-height: normal;
  color: var(--c-yellow);
}
.faq-item__question { font-size: 16px; line-height: normal; color: var(--c-text); }
.faq-item__icon { justify-self: center; width: 18px; height: 18px; transition: transform .25s ease; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  display: block; overflow: hidden;
  max-height: 0; opacity: 0; padding: 0 var(--space-50);
  transition: max-height .4s ease, opacity .3s ease, padding .4s ease;
}
.faq-item.is-open .faq-item__a {
  max-height: 320px; opacity: 1;
  padding: var(--space-5) var(--space-50) var(--space-10);
}
.faq-item__a p { font-size: 14px; line-height: 1.5; color: var(--c-text-sub); }

/* ====================
   レスポンシブ
   ==================== */
@media (max-width: 833px) {
  .container { width: calc(100% - 40px); }
  .faq { padding: var(--space-50) var(--space-15); }

  /* ---------- Hero ---------- */
  .page-hero { padding: var(--space-20) var(--space-15) 0; }
  .page-hero::before { height: 240px; }
  .page-hero__panel { height: auto; min-height: 420px; padding: var(--space-100) var(--space-20) var(--space-35); }
  .page-hero__bottom { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--space-25); margin-top: 0; }
  .page-hero__title { gap: var(--space-10); }

  .page-hero__title span { font-size: clamp(18px, 5vw, 38px); padding: var(--space-5) var(--space-10) var(--space-5) var(--space-15); border-radius: 4px; white-space: nowrap; }
  .page-hero__tag { padding: var(--space-5) var(--space-12); font-size: 12px; }
  .page-hero__en { align-self: flex-end; font-size: clamp(26px, 6vw, 42px); }
  .page-hero__row { margin-top: 0; justify-content: center; }

  .page-hero--compact .page-hero__panel {
    min-height: 280px;
    padding: var(--space-70) var(--space-20) var(--space-30);
  }
  .page-hero--compact.page-hero--photo .page-hero__panel { height: auto; }
  .page-hero--compact .page-hero__title span { font-size: clamp(17px, 4.6vw, 30px); }
  .page-hero--compact .page-hero__en { font-size: clamp(22px, 5.4vw, 34px); }

  /* ---------- セクション見出し ---------- */
  .sec-head { gap: var(--space-10); }
  .sec-head__title { font-size: clamp(34px, 7vw, 56px); }

  /* ---------- CTA ---------- */
  .cta { padding: var(--space-70) 0 0; }
  .cta__inner { gap: var(--space-50); }
  .cta__head { gap: var(--space-20); padding: 0 var(--space-25); text-align: center; }
  .cta__title { font-size: clamp(24px, 5.4vw, 34px); }
  .cta__lead { font-size: 15px; }
  .cta__buttons { flex-direction: column; gap: var(--space-15); width: calc(100% - 48px); max-width: 480px; }
  .cta__btn { width: 100%; height: 78px; font-size: 16px; padding: 0 var(--space-20); }

  /* ---------- Footer ---------- */
  .site-footer__main { flex-direction: column; align-items: flex-start; gap: var(--space-45); padding: var(--space-50) var(--space-25); }
  .site-footer__nav { flex-wrap: wrap; gap: var(--space-30) var(--space-35); }
  .site-footer__col { width: calc(50% - 18px); }

  .site-footer__col ul { gap: var(--space-5); }
  .site-footer__col ul a { display: inline-block; padding-block: var(--space-15); line-height: 1.2; }
  .site-footer__bottom { padding: var(--space-15) var(--space-25); }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: var(--space-10); }

  /* ---------- サービスページ共通カード ---------- */
  .svc-card--about { padding: var(--space-30) var(--space-20); gap: var(--space-25); }
  .svc-card--pricing { padding: var(--space-30) var(--space-20); gap: var(--space-25); border-radius: 24px; }

  /* ---------- 事例カルーセル ---------- */

  .case__track { flex: 0 0 auto; gap: var(--space-15); padding: var(--space-15); }

  .case-card { flex: 0 0 min(480px, calc(100vw - 76px)); padding: var(--space-15); gap: var(--space-15); }
  .case-card__media { height: 150px; }
  .case-card__flyer { width: 110px; height: 110px; left: 14px; }
  .case-card__phone { width: 150px; height: 134px; left: 14px; }
  .case-card__tags { gap: var(--space-5) var(--space-10); max-height: 60px; overflow: hidden; }
  .case-card__tags li { font-size: 12px; padding: var(--space-2) var(--space-10); }
  .case-card__ttl {
    font-size: 16px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  .case-card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .case-card.is-open .case-card__desc { display: block; overflow: visible; }
  .case-more {
    display: inline-flex; align-items: center; gap: var(--space-5);
    align-self: flex-start; min-height: var(--tap-min); padding: 0 var(--space-10);
    font-size: 13px; font-weight: 700; color: var(--c-text);
    text-decoration: underline; text-underline-offset: 3px;
  }

  .case-card__stats, .case-card__stats--between {
    display: none; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-10); padding: var(--space-12) var(--space-10); margin: auto 0 0;
  }
  .case-card.is-open .case-card__stats, .case-card.is-open .case-card__stats--between { display: grid; }
  .case-stat__divider { display: none; }
  .case-stat__val .num { font-size: 20px; }
  .case-stat__val .unit { font-size: 12px; }
  .case-stat__arrow { margin-left: var(--space-5); }
  .case-stat__label { font-size: 11px; }
}

@media (max-width: 640px) {
  .site-footer__col { width: 100%; }
}

@media (max-width: 833px) {
  .cta {
    padding-top: clamp(56px, 14vw, 72px);
    border-radius: 56px 56px 0 0;
  }
  .cta__inner { gap: var(--space-35); }
  .cta__head {
    gap: var(--space-15);
    padding-inline: var(--space-25);
  }
  .cta__title {
    max-width: 330px;
    line-height: 1.32;
  }
  .cta__lead {
    max-width: 310px;
    font-size: 14px;
    line-height: 1.85;
  }
  .cta__buttons {
    gap: var(--space-12);
    width: calc(100% - 48px);
  }
  .cta__btn {
    height: 74px;
    border-radius: 37px;
    grid-template-columns: 1fr 36px;
    font-size: 15px;
  }

  .site-footer { margin-top: var(--space-5); }
  .site-footer__main {
    padding: var(--space-40) var(--space-25) var(--space-35);
    gap: var(--space-35);
    align-items: stretch;
  }
  .site-footer__brand {
    width: 100%;
    gap: var(--space-25);
  }
  .site-footer__logo-wrap {
    gap: var(--space-10);
    padding: 0;
  }
  .site-footer__logo-wrap img { width: 168px; }
  .site-footer__mission {
    font-size: 12px;
    line-height: 1.35;
  }
  .site-footer__company { gap: var(--space-12); }
  .site-footer__company-name { font-size: 15px; }
  .site-footer__address {
    font-size: 13px;
    line-height: 1.55;
  }
  .site-footer__nav {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    border-top: 1px solid rgba(12, 12, 13, .18);
  }
  .site-footer__col {
    width: 100%;
    gap: var(--space-12);
    padding: var(--space-20) 0;
    border-bottom: 1px solid rgba(12, 12, 13, .18);
  }
  .site-footer__col-title {
    font-size: 14px;
    letter-spacing: .06em;
  }
  .site-footer__col ul { gap: 0; }
  .site-footer__col ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: var(--space-5);
    font-size: 14px;
    line-height: 1.35;
  }
  .site-footer__bottom {
    padding: 18px var(--space-25) calc(var(--space-25) + env(safe-area-inset-bottom, 0px));
  }
  .site-footer__bottom-inner { gap: var(--space-10); }
  .site-footer__copyright { font-size: 12px; line-height: 1.45; }
  .site-footer__privacy { font-size: 12px; line-height: 1.45; }
}

@media (max-width: 374px) {
  .site-footer__main { padding-inline: var(--space-20); }
  .site-footer__logo-wrap img { width: 156px; }
}

.cta__title-break { display: none; }
@media (max-width: 833px) {
  .cta__title-break { display: initial; }
}

/* ---------- 汎用固定ページ（新規作成ページ用） ---------- */
.page-hero__row--left { justify-content: flex-start; }

.gp-body { background: var(--c-white); padding: var(--space-90) var(--gutter) var(--space-115); }
.gp-body__inner { width: 100%; max-width: 800px; margin-inline: auto; }
.gp-body__inner > * + * { margin-top: var(--space-25); }

.gp-body__inner h1,
.gp-body__inner h2,
.gp-body__inner h3,
.gp-body__inner h4 { line-height: 1.5; color: var(--c-text); }
.gp-body__inner h1 { font-size: 30px; margin-top: var(--space-60); }
.gp-body__inner h2 {
  font-size: 24px; margin-top: var(--space-60);
  padding-bottom: var(--space-10); border-bottom: 2px solid var(--c-yellow);
}
.gp-body__inner h3 {
  font-size: 20px; margin-top: var(--space-45);
  padding-left: var(--space-12); border-left: 4px solid var(--c-yellow);
}
.gp-body__inner h4 { font-size: 17px; margin-top: var(--space-35); }
.gp-body__inner h1:first-child, .gp-body__inner h2:first-child,
.gp-body__inner h3:first-child, .gp-body__inner h4:first-child { margin-top: 0; }

.gp-body__inner p { font-size: 16px; font-weight: 400; line-height: 2; color: var(--c-text-sub); }
.gp-body__inner a { text-decoration: underline; text-underline-offset: 2px; }
.gp-body__inner a:hover { color: #C79A00; }
.gp-body__inner mark {
  background: transparent; color: inherit; font-weight: 700;
  text-decoration-line: underline; text-decoration-style: solid;
  text-decoration-color: var(--c-yellow); text-decoration-thickness: 6px;
  text-underline-offset: 2px; text-decoration-skip-ink: none;
}
.gp-body__inner ul, .gp-body__inner ol {
  display: flex; flex-direction: column; gap: var(--space-10);
  padding-left: var(--space-25);
  font-size: 16px; line-height: 1.9; color: var(--c-text-sub);
}
.gp-body__inner ul li { list-style: disc; }
.gp-body__inner ol li { list-style: decimal; }
.gp-body__inner blockquote {
  margin: 0; padding: var(--space-20) var(--space-25);
  background: #F7F7F7; border-left: 4px solid var(--c-yellow); border-radius: 0 10px 10px 0;
  font-size: 15px; line-height: 1.9; color: var(--c-text-sub);
}
.gp-body__inner img { max-width: 100%; height: auto; border-radius: 10px; }
.gp-body__inner figure { margin: 0; }
.gp-body__inner figcaption { margin-top: var(--space-10); font-size: 13px; color: var(--c-text-sub); text-align: center; }
.gp-body__inner hr { height: 0; margin: var(--space-50) 0; border: 0; border-top: 1px solid var(--c-line); }
.gp-body__inner table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.gp-body__inner th, .gp-body__inner td { padding: var(--space-12) var(--space-15); border: 1px solid var(--c-line); text-align: left; }
.gp-body__inner th { background: #F7F7F7; font-weight: 700; }

/* ---------- システムページ（404・検索） ---------- */
.sys-page { padding: var(--space-200) var(--gutter) var(--space-130); }
.sys-hero { display: flex; flex-direction: column; align-items: center; gap: var(--space-30); text-align: center; }
.sys-hero__code {
  display: flex; align-items: center; gap: var(--space-12);
  font-family: var(--font-en); font-weight: 700; font-size: 120px; line-height: 1; color: var(--c-ink);
}
.sys-hero__ring {
  display: inline-block; width: 96px; height: 96px; border-radius: 50%;
  border: 26px solid var(--c-yellow);
}
.sys-hero__lead { font-size: 15px; line-height: 2; color: var(--c-text-sub); }
.sys-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-15); }
.sys-hero__search { width: min(480px, 100%); }

.sys-search { width: min(720px, 100%); margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-40); }
.sys-search__query { text-align: center; font-size: 15px; line-height: 1.8; }
.sys-search__list { display: flex; flex-direction: column; gap: var(--space-15); }
.sys-search__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-20);
  padding: var(--space-20) var(--space-25);
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 10px;
  font-weight: 700; transition: border-color .2s ease, transform .2s ease;
}
.sys-search__item:hover { border-color: var(--c-yellow); transform: translateY(-2px); }
.sys-search__item-arrow { flex: 0 0 auto; color: var(--c-yellow); font-family: var(--font-en); font-weight: 700; }
.sys-search__empty { text-align: center; line-height: 2; color: var(--c-text-sub); }
.sys-search__form { display: flex; gap: var(--space-10); }
.sys-search__input {
  flex: 1; min-width: 0; height: 50px; padding: var(--space-12);
  background: var(--c-white); border: 1px solid #E5E5EA; border-radius: 8px;
  font-family: var(--font-jp); font-size: 14px; color: var(--c-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sys-search__input:focus { outline: none; border-color: var(--c-yellow); box-shadow: 0 0 0 3px rgba(255, 214, 59, .35); }

@media (max-width: 833px) {
  .sys-page { padding: var(--space-130) var(--space-20) var(--space-80); }
  .sys-hero__code { font-size: 76px; }
  .sys-hero__ring { width: 60px; height: 60px; border-width: 17px; }
  .sys-hero__actions { flex-direction: column; width: min(320px, 100%); }
  .sys-hero__actions .btn { width: 100%; height: 50px; }
}

@media (max-width: 833px) {
  .gp-body { padding: var(--space-50) var(--space-20) var(--space-60); }
  .gp-body__inner > * + * { margin-top: var(--space-20); }
  .gp-body__inner h1 { font-size: 24px; margin-top: var(--space-45); }
  .gp-body__inner h2 { font-size: 21px; margin-top: var(--space-45); }
  .gp-body__inner h3 { font-size: 18px; margin-top: var(--space-35); }
  .gp-body__inner h4 { font-size: 16px; margin-top: var(--space-30); }
  .gp-body__inner p, .gp-body__inner ul, .gp-body__inner ol { font-size: 15px; }
}

/* ====================
   ページ先頭へ戻るボタン
   ==================== */
.to-top {
  position: fixed; right: var(--space-20); bottom: var(--space-20); z-index: 200;
  display: grid; place-items: center; width: 48px; height: 48px;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c-yellow); color: var(--c-ink);
  opacity: 0; visibility: hidden; translate: 0 var(--space-10);
  transition: opacity .25s ease, translate .25s ease, visibility .25s ease, background .25s ease, color .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { background: var(--c-ink); color: var(--c-yellow); }
.to-top svg { width: 18px; height: 18px; }

/* フォーム送信後の着地位置（固定ヘッダーの裏に潜らせない） */
.ct-form__inner, .dl-form__inner { scroll-margin-top: var(--space-100); }

/* 送信完了画面はメッセージ1枚のみ。入力フォーム前提の余白(--space-120)だと間延びするため詰め、
   上のリード文と軸を揃える */
.ct-form__card:has(.mw_wp_form_complete),
.dl-form__card:has(.mw_wp_form_complete) { padding: var(--space-60) var(--space-40); }
.mw_wp_form_complete p { text-align: center; }
