/* ========================================
   Reset CSS (Modern CSS Reset)
   ======================================== */

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

table {
  border-collapse: collapse;
}
/* ========================================
   CSS Custom Properties
   デザインカンプ準拠
   ======================================== */

:root {
  /* ----------------------------------------
     Colors
     ---------------------------------------- */
  --color-primary: #ad0026;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-text-gray: #888888;
  --color-text-dark: #333333;
  --color-dark: #4c4848;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f5f5;
  --color-bg-light-gray: #e5e5e5;
  --color-bg-dark: #4c4848;
  --color-bg-footer: #2d2d2d;
  --color-border: #b8b8b8;
  --color-orange: #f16800;
  --color-placeholder: #cccccc;
  --color-checkbox-border: #aaaaaa;
  --color-page-header-en: #fcafa8;
  --color-border-light: #dddddd;
  --color-border-menu: #e5e5e5;
  --color-border-card: #e7e7e7;
  --color-hamburger: #242422;

  /* ----------------------------------------
     Typography
     ---------------------------------------- */
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-en: 'Roboto Condensed', sans-serif;

  --fz-h2: 24px;
  --fz-h3: 18px;
  --fz-body: 14px;
  --fz-nav: 15px;
  --fz-small: 12px;
  --fz-button: 16px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* ----------------------------------------
     Spacing
     ---------------------------------------- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 20px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* ----------------------------------------
     Layout
     ---------------------------------------- */
  --container-width: 960px;
  --container-width-wide: 1100px;
  --container-padding: 20px;
  --container-padding-narrow: 24px;
  --container-padding-wide: 40px;

  /* ----------------------------------------
     Transition
     ---------------------------------------- */
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* ----------------------------------------
     z-index
     ---------------------------------------- */
  --z-header: 100;
  --z-hamburger-overlay: 999;
  --z-hamburger: 1000;

  /* ----------------------------------------
     Breakpoints (reference only, use in @media)
     768px  — SP → Tablet/PC
     1024px — Tablet → PC
     1280px — PC → PC Wide
     ---------------------------------------- */
}
/* ========================================
   Base Styles
   ======================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fz-body);
  font-weight: var(--fw-medium);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------
   Utility
   ---------------------------------------- */

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* PC/SP display switching — supports block elements and <br> */
.u-sp-only {
  display: none;
}

br.u-sp-only {
  display: none;
}

/* ----------------------------------------
   Scroll Animation
   ---------------------------------------- */

.js-scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js-scroll-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  .u-pc-only {
    display: none;
  }

  br.u-pc-only {
    display: none;
  }

  .u-sp-only {
    display: block;
  }

  br.u-sp-only {
    display: initial;
  }
}
/* ========================================
   Layout: Container
   ======================================== */

.l-container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

.l-container--wide {
  max-width: calc(var(--container-width-wide) + var(--container-padding) * 2);
}
/* ========================================
   Layout: Section
   Common section wrapper used across pages
   ======================================== */

.l-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}
/* ========================================
   Layout: Header
   ======================================== */

/* ----------------------------------------
   CareNet Group Bar (top bar)
   PC: 1440x64 / SP: 390x41
   ---------------------------------------- */

.l-group-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  background-color: var(--color-bg-light-gray);
}

.l-group-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  max-width: calc(var(--container-width-wide) + var(--container-padding-wide) * 2);
  padding: 20px var(--container-padding-wide);
}

.l-group-bar__text {
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
  line-height: 20.4px;
  letter-spacing: 1.68px;
}

.l-group-bar__logo {
  display: block;
  width: 112px;
  height: 24px;
}

.l-group-bar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----------------------------------------
   Header Main
   PC: 1440x88 / SP: 390x60
   left/right padding 240px, inner content 960px
   ---------------------------------------- */

.l-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  height: 88px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.p-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  height: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 16px var(--container-padding);
}

/* ----------------------------------------
   Header Logo
   PC: 164x51 / SP: 140x43
   ---------------------------------------- */

.p-header__logo {
  display: block;
  width: 164px;
  height: 51px;
}

.p-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----------------------------------------
   Navigation (PC)
   ul.p-nav__list 504x57, gap=27
   ---------------------------------------- */

.p-nav {
  display: block;
}

.p-nav__list {
  display: flex;
  align-items: center;
  gap: 27px;
}

.p-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: var(--fz-nav);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 19.5px;
  transition: color 0.3s ease;
}

.p-nav__link:not(.p-nav__link--contact)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.p-nav__link:not(.p-nav__link--contact):hover {
  color: var(--color-primary);
}

.p-nav__link:not(.p-nav__link--contact):hover::after {
  transform: scaleX(1);
}

/* Contact button — 138x40, pad L24 R24 T4 B4, radius=4 */
.p-nav__link--contact {
  min-width: 138px;
  height: 40px;
  padding: 4px 24px;
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.p-nav__link--contact:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ----------------------------------------
   Hamburger Button (SP)
   32x24, 3 lines 2px, gap=9
   ---------------------------------------- */

.p-hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: var(--z-hamburger);
}

.p-hamburger__line {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-hamburger);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.p-hamburger__line:nth-child(1) {
  top: 0;
}

.p-hamburger__line:nth-child(2) {
  top: 11px;
}

.p-hamburger__line:nth-child(3) {
  top: 22px;
}

/* Hamburger active state */
.p-hamburger.is-active .p-hamburger__line:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.p-hamburger.is-active .p-hamburger__line:nth-child(2) {
  opacity: 0;
}

.p-hamburger.is-active .p-hamburger__line:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-nav__list {
    gap: var(--space-sm);
  }

  .p-nav__link {
    font-size: 13px;
    line-height: 16.9px;
  }

  .p-nav__link--contact {
    min-width: 120px;
    padding: 4px var(--space-sm);
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  /* SP CareNet Bar: 390x41, pad L24 R24 T12 B12, gap=12 */
  .l-group-bar {
    height: 41px;
  }

  .l-group-bar__inner {
    gap: 12px;
    padding: 12px 24px;
  }

  .l-group-bar__text {
    font-size: 10px;
    line-height: 17px;
    letter-spacing: 1.4px;
  }

  .l-group-bar__logo {
    width: 56px;
    height: 12px;
  }

  /* SP Header: 390x60, pad L16 R16 T8 B8 */
  .l-header {
    height: 60px;
  }

  .p-header {
    padding: 8px 16px;
  }

  .p-header__logo {
    width: 140px;
    height: 43px;
  }

  .p-nav {
    display: none;
  }

  .p-hamburger {
    display: block;
  }
}
/* ========================================
   Layout: Footer
   PC: 1440x313, bg=#2d2d2d + CareNet bar
   SP: 390x565, bg=#2d2d2d + CareNet bar
   ======================================== */

/* CareNet bar (footer version) */
.l-footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background-color: var(--color-bg-light-gray);
}

.l-footer-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(var(--container-width-wide) + var(--container-padding-narrow) * 2);
  padding: var(--space-sm) var(--container-padding-narrow);
}

.l-footer-bar__text {
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
  line-height: 20.4px;
  letter-spacing: 1.2px;
}

.l-footer-bar__logo {
  display: block;
  width: 112px;
  height: 24px;
}

.l-footer-bar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main footer: h=257, FIXED sizing */
.l-footer {
  width: 100%;
  min-height: 257px;
  background-color: var(--color-bg-footer);
}

/* p-footer: content 960px, aligned with header via same max-width formula */
.p-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 60px var(--container-padding) 28px;
  gap: 48px;
}

/* Top area: logo + nav — vertically centered, nav determines height (21px)
   Logo 55px overflows but centered with nav */
.p-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 21px;
  overflow: visible;
}

/* Footer logo: same as header logo (164x51) in white */
.p-footer__logo {
  display: block;
  width: 164px;
  height: 51px;
}

.p-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer nav: PC horizontal gap=28, 13/700, lh=16.9, white */
.p-footer__nav-list {
  display: flex;
  gap: 28px;
}

.p-footer__nav-link {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 16.9px;
  padding-top: 3px;
  transition: opacity var(--transition-base);
}

.p-footer__nav-link:hover {
  opacity: 0.5;
}

/* Bottom area: company info + copyright — border-top, h=64, pad-top=20 */
.p-footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 64px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-menu);
}

/* Company info: 12/500, lh=21.6, #b8b8b8 */
.p-footer__company-info {
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  font-style: normal;
  color: var(--color-border);
  line-height: 21.6px;
}

/* Copyright: Roboto Condensed/12/600, lh=15.6, #b8b8b8
   Design: 15px below company info start (y=35 vs company y=20) */
.p-footer__copyright {
  font-family: var(--font-en);
  font-size: var(--fz-small);
  font-weight: var(--fw-regular);
  color: var(--color-border);
  line-height: 15.6px;
  white-space: nowrap;
  margin-top: 15px;
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-footer__nav-list {
    gap: var(--space-sm);
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  /* SP footer bar: h=41 */
  .l-footer-bar {
    height: 41px;
  }

  .l-footer-bar__inner {
    padding: 12px var(--space-sm);
  }

  .l-footer-bar__text {
    font-size: 10px;
    line-height: 17px;
  }

  .l-footer-bar__logo {
    width: 56px;
    height: 12px;
  }

  /* SP footer: pad T40 B40 L20 R20, gap=32 */
  .p-footer {
    padding: var(--space-lg) var(--space-md);
    gap: 32px;
  }

  /* SP: top area vertical, gap=24, reset PC height */
  .p-footer__top {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 24px;
  }

  /* SP nav: vertical, gap=14, 13/500, lh=22.1 */
  .p-footer__nav-list {
    flex-direction: column;
    gap: 14px;
  }

  .p-footer__nav-link {
    font-weight: var(--fw-medium);
    line-height: 22.1px;
  }

  /* SP bottom: vertical, gap=40, pad-top ~19, reset PC height */
  .p-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: var(--space-lg);
    padding-top: 19px;
  }

  .p-footer__copyright {
    margin-top: 0;
  }
}
/* ========================================
   Component: Button
   Shared button component used across pages
   ======================================== */

/* PC: 300x62, bg=#fff, r=8, 20/700, lh=26 */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  padding: 17px 0 19px;
  background-color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
  .c-button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
  }
}

/* Dark variant: bg=#4c4848 */
.c-button--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  border: 1px solid var(--color-bg-dark);
}

@media (hover: hover) {
  .c-button--dark:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    border-color: var(--color-bg-dark);
  }
}

/* Orange variant: bg=#f16800 */
.c-button--orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 1px solid var(--color-orange);
}

@media (hover: hover) {
  .c-button--orange:hover {
    background-color: var(--color-white);
    color: var(--color-orange);
    border-color: var(--color-orange);
  }
}

/* Loading state: disabled + cursor wait */
.c-button.is-loading {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  /* SP: 240x57, 16/700, lh=20.8 */
  .c-button {
    width: 240px;
    font-size: var(--fz-button);
    line-height: 20.8px;
  }
}
/* ========================================
   Component: Section Header
   Shared heading + description used across sections
   ======================================== */

/* Text group: gap=20 between heading and description */
.c-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Section heading: 32/700, lh=41.6, center */
.c-section-header__heading {
  font-size: 32px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 41.6px;
  text-align: center;
}

/* White variant */
.c-section-header__heading--white {
  color: var(--color-white);
}

/* Section description: 16/500, lh=28.8, center */
.c-section-header__description {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 28.8px;
  text-align: center;
}

/* White variant */
.c-section-header__description--white {
  color: var(--color-white);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .c-section-header__heading {
    font-size: 28px;
    line-height: 36.4px;
  }

  .c-section-header__description {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .c-section-header__heading {
    font-size: var(--fz-h2);
    line-height: 31.2px;
  }

  .c-section-header__description {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }
}
/* ========================================
   Component: Page Header
   Shared page title section with gradient background
   PC: 1440x280, pad L240 R240 T84 B84
   SP: 390x200 (approx)
   ======================================== */

.c-page-header {
  position: relative;
  overflow: hidden;
  padding: 84px 6%;
}

/* Background: gradient + logomark (reuses merger-bg.webp) */
.c-page-header__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/merger-bg_pc.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.c-page-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  gap: 16px;
}

/* Title block */
.c-page-header__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

/* English subtitle: Roboto/12.6/500, lh=16.4, #fcafa8 */
.c-page-header__title-en {
  font-family: var(--font-en);
  font-size: 12.6px;
  font-weight: var(--fw-medium);
  color: var(--color-page-header-en);
  line-height: 16.4px;
}

/* Japanese title: 36/700, lh=46.8, #fff */
.c-page-header__title-ja {
  font-size: 36px;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 46.8px;
}

/* Breadcrumb: 12/500, lh=15.6, #fff, gap=8 */
.c-page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  line-height: 15.6px;
}

.c-page-header__breadcrumb a {
  position: relative;
}

.c-page-header__breadcrumb a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.c-page-header__breadcrumb a:hover::after {
  transform: scaleX(1);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .c-page-header {
    padding: var(--space-xl) 6%;
  }

  .c-page-header__title-ja {
    font-size: 28px;
    line-height: 36.4px;
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .c-page-header {
    padding: var(--space-xl) var(--space-md);
  }

  .c-page-header__title-ja {
    font-size: var(--fz-h2);
    line-height: 31.2px;
  }

  .c-page-header__title-en {
    font-size: 10px;
    line-height: 13px;
  }

  .c-page-header__bg {
    background-image: url('../../images/merger-bg_sp.webp');
  }
}
/* ========================================
   Component: Mobile Menu (SP)
   390x543, bg=#ffffff
   ======================================== */

/* Hidden by default, shown on SP via media query */
.p-mobile-menu {
  display: none;
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .p-mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    z-index: var(--z-hamburger-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    overflow-y: auto;
  }

  .p-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
  }

  /* Close button */
  .p-mobile-menu__close {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 32px;
    height: 25px;
    z-index: 1;
    cursor: pointer;
  }

  .p-mobile-menu__list {
    padding-top: 140px;
  }

  .p-mobile-menu__item {
    border-bottom: 1px solid var(--color-border-menu);
  }

  /* Menu link — h=48, pad L40 R40 T12 B12, 16/500, lh=23.68 */
  .p-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 12px 40px;
    font-size: var(--fz-button);
    font-weight: var(--fw-medium);
    color: var(--color-text-dark);
    line-height: 23.68px;
    transition: background-color var(--transition-base);
  }

  .p-mobile-menu__link:hover {
    background-color: var(--color-bg-gray);
    color: var(--color-primary);
  }

  /* Menu arrow icon — 7x13 */
  .p-mobile-menu__arrow {
    width: 7px;
    height: 13px;
    flex-shrink: 0;
  }

  /* Menu footer — centered, margin-top=80, inner gap=16 */
  .p-mobile-menu__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-md) var(--space-lg);
  }

  /* Menu logo — larger, centered */
  .p-mobile-menu__logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto var(--space-sm);
  }

  .p-mobile-menu__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Menu address — 12/500, lh=21.6 */
  .p-mobile-menu__address {
    font-size: var(--fz-small);
    font-weight: var(--fw-medium);
    font-style: normal;
    color: #666;
    line-height: 21.6px;
    text-align: center;
  }
}
/* ========================================
   Component: First View (FV)
   PC: 1440x550, pad L240 R240 T120 B120
   SP: 390x440, pad L20 R20 T64 B64
   ======================================== */

/* FV: section-specific styles (common layout via .l-section) */
.p-fv {
  min-height: 550px;
  padding: var(--space-3xl) 6%;
}

.p-fv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/fv-bg_pc.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

/* FV: content wrapper, PC 646x291.8 */
.p-fv__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* FV: sub copy — 16/500, lh=19.2, center, padB=0.8 */
.p-fv__sub-copy {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  line-height: 19.2px;
  text-align: center;
  padding-bottom: 0.8px;
}

/* FV: main copy container — padT=12 padB=16
   height: 251px = padT(12) + text area(223) + padB(16)
   space-between compensates for block-span vs inline line-height difference */
.p-fv__main-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 251px;
  padding-top: 12px;
  padding-bottom: 16px;
  text-align: center;
}

/* FV: main copy sub — 32/700, lh=50.4, ls=2 */
.p-fv__main-copy-sub {
  font-size: 32px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 50.4px;
  letter-spacing: 2px;
}

/* FV: main copy brand — 44/800, lh=50.4, ls=2 */
.p-fv__main-copy-brand {
  font-size: 44px;
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  line-height: 50.4px;
  letter-spacing: 2px;
}

/* FV: English text bar — 20/500, lh=24, ls=4, 636x24, pad L20 R20 */
.p-fv__en-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 636px;
  padding: 0 20px;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: var(--fw-medium);
  color: var(--color-white);
  line-height: 24px;
  letter-spacing: 4px;
  background-color: var(--color-primary);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-fv {
    min-height: 440px;
    padding: var(--space-2xl) 6%;
  }

  .p-fv__sub-copy {
    font-size: 14px;
    line-height: 20px;
  }

  .p-fv__main-copy {
    height: auto;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .p-fv__main-copy-sub {
    font-size: 24px;
    line-height: 40px;
    letter-spacing: 1px;
  }

  .p-fv__main-copy-brand {
    font-size: 32px;
    line-height: 44.8px;
    letter-spacing: 1px;
  }

  .p-fv__en-text {
    max-width: 500px;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 3px;
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  /* SP: 390x440, pad L20 R20 T64 B64 */
  .p-fv {
    min-height: 440px;
    padding: var(--space-xl) 20px;
  }

  .p-fv__bg {
    background-image: url('../../images/fv-bg_sp.webp');
  }

  /* SP: content children gap=15px */
  .p-fv__content {
    gap: 15px;
  }

  /* SP: sub copy — 14/500, lh=20 */
  .p-fv__sub-copy {
    font-size: var(--fz-body);
    line-height: 20px;
    padding-bottom: 0;
  }

  /* SP: main copy — 335x192, gap=0, centered */
  .p-fv__main-copy {
    height: auto;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* SP: main copy sub — 18/700, lh=25.2 */
  .p-fv__main-copy-sub {
    font-size: 18px;
    line-height: 25.2px;
    letter-spacing: 0;
  }

  /* SP: main copy brand — 28/800, lh=39.2 */
  .p-fv__main-copy-brand {
    font-size: 28px;
    font-weight: var(--fw-extrabold);
    line-height: 39.2px;
    letter-spacing: 0;
  }

  /* SP: English text bar — 11/500, lh=15.4, ls=1.1, 243x18, pad L8 R8 T2 B0 */
  .p-fv__en-text {
    width: auto;
    padding: 2px 8px 0;
    min-height: 18px;
    font-size: 11px;
    line-height: 15.4px;
    letter-spacing: 1.1px;
  }
}
/* ========================================
   Component: Merger Section
   PC: 1440x724, pad L240 R240 T120 B120
   SP: 390x867, pad L20 R20 T64 B64
   ======================================== */

/* Merger: section-specific styles (common layout via .l-section) */
.p-merger {
  padding: var(--space-xl) 6% var(--space-3xl);
}

/* Background: gradient #c3190a → #8e001f + logomark overlay */
.p-merger__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/merger-bg_pc.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Inner card: 960x484, bg=#fff, radius=8, pad T56 B56, gap=56 */
.p-merger__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  padding: 56px 0;
  gap: 56px;
  background-color: transparent;
  border-radius: 8px;
}

/* Inner content wrapper: PC 780px in 960px card = 9.4% side padding */
.p-merger__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 9.4%;
}

/* Text wrapper: pad T20 B40 */
.p-merger__text {
  padding-top: 20px;
  padding-bottom: var(--space-lg);
}

/* Body text: 16/500, lh=28.8, left */
.p-merger__text p {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  line-height: 28.8px;
  text-align: left;
}

/* Logo area: PC 756x96, horizontal, gap=20 */
.p-merger__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Unwrap row container so children participate in parent flex layout */
.p-merger__logos-row {
  display: contents;
}

/* Company logo box: border=#e7e7e7, bg=#fff */
.p-merger__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  height: 96px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-card);
}

.p-merger__logo-box--new {
  width: 220px;
  padding: 24px 12px;
  overflow: visible;
}

.p-merger__logo-box img {
  display: block;
  object-fit: contain;
}

/* CCRO logo: 178x54, intentionally exceeds box padding */
.p-merger__logo-box--new img {
  width: 178px;
  height: 54px;
}

/* + and → symbols: 24/700, lh=31.2, color=#b8b8b8, w=24 */
.p-merger__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--color-border);
  line-height: 31.2px;
}

/* Logo box wrapper for badge positioning */
.p-merger__logo-wrap {
  position: relative;
}

/* NEW badge: 45x44, positioned relative to new logo box
   PC: left=-20, top=-22 from box */
.p-merger__badge {
  position: absolute;
  top: -22px;
  left: -20px;
  width: 45px;
  height: 44px;
}

.p-merger__badge img {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-merger {
    min-height: auto;
    padding: var(--space-xl) 6% var(--space-2xl);
  }

  .p-merger__card {
    padding: 40px 0;
    gap: 40px;
  }

  .p-merger__text p {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  .p-merger__logo-box {
    width: 170px;
    height: 80px;
  }

  .p-merger__logo-box--new {
    width: 180px;
    padding: 20px 10px;
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

/* SP logos area: hidden on PC, shown on SP via media query */
.p-merger__logos--stacked {
  display: none;
}

@media (max-width: 767px) {
  /* SP: 390x867, pad L20 R20 T64 B64 */
  .p-merger {
    min-height: auto;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .p-merger__bg {
    background-image: url('../../images/merger-bg_sp.webp');
  }

  .p-merger__card {
    padding: 56px 0;
    gap: 56px;
  }

  /* SP: 308px in 350px card = 6% side padding */
  .p-merger__body {
    padding: 0 6%;
  }

  /* SP: 14/500, lh=25.2 */
  .p-merger__text p {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  /* SP: hide PC logos and PC badge */
  .p-merger__logos {
    display: none;
  }

  /* SP: logos vertical, pad L20 R20, gap=16 */
  .p-merger__logos--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 20px;
    position: relative;
  }

  /* SP: logo row — 310px, SPACE_BETWEEN, ＋ between logos */
  .p-merger__logos-row--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 310px;
  }

  /* SP: logo box images 140x90 (rendered as full box from design) */
  .p-merger__logo-img--boxed {
    width: 140px;
    height: 90px;
    object-fit: contain;
  }

  /* SP: new company logo box 310x90, pad L12 R12 T24 B24 */
  .p-merger__logo-box--new-wide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 310px;
    height: 90px;
    padding: 24px 12px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-card);
  }

  /* SP CCRO logo: 216x70 */
  .p-merger__logo-box--new-wide img {
    width: 216px;
    height: 70px;
    object-fit: contain;
  }

  /* SP: → rotated 90deg to point downward */
  .p-merger__symbol--down {
    width: 31px;
    align-self: center;
    transform: rotate(90deg);
  }

  /* SP badge: left=2, top=-22 from new logo box */
  .p-merger__badge--offset {
    position: absolute;
    top: -22px;
    left: 2px;
    width: 45px;
    height: 44px;
  }
}
/* ========================================
   Component: Guide Section (Former Company Sites)
   PC: 1440x850, bg=#f5f5f5, border-top=#ddd
   SP: 390x1148, bg=#f5f5f5
   ======================================== */

/* Section-specific styles (common layout via .l-section) */
.p-guide {
  padding: var(--space-3xl) 6%;
  background-color: var(--color-bg-gray);
  border-top: 1px solid var(--color-border-light);
}

/* Inner container: PC 960px */
.p-guide__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  gap: 64px;
}

/* Cards container: PC horizontal gap=32, SP vertical gap=24 */
.p-guide__cards {
  display: flex;
  gap: 32px;
}

/* Card */
.p-guide__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: opacity 0.3s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.p-guide__card:hover {
  opacity: 0.5;
}

/* Card image */
.p-guide__card-image {
  width: 100%;
  aspect-ratio: 460 / 240;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.p-guide__card:hover .p-guide__card-image {
  transform: scale(1.05);
}

/* Separator line between image and body */
.p-guide__card-separator {
  height: 1px;
  background-color: var(--color-border-light);
  flex-shrink: 0;
}

/* Card body: PC pad=T12 B28 L20 R20 */
.p-guide__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px var(--space-md) 28px;
  background-color: var(--color-white);
}

/* Card text group: PC gap=0 between children */
.p-guide__card-text {
  display: flex;
  flex-direction: column;
}

/* "旧会社" label: PC 14/700, lh=18.2, #888 */
.p-guide__card-label {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-text-gray);
  line-height: 18.2px;
}

/* Company name: PC 20/700, lh=30, wrapper h=46 (pad T4 B12) */
.p-guide__card-title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 30px;
  padding-top: 4px;
  padding-bottom: 12px;
}

/* Card description: 14/400, lh=25.2 */
.p-guide__card-desc {
  font-size: var(--fz-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 25.2px;
}

/* Link area: PC right-aligned, gap from text group=3px */
.p-guide__card-link-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 3px;
}

/* "サイトを見る" link: 16/700, lh=34, #ad0026 + external icon
   PC: right-aligned, SP: centered */
.p-guide__card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: var(--space-xs);
  padding-top: var(--space-xs);
  font-size: var(--fz-button);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 34px;
  transition: opacity 0.3s;
}

.p-guide__card-link:hover {
  opacity: 0.8;
}

/* External link icon: 18x18 */
.p-guide__card-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-guide {
    padding: var(--space-2xl) 6%;
  }

  .p-guide__inner {
    gap: var(--space-lg);
  }

  .p-guide__cards {
    gap: var(--space-md);
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .p-guide {
    padding: var(--space-xl) var(--space-md);
    border-top: none;
  }

  .p-guide__inner {
    gap: var(--space-lg);
  }

  /* SP: cards vertical, gap=24 */
  .p-guide__cards {
    flex-direction: column;
    gap: 24px;
  }

  /* SP: card body pad=T20 B21 L20 R20, gaps=12 between texts */
  .p-guide__card-body {
    padding: var(--space-md) var(--space-md) 21px;
  }

  .p-guide__card-text {
    gap: 12px;
  }

  /* SP: link centered, gap from desc=19px */
  .p-guide__card-link-area {
    justify-content: center;
    margin-top: 19px;
  }

  /* SP: card with border-radius=4 */
  .p-guide__card {
    border-radius: 4px;
    overflow: hidden;
  }

  .p-guide__card-image {
    aspect-ratio: 460 / 240;
    object-fit: contain;
    background-color: #fff;
  }

  /* SP: company name 18/700, lh=27, reset PC padding */
  .p-guide__card-title {
    font-size: var(--fz-h3);
    line-height: 27px;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* SP: label 12/700, lh=16 */
  .p-guide__card-label {
    font-size: var(--fz-small);
    line-height: 16px;
  }
}
/* ========================================
   Component: CTA Section (Contact)
   PC: 1440x433, bg=#4c4848, pad T120 B120
   SP: 390x293, bg=#4c4848
   ======================================== */

/* Section-specific styles (common layout via .l-section) */
.p-cta {
  padding: var(--space-3xl) 6%;
  background-color: var(--color-bg-dark);
}

/* Inner container: gap=40 between text group and button */
.p-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-cta {
    padding: var(--space-2xl) 6%;
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .p-cta {
    padding: var(--space-xl) var(--space-md);
  }
}
/* ========================================
   Component: Privacy Policy Content
   PC: 960px content, gap=56 between sections
   SP: 350px content, gap=40
   ======================================== */

/* Content area: 64px top padding from page header */
.p-privacy {
  padding: var(--space-xl) 6% var(--space-3xl);
}

.p-privacy__inner {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.p-privacy__body {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Lead text: 16/500, lh=28.8 */
.p-privacy__lead {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 28.8px;
}

/* Section: gap=12 between heading and text */
.p-privacy__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Section heading row: number + title */
.p-privacy__section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #B8B8B8;
}

/* Section number: Roboto/20/500, lh=20, #ad0026 */
.p-privacy__section-number {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  line-height: 20px;
  flex-shrink: 0;
  width: 26px;
  position: relative;
  top: 3px;
}

/* Section title: 20/700, lh=32 */
.p-privacy__section-title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 32px;
}

/* Section text: 16/400, lh=28.8 */
.p-privacy__section-text {
  font-size: var(--fz-button);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 28.8px;
}

/* Nested list in section: bullet style with ・ */
.p-privacy__section-list {
  font-size: var(--fz-button);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 28.8px;
  list-style: none;
  padding-left: 0;
}

.p-privacy__section-list li::before {
  content: '・';
}

/* Contact section (separate from numbered sections) */
.p-privacy__contact {
  margin-top: 56px;
}

.p-privacy__contact-title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 32px;
  margin-bottom: 12px;
}

.p-privacy__contact-text {
  font-size: var(--fz-button);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 28.8px;
}

.p-privacy__date {
  font-size: var(--fz-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 28.8px;
  text-align: right;
  margin-top: var(--space-md);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-privacy {
    padding: var(--space-xl) 6% var(--space-2xl);
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .p-privacy {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .p-privacy__body {
    gap: var(--space-lg);
  }

  /* SP: 14/500, lh=25.2 */
  .p-privacy__lead {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  /* SP: section heading number smaller gap */
  .p-privacy__section-heading {
    gap: 4px;
  }

  .p-privacy__section-number {
    font-size: 15px;
    top: 2px;
  }

  /* SP: 15/700, lh=24 */
  .p-privacy__section-title {
    font-size: 15px;
    line-height: 24px;
  }

  /* SP: 14/400, lh=25.2 */
  .p-privacy__section-text {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  .p-privacy__section-list {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  .p-privacy__section-list li::before {
    content: '・';
  }

  .p-privacy__contact-title {
    font-size: 15px;
    line-height: 24px;
  }

  .p-privacy__contact-text {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  .p-privacy__date {
    font-size: var(--fz-body);
  }
}
/* ========================================
   Component: Thanks Page Content
   PC: 960px content
   SP: 350px content
   ======================================== */

.p-thanks {
  padding: var(--space-xl) 6% var(--space-3xl);
}

.p-thanks__inner {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.p-thanks__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Thank you message area: gap=20, items centered horizontally */
.p-thanks__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Check icon: 80x80 circle */
.p-thanks__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* Thank you heading: 24/700, lh=38.4, centered */
.p-thanks__heading {
  font-size: var(--fz-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 38.4px;
  text-align: center;
}

/* Thank you description: 16/500, lh=25.6, centered */
.p-thanks__description {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 25.6px;
  text-align: center;
}

/* Detail section: gap=20 */
.p-thanks__detail-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Detail heading: 20/700, lh=24 */
.p-thanks__detail-heading {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 24px;
}

/* Detail table */
.p-thanks__detail-table {
  width: 100%;
  border-collapse: collapse;
}

/* Row: border-bottom=#e5e5e5, padT=16, gap=24 between th and td */
.p-thanks__detail-table tr {
  border-bottom: 1px solid var(--color-border-menu);
}

.p-thanks__detail-table th,
.p-thanks__detail-table td {
  padding: 16px 0;
  font-size: var(--fz-body);
  text-align: left;
  vertical-align: top;
}

/* th: 14/700, lh=22.4, #1a1a1a, w=200 */
.p-thanks__detail-table th {
  width: 200px;
  padding-right: 24px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 22.4px;
}

/* td: 14/400, lh=21, #333 */
.p-thanks__detail-table td {
  font-weight: var(--fw-regular);
  color: var(--color-text-dark);
  line-height: 21px;
}

/* Button area: pad-top=40, centered */
.p-thanks__action {
  display: flex;
  justify-content: center;
  padding-top: var(--space-lg);
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-thanks {
    padding: var(--space-xl) 6% var(--space-2xl);
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .p-thanks {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .p-thanks__icon {
    width: 50px;
    height: 50px;
  }

  /* SP: 18/700, lh=28.8 */
  .p-thanks__heading {
    font-size: var(--fz-h3);
    line-height: 28.8px;
  }

  /* SP: 14/500, lh=22.4 */
  .p-thanks__description {
    font-size: var(--fz-body);
    line-height: 22.4px;
  }

  /* SP: 18/700, lh=24 */
  .p-thanks__detail-heading {
    font-size: var(--fz-h3);
  }

  /* SP: table vertical layout */
  .p-thanks__detail-table th,
  .p-thanks__detail-table td {
    display: block;
    width: 100%;
    font-size: var(--fz-body);
    line-height: 22.4px;
    padding: 0;
  }

  .p-thanks__detail-table th {
    padding-top: var(--space-sm);
  }

  .p-thanks__detail-table td {
    padding-bottom: var(--space-sm);
  }

  .p-thanks__detail-table tr {
    display: block;
  }
}
/* ========================================
   Component: Form
   PC: 960px, single column, groups stacked vertically
   SP: same structure
   ======================================== */

.p-contact {
  padding: var(--space-xl) 6% var(--space-3xl);
}

.p-contact__inner {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.p-contact__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Intro: lead + required note, gap=12 */
.p-contact__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Lead text: 16/500, lh=28.8, center */
.p-contact__lead {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 28.8px;
  text-align: center;
}

/* Required note: 16/500, lh=28.8, center — "必須" is red text */
.p-contact__required-note {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 28.8px;
  text-align: center;
}

.p-contact__required-note .f-form__required-text {
  color: var(--color-primary);
}

/* ----------------------------------------
   Form layout — single column, no gap between rows
   ---------------------------------------- */

/* Form groups stack vertically with no gap between them */
.f-form {
  display: flex;
  flex-direction: column;
}

/* Group wrapper: padB=32 (bottom spacing between groups) */
.f-form__group-wrap {
  padding-bottom: 32px;
}

/* Textarea group: no bottom padding (agreement area has its own padT) */
.f-form__group-wrap--textarea {
  padding-bottom: 0;
}

/* Group: gap=8 between label and input */
.f-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Label row: label + required badge */
.f-form__label-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Label: 15/700, lh=19.5 */
.f-form__label {
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 19.5px;
}

/* Required badge: bg=#ad0026, 12/700, #fff, r=2, 40x19 */
.f-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 19px;
  padding: 0 6px;
  background-color: var(--color-primary);
  border-radius: 2px;
  font-size: var(--fz-small);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
}

/* Input: h=48, bg=#fff, border=#b8b8b8, r=4, pad L16 R16 */
.f-form__input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: var(--fz-body);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 48px;
}

.f-form__input::placeholder {
  color: var(--color-placeholder);
  font-weight: var(--fw-medium);
}

/* Textarea: h=200, same styling as input */
.f-form__textarea {
  width: 100%;
  height: 200px;
  padding: 15px var(--space-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: var(--fz-body);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 18.2px;
  resize: vertical;
}

.f-form__textarea::placeholder {
  color: var(--color-placeholder);
  font-weight: var(--fw-medium);
}

/* Agreement: padT=47, centered, checkbox + text, error below */
.f-form__agreement {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 47px;
}

.f-form__agreement-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Checkbox: 20x20, border=#aaa, r=3 */
.f-form__checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-checkbox-border);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
}

.f-form__checkbox:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L5 8.5L13 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Agreement text: 14/700, lh=23.8 */
.f-form__agreement-text {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 23.8px;
}

.f-form__agreement-text a {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.f-form__agreement-text a:hover {
  color: var(--color-primary);
}

/* Submit area: padT=40, centered, gap=16 */
.f-form__submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
}


/* Submit note: 12/500, lh=20.4, #888 */
.f-form__submit-note {
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-gray);
  line-height: 20.4px;
}

/* Error message */
.f-form__error {
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  line-height: 18px;
  display: none;
}

.f-form__group.is-error .f-form__input,
.f-form__group.is-error .f-form__textarea {
  border-color: var(--color-primary);
}

.f-form__group.is-error .f-form__error {
  display: block;
}

/* Agreement error */
.f-form__agreement-error {
  display: none;
  font-size: var(--fz-small);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  line-height: 18px;
  margin-top: var(--space-xs);
}

.f-form__agreement.is-error .f-form__agreement-error {
  display: block;
}

.f-form__agreement.is-error .f-form__checkbox {
  border-color: var(--color-primary);
}

/* Server-side validation error display */
.f-form__server-errors {
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  background-color: #fef2f2;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  font-size: var(--fz-body);
  line-height: 25.2px;
}

.f-form__server-errors ul {
  margin-top: var(--space-xs);
  padding-left: var(--space-md);
  list-style: disc;
}

/* Honeypot field (hidden from users, visible to bots) */
.f-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ----------------------------------------
   Tablet Responsive (768px - 1023px)
   ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-contact {
    padding: var(--space-xl) 6% var(--space-2xl);
  }
}

/* ----------------------------------------
   SP Responsive (- 767px)
   ---------------------------------------- */

@media (max-width: 767px) {
  .p-contact {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .p-contact__lead {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  .p-contact__required-note {
    font-size: var(--fz-body);
    line-height: 25.2px;
  }

  .f-form__group-wrap {
    padding-bottom: var(--space-md);
  }

  .f-form__group-wrap--textarea {
    padding-bottom: var(--space-md);
  }

  .f-form__agreement {
    padding-top: var(--space-md);
  }
}

/* ========================================
   Component: 404 Not Found
   ======================================== */

.p-notfound {
  padding: var(--space-xl) 6% var(--space-3xl);
}

.p-notfound__inner {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.p-notfound__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.p-notfound__heading {
  font-size: var(--fz-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 38.4px;
  text-align: center;
}

.p-notfound__description {
  font-size: var(--fz-button);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  line-height: 28.8px;
  text-align: center;
}

.p-notfound__action {
  padding-top: var(--space-md);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .p-notfound {
    padding: var(--space-xl) 6% var(--space-2xl);
  }
}

@media (max-width: 767px) {
  .p-notfound {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .p-notfound__heading {
    font-size: var(--fz-h3);
    line-height: 28.8px;
  }

  .p-notfound__description {
    font-size: var(--fz-body);
    color: var(--color-text);
    line-height: 25.2px;
  }
}

/* ========================================
   Component: Page Top Button
   ======================================== */

.c-page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-text);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  z-index: 90;
}

.c-page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) {
  .c-page-top:hover {
    background-color: var(--color-primary);
  }
}

@media (max-width: 767px) {
  .c-page-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
