/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #00257a;
  --color-accent-bg: #EEF6FF;
  --color-white: #FFFFFF;
  --color-text-main: #1a1a2e;
  --color-text-sub: #5a6070;
  --color-border: #d8e2ec;
  --color-footer-bg: #00257a;
  --font-main: 'Noto Sans JP', sans-serif;
  --radius: 4px;
  --shadow-card: 0 2px 6px rgba(0,0,0,0.05);
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

/* =============================================
   Typography
   ============================================= */
.section-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--color-text-sub);
  max-width: 640px;
}

/* =============================================
   Fade-in animation
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   Header / Nav
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.header-logo span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
}

nav.main-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
  transition: color 0.2s;
}

nav.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

nav.main-nav .nav-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

nav.main-nav .nav-cta:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  padding: 16px 0;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-accent-bg);
}

.mobile-nav a:hover {
  background: var(--color-accent-bg);
  text-decoration: none;
}

.mobile-nav .nav-cta {
  margin: 12px 24px 0;
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
}

/* =============================================
   Hero (フルワイド画像＋テキストオーバーレイ)
   ============================================= */
#hero {
  position: relative;
  padding-top: 60px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  max-width: 640px;
  padding: 96px 0;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

.hero-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
  color: var(--color-white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-accent-bg);
  text-decoration: none;
  color: var(--color-primary);
}

/* 画像の上で見える「資料を請求する」ボタン（透過＋白枠） */
.btn-outline-onimg {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-onimg:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* =============================================
   Section wrapper
   ============================================= */
section {
  padding: 80px 0;
}

.bg-accent {
  background: var(--color-accent-bg);
}

/* =============================================
   Block 2: Pain Points
   ============================================= */
#pain .section-header {
  text-align: center;
  margin-bottom: 48px;
}

#pain .section-lead {
  margin: 0 auto;
}

.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.pain-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.pain-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.pain-card p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.75;
}

.pain-cta-text {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-main);
  font-weight: 500;
}

.pain-cta-text strong {
  color: var(--color-primary);
}

/* =============================================
   Block 3: Scheme Explanation
   ============================================= */
#scheme .scheme-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.scheme-text p {
  font-size: 15px;
  color: var(--color-text-main);
  line-height: 1.9;
  margin-bottom: 16px;
}

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

.scheme-note {
  background: var(--color-accent-bg);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.75;
}

.scheme-links {
  margin-top: 16px;
  font-size: 13px;
}

.scheme-links a {
  color: var(--color-primary);
  text-decoration: underline;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.comparison-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 13px;
}

.comparison-table thead th:first-child {
  background: #001d5e;
}

.comparison-table tbody th {
  background: var(--color-accent-bg);
  font-weight: 600;
  color: var(--color-text-main);
  white-space: nowrap;
  font-size: 13px;
}

.comparison-table tbody tr:hover td {
  background: #f9fbfc;
}

.table-caption {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 10px;
}

/* =============================================
   Block 4: Merits
   ============================================= */
#merits .section-header {
  text-align: center;
  margin-bottom: 48px;
}

#merits .section-lead {
  margin: 0 auto;
}

.merit-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.merit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
}

.merit-card-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.merit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.merit-card p {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.75;
}

/* =============================================
   Block 5: Flow (3-lane diagram)
   ============================================= */
#flow .section-header {
  text-align: center;
  margin-bottom: 56px;
}

#flow .section-lead {
  margin: 0 auto;
}

.flow-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.flow-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.flow-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-company { background: var(--color-primary); }
.dot-union { background: #0a5c68; }
.dot-worker { background: #7a9fbf; }

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow-lane-header {
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
}

.lane-header-company { background: var(--color-primary); }
.lane-header-union { background: #0a5c68; }
.lane-header-worker { background: #7a9fbf; }

.flow-steps-row {
  display: contents;
}

.flow-cell {
  padding: 16px 14px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  min-height: 88px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-main);
  position: relative;
}

.flow-cell:last-child {
  border-right: none;
}

.flow-cell.active {
  background: #f0f6f7;
}

.flow-cell.primary-actor {
  background: #e8eef8;
}

.flow-cell-step {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.flow-cell-label {
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

.flow-cell-note {
  font-size: 12px;
  color: var(--color-text-sub);
}

.flow-duration {
  font-size: 11px;
  font-weight: 700;
  color: #0a5c68;
  background: #e0f2f1;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-top: 4px;
}

.flow-proxy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-white);
  background: #0a5c68;
  padding: 3px 8px;
  border-radius: 99px;
  margin-top: 6px;
}

.flow-callout {
  margin-top: 32px;
  background: var(--color-accent-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.flow-callout-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.flow-callout p {
  font-size: 14px;
  color: var(--color-text-main);
  line-height: 1.75;
}

.flow-callout strong {
  color: var(--color-primary);
}

/* =============================================
   Block 6: Cost
   ============================================= */
#cost .section-header {
  margin-bottom: 40px;
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cost-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.cost-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cost-item-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.cost-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
}

.cost-item p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.75;
  padding-left: 30px;
}

.cost-cta-box {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.cost-cta-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cost-cta-box p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 24px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-white:hover {
  opacity: 0.88;
  text-decoration: none;
  color: var(--color-primary);
}

.cost-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--color-text-sub);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

/* =============================================
   Block 7: Strengths
   ============================================= */
/* 差し替え可：背景画像（モダンオフィス／取得元: Unsplash, images/strengths-bg.jpg）
   黒半透明オーバーレイ（rgba(0,0,0,0.45)）＋白文字で可読性を確保（heroと統一） */
#strengths {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/strengths-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 黒オーバーレイ上のテキストは白に */
#strengths .section-eyebrow,
#strengths .section-title,
#strengths .strength-item h3 {
  color: var(--color-white);
}

#strengths .section-lead,
#strengths .strength-item p {
  color: rgba(255, 255, 255, 0.9);
}

#strengths .strength-icon {
  color: var(--color-white);
}

#strengths .section-header {
  text-align: center;
  margin-bottom: 48px;
}

#strengths .section-lead {
  margin: 0 auto;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.strength-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  margin-top: 2px;
}

.strength-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.strength-item p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.75;
}

/* =============================================
   Block 8: FAQ
   ============================================= */
#faq .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

details.faq-item[open] {
  border-color: var(--color-primary);
}

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-main);
  list-style: none;
  user-select: none;
  gap: 16px;
  line-height: 1.6;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300257a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform 0.2s;
}

details.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.8;
  border-top: 1px solid var(--color-accent-bg);
  padding-top: 14px;
}

.faq-q-label {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent-bg);
  padding: 1px 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =============================================
   Block 9: Contact
   ============================================= */
/* 差し替え可：背景画像（相談シーン・手元／取得元: Unsplash, images/contact-bg.jpg）
   黒半透明オーバーレイ（rgba(0,0,0,0.45)）＋白文字で可読性を確保（heroと統一） */
#contact {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 黒オーバーレイ上のテキストは白に（フォーム箱の中身は明るい箱の上なので据え置き） */
#contact .section-eyebrow,
#contact .section-title,
#contact .contact-info h3,
#contact .contact-phone,
#contact .contact-step strong {
  color: var(--color-white);
}

#contact .section-lead,
#contact .contact-hours,
#contact .contact-step p {
  color: rgba(255, 255, 255, 0.9);
}

#contact .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--color-accent-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.form-mock-notice {
  background: #fff3cd;
  border: 1px solid #f0d070;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  color: #6b5900;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #c0392b;
  font-size: 11px;
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text-main);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-text-main);
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-consent label {
  cursor: pointer;
  line-height: 1.6;
}

.form-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

.btn-submit {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 56px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.88;
}

.form-result {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-sub);
  text-align: center;
}

.contact-info {
  padding: 8px 0;
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.contact-phone {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.contact-hours {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 28px;
}

.contact-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-step p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.contact-step strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

/* =============================================
   Block 10: Footer
   ============================================= */
#site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-org-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-org-detail {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-permit {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   Block 3: Scheme (redesign)
   ============================================= */
.scheme-en-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.scheme-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 12px 0 40px;
}

.scheme-title-centered {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.scheme-textbox {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-main);
  margin-bottom: 36px;
}

.scheme-highlight {
  color: var(--color-primary);
  font-weight: 600;
}

.scheme-flag-area {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

.scheme-flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scheme-flag {
  width: 64px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}

.scheme-flag svg {
  display: block;
  width: 100%;
  height: auto;
}

.scheme-flag-label {
  font-size: 12px;
  color: var(--color-text-sub);
  font-weight: 600;
}

.scheme-region {
  max-width: none;
}

.scheme-region-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.scheme-region p {
  font-size: 16px;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 10px;
}

.scheme-highlight-blue {
  color: var(--color-primary);
  font-weight: 600;
}

.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 24px;
  margin: 12px 0 10px;
  justify-content: start;
}

.pref-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--color-text-main);
}

.pref-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.pref-closing {
  font-size: 14px;
  color: var(--color-text-main);
  margin-top: 8px;
}

/* =============================================
   Block 4: Merits (image card style)
   ============================================= */
.merit-cards-3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch; /* 3枚のカードを同じ高さに */
}

/* オフセット：写真カードと文字カードを別々のカードとして扱う（ラッパーの枠は外す） */
.merit-card-img {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.merit-card-img-area {
  position: relative;
  background: var(--color-accent-bg);
  height: 240px; /* 旧160pxの1.5倍。写真の高さは固定 */
  flex-shrink: 0;
  width: 90%;
  align-self: flex-start; /* 写真カードは左寄せ */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.merit-card-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merit-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 文字カード：写真カードより右へ＆少し上にずらして右下に重ねる。
   半透明で重なった写真が少し透け、3枚は同じ高さ（flex:1）に揃える */
.merit-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  width: 90%;
  align-self: flex-end; /* 文字カードは右寄せ → 写真より右にずれて重なる */
  margin-top: -28px;
}

.merit-card-body p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* =============================================
   Block 5: Flow (vertical timeline)
   ============================================= */
.flow-v-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.flow-v-intro {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.9;
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
}

.flow-v-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-v-dot-seg {
  width: 2px;
  height: 28px;
  border-left: 2px dashed #7a9fbf;
}

.flow-v-milestone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2px 0;
}

/* 左向き矢印は本文ボックスにclip-pathで一体化（高さが本文に追従し崩れない） */
.flow-v-arrow-head {
  display: none;
}

.flow-v-arrow-body {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 9px 24px 9px 34px;
  white-space: nowrap;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
}

.flow-v-phase {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  width: 100%;
  margin: 12px 0;
  align-items: start;
}

.flow-v-badge {
  background: #1a3a6e;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 16px 8px 32px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  line-height: 1.6;
  min-height: 80px;
}

.flow-v-desc {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.85;
  box-shadow: var(--shadow-card);
}

.flow-v-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.flow-v-closing {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.9;
  box-shadow: var(--shadow-card);
  width: 100%;
  margin-top: 8px;
}

/* =============================================
   Block: Capacity
   ============================================= */
#capacity .section-header {
  text-align: center;
  margin-bottom: 36px;
}

#capacity .section-lead {
  margin: 0 auto;
}

.capacity-table-wrap {
  overflow-x: auto;
  margin-bottom: 48px;
}

.capacity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.capacity-table th,
.capacity-table td {
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  text-align: center;
  vertical-align: middle;
  background: var(--color-white);
}

.capacity-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
}

.capacity-example-label {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.capacity-year-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capacity-year-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.year-badge {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
}

.year-cohorts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.year-cohort {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cohort-icons {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.cohort-label {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
}

.cohort-label-graduated {
  font-size: 11px;
  color: var(--color-text-sub);
  text-align: center;
  font-weight: 500;
}

.year-max {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 99px;
  padding: 8px 28px;
  text-align: center;
  width: auto;
  margin-top: 4px;
}

.year-max-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}

.year-max-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

/* 時系列を示す青の点線矢印（カードの後ろに1本通し、すき間から見せる）
   横並び：左→右で4枚目の右に先端。縦1列：上→下で4枚目の下に先端（レスポンシブ切替） */
.capacity-year-cards {
  position: relative;
  padding-right: 44px; /* 右に矢印用レーンを確保。点線がカードに隠れず矢印まで届く */
}

.capacity-year-card {
  position: relative;
  z-index: 1; /* 白背景のカードを前面に。線はカード裏に隠れ、すき間だけ見える */
}

.capacity-year-cards::before { /* 1本の点線（横） */
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  right: 0; /* レーン右端まで点線。コンテナ内に収めはみ出さない */
  border-top: 2px dashed var(--color-primary);
  transform: translateY(-50%);
}

.capacity-year-cards::after { /* 矢印の先端（右） */
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--color-primary);
  transform: translateY(-50%);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  /* スマホでは本文リード等を左揃えに（中央揃え＋強制改行で変な位置改行に見えるため） */
  .section-lead,
  .pain-cta-text {
    text-align: left;
  }

  nav.main-nav { display: none; }
  .hamburger { display: flex; }

  .hero-text {
    padding: 64px 0;
  }

  .pain-cards {
    grid-template-columns: 1fr;
  }

  .merit-cards-3 {
    grid-template-columns: 1fr;
  }

  .flow-v-phase {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 4枚は時系列のため2列折り返しを避け、狭い画面では縦1列にする。
     1列時はカード・丸枠が間延びしないよう最大幅を制限して中央寄せ */
  .capacity-year-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    padding-right: 0;
    padding-bottom: 36px; /* 下に矢印用レーンを確保 */
  }

  /* 縦1列時：1本の点線を縦に通し、4枚目の下に下向きの先端 */
  .capacity-year-cards::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 0;
    border-top: none;
    border-left: 2px dashed var(--color-primary);
    transform: translateX(-50%);
  }

  .capacity-year-cards::after {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    border-top: 11px solid var(--color-primary);
    border-bottom: none;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-title { font-size: 28px; }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .merit-cards-3 {
    grid-template-columns: 1fr;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .flow-v-arrow-body {
    font-size: 15px;
    padding: 8px 16px 8px 26px;
    white-space: normal;
    text-align: center;
  }

  .flow-v-phase {
    grid-template-columns: 84px 1fr;
    gap: 10px;
  }

  .capacity-year-cards {
    grid-template-columns: 1fr;
  }

  .contact-phone {
    font-size: 22px;
  }
}

/* =============================================
   パターン1（名刺サイト lp-meishi）専用 追記スタイル
   ※色・余白は既存の :root 変数を流用。色コードはハードコードしない
   ============================================= */

/* --- Hero：ベタ塗り背景（任意で背景写真も可） --- */
#hero {
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
#hero .hero-title,
#hero .hero-sub,
#hero .hero-eyebrow { color: var(--color-white); }
/* 任意の背景写真を使うときだけ効くスタイル */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-photo-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 1;
}
#hero .container { position: relative; z-index: 2; }
/* CTAボタンの輪郭補強：青同士でも識別できるよう影で立体感を出す */
#hero .btn-primary { box-shadow: 0 4px 14px rgba(0,0,0,0.28); }
#hero .btn-primary:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.34); }

/* --- Profile：団体概要の表＋地図枠 --- */
.profile-wrap { max-width: 820px; margin: 0 auto; }
.profile-table {
  width: 100%; border-collapse: collapse; background: var(--color-white);
  box-shadow: var(--shadow-card); border-radius: var(--radius); overflow: hidden;
}
.profile-table th, .profile-table td {
  text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--color-border);
  font-size: 15px; vertical-align: top;
}
.profile-table th {
  width: 30%; background: var(--color-primary); color: var(--color-white);
  font-weight: 600; white-space: nowrap;
}
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: none; }
.profile-map { margin-top: 24px; }
.profile-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.profile-map-placeholder {
  width: 100%; height: 220px; display: flex; align-items: center; justify-content: center;
  background: var(--color-white); border: 1px dashed var(--color-border);
  border-radius: var(--radius); color: var(--color-text-sub); font-size: 14px;
}
@media (max-width: 560px) {
  .profile-table th { width: 38%; padding: 12px 12px; font-size: 13px; }
  .profile-table td { padding: 12px 12px; font-size: 14px; }
}

/* --- Services：事業内容（テキスト中心） --- */
.services-list { max-width: 820px; margin: 0 auto; }
.services-row {
  padding: 20px 0; border-bottom: 1px solid var(--color-border);
}
.services-row:last-child { border-bottom: none; }
.services-row h3 { font-size: 16px; color: var(--color-primary); margin-bottom: 8px; }
.services-row p { font-size: 15px; color: var(--color-text-main); }

/* --- Flow：受け入れの流れ（番号付き簡易ステップ） --- */
.flow-steps { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.flow-step { display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-white); padding: 18px 20px; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.flow-step-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.flow-step strong { display: block; color: var(--color-primary); margin-bottom: 4px; font-size: 15px; }
.flow-step p { font-size: 14px; color: var(--color-text-sub); }

/* --- Disclosure：情報公開（業務運営規程・監理費表） --- */
.disclosure-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.disclosure-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 20px; background: var(--color-white); color: var(--color-primary);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); text-align: center; transition: transform .15s ease, box-shadow .15s ease;
}
.disclosure-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); text-decoration: none; }
.disclosure-card-title { font-weight: 700; font-size: 16px; }
.disclosure-card-note { font-size: 13px; color: var(--color-text-sub); }
@media (max-width: 560px) { .disclosure-cards { grid-template-columns: 1fr; } }
