/* ================================================================
   Foundation
   ================================================================ */

:root {
  /* カラー — design-system.md 準拠 */
  --color-primary: #0D5E9E;
  --color-primary-dark: #084B7E;
  --color-primary-light: #E8F1F8;
  --color-secondary: #2E8B57;
  --color-secondary-light: #E6F4EC;
  --color-accent: #E8620A;
  --color-accent-hover: #D45500;
  --color-text: #222;
  --color-text-light: #555;
  --color-text-muted: #888;
  --color-bg: #fff;
  --color-bg-sub: #F5F8FA;
  --color-bg-dark: #0D2137;
  --color-border: #D9E2E8;
  --color-border-light: #EDF1F4;

  /* タイポグラフィ */
  --font-family-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-family-en: "Montserrat", sans-serif;
  --fz-hero: clamp(1.75rem, 4vw, 3rem);
  --fz-heading: clamp(1.375rem, 3vw, 2.25rem);
  --fz-subheading: clamp(1.125rem, 2vw, 1.5rem);
  --fz-body: clamp(0.875rem, 1.2vw, 1rem);
  --fz-small: clamp(0.75rem, 1vw, 0.875rem);
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-regular: 400;

  /* 余白 — 8px基準 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-width: 1100px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* ヘッダー高さ */
  --header-height: 80px;
  --header-height-sp: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family-base);
  font-size: var(--fz-body);
  font-weight: var(--fw-regular);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ================================================================
   Layout
   ================================================================ */

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

.l-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* --- ヘッダー --- */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-sp);
  background-color: #fff;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.l-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(13, 33, 55, 0.08);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 0 0 clamp(1.5rem, 4vw, 3rem);
}

.l-header__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.2;
}

.l-header__logo-img {
  display: block;
  height: clamp(32px, 4vw, 44px);
  width: auto;
  max-width: 260px;
}

.l-header__right {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.l-header__nav {
  display: flex;
  align-items: center;
  padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
}

.l-header__nav-list {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  list-style: none;
}

.l-header__nav-link {
  position: relative;
  font-size: clamp(0.6875rem, 1.2vw, 0.875rem);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.l-header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
}

.l-header__nav-link:hover,
.l-header__nav-link.is-current {
  color: var(--color-primary);
}

.l-header__nav-link:hover::after,
.l-header__nav-link.is-current::after {
  width: 100%;
}

.l-header__nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.l-header__actions {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.l-header__phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.2rem, 2vw, 2rem);
  height: 100%;
  background-color: #e8f0f8;
}

.l-header__phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-primary);
  transition: opacity 0.25s ease;
}

.l-header__phone-btn:hover {
  opacity: 0.7;
}

.l-header__phone-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.l-header__phone-number {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.6rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.l-header__phone-hours {
  font-size: 0.625rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  margin-top: 4px;
  text-align: right;
}

.l-header__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 clamp(1rem, 2vw, 3rem);
  height: 100%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
  font-weight: var(--fw-bold);
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
  transition: background-color 0.25s ease;
}

.l-header__contact-icon {
  display: block;
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  margin-top: 3px;
}

.l-header__contact-btn:hover {
  background-color: var(--color-primary-dark, #0a4a7e);
}

.l-header__sp-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-right: clamp(0.75rem, 3vw, 1.5rem);
}

.l-header__sp-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.25s ease;
}

.l-header__sp-phone:hover {
  background-color: var(--color-primary-light);
}

/* ハンバーガー */
.l-header__hamburger {
  position: relative;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.l-header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  left: 4px;
}

.l-header__hamburger-line:nth-child(1) { top: 8px; }
.l-header__hamburger-line:nth-child(2) { top: 15px; }
.l-header__hamburger-line:nth-child(3) { top: 22px; }

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(2) {
  opacity: 0;
}
.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* --- フッター --- */
.l-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: calc(var(--space-lg) + 60px);
}

.l-footer__nav-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: var(--space-2xl);
}

.l-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.l-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.l-footer__logo-img {
  display: block;
  height: clamp(32px, 4vw, 44px);
  width: auto;
  max-width: 260px;
}

.l-footer__address {
  font-style: normal;
  font-size: var(--fz-small);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.l-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--fz-small);
  transition: color 0.25s ease;
}

.l-footer__phone:hover { color: #fff; }

.l-footer__heading {
  font-size: 0.8125rem;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
}

.l-footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.l-footer__nav-list > li {
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.l-footer__nav-list > li:last-child {
  border-bottom: none;
}

.l-footer__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--fz-body);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.l-footer__nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.l-footer__area-text {
  font-size: var(--fz-small);
  line-height: 1.8;
}

.l-footer__org-list {
  list-style: none;
  font-size: var(--fz-small);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.l-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  text-align: center;
}

.l-footer__copyright {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ================================================================
   Component
   ================================================================ */

/* --- スキップリンク --- */
.c-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: #fff;
  padding: 8px 24px;
  border-radius: 0 0 6px 6px;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s ease;
}

.c-skip-link:focus {
  top: 0;
}

/* --- ボタン --- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.c-btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.c-btn--accent {
  background-color: var(--color-accent);
  color: #fff;
  padding: 14px 32px;
  font-size: 0.9375rem;
  box-shadow: 0 4px 12px rgba(232, 98, 10, 0.25);
}

.c-btn--accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 98, 10, 0.3);
}

.c-btn--sm {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

.c-btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.c-btn--full {
  width: 100%;
}

.c-btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 32px;
  font-size: 0.9375rem;
}

.c-btn--outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* --- セクション見出し --- */
.c-section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.c-section-heading__en {
  display: block;
  font-weight: var(--fw-bold);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.c-section-heading__ja {
  font-size: var(--fz-heading);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.c-section-heading__line {
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* 明るい背景版 */
.c-section-heading--light .c-section-heading__en {
  color: rgba(255, 255, 255, 0.5);
}

.c-section-heading--light .c-section-heading__ja {
  color: #fff;
}

.c-section-heading--light .c-section-heading__line {
  background-color: var(--color-accent);
}

/* --- カード --- */
.c-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.c-card__body {
  padding: var(--space-md);
}

.c-card__title {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.c-card__desc {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.c-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.25s ease;
}

.c-card__link:hover {
  gap: 8px;
}

/* --- プレースホルダー --- */
.c-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  width: 100%;
  min-height: 200px;
}

.c-placeholder__icon {
  margin-bottom: 12px;
}

.c-placeholder__text {
  color: #999;
  font-size: 0.8125rem;
}

.c-placeholder--hero {
  min-height: 300px;
  border-radius: 12px;
  background-color: #e8edf1;
}

.c-placeholder--mv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background-color: #3a5a78;
  border-radius: 0;
}

.c-placeholder--card {
  min-height: 180px;
  background-color: #eaeff2;
}

.c-placeholder--map {
  min-height: 280px;
  border-radius: 8px;
  background-color: #e8edf1;
}

/* ================================================================
   Project
   ================================================================ */

/* --- ドロワー --- */
.p-drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 33, 55, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 110;
}

.p-drawer__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.p-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background-color: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 120;
  overflow-y: auto;
  padding: var(--space-md);
}

.p-drawer.is-open {
  transform: translateX(0);
}

.p-drawer__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-md);
}

.p-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: 50%;
  transition: background-color 0.25s ease;
}

.p-drawer__close:hover {
  background-color: var(--color-bg-sub);
}

.p-drawer__list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.p-drawer__link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.25s ease;
}

.p-drawer__link:hover,
.p-drawer__link.is-current {
  color: var(--color-primary);
}

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

.p-drawer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}

.p-drawer__btn:hover {
  background-color: var(--color-primary-dark, #0a4a7e);
}

.p-drawer__btn--phone {
  background-color: #e8f0f8;
  color: var(--color-primary);
}

.p-drawer__btn--phone:hover {
  background-color: #d4e4f2;
}

.p-drawer__note {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: left;
  line-height: 1.6;
}

/* --- メインビジュアル --- */
.p-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height-sp));
  min-height: 420px;
  margin-top: var(--header-height-sp);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.p-hero__mv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.p-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(8, 30, 52, 0.75) 0%,
    rgba(13, 94, 158, 0.5) 50%,
    rgba(8, 30, 52, 0.6) 100%
  );
  z-index: 1;
}

.p-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: var(--space-lg);
}

.p-hero__content {
  color: #fff;
  max-width: 700px;
}

.p-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.p-hero__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.p-hero__title {
  font-size: clamp(1.25rem, 4.5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.45;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.6s ease 0.25s both;
}

.p-hero__subtitle {
  font-size: clamp(0.75rem, 1.5vw, 1.0625rem);
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.p-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease 0.55s both;
}

.p-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 56px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: var(--fw-bold);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .p-hero__btn {
    width: 100%;
    padding: 18px 24px;
  }
}

.p-hero__btn:hover {
  opacity: 0.85;
}

.p-hero__btn--contact {
  background-color: var(--color-primary);
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.03em;
}

/* スクロール目印 */
.p-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.6s ease 1s both;
}

.p-hero__scroll-text {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.p-hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.15);
}

.p-hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  50.01% { top: -100%; }
  100% { top: 100%; }
}

/* --- 現場の課題 --- */
.p-challenge {
  background-color: var(--color-bg-sub);
}

.p-challenge .c-section-heading {
  margin-bottom: var(--space-lg);
}

.p-challenge__lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--fz-body);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.p-challenge__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.p-challenge__card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p-challenge__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
}

.p-challenge__icon-wrap svg {
  stroke: currentColor;
}

.p-challenge__text {
  font-size: var(--fz-body);
  line-height: 1.8;
  color: var(--color-text);
}

.p-challenge__text strong {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.p-challenge__resolve {
  text-align: center;
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-top: var(--space-xl);
}

.p-challenge__resolve strong {
  color: var(--color-primary);
}

/* --- 強み --- */
.p-strength {
  background-color: var(--color-bg);
}

.p-strength .c-section-heading {
  margin-bottom: var(--space-xl);
}

.p-strength__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 16px;
}

.p-strength .l-container {
  max-width: 1280px;
}

.p-strength__item {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--color-border);
  overflow: visible;
}

.p-strength__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.p-strength__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-placeholder--strength {
  width: 100%;
  height: 100%;
  min-height: auto;
  background-color: #e4ecf3;
}

.p-strength__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: var(--space-md) var(--space-sm) var(--space-md);
}

.p-strength__icon {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.p-strength__item:hover .p-strength__icon {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.p-strength__text {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

/* --- サービス --- */
.p-service {
  background-color: var(--color-bg-sub);
}

.p-service__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* --- プロの品質基準 --- */
.p-pro-standard {
  background-color: var(--color-bg-sub);
}

.p-pro-standard .c-section-heading {
  margin-bottom: var(--space-lg);
}

.p-pro-standard__lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--fz-body);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.p-pro-standard__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.p-pro-standard__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p-pro-standard__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-en);
  font-weight: var(--fw-bold);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.p-pro-standard__body {
  flex: 1;
}

.p-pro-standard__label {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.p-pro-standard__desc {
  font-size: var(--fz-body);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- 選ばれる理由 --- */
.p-reason {
  position: relative;
  background-color: var(--color-bg-dark);
  overflow: hidden;
}

.p-reason__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(13, 94, 158, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(46, 139, 87, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.p-reason__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.p-reason__item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.04);
}

.p-reason__number {
  display: block;
  font-family: var(--font-family-en);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.p-reason__number small {
  font-size: 0.45em;
  font-weight: var(--fw-bold);
  font-family: var(--font-family-base);
  opacity: 0.8;
}

.p-reason__label {
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.p-reason__desc {
  font-size: var(--fz-small);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.p-reason__orgs {
  position: relative;
  text-align: center;
}

.p-reason__orgs-title {
  font-size: var(--fz-small);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.08em;
}

.p-reason__orgs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.p-reason__org {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.p-reason__org-name {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- ご利用の流れ --- */
.p-flow {
  background-color: var(--color-bg);
}

.p-flow__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
}

.p-flow__timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background-color: var(--color-border);
}

.p-flow__item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.p-flow__item:last-child {
  padding-bottom: 0;
}

.p-flow__step {
  position: absolute;
  left: -40px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-en);
  font-weight: 800;
  font-size: 0.875rem;
  z-index: 1;
}

.p-flow__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
  line-height: 1.4;
  padding-top: 6px;
}

.p-flow__desc {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- 料金 --- */
.p-price {
  background-color: var(--color-bg-sub);
}

.p-price__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.p-price__card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-price__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.p-price__card-header {
  background-color: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.p-price__card-type {
  font-family: var(--font-family-en);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.p-price__card-body {
  padding: var(--space-md);
  text-align: center;
}

.p-price__card-price {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.p-price__card-price small {
  font-size: 0.5em;
  font-weight: var(--fw-regular);
  color: var(--color-text-light);
}

.p-price__card-note {
  font-size: var(--fz-small);
  color: var(--color-text-muted);
}

.p-price__notice {
  text-align: center;
  font-size: var(--fz-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.p-price__action {
  text-align: center;
}

/* --- 実績 --- */
.p-record {
  position: relative;
  background-color: var(--color-primary);
  overflow: hidden;
  padding: 0;
}

.p-record.l-section {
  padding: 0;
}

.p-record__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a4a7e 0%, var(--color-primary) 50%, #1a7ab5 100%);
}

.p-record__layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.p-record__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.c-placeholder--record {
  width: 100%;
  height: 100%;
  min-height: auto;
  background-color: #3a5a78;
}

.c-placeholder--record .c-placeholder__icon {
  opacity: 0.5;
}

.c-placeholder--record .c-placeholder__text {
  color: rgba(255, 255, 255, 0.4);
}

.p-record__content {
  color: #fff;
  padding: var(--section-padding) var(--container-padding);
}

.p-record__item + .p-record__item {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.p-record__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  vertical-align: middle;
  margin-right: 10px;
}


.p-record__num {
  display: flex;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.p-record__num small {
  font-size: 0.5em;
  font-family: var(--font-family-base);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.p-record__text {
  font-size: var(--fz-body);
  line-height: 1.9;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.p-record__text strong {
  font-weight: var(--fw-bold);
  opacity: 1;
}

/* --- 対応エリア --- */
.p-area {
  background-color: var(--color-bg);
}

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

.p-area__map {
  width: 100%;
}

.p-area__map .c-placeholder {
  min-height: 360px;
}

.p-area__lead {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.p-area__group {
  margin-bottom: var(--space-md);
}

.p-area__group:last-child {
  margin-bottom: 0;
}

.p-area__group-title {
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
  padding-left: 12px;
  border-left: 3px solid var(--color-border);
}

.p-area__group-title--primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.p-area__group-title--secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.p-area__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-area__tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.p-area__tag--primary {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.p-area__tag--secondary {
  background-color: var(--color-secondary-light);
  border-color: var(--color-secondary);
  color: #1a6b3e;
}

.p-area__other-text {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- CTA --- */
.p-cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  overflow: hidden;
}

.p-cta-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.p-cta-section__inner {
  position: relative;
  text-align: center;
  color: #fff;
}

.p-cta-section__title {
  font-size: var(--fz-heading);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.p-cta-section__subtitle {
  font-size: var(--fz-body);
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

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

.p-cta-section__phone-number,
.p-cta-section__actions .c-btn--cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 280px;
  height: 60px;
  padding: 0 24px;
  background-color: #fff;
  border: none;
  border-radius: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.25s ease;
}

.p-cta-section__phone-number {
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.03em;
}

.p-cta-section__phone-number svg,
.p-cta-section__actions .c-btn--cta-primary svg {
  flex-shrink: 0;
}

.p-cta-section__phone-number:hover,
.p-cta-section__actions .c-btn--cta-primary:hover {
  background-color: var(--color-primary-light);
  transform: none;
}

@media (min-width: 768px) {
  .p-cta-section__actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
  }
}

.p-cta-section__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  list-style: none;
}

.p-cta-section__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fz-small);
  color: rgba(255, 255, 255, 0.8);
}

/* --- ページヘッダー（下層共通） --- */
.p-page-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-top: var(--header-height-sp);
  overflow: hidden;
}

.p-page-header__mv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.c-placeholder--page-header {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background-color: #2a4a6b;
}

.p-page-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(8, 30, 52, 0.7) 0%,
    rgba(13, 94, 158, 0.5) 50%,
    rgba(8, 30, 52, 0.6) 100%
  );
  z-index: 1;
}

.p-page-header__inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.p-page-header__en {
  display: block;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.p-page-header__title {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
}

/* --- パンくずリスト --- */
.p-breadcrumb {
  background-color: var(--color-bg-sub);
  border-bottom: 1px solid var(--color-border-light);
}

.p-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 12px 0;
  font-size: var(--fz-small);
}

.p-breadcrumb__item {
  display: flex;
  align-items: center;
}

.p-breadcrumb__item + .p-breadcrumb__item::before {
  content: ">";
  display: inline-block;
  margin: 0 10px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.p-breadcrumb__link {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

.p-breadcrumb__link:hover {
  color: var(--color-primary);
}

.p-breadcrumb__current {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}

/* --- 電話お問い合わせセクション --- */
.p-contact-phone {
  padding-top: var(--space-xl);
  padding-bottom: 0;
}

.p-contact-phone__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
}

.p-contact-phone__icon {
  color: var(--color-primary);
}

.p-contact-phone__label {
  font-size: var(--fz-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.p-contact-phone__number {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.p-contact-phone__number:hover {
  opacity: 0.7;
}

.p-contact-phone__note {
  font-size: var(--fz-small);
  color: var(--color-text-light);
}

.p-contact-phone__divider {
  margin: 0 4px;
}

/* --- フォームセクション --- */
.p-contact-form__lead {
  text-align: center;
  font-size: var(--fz-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.p-contact-form__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  list-style: none;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.p-contact-form__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--color-primary-light);
  border-radius: 100px;
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.p-contact-form__badge-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.p-contact-form__form {
  width: 100%;
}

.p-contact-form__group {
  margin-bottom: var(--space-lg);
}

.p-contact-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fz-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.p-contact-form__required {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 3px;
  line-height: 1.4;
}

.p-contact-form__optional {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  background-color: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  line-height: 1.4;
}

.p-contact-form__input,
.p-contact-form__select,
.p-contact-form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: var(--fz-body);
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
}

.p-contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.p-contact-form__textarea {
  resize: vertical;
  min-height: 160px;
}

.p-contact-form__input:focus,
.p-contact-form__select:focus,
.p-contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 94, 158, 0.12);
}

.p-contact-form__input::placeholder,
.p-contact-form__textarea::placeholder {
  color: var(--color-text-muted);
}

.p-contact-form__submit {
  text-align: center;
  margin-top: var(--space-xl);
}

.p-contact-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 64px;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-family-base);
  color: #fff;
  background-color: var(--color-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.p-contact-form__btn:hover {
  background-color: var(--color-primary-dark);
}

/* --- CF7 スタイル調整 --- */

/* 送信ボタン: inputにはSVG子要素を持てないためbackground-imageでアイコンを表示 */
/* アイコン(18px) + gap(10px) = 28px。padding-left = 右余白 + 28px で中央揃えに見せる */
.wpcf7-submit.p-contact-form__btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: left 50px center;
  padding-left: 78px;
  padding-right: 50px;
}

/* CF7スピナー（送信中のグルグル）を非表示 */
.wpcf7-spinner {
  display: none !important;
}


/* selectのinclude_blankプレースホルダー */
.p-contact-form__select option[value=""] {
  color: var(--color-text-muted);
}

/* バリデーションエラー文言 */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: var(--fz-small);
  color: var(--color-secondary);
}

/* エラー時のフィールド枠線 */
.wpcf7-not-valid {
  border-color: var(--color-secondary) !important;
}

/* 送信結果メッセージ（フォーム下部） */
.wpcf7 form .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  margin: var(--space-md) 0 0 !important;
  padding: var(--space-md) var(--space-lg) !important;
  border: none !important;
  border-radius: 4px;
  background-color: var(--color-secondary-light);
  font-size: var(--fz-small);
  color: var(--color-text);
}

/* --- お問い合わせ後の流れ --- */
.p-contact-flow {
  background-color: var(--color-bg-sub);
}

.p-contact-flow__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.p-contact-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.p-contact-flow__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-family-en);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

.p-contact-flow__step-title {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.p-contact-flow__step-text {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.6;
}

.p-contact-flow__note {
  text-align: center;
  font-size: var(--fz-body);
  color: var(--color-text-light);
}

/* --- サンクスページ --- */
.p-thanks {
  text-align: center;
}

.p-thanks__inner {
  max-width: 640px;
  margin: 0 auto;
}

.p-thanks__icon {
  margin-bottom: var(--space-lg);
}

.p-thanks__title {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.p-thanks__text {
  font-size: var(--fz-body);
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.p-thanks__note {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.8;
  text-align: left;
  padding: var(--space-md);
  background-color: var(--color-bg-sub);
  border-radius: 6px;
  margin-bottom: var(--space-xl);
}

.p-thanks__actions {
  display: flex;
  justify-content: center;
}

/* --- 404ページ --- */
.p-404 {
  text-align: center;
}

.p-404__inner {
  max-width: 640px;
  margin: 0 auto;
}

.p-404__code {
  font-family: "Roboto", sans-serif;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.15;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.p-404__title {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.p-404__text {
  font-size: var(--fz-body);
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.p-404__suggestions {
  list-style: none;
  padding: var(--space-md);
  background-color: var(--color-bg-sub);
  border-radius: 6px;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.p-404__suggestions li {
  position: relative;
  padding-left: 1.2em;
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.8;
}

.p-404__suggestions li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.p-404__actions {
  display: flex;
  justify-content: center;
}

/* --- 会社概要：基本情報テーブル --- */
.p-company-info__table-wrap {
  overflow-x: auto;
}

.p-company-info__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fz-body);
}

.p-company-info__table th,
.p-company-info__table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.p-company-info__table tr:first-child th,
.p-company-info__table tr:first-child td {
  border-top: 1px solid var(--color-border);
}

.p-company-info__table th {
  width: 160px;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  white-space: nowrap;
}

.p-company-info__pending {
  display: inline-block;
  color: var(--color-accent);
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
}

/* --- 会社概要：資格・認定証 --- */
.p-company-cert {
  background-color: var(--color-bg-sub);
}

.p-company-cert__group {
  margin-bottom: var(--space-xl);
}

.p-company-cert__group:last-child {
  margin-bottom: 0;
}

.p-company-cert__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border-light);
}

.p-company-cert__grid {
  display: grid;
  gap: var(--space-md);
  list-style: none;
}

/* 賞状タイプ: SP 1列 */
.p-company-cert__grid--certificate {
  grid-template-columns: 1fr;
}

/* カードタイプ: SP 2列 */
.p-company-cert__grid--card {
  grid-template-columns: repeat(2, 1fr);
}

.p-company-cert__card {
  background-color: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.p-company-cert__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 画像ボタン（クリック領域） */
.p-company-cert__img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.p-company-cert__img-wrap {
  width: 100%;
}

.p-company-cert__img-wrap--portrait {
  aspect-ratio: 3 / 4;
}

.p-company-cert__img-wrap--landscape {
  aspect-ratio: 16 / 10;
}

.p-company-cert__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 賞状タイプ（縦長A4） */
.c-placeholder--cert-portrait {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 0;
}

/* カードタイプ（横長ID） */
.c-placeholder--cert-landscape {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 0;
}

/* ホバー時の暗転オーバーレイ */
.p-company-cert__img-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.p-company-cert__img-btn:hover::after,
.p-company-cert__img-btn:focus-visible::after {
  background-color: rgba(0, 0, 0, 0.35);
}

/* 拡大ヒント（中央表示） */
.p-company-cert__zoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.p-company-cert__img-btn:hover .p-company-cert__zoom-hint,
.p-company-cert__img-btn:focus-visible .p-company-cert__zoom-hint {
  opacity: 1;
}

.p-company-cert__body {
  padding: var(--space-sm);
  text-align: center;
}

.p-company-cert__name {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 4px;
}

.p-company-cert__number {
  font-family: "Roboto", sans-serif;
  font-size: var(--fz-small);
  font-weight: 500;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  /* 賞状タイプ: PC 2列 */
  .p-company-cert__grid--certificate {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* カードタイプ: PC 3列 */
  .p-company-cert__grid--card {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .p-company-cert__body {
    padding: var(--space-sm) var(--space-md);
  }
}

/* --- 資格画像モーダル --- */
.p-cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.p-cert-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.p-cert-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.p-cert-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.p-cert-modal.is-open .p-cert-modal__content {
  transform: scale(1);
}

/* フレーム: 画像を囲む相対配置コンテナ */
.p-cert-modal__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
}

/* 閉じるボタン: 画像の右上角に重ねる */
.p-cert-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.p-cert-modal__close:hover,
.p-cert-modal__close:focus-visible {
  background-color: rgba(60, 60, 60, 0.85);
  outline: none;
}

.p-cert-modal__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
}

.p-cert-modal__img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: block;
}

.p-cert-modal__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 70vw);
  aspect-ratio: 3 / 4;
  background-color: #f0f0f0;
  border-radius: 4px;
  color: #999;
  font-size: var(--fz-body);
}

/* ナビゲーションボタン: 画像の左右に絶対配置 */
.p-cert-modal__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 1;
}

.p-cert-modal__nav-btn--prev {
  left: 10px;
}

.p-cert-modal__nav-btn--next {
  right: 10px;
}

.p-cert-modal__nav-btn:hover,
.p-cert-modal__nav-btn:focus-visible {
  background-color: rgba(60, 60, 60, 0.7);
  outline: none;
}

.p-cert-modal__caption {
  color: #fff;
  font-size: var(--fz-small);
  margin-top: var(--space-sm);
  text-align: center;
}

.p-cert-modal__nav-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fz-small);
  margin-top: 6px;
  text-align: center;
  display: block;
}

@media (min-width: 768px) {
  .p-cert-modal__content {
    max-width: 70vw;
  }

  .p-cert-modal__img {
    max-width: 65vw;
  }

  .p-cert-modal__close {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .p-cert-modal__nav-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .p-cert-modal__nav-btn--prev {
    left: 12px;
  }

  .p-cert-modal__nav-btn--next {
    right: 12px;
  }
}

@media (min-width: 1024px) {
  .p-cert-modal__content {
    max-width: 80vw;
    max-height: 92vh;
  }

  .p-cert-modal__frame {
    max-height: 82vh;
  }

  .p-cert-modal__img {
    max-width: 75vw;
    max-height: 82vh;
  }

  .p-cert-modal__img-wrap {
    max-height: 82vh;
  }
}

/* --- 会社概要：代表挨拶 --- */
.p-about {
  background-color: var(--color-bg-sub);
}

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

.p-about__greeting-photo {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.p-about__greeting-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.c-placeholder--greeting {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 8px;
}

.p-about__greeting-name {
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.p-about__greeting-text p {
  margin-bottom: var(--space-sm);
}

.p-about__greeting-text p:last-child {
  margin-bottom: 0;
}

.p-about__greeting-quote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-light);
  font-style: italic;
}

.p-about__greeting-quote p {
  margin-bottom: 8px;
  line-height: 1.7;
}

.p-about__greeting-quote p:last-child {
  margin-bottom: 0;
}

.p-about__greeting-standards {
  background-color: var(--color-bg-sub);
  border-radius: 8px;
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.p-about__greeting-standards p {
  margin-bottom: 8px;
  line-height: 1.8;
}

.p-about__greeting-standards p:last-child {
  margin-bottom: 0;
}

.p-about__greeting-standards strong {
  color: var(--color-primary);
}

.p-about__greeting-link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  transition: opacity 0.2s ease;
}

.p-about__greeting-link:hover {
  opacity: 0.7;
}

.p-about__greeting-signature {
  margin-top: var(--space-lg);
  font-weight: var(--fw-bold);
  font-size: var(--fz-subheading);
  text-align: right;
}

.p-about__trust-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: color 0.25s ease;
}

.p-about__trust-link:hover {
  color: var(--color-primary-dark);
}

.p-about__external-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

/* --- 会社概要：アクセス --- */
.p-company-access__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.p-company-access__info-inner {
  padding: var(--space-lg);
  background-color: var(--color-bg-sub);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.p-company-access__map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.p-company-access__map iframe {
  display: block;
  width: 100%;
  height: 320px;
}

.p-company-access__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fz-body);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.p-company-access__address svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 4px;
}

.p-company-access__maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.p-company-access__maps-link:hover {
  color: var(--color-primary-dark);
}

/* --- ページヘッダー サブテキスト --- */
.p-page-header__sub {
  font-size: var(--fz-body);
  opacity: 0.8;
  margin-top: var(--space-xs);
  letter-spacing: 0.04em;
}

/* --- サービスナビゲーション --- */
.p-service-nav {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height-sp);
  z-index: 50;
}

.p-service-nav__list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.p-service-nav__list::-webkit-scrollbar {
  display: none;
}

.p-service-nav__link {
  display: block;
  padding: 16px 20px;
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-light);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.p-service-nav__link:hover,
.p-service-nav__link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* --- サービス詳細（各サービスセクション） --- */
.p-service-detail {
  background-color: var(--color-bg);
}

.p-service-detail .l-container {
  max-width: 1280px;
}

.p-service-detail--alt {
  background-color: #f9fbfc;
}

.p-service-detail__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.p-service-detail__photo {
  width: 100%;
}

.c-placeholder--service {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 8px;
  background-color: #e4ecf3;
}

.p-service-detail__body {
  flex: 1;
}

.p-service-detail__number {
  margin-bottom: var(--space-sm);
}

.p-service-detail__number-text {
  font-family: "Roboto", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: 0.04em;
}

.p-service-detail__title {
  font-size: var(--fz-heading);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.p-service-detail__desc {
  font-size: var(--fz-body);
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.p-service-detail__use-case {
  background-color: var(--color-primary-light);
  border-radius: 8px;
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
}

.p-service-detail--alt .p-service-detail__use-case {
  background-color: #fff;
}

.p-service-detail__use-case-title {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.p-service-detail__use-case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-service-detail__use-case-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fz-body);
  color: var(--color-text);
  line-height: 1.6;
}

.p-service-detail__use-case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* BA写真 */
.p-service-detail__ba {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
}

.p-service-detail__ba-title {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-md);
}

.p-service-detail__ba-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.p-service-detail__ba-item {
  flex: 1;
  max-width: 400px;
  text-align: center;
}

.c-placeholder--ba {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 4px;
  background-color: #e4ecf3;
}

.p-service-detail__ba-label {
  display: block;
  font-family: var(--font-family-en);
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

.p-service-detail__ba-arrow {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* BA 開くボタン */
.c-ba-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  background-color: transparent;
  color: var(--color-primary);
  font-size: var(--fz-body);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.c-ba-open-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.c-ba-open-btn__icon {
  flex-shrink: 0;
}

/* BA モーダル */
.p-ba-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.p-ba-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.p-ba-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.p-ba-modal__content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.p-ba-modal.is-open .p-ba-modal__content {
  transform: scale(1);
}

/* ヘッダー */
.p-ba-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.p-ba-modal__title {
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 0;
}

.p-ba-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.p-ba-modal__close:hover {
  background-color: var(--color-bg-sub);
}

/* タブ（SPのみ表示） */
.p-ba-modal__tabs {
  display: flex;
  padding: 0 20px;
  gap: 0;
  border-bottom: 1px solid var(--color-border-light);
}

.p-ba-modal__tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background-color: transparent;
  font-family: var(--font-family-en);
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.06em;
}

.p-ba-modal__tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* 画像エリア */
.p-ba-modal__images {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 0;
  overflow-y: auto;
}

.p-ba-modal__img-col {
  flex: 1;
  display: none;
}

.p-ba-modal__img-col.is-active {
  display: block;
}

.p-ba-modal__img-label {
  display: none;
  font-family: var(--font-family-en);
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.p-ba-modal__img-wrap {
  border-radius: 6px;
  overflow: hidden;
}

.c-placeholder--ba-modal {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 0;
  background-color: #e4ecf3;
}

/* PC: 横並び・タブ非表示 */
@media (min-width: 768px) {
  .p-ba-modal__tabs {
    display: none;
  }

  .p-ba-modal__images {
    flex-direction: row;
    gap: 20px;
    padding: 24px;
  }

  .p-ba-modal__img-col,
  .p-ba-modal__img-col[data-ba-col="after"] {
    display: block;
    flex: 1;
  }

  .p-ba-modal__img-label {
    display: block;
  }
}

/* --- サービスページ：作業の流れ --- */
.p-service-flow {
  background-color: var(--color-bg-sub);
}

.p-service-flow__timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-service-flow__item {
  display: flex;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg);
}

.p-service-flow__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.p-service-flow__step-num {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.p-service-flow__content {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-service-flow__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.p-service-flow__desc {
  font-size: var(--fz-body);
  color: var(--color-text-light);
  line-height: 1.7;
}

.p-service-flow__connector {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  color: var(--color-primary);
}

/* --- サービスページ：所要時間の目安 --- */
.p-service-time {
  background-color: var(--color-bg);
}

.p-service-time__lead {
  text-align: center;
  font-size: var(--fz-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.p-service-time__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.p-service-time__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-md) var(--space-sm);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-service-time__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.p-service-time__room {
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.p-service-time__duration {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.p-service-time__label {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.p-service-time__note {
  margin-top: var(--space-md);
  font-size: var(--fz-small);
  color: var(--color-text-muted);
  text-align: center;
}

.p-service-time__divider {
  width: 40px;
  height: 2px;
  background-color: var(--color-border);
  margin: clamp(2rem, 5vw, 3rem) auto;
}

.p-service-time__sub-heading {
  margin-bottom: var(--space-md);
  font-size: var(--fz-subheading);
  font-weight: var(--fw-bold);
  text-align: center;
  color: var(--color-text);
}

.p-service-time__service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.p-service-time__service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-service-time__service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.p-service-time__service-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.p-service-time__service-icon {
  display: block;
}

.p-service-time__service-body {
  flex: 1;
  min-width: 0;
}

.p-service-time__service-name {
  margin-bottom: 4px;
  font-size: var(--fz-body);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.p-service-time__service-desc {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (min-width: 600px) {
  .p-service-time__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-service-time__service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .p-service-time__cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --- SP固定CTA --- */
.p-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 90;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.p-fixed-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.p-fixed-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  text-decoration: none;
  color: #fff;
  transition: filter 0.25s ease;
}

.p-fixed-cta__btn:hover {
  filter: brightness(1.1);
}

.p-fixed-cta__btn--phone {
  background-color: var(--color-primary);
}

.p-fixed-cta__btn--form {
  background-color: var(--color-primary-dark, #0a4a7e);
}

/* --- 料金ページ：リードセクション --- */
.p-price-lead__box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.p-price-lead__text {
  font-size: var(--fz-body);
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.p-price-lead__text strong {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

/* --- 料金ページ：間取り別料金 --- */
.p-price-room__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.p-price-room__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.p-price-room__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.p-price-room__type {
  display: inline-block;
  font-family: var(--font-family-en);
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.p-price-room__price {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.3;
}

.p-price-room__yen {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: var(--fw-semibold);
}

.p-price-room__tax {
  font-size: var(--fz-small);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.p-price-room__note {
  text-align: center;
  font-size: var(--fz-small);
  color: var(--color-text-light);
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* --- 料金ページ：サービス別料金 --- */
.p-price-service {
  background-color: #f9fbfc;
}

.p-price-service__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.p-price-service__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.p-price-service__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.p-price-service__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.p-price-service__body {
  flex: 1;
  min-width: 0;
}

.p-price-service__name {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.4;
}

.p-price-service__desc {
  font-size: var(--fz-small);
  color: var(--color-text-light);
  line-height: 1.5;
  margin-top: 2px;
}

.p-price-service__amount {
  flex-shrink: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.p-price-service__note {
  text-align: center;
  font-size: var(--fz-small);
  color: var(--color-text-light);
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* --- 料金ページ：法人向け取引条件 --- */
.p-price-terms__lead {
  text-align: center;
  font-size: var(--fz-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.p-price-terms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.p-price-terms__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--space-md) var(--space-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.p-price-terms__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.p-price-terms__label {
  font-size: var(--fz-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.4;
}

/* --- 料金ページ：FAQ --- */
.p-price-faq {
  background-color: #f9fbfc;
}

.p-price-faq__list {
}

.p-price-faq__item {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  background-color: var(--color-bg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.p-price-faq__item[open] {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.p-price-faq__question {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.p-price-faq__question::-webkit-details-marker {
  display: none;
}

.p-price-faq__question::marker {
  content: "";
}

.p-price-faq__question:hover {
  background-color: var(--color-bg-sub);
}

.p-price-faq__q-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-en);
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.p-price-faq__q-text {
  flex: 1;
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.5;
}

.p-price-faq__arrow {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}

.p-price-faq__item[open] .p-price-faq__arrow {
  transform: rotate(180deg);
}

.p-price-faq__answer {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  padding-left: var(--space-md);
  font-size: var(--fz-body);
  color: var(--color-text-light);
  line-height: 1.8;
  border-top: 1px solid var(--color-border-light);
  transition: max-height 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
}

/* ================================================================
   Utility
   ================================================================ */

.u-pc-only { display: none; }
.u-sp-only { display: flex; }

/* ================================================================
   Animation
   ================================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.js-fade-in[data-delay="1"] { transition-delay: 0.08s; }
.js-fade-in[data-delay="2"] { transition-delay: 0.16s; }
.js-fade-in[data-delay="3"] { transition-delay: 0.24s; }
.js-fade-in[data-delay="4"] { transition-delay: 0.32s; }
.js-fade-in[data-delay="5"] { transition-delay: 0.4s; }
.js-fade-in[data-delay="6"] { transition-delay: 0.48s; }

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .p-hero__badges,
  .p-hero__title,
  .p-hero__subtitle,
  .p-hero__actions,
  .p-hero__scroll {
    animation: none;
  }
  .p-hero__scroll-line::after {
    animation: none;
  }
}

/* ================================================================
   Responsive — min-width: 480px
   ================================================================ */
@media (min-width: 480px) {
  .p-strength__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-price__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-reason__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .p-contact-flow__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-service-nav__link {
    padding: 16px 16px;
  }

  /* 料金：取引条件 480px+ */
  .p-price-terms__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================
   Responsive — min-width: 768px
   ================================================================ */
@media (min-width: 768px) {
  .l-header {
    height: var(--header-height);
  }

  html {
    scroll-padding-top: var(--header-height);
  }

  .u-pc-only { display: flex; }
  .u-sp-only { display: none; }

  .p-hero {
    height: calc(100vh - var(--header-height));
    min-height: 520px;
    margin-top: var(--header-height);
  }

  .p-hero__inner {
    padding-top: var(--space-xl);
  }

  .p-hero__actions {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-lg);
  }

  .p-strength__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-service__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* フローを横並びタイムラインに */
  .p-flow__timeline {
    flex-direction: row;
    padding-left: 0;
    gap: 0;
  }

  .p-flow__timeline::before {
    left: 0;
    right: 0;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .p-flow__item {
    flex: 1;
    text-align: center;
    padding-bottom: 0;
    padding-top: 56px;
  }

  .p-flow__step {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .p-flow__title {
    font-size: 0.875rem;
    padding-top: 0;
  }

  .p-flow__desc {
    font-size: 0.75rem;
  }

  .p-area__content {
    gap: var(--space-xl);
  }

  .p-record__layout {
    flex-direction: row;
    min-height: 480px;
  }

  .p-record__visual {
    flex: 0 0 45%;
    aspect-ratio: auto;
  }

  .p-record__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl) clamp(2rem, 4vw, 3.5rem);
  }

  .p-area__lead {
    text-align: center;
  }

  .p-page-header {
    min-height: 400px;
    margin-top: var(--header-height);
  }

  /* 会社概要：代表挨拶 横並び */
  .p-about__greeting {
    flex-direction: row;
    align-items: flex-start;
  }

  .p-about__greeting-photo {
    flex: 0 0 320px;
    margin: 0;
  }

  .p-about__greeting-body {
    flex: 1;
  }

  /* 会社概要：テーブルth幅 */
  .p-company-info__table th {
    width: 200px;
  }

  /* 会社概要：マップ高さ */
  .p-company-access__map iframe {
    height: 400px;
  }

  .p-contact-flow__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  /* サービスナビ：768px+ */
  .p-service-nav {
    top: var(--header-height);
  }

  .p-service-nav__list {
    justify-content: center;
  }

  .p-service-nav__link {
    padding: 18px 28px;
    font-size: var(--fz-body);
  }

  /* サービス詳細：横並び */
  .p-service-detail__block {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .p-service-detail__photo {
    flex: 0 0 45%;
    max-width: 480px;
  }

  .p-service-detail__block--reverse {
    flex-direction: row-reverse;
  }

  /* サービスフロー：768px+ */
  .p-service-flow__step {
    width: 72px;
  }

  .p-service-flow__step-num {
    font-size: 1.125rem;
  }

  .p-service-flow__content {
    padding: 20px 28px;
  }

  .p-service-flow__title {
    font-size: 1.125rem;
  }

  .l-footer__nav-list {
    flex-direction: row;
  }

  .l-footer__nav-list > li {
    flex: 1 1 0;
    border-bottom: none;
  }

  .l-footer {
    padding-bottom: var(--space-lg);
  }

  .l-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
  }

  .p-fixed-cta {
    display: none;
  }

  /* 料金：リード 768px+ */
  .p-price-lead__box {
    padding: var(--space-xl) var(--space-2xl);
  }

  /* 料金：間取りカード 768px+ */
  .p-price-room__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 料金：サービス別アイテム 768px+ */
  .p-price-service__icon-wrap {
    width: 56px;
    height: 56px;
  }

  .p-price-service__item {
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
  }

  /* 料金：取引条件 768px+ */
  .p-price-terms__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
  }

  /* 料金：FAQ 768px+ */
  .p-price-faq__question {
    padding: var(--space-md) var(--space-lg);
  }

  .p-price-faq__answer {
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
    padding-left: var(--space-lg);
  }
}

/* ================================================================
   Responsive — min-width: 1024px
   ================================================================ */
@media (min-width: 1024px) {
  .p-strength__grid {
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-md);
    row-gap: 56px;
  }

  .p-strength__item {
    grid-column: span 2;
  }

  .p-strength__item:nth-child(5) {
    grid-column: 2 / span 2;
  }

}
