/* ==========================================================
   株式会社Will Bridge 公式サイト 共通スタイル
   スマホファースト：基本はスマホ用、広い画面は @media で上書き
   色はロゴ（なな星）から抽出：紺・黄・ピンク・若草・水色・ピーチ
   ========================================================== */

:root {
  /* ロゴから抽出した色 */
  --navy: #192e7a;
  --yellow: #fff340;
  --pink: #edadbe;
  --green: #c1d67d;
  --blue: #9bd1e3;
  --peach: #f3c39d;

  /* 背景に使うごく淡い色 */
  --bg: #fffbf3;
  --bg-pink: #fff1f4;
  --bg-green: #f6f9e8;
  --bg-blue: #eef8fc;
  --bg-peach: #fff4ea;
  --bg-yellow: #fffbd2;

  /* 文字色 */
  --text: #34384f;
  --text-soft: #666a80;
  --line: #eadfce;

  /* LINE（ボタン文字の視認性のため公式色よりやや濃い緑） */
  --line-green: #05a446;
  --line-green-dark: #048a3b;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 6px 20px rgba(25, 46, 122, 0.08);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN",
    "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
  --header-h: 60px;
  --fixed-h: 76px; /* スマホ下部のLINEバーの高さ */
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  padding-bottom: calc(var(--fixed-h) + env(safe-area-inset-bottom));
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.5; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; } /* 1文字だけ次の行に残るのを防ぐ */
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { top: 8px; }

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--pink { background: var(--bg-pink); }
.section--green { background: var(--bg-green); }
.section--blue { background: var(--bg-blue); }
.section--peach { background: var(--bg-peach); }
.section--rounded { border-radius: 40px 40px 0 0; margin-top: -32px; position: relative; }

.sec-title { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
.sec-title::after { /* ロゴの虹色をモチーフにした線 */
  content: ""; display: block; width: 84px; height: 6px; margin: 14px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--pink) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--peach) 75%);
}
.sec-lead { text-align: center; color: var(--text-soft); margin: -12px auto 28px; max-width: 34em; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.4;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 6px 16px rgba(5, 164, 70, .3); }
.btn--line:hover { background: var(--line-green-dark); }
.btn--sub { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--sub:hover { background: var(--bg-yellow); }
.btn--block { display: flex; width: 100%; }
.btn__icon { width: 26px; height: 26px; flex: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 251, 243, .94); backdrop-filter: blur(8px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--pink) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--peach) 75%) 1;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 700; line-height: 1.2; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-size: 1.05rem; letter-spacing: .02em; }
.brand__name small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-soft); }

.nav-toggle {
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bg-yellow);
  color: var(--navy); cursor: pointer; display: grid; place-items: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); padding: 8px 20px 24px; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 24px rgba(25, 46, 122, .12);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav a { display: block; padding: 14px 8px; color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px dotted var(--line); }
.site-nav a[aria-current="page"] { background: var(--bg-yellow); border-radius: 10px; }
.site-nav .nav-sub a { font-weight: 500; font-size: .88rem; color: var(--text-soft); border-bottom: 0; } /* 採用情報など控えめなリンク */

/* ---------- LINE固定ボタン ---------- */
.line-fixed {
  position: fixed; z-index: 150; left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 243, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(25, 46, 122, .08);
}
.line-fixed .btn { display: flex; width: 100%; max-width: 480px; margin: 0 auto; min-height: 54px; }
.line-fixed__sub { display: block; font-size: .72rem; font-weight: 500; opacity: .95; }
.line-fixed__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; text-align: left; }

/* ---------- ヒーロー（トップ） ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 88px; background: linear-gradient(180deg, var(--bg-yellow) 0%, var(--bg) 100%); }
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__eyebrow {
  display: inline-block; padding: 4px 16px; margin-bottom: 16px; border-radius: 999px;
  background: #fff; color: var(--navy); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow);
}
.hero h1 { font-size: 1.7rem; line-height: 1.55; margin-bottom: 16px; }
.hero h1 span { display: inline-block; } /* 折り返しを文節で行う */
.hero__lead { max-width: 30em; margin: 0 auto 24px; }
.hero__actions { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.hero__deco { position: absolute; z-index: 1; pointer-events: none; }
.hero__rainbow { width: 320px; right: -70px; top: 10px; opacity: .75; }
.hero__star--1 { width: 34px; left: 6%; top: 26px; transform: rotate(-12deg); }
.hero__star--2 { width: 22px; right: 10%; bottom: 96px; transform: rotate(14deg); }
.hero__star--3 { width: 26px; left: 12%; bottom: 84px; transform: rotate(8deg); }
.hero__cloud--1 { width: 110px; left: -30px; bottom: 30px; opacity: .9; }
.hero__cloud--2 { width: 90px; right: -20px; bottom: 50px; opacity: .9; }

/* ヒーローの写真（ブロブ切り抜き）：スマホは見出しの下 */
.hero__photo { position: relative; width: min(72vw, 280px); margin: 24px auto; }
.hero__photo img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  clip-path: url(#blob-clip); position: relative; z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(25, 46, 122, .18));
}
.hero__photo-blob { position: absolute; inset: -14%; z-index: 1; }
.hero__photo-star { position: absolute; z-index: 3; }
.hero__photo-star--1 { width: 30px; top: -6px; right: 4%; transform: rotate(10deg); }
.hero__photo-star--2 { width: 20px; bottom: 6%; left: -4%; transform: rotate(-14deg); }
.hero__photo figcaption { margin-top: 10px; }

/* ---------- カード・バッジ ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); }
.badge {
  display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--bg-blue); color: var(--navy); border: 1.5px solid var(--blue);
}
.badge--pink { background: var(--bg-pink); border-color: var(--pink); }
.badge--green { background: var(--bg-green); border-color: var(--green); }

/* 事業所カード */
.facility-list { display: grid; gap: 24px; }
.facility { display: flex; flex-direction: column; border: 3px solid var(--pink); }
.facility--2 { border-color: var(--blue); }
.facility__logo { display: block; width: 190px; margin: 0 auto 8px; }
.facility__name { text-align: center; font-size: 1.3rem; }
.facility__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 16px; }
.facility .btn { margin-top: auto; }

/* 項目名と内容の一覧（dl） */
.info { margin: 0 0 16px; }
.info > div { padding: 10px 0; border-bottom: 2px dotted var(--line); }
.info dt { font-size: .82rem; font-weight: 700; color: var(--navy); }
.info dd { margin: 0; }
.info dd small { display: block; color: var(--text-soft); font-size: .82rem; line-height: 1.6; }

/* ---------- 流れ（ステップ） ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li {
  position: relative; padding: 16px 16px 16px 72px; background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); counter-increment: step; min-height: 68px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: var(--navy); font-weight: 700; font-size: 1.15rem;
}
.steps li:nth-child(4n+2)::before { background: var(--green); }
.steps li:nth-child(4n+3)::before { background: var(--blue); }
.steps li:nth-child(4n+4)::before { background: var(--peach); }
.steps strong { display: block; color: var(--navy); }
.steps span { display: block; font-size: .88rem; color: var(--text-soft); line-height: 1.6; }

/* ---------- 注記・未入力表示 ---------- */
.note { font-size: .85rem; color: var(--text-soft); line-height: 1.7; }
.note--center { text-align: center; margin-top: 16px; }
.todo { /* 【要入力】の目印（内容が入ったらこのクラスごと外す） */
  padding: 10px 14px; background: #fffbd2; border: 2px dashed #e0b400; border-radius: var(--radius-sm);
  font-weight: 700; color: #7a5b00; font-size: .92rem;
}
span.todo { display: inline-block; padding: 1px 8px; border-width: 1.5px; font-size: inherit; }
.photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-yellow); }
.photo img { width: 100%; display: block; }
.photo--slot { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; text-align: center; }

/* ---------- 対応エリア ---------- */
.area { text-align: center; }
.area__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0; }
.area__list li { padding: 4px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--green); font-weight: 700; color: var(--navy); }

/* ---------- 下部のLINE誘導 ---------- */
.cta-band { text-align: center; background: var(--bg-yellow); border-radius: 40px 40px 0 0; padding: 48px 0; }
.cta-band h2 { margin-bottom: 12px; font-size: 1.4rem; }
.cta-band .btn { max-width: 360px; width: 100%; }

/* ---------- よくある質問（アコーディオン） ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--navy);
  position: relative; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q"; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-right: 10px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: .85rem; flex: none; vertical-align: -6px;
}
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item__body { padding: 0 20px 20px 56px; color: var(--text); }
.faq-item__body p { margin-bottom: .6em; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- 写真ギャラリー（活動紹介） ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 8px; }
.gallery__item { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-yellow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery__item:hover img { transform: scale(1.05); }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- 活動紹介カード ---------- */
.activity-cards { display: grid; gap: 18px; margin-top: 24px; }
.activity-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.activity-card p { margin-bottom: .6em; }
.activity-card .note { margin-bottom: 0; }
@media (min-width: 760px) { .activity-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 一日の流れ（タイムライン） ---------- */
.timeline-group { margin-bottom: 24px; }
.timeline-group h4 { font-size: 1rem; margin-bottom: 12px; display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--bg-yellow); }
.timeline { display: grid; gap: 8px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 10px 16px; box-shadow: var(--shadow); }
.timeline__time { flex: none; width: 4.2em; font-weight: 700; color: var(--navy); }
.timeline__body { color: var(--text); }

/* ---------- 情報公開（年度別PDF一覧） ---------- */
.disclosure { margin-bottom: 28px; }
.disclosure h4 { font-size: 1rem; margin-bottom: 12px; }
.disclosure-list { display: grid; gap: 10px; }
.disclosure-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  background: #fff; border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow);
}
.disclosure-list .dl-year { flex: none; font-weight: 700; color: var(--navy); background: var(--bg-yellow); padding: 2px 12px; border-radius: 999px; font-size: .85rem; }
.disclosure-list .dl-name { flex: 1 1 180px; }
.disclosure-list .dl-date { color: var(--text-soft); font-size: .85rem; flex: none; }
.disclosure-list .dl-link { flex: none; }
.disclosure-list .dl-pending { color: var(--text-soft); }

/* ---------- 地図 ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; margin: 16px 0; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- ページ見出し・パンくず（下層ページ用） ---------- */
.breadcrumb { font-size: .8rem; color: var(--text-soft); padding: 12px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; }
.page-hero { padding: 24px 0 36px; background: linear-gradient(180deg, var(--bg-yellow), var(--bg)); text-align: center; }
.page-hero h1 { font-size: 1.55rem; margin-top: 12px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 40px 0 32px; }
.site-footer a { color: #fff; }
.site-footer__brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.site-footer address { font-style: normal; font-size: .9rem; line-height: 1.8; opacity: .95; margin-bottom: 20px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 24px; font-size: .92rem; }
.site-footer__nav a { padding: 6px 0; }
.site-footer__nav .is-minor { font-size: .82rem; opacity: .85; }
.site-footer small { display: block; opacity: .8; font-size: .78rem; }

/* ---------- 広い画面（タブレット・PC） ---------- */
@media (min-width: 760px) {
  .section { padding: 72px 0; }
  .sec-title { font-size: 1.85rem; }
  .hero { padding: 64px 0 112px; }
  .hero h1 { font-size: 2.3rem; }
  .hero__actions { grid-auto-flow: column; max-width: 560px; }
  .hero__rainbow { width: 480px; right: 2%; top: 20px; }

  /* PCはテキスト左・写真右の2カラム */
  .hero__inner {
    display: grid; text-align: left; align-items: center;
    grid-template-columns: minmax(0, 1.05fr) 300px;
    grid-template-areas:
      "eyebrow photo"
      "title photo"
      "lead photo"
      "actions photo";
    column-gap: 48px;
  }
  .hero__eyebrow { grid-area: eyebrow; }
  .hero h1 { grid-area: title; }
  .hero__lead { grid-area: lead; margin-left: 0; }
  .hero__actions { grid-area: actions; margin-left: 0; }
  .hero__photo { grid-area: photo; width: 100%; max-width: 300px; margin: 0; justify-self: end; }
  .facility-list { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card { padding: 32px 28px; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (min-width: 900px) {
  :root { --fixed-h: 0px; --header-h: 72px; }
  body { padding-bottom: 0; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 4px; padding: 0; background: none; box-shadow: none; border-radius: 0;
  }
  .site-nav a { white-space: nowrap; padding: 8px 12px; border-bottom: 0; border-radius: 999px; font-size: .92rem; }
  .site-nav a:hover { background: var(--bg-yellow); }
  .site-nav .nav-sub a { font-size: .8rem; }
  /* LINEボタンはPCでは右下に丸く浮かせる */
  .line-fixed { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0; box-shadow: none; }
  .line-fixed .btn { width: auto; padding: 12px 28px; box-shadow: 0 8px 24px rgba(5, 164, 70, .4); }
}

/* 動きが苦手な方への配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { transition: none; }
  .btn:hover { transform: none; }
}
