@charset "UTF-8";
/* ==========================================================================
   社会福祉法人 菜のはな福祉会 コーポレートサイト
   - 基調: 深緑 × 菜の花イエロー × 生成りの白
   - 見出しは明朝(Noto Serif JP)で「堅実さ・誠実さ」を表現
   ========================================================================== */

:root {
  --green-950: #132b21;
  --green-900: #1a3a2c;
  --green-800: #21503a;
  --green-700: #2a6347;
  --green-600: #357a58;
  --green-100: #e4efe7;
  --green-050: #f1f6f2;
  --yellow-600: #d99a06;
  --yellow-500: #f0b420;
  --yellow-400: #f6c94e;
  --yellow-100: #fcf3d9;
  --cream: #faf8f1;
  --white: #ffffff;
  --ink: #262e29;
  --ink-soft: #55605a;
  --line: #ddd8ca;
  --line-soft: #e9e5da;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Jost", var(--sans);
  --shadow-card: 0 2px 20px rgba(26, 58, 44, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(26, 58, 44, 0.14);
  --radius: 6px;
  --header-h: 92px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green-900); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.header-top { background: var(--green-900); color: #fff; font-size: 12px; }
.header-top-inner {
  max-width: 1200px; margin: 0 auto; padding: 5px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.header-top-note { letter-spacing: 0.08em; }
.header-business { margin-left: auto; padding: 2px 12px; background: var(--yellow-500); color: var(--green-950); border-radius: 3px; font-weight: 700; white-space: nowrap; }
.header-business:hover { background: var(--yellow-400); }
.header-top-tel { display: flex; align-items: center; gap: 12px; }
.tel-hours { opacity: 0.85; }
.tel-number {
  color: #fff; font-family: var(--en); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0.06em;
}
.tel-number svg { color: var(--yellow-400); }

.header-main-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { width: 44px; height: 44px; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.35; }
.site-logo-corp { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.22em; }
.site-logo-name {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--green-900); letter-spacing: 0.1em;
}

.global-nav ul { display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 14px; color: var(--ink); line-height: 1.3;
  position: relative;
}
.nav-label { font-size: 14px; font-weight: 500; }
.nav-en { font-family: var(--en); font-size: 10px; color: var(--green-600); letter-spacing: 0.18em; }
.global-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--yellow-500); transform: scaleX(0);
  transition: transform 0.25s ease;
}
.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.global-nav a.nav-contact {
  background: var(--green-800); color: #fff; border-radius: var(--radius);
  margin-left: 10px; padding: 8px 18px;
  transition: background 0.25s ease;
}
.global-nav a.nav-contact .nav-en { color: var(--yellow-400); }
.global-nav a.nav-contact:hover { background: var(--green-700); }
.global-nav a.nav-contact::after { display: none; }
.global-nav a.nav-inquiry { background: var(--yellow-500); color: var(--green-950); }
.global-nav a.nav-inquiry .nav-en { color: var(--green-900); }
.global-nav a.nav-inquiry:hover { background: var(--yellow-400); }

.nav-toggle { display: none; }

@media (max-width: 1199px) {
  :root { --header-h: 60px; }
  .header-top-note { display: none; }
  .header-top-inner { justify-content: flex-end; padding: 4px 16px; }
  .header-main-inner { height: 56px; padding: 0 16px; }
  .site-logo-name { font-size: 18px; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 48px; padding: 6px 0;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: var(--green-900);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(-90deg) translateX(-7px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { opacity: 0; }
  .nav-toggle-label { font-family: var(--en); font-size: 9px; letter-spacing: 0.2em; color: var(--green-900); }

  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .global-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav a {
    flex-direction: row; justify-content: space-between; padding: 14px 8px;
    border-bottom: 1px solid var(--line-soft);
  }
  .global-nav a::after { display: none; }
  .global-nav a.nav-contact { margin: 14px 0 0; justify-content: center; gap: 10px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 240px; padding: 15px 32px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 999px; transition: all 0.25s ease;
  position: relative;
}
.btn::after {
  content: ""; width: 6px; height: 6px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.25s ease;
}
.btn:hover::after { transform: rotate(45deg) translate(2px, -2px); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-700); box-shadow: var(--shadow-card-hover); }
.btn-outline { background: #fff; color: var(--green-800); border: 1px solid var(--green-700); }
.btn-outline:hover { background: var(--green-050); }
.btn-yellow { background: var(--yellow-500); color: var(--green-950); }
.btn-yellow:hover { background: var(--yellow-400); box-shadow: 0 8px 24px rgba(240, 180, 32, 0.4); }

/* ==========================================================================
   Sections / Headings
   ========================================================================== */
.section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-050); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-en {
  display: block; font-family: var(--en); font-size: 13px; font-weight: 500;
  letter-spacing: 0.32em; color: var(--yellow-600); margin-bottom: 10px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 600;
  color: var(--green-900); letter-spacing: 0.12em; line-height: 1.5;
}
.section-title-note { display: block; font-size: 15px; font-family: var(--sans); color: var(--ink-soft); margin-top: 14px; letter-spacing: 0.06em; }
.section-head::after {
  content: ""; display: block; width: 48px; height: 3px; margin: 22px auto 0;
  background: linear-gradient(to right, var(--green-600) 50%, var(--yellow-500) 50%);
}
.section-head-left { text-align: left; }
.section-head-left::after { margin-left: 0; }

.lead { text-align: center; font-size: 16.5px; margin-bottom: 40px; }
@media (max-width: 767px) {
  .section { padding: 64px 20px; }
  .lead { text-align: left; }
}

/* ==========================================================================
   Hero (Top)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: min(680px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250, 248, 241, 0.94) 0%, rgba(250, 248, 241, 0.82) 34%, rgba(250, 248, 241, 0.12) 68%, rgba(19, 43, 33, 0.08) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 72px 24px;
}
.hero-catch {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.7; letter-spacing: 0.14em;
  color: var(--green-950);
}
.hero-catch .accent { color: var(--green-700); position: relative; }
.hero-catch .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: var(--yellow-400); z-index: -1; opacity: 0.65;
}
.hero-sub {
  margin-top: 28px; font-size: clamp(14px, 1.6vw, 17px); line-height: 2.2;
  color: var(--ink); max-width: 34em; text-shadow: 0 0 12px rgba(250, 248, 241, 0.9);
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 20px; font-size: 13px; font-weight: 700;
  color: var(--green-800); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-card);
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-500);
}
.hero-scroll {
  position: absolute; right: 34px; bottom: 0; z-index: 2;
  font-family: var(--en); font-size: 11px; letter-spacing: 0.3em; color: var(--green-900);
  writing-mode: vertical-rl; padding-bottom: 76px;
}
.hero-scroll::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 64px;
  background: var(--green-800); animation: scroll-line 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 767px) {
  .hero { min-height: 560px; }
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(250, 248, 241, 0.94) 0%, rgba(250, 248, 241, 0.75) 55%, rgba(250, 248, 241, 0.25) 100%);
  }
  .hero-scroll { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* --- 帯ニュース (hero直下) --- */
.news-bar { background: var(--green-900); color: #fff; }
.news-bar-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px; font-size: 14px;
}
.news-bar-label {
  font-family: var(--en); letter-spacing: 0.2em; color: var(--yellow-400);
  flex-shrink: 0; font-size: 12px;
}
.news-bar a { color: #fff; display: flex; gap: 16px; align-items: baseline; min-width: 0; }
.news-bar time { color: rgba(255, 255, 255, 0.7); font-family: var(--en); flex-shrink: 0; }
.news-bar .news-bar-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-bar a:hover .news-bar-title { text-decoration: underline; }

/* ==========================================================================
   Cards / Grid
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex; flex-direction: column;
}
a.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--green-800); background: var(--green-100); border-radius: 3px;
  padding: 3px 10px; margin-bottom: 12px;
}
.card-title {
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--green-900);
  letter-spacing: 0.08em; margin-bottom: 10px; line-height: 1.6;
}
.card-text { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card-more {
  margin-top: 18px; align-self: flex-end;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--green-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.card-more::after {
  content: ""; width: 28px; height: 1px; background: var(--green-700);
  transition: width 0.25s ease;
}
a.card:hover .card-more::after { width: 44px; }

/* --- 特徴 (数字付き) --- */
.feature {
  background: #fff; border-radius: var(--radius); padding: 40px 32px;
  border-top: 3px solid var(--yellow-500); box-shadow: var(--shadow-card);
  position: relative;
}
.feature-num { display: none; }
.feature-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.feature-title {
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--green-900);
  margin-bottom: 12px; letter-spacing: 0.08em;
}
.feature-text { font-size: 14.5px; color: var(--ink-soft); }

#features .feature { padding: 28px 24px; }
.feature-section-title-part { display: inline-block; }
.feature-heading {
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px; align-items: center; min-height: 72px; margin-bottom: 20px;
}
.feature-heading .feature-icon { width: 72px; height: 72px; margin: 0; object-fit: contain; }
.feature-heading .feature-title { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; letter-spacing: 0.02em; }
@media (max-width: 1199px) {
  .feature-heading { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .feature-heading .feature-icon { width: 64px; height: 64px; }
}
@media (max-width: 1023px) {
  #features .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .feature-heading .feature-title { font-size: 18px; }
}
@media (max-width: 480px) {
  #features .feature { padding: 24px 16px; }
  .feature-heading { grid-template-columns: 56px minmax(0, 1fr); }
  .feature-heading .feature-icon { width: 56px; height: 56px; }
  .feature-heading .feature-title { font-size: 16px; }
}

/* ==========================================================================
   Split (画像+テキスト)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-img-portrait { width: 100%; max-width: 400px; justify-self: center; }
.split-img-portrait img { aspect-ratio: 2 / 3; }
/* ごあいさつは本文が長いので、縦長の写真で本文の高さに近づける */
.split-img-greeting img { aspect-ratio: 4 / 5; }
.split-img::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px; pointer-events: none; z-index: 1;
}
/* 実写真には飾り枠を付けない */
.split-img-photo::before { content: none; }
.split-body .section-head { margin-bottom: 28px; }
.split-body .section-title { font-size: clamp(22px, 2.4vw, 28px); }
.split-body .about-title { font-size: clamp(22px, 2vw, 24px); letter-spacing: 0.02em; }
.about-title-line { display: block; }
.about-title-phrase { display: inline-block; }
.split-lead { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--green-900); letter-spacing: 0.06em; margin-bottom: 20px; }
.split-text { font-size: 15.5px; }
.split-text + .split-text { margin-top: 1.2em; }
.split-actions { margin-top: 32px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-img-greeting img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Tables (概要・事業所情報)
   ========================================================================== */
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td {
  padding: 20px 24px; border-bottom: 1px solid var(--line-soft);
  text-align: left; font-size: 15px; vertical-align: top;
}
.data-table th {
  width: 220px; background: var(--green-050); color: var(--green-900);
  font-weight: 700; letter-spacing: 0.08em; white-space: nowrap;
}
.data-table tr:first-child th, .data-table tr:first-child td { border-top: 2px solid var(--green-800); }
@media (max-width: 640px) {
  .data-table th, .data-table td { display: block; width: 100%; }
  .data-table th { padding: 10px 16px; }
  .data-table td { padding: 14px 16px 18px; border-bottom: none; }
  .data-table tr { border-bottom: 1px solid var(--line-soft); display: block; }
  .data-table tr:first-child td { border-top: none; }
}

/* ==========================================================================
   News list
   ========================================================================== */
.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a, .news-list .news-row {
  display: flex; gap: 24px; align-items: baseline; padding: 22px 12px;
  color: var(--ink); transition: background 0.2s ease;
}
.news-list a:hover { background: var(--green-050); }
.news-date { font-family: var(--en); font-size: 14px; color: var(--ink-soft); flex-shrink: 0; letter-spacing: 0.06em; }
.news-cat {
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--green-800); border: 1px solid var(--green-600); border-radius: 999px;
  padding: 2px 14px; min-width: 88px; text-align: center;
}
.news-cat.cat-important { color: var(--yellow-600); border-color: var(--yellow-500); }
.news-title { font-size: 15px; }
@media (max-width: 640px) {
  .news-list a, .news-list .news-row { flex-wrap: wrap; gap: 10px 14px; padding: 18px 6px; }
  .news-title { width: 100%; }
}

/* ==========================================================================
   Flow (利用までの流れ)
   ========================================================================== */
.flow { counter-reset: flow; display: grid; gap: 0; }
.flow-step {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px;
  position: relative; padding-bottom: 40px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: ""; position: absolute; left: 35px; top: 72px; bottom: 8px; width: 2px;
  background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  counter-increment: flow;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-800); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--en); line-height: 1.1; flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--green-050);
}
.flow-num::before { content: "STEP"; font-size: 9px; letter-spacing: 0.2em; color: var(--yellow-400); }
.flow-num::after { content: counter(flow, decimal-leading-zero); font-size: 22px; font-weight: 500; }
.flow-body { padding-top: 8px; }
.flow-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--green-900); margin-bottom: 8px; letter-spacing: 0.08em; }
.flow-text { font-size: 14.5px; color: var(--ink-soft); max-width: 44em; }
.flow-note { margin-top: 8px; font-size: 13px; font-weight: 400; color: var(--green-700); max-width: 44em; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px;
  font-weight: 700; font-size: 15.5px; position: relative;
  display: flex; gap: 14px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--en); color: var(--yellow-600); font-size: 18px; flex-shrink: 0;
}
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 9px; height: 9px; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-a {
  padding: 4px 24px 22px 24px; display: flex; gap: 14px; align-items: baseline;
  font-size: 14.5px; color: var(--ink-soft);
}
.faq-a::before { content: "A."; font-family: var(--en); color: var(--green-700); font-size: 18px; font-weight: 500; flex-shrink: 0; }

/* ==========================================================================
   Page header (下層)
   ========================================================================== */
.page-header {
  background: var(--green-900) url("../img/pattern-nanohana.svg") repeat;
  background-size: 340px; position: relative; overflow: hidden;
  padding: 84px 24px 72px; text-align: center; color: #fff;
}
.page-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(to right, var(--yellow-500), var(--yellow-400));
}
.page-header-en {
  display: block; font-family: var(--en); font-size: 13px; letter-spacing: 0.34em;
  color: var(--yellow-400); margin-bottom: 12px; text-transform: uppercase;
}
.page-header-title {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 600;
  letter-spacing: 0.16em;
}
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.breadcrumb ol {
  max-width: 1100px; margin: 0 auto; padding: 10px 24px;
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-soft);
}
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--line); }
.breadcrumb a { color: var(--green-700); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--green-900) url("../img/pattern-nanohana.svg") repeat;
  background-size: 340px;
  color: #fff; text-align: center; padding: 80px 24px;
}
.cta-band-inner { max-width: 820px; margin: 0 auto; }
.cta-flower { margin: 0 auto 18px; }
.cta-title {
  font-family: var(--serif); font-size: clamp(24px, 3.2vw, 32px); font-weight: 600;
  letter-spacing: 0.12em; margin-bottom: 18px;
}
.cta-text { font-size: 15px; color: rgba(255, 255, 255, 0.88); margin-bottom: 36px; }
.cta-actions {
  display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-tel { display: flex; flex-direction: column; color: #fff; line-height: 1.4; }
.cta-tel-label { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.cta-tel-number {
  font-family: var(--en); font-size: 34px; font-weight: 500; letter-spacing: 0.04em;
}
.cta-tel:hover .cta-tel-number { color: var(--yellow-400); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, 0.85); }
.site-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 64px 24px 48px;
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo span { display: flex; flex-direction: column; line-height: 1.4; }
.footer-logo-corp { font-size: 11px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); }
.footer-logo-name { font-family: var(--serif); font-size: 20px; letter-spacing: 0.1em; color: #fff; }
.footer-address { font-size: 13.5px; line-height: 2.1; color: rgba(255, 255, 255, 0.72); }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.footer-nav a:hover { color: var(--yellow-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.copyright {
  max-width: 1100px; margin: 0 auto; padding: 18px 24px;
  font-size: 11.5px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.08em;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.photo-note { color: rgba(255, 255, 255, 0.45); }

/* ==========================================================================
   Utility / Animation
   ========================================================================== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.note { font-size: 13px; color: var(--ink-soft); }

/* 企業向けのご案内 */
.business-banner { position: relative; overflow: hidden; padding: 28px 24px; background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.business-banner::before {
  content: ""; position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
  background: url("../img/pattern-nanohana-yellow.svg") right center / 238px repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 60%);
  mask-image: linear-gradient(to right, transparent 25%, #000 60%);
}
.business-banner-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.business-banner-label { color: var(--green-700); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.business-banner h2 { margin: 4px 0 8px; color: var(--green-900); font-family: var(--serif); font-size: 21px; }
.business-banner p:not(.business-banner-label) { font-size: 13px; color: var(--ink-soft); }
.business-banner .btn { flex-shrink: 0; }
.business-intro { max-width: 860px; }
.business-phrase { display: inline-block; }
.business-description { text-align: center; color: var(--ink-soft); line-height: 2.2; }
.business-tasks { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.business-tasks li { padding: 8px 20px; color: var(--green-800); background: var(--green-100); border-radius: 999px; font-size: 14px; font-weight: 700; }
@media (max-width: 767px) {
  .header-top .tel-hours { display: none; }
  .business-banner::before { opacity: 0.2; }
  .business-banner-inner { align-items: stretch; flex-direction: column; gap: 20px; }
  .business-banner h2 { font-size: 19px; }
  .business-banner .btn { align-self: center; }
  .business-description { text-align: left; }
  .business-tasks { max-width: 280px; margin-left: auto; margin-right: auto; gap: 8px; }
  .business-tasks li { padding: 8px 16px; }
}
.placeholder-note {
  display: inline-block; background: var(--yellow-100); border: 1px dashed var(--yellow-600);
  color: #7a5c00; font-size: 12px; padding: 2px 10px; border-radius: 3px;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
}

/* --- お問い合わせフォーム --- */
.contact-form { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 40px 36px; }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.form-required,
.form-optional {
  display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 3px;
  padding: 1px 8px; margin-left: 8px; vertical-align: middle; letter-spacing: 0.08em;
}
.form-required { background: #c0392b; color: #fff; }
.form-optional { background: var(--line-soft); color: var(--ink-soft); }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 13px 16px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--yellow-500); background: #fff;
}
.form-radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.form-radio-group label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; margin: 0; }
@media (max-width: 640px) { .contact-form { padding: 28px 20px; } }

/* --- 地図 --- */
.map-frame {
  display: block; width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-card); background: var(--green-050);
}
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

/* API連携フォーム・お知らせ本文 */
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form legend, .form-label { font-weight: 700; margin-bottom: 8px; }
.contact-form #visit-fields { margin-bottom: 26px; }
.contact-form [hidden] { display: none !important; }
.form-honeypot, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-form button:disabled { opacity: 0.45; cursor: not-allowed; }
.contact-form [aria-invalid="true"] { border-color: #b42318; }
#form-status:not(:empty) { padding: 20px; margin-bottom: 24px; border: 1px solid var(--green-800); background: var(--green-050); }
#form-status:focus { outline: 2px solid var(--green-800); }
.form-agreement { margin-bottom: 24px; }
.form-switch { margin-top: 24px; }
.form-switch a { color: var(--green-800); text-decoration: underline; }
.form-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.form-steps li { flex: 1; padding: 12px 4px; text-align: center; background: var(--green-050); border-radius: var(--radius); }
.form-steps [aria-current="step"] { background: var(--green-800); color: #fff; font-weight: 700; }
.form-stage-title { font-family: var(--serif); font-size: 22px; color: var(--green-900); margin-bottom: 24px; scroll-margin-top: 16px; }
.form-stage-title:focus { outline: 2px solid var(--green-800); outline-offset: 6px; }
.form-summary { margin-bottom: 32px; }
.form-turnstile { max-width: 400px; margin: 0 auto 32px; }
.form-turnstile:empty { display: none; }
.form-summary > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.form-summary dt { font-weight: 700; margin-bottom: 6px; }
.form-summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 0; }
.calendar-nav button, .calendar-days button { font: inherit; padding: 8px; background: #fff; color: var(--green-900); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.calendar-days button { min-height: 44px; }
.calendar-days button[aria-pressed="true"] { background: var(--green-800); color: #fff; }
#selected-date { margin: 16px 0; font-weight: 700; }
.news-detail { max-width: 860px; margin: 0 auto; }
.news-detail h2 { margin: 24px 0; }
.news-body { overflow-wrap: anywhere; }
.news-body p, .news-body ul, .news-body ol, .news-body figure { margin-bottom: 1.5em; }
.news-body ul, .news-body ol { padding-left: 1.5em; }
.news-body ol { list-style-type: decimal; }
.news-body ul { list-style-type: disc; }
.news-body img { max-width: 100%; height: auto; }
.news-body a { text-decoration: underline; }
.news-body table { display: block; overflow-x: auto; }

#contact-content[hidden], #contact-unavailable[hidden] { display: none; }

/* ==========================================================================
   事業案内・事業所案内
   ========================================================================== */
.content-guide {
  overflow-wrap: anywhere;
}
.content-guide .section { padding-block: 72px; }
.content-guide .section-head { margin-bottom: 28px; }
.content-guide .section-head::after { display: none; }
.content-guide .section-en { color: var(--green-700); font-size: 12px; }
.content-guide .section-title { font-size: clamp(24px, 2.5vw, 30px); letter-spacing: 0.06em; }
.content-guide .section-title-note { line-height: 1.8; }
.content-guide .split-text { font-size: 15px; }
.content-guide .btn { min-width: 0; max-width: 100%; border-radius: 2px; }
.content-guide [id] { scroll-margin-top: 16px; }
.content-guide a:focus-visible,
.content-guide summary:focus-visible { outline: 3px solid var(--green-700); outline-offset: 4px; }

/* ページ内目次。スマートフォンでは省略せず、折り返して表示する。 */
.page-nav { padding: 0 24px; border-bottom: 1px solid var(--line); }
.page-nav .section-inner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.page-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 20px 14px; font-size: 13px; font-weight: 500; color: var(--green-900);
  border-inline-start: 1px solid var(--line-soft);
}
.page-nav a:last-child { border-inline-end: 1px solid var(--line-soft); }
.page-nav a::after {
  content: ""; width: 6px; height: 6px; flex: 0 0 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.page-nav a:hover { background: var(--green-050); text-decoration: underline; }

.service-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.service-panel {
  display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 0;
  min-width: 0; padding: 28px; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--green-800);
}
.service-panel .section-head { margin-bottom: 24px; }
.service-panel .section-title { font-size: clamp(23px, 2vw, 28px); }
.service-panel .section-title-note { color: var(--green-800); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.service-photo { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.service-photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; }
.service-copy { margin-bottom: 24px; }
.service-panel .data-table { align-self: start; }
.service-panel .data-table th,
.service-panel .data-table td { padding: 14px 12px; font-size: 13px; line-height: 1.9; }
.service-panel .data-table th { width: 112px; white-space: normal; letter-spacing: 0; }
.service-panel .data-table tr:first-child th,
.service-panel .data-table tr:first-child td { border-top: 1px solid var(--line); }
.fee-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.fee-row .section-head { margin: 0; }
.fee-row .section-title { font-size: 23px; }
.fee-row .lead { margin: 0; text-align: left; font-size: 14px; }
.fee-row .pc-only { display: none; }

/* 一日は短い横の時間軸、利用手続きは縦の手順で読み分ける。 */
.schedule-line { display: grid; grid-template-columns: 1fr 1fr 0.8fr 1.4fr 1fr 0.8fr; }
.schedule-line li { padding: 20px 16px 0; border-top: 2px solid var(--green-700); border-inline-start: 1px solid var(--line); }
.schedule-line li:first-child { border-inline-start: 0; }
.schedule-line time { display: block; margin-bottom: 8px; font-family: var(--en); font-size: 27px; line-height: 1.3; color: var(--green-800); }
.schedule-line span { font-size: 14px; }
.schedule-phrase { display: inline-block; white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .schedule-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .schedule-line li:nth-child(4) { border-inline-start: 0; }
}
.guide-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
.content-guide .flow-step { grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding-bottom: 24px; }
.content-guide .flow-step:last-child { padding-bottom: 0; }
.content-guide .flow-num { width: 48px; height: 48px; border-radius: 0; box-shadow: none; }
.content-guide .flow-num::before { font-size: 8px; }
.content-guide .flow-num::after { font-size: 19px; }
.content-guide .flow-step::before { left: 23px; top: 56px; bottom: 8px; width: 1px; }
.content-guide .flow-body { padding-top: 2px; }
.content-guide .flow-title { font-size: 18px; }
.content-guide .faq-item { border-radius: 0; box-shadow: none; margin-bottom: 10px; }
.content-guide .faq-q { color: var(--green-700); }
.content-guide .faq-item summary { padding: 18px 46px 18px 20px; font-size: 14px; }
.content-guide .faq-a { padding-inline: 20px; }

@supports not (grid-template-rows: subgrid) {
  .service-panel { display: flex; flex-direction: column; }
  .service-copy { flex: 1; }
}

/* 事業所情報と地図は末尾で並べ、写真には飾り枠を付けない。 */
.content-guide .section-inner,
.content-guide .split-body { min-width: 0; }
.content-guide .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.office-heading { width: fit-content; max-width: 100%; margin-inline: auto; }
.office-heading .section-en { font-family: var(--sans); letter-spacing: 0.08em; }
.office-heading .section-title { font-size: clamp(22px, 2.4vw, 28px); }
.office-overview { align-items: start; }
.office-overview .split-actions { max-width: 360px; margin-top: 20px; text-align: center; }
.office-info { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.office-info > * { min-width: 0; }
.info-table th,
.info-table td { padding: 12px; font-size: 13px; line-height: 1.8; }
.info-table th { width: 142px; white-space: normal; letter-spacing: 0; }
.office-map .map-frame { height: 360px; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.office-map .note { margin-top: 14px; }
.office-map a { text-decoration: underline; text-underline-offset: 4px; }
.service-photo img { object-fit: cover; }

/* 同じ項目を横並びで読む比較表。スマートフォンでもサービス列を維持する。 */
.guide-compare { table-layout: fixed; }
.guide-compare th,
.guide-compare td { padding: 18px 24px; white-space: normal; font-size: 14px; letter-spacing: 0.02em; }
.guide-compare th { width: auto; }
.guide-compare thead th {
  background: var(--green-900);
  color: var(--white);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}
.guide-compare thead th:last-child { background: var(--green-100); color: var(--green-900); }
.guide-compare .guide-compare-label { width: 170px; background: var(--cream); vertical-align: middle; color: var(--ink-soft); }
.guide-en { display: block; font-family: var(--en); font-size: 11px; letter-spacing: 0.18em; margin-bottom: 4px; }
.guide-compare td + td,
.guide-compare th + th { border-left: 1px solid var(--line-soft); }
.guide-compare tbody th { background: var(--cream); font-size: 13px; }
.guide-compare tbody tr:first-child > * { border-top: 0; }
.guide-purpose td { background: var(--green-050); color: var(--green-900); font-size: 17px; }
.guide-purpose td:last-child { background: var(--cream); }
.guide-cell-label { display: block; color: var(--green-800); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.guide-compare-links td { padding-top: 8px; padding-bottom: 8px; }
.guide-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.guide-link::after { content: "→"; font-weight: 400; }

@media (max-width: 1100px) {
  .page-nav a { padding-inline: 10px; font-size: 12px; }
  .service-panel { padding: 24px; }
  .guide-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
  .office-info { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 900px) {
  .content-guide .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .content-guide .section { padding: 48px 20px; }
  .page-nav { padding: 0 20px; }
  .page-nav .section-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-nav a { padding: 12px; border-bottom: 1px solid var(--line-soft); }
  .page-nav a:nth-child(even) { border-inline-end: 1px solid var(--line-soft); }
  .service-panels,
  .fee-row,
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-panel { display: block; padding: 22px; }
  .service-panel .data-table tr { display: block; }
  .service-panel .data-table th,
  .service-panel .data-table td { display: block; width: 100%; }
  .service-panel .data-table th { padding: 8px 12px; }
  .service-panel .data-table td { padding: 12px; }
  .service-panel .data-table tr:first-child td { border-top: 0; }
  .fee-row { gap: 16px; }
  .schedule-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .schedule-line li { padding: 14px 10px 0; }
  .schedule-line li:nth-child(4) { border-inline-start: 0; }
  .guide-grid > .section-head { margin-bottom: 0; }
  .content-guide .flow-step { gap: 16px; }
  .info-table tr { display: table-row; }
  .info-table th,
  .info-table td { display: table-cell; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
  .info-table th { width: 100px; }
  .info-table td { width: auto; }
  .info-table tr:first-child td { border-top: 2px solid var(--green-800); }
  .office-map .map-frame { height: 230px; }
}

@media (max-width: 640px) {
  /* 明示したtable/row/cellロールで、グリッド化後も比較表の関連を保つ。 */
  .guide-compare,
  .guide-compare thead,
  .guide-compare tbody { display: block; width: 100%; }
  .guide-compare tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .guide-compare th,
  .guide-compare td { display: block; width: auto; min-width: 0; padding: 14px 12px; font-size: 14px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
  .guide-compare .guide-compare-label { width: auto; }
  .guide-compare thead th { font-size: 17px; letter-spacing: 0; }
  .guide-compare thead tr:first-child th { border-top: 0; }
  .guide-compare .guide-compare-label,
  .guide-compare tbody th { grid-column: 1 / -1; padding: 8px 12px; font-size: 12px; background: var(--cream); }
  .guide-compare tbody tr:first-child > * { border-top: 0; }
  .guide-purpose td { font-size: 15px; }
  .guide-compare-links td { padding: 8px 12px; }
  .guide-link { font-size: 13px; gap: 6px; }
}

@media (max-width: 480px) {
  .content-guide .section-title { font-size: 24px; }
  .service-panel .section-title { font-size: 23px; }
  .schedule-line { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--green-700); }
  .schedule-line li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); }
  .schedule-line time { margin: 0; font-size: 24px; }
}

/* Keep the complete, automatically sized embed visible at a smaller scale. */
.instagram-profile { min-width: 0; width: 100%; max-width: 360px; margin: 20px 0 0; }
.instagram-viewport { width: 100%; overflow: hidden; }
.instagram-canvas { width: 540px; transform-origin: top left; }
/* The SDK measures content height; its 1px border must remain outside it. */
.instagram-canvas .instagram-media { box-sizing: content-box; width: 538px; max-width: 538px; margin: 0; }
