@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap');

/* ============================================================
   基本設定
   ============================================================ */
:root {
  --pink: #ff3399;          /* ロゴの色 */
  --pink-deep: #d1006b;     /* 文字リンク用（白背景で読みやすい濃さ） */
  --pink-soft: #fff3f9;
  --pink-line: #f6d3e5;
  --sky: #00a6e4;
  --sky-soft: #eef9fe;
  --ink: #2b2530;
  --muted: #6c6470;
  --line: #ece6ea;
  --bg: #ffffff;
  --bg-alt: #faf8f9;
  --dark: #2b2530;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 37, 48, .08);
  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-round); font-weight: 700; line-height: 1.4; letter-spacing: .04em; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.8em; border-radius: 999px; border: 2px solid var(--pink);
  background: var(--pink); color: #fff; font-weight: 700; text-decoration: none;
  font-family: var(--font-round); line-height: 1.3; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--pink-deep); border-color: var(--pink-deep); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--pink-deep); }
.btn-outline:hover { background: var(--pink-soft); color: var(--pink-deep); border-color: var(--pink); }
.btn-sm { padding: .55em 1.3em; font-size: .9rem; }
.btn-white { background: #fff; color: var(--pink-deep); border-color: #fff; }
.btn-white:hover { background: var(--pink-soft); border-color: var(--pink-soft); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.site-logo img { width: 230px; display: block; }
.global-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.global-nav a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-family: var(--font-round); border-radius: 8px; }
.global-nav > ul > li > a:hover, .global-nav a[aria-current="page"] { color: var(--pink-deep); }
.global-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pink); border-radius: 0; }
.global-nav .nav-cta { margin-left: 8px; }
.global-nav .nav-cta .btn { color: #fff; padding: .55em 1.3em; }
.has-children { position: relative; }
.sub-nav {
  position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-children:hover .sub-nav, .has-children:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
.sub-nav a { font-weight: 500; padding: 8px 12px; }
.sub-nav a:hover { background: var(--pink-soft); color: var(--pink-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-logo img { width: 180px; }
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 0; }
  .global-nav > ul > li { border-bottom: 1px solid var(--line); }
  .global-nav a { padding: 14px 4px; }
  .global-nav a[aria-current="page"] { box-shadow: none; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .sub-nav a { padding: 8px 4px; }
  .global-nav .nav-cta { margin: 16px 0 0; border: 0; }
  .global-nav .nav-cta .btn { width: 100%; padding: .9em; }
}

/* ============================================================
   共通セクション
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-pink { background: var(--pink-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { font-family: var(--font-round); font-weight: 700; color: var(--pink); letter-spacing: .2em; font-size: .85rem; margin: 0 0 .4em; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0; }
.section-head p { color: var(--muted); margin: 12px auto 0; max-width: 640px; }
@media (max-width: 600px) { .section { padding: 56px 0; } .section-head { margin-bottom: 32px; } }

/* 下層ページの見出し帯 */
.page-hero {
  background: linear-gradient(120deg, var(--pink-soft), #fff 60%, var(--sky-soft));
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; }
.page-hero .eyebrow { margin-bottom: .3em; }
.page-hero .lead { margin: 12px 0 0; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumb a { color: var(--muted); }

/* 本文の見出し */
.content h2 {
  font-size: 1.5rem; margin: 2.2em 0 .9em; padding-left: 16px; border-left: 6px solid var(--pink);
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.2rem; margin: 1.8em 0 .7em; color: var(--pink-deep); }

/* 表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5em; border-radius: 12px; border: 1px solid var(--line); }
.price-table { min-width: 560px; background: #fff; font-size: .95rem; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { background: var(--ink); color: #fff; font-family: var(--font-round); font-weight: 700; white-space: nowrap; }
.price-table tbody th { font-weight: 700; white-space: nowrap; background: var(--bg-alt); width: 28%; }
.price-table td.price { font-weight: 700; white-space: nowrap; font-size: 1.05rem; color: var(--ink); width: 18%; }
.price-table td.note { color: var(--muted); font-size: .9rem; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.table-sky thead th { background: var(--sky); }

.info-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 28%; background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 4px; }
  .info-table td { padding-top: 4px; }
}

.note-list { font-size: .9rem; color: var(--muted); padding-left: 1.2em; margin: 0 0 1.5em; }
.callout {
  background: var(--pink-soft); border: 1px solid var(--pink-line); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 1.5em;
}
.callout-sky { background: var(--sky-soft); border-color: #cdeefc; }
.callout strong { color: var(--pink-deep); }
.callout-sky strong { color: #00739f; }

/* カード */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
@media (max-width: 360px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(43, 37, 48, .12); }
.card-img { aspect-ratio: 16 / 10; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.contain img { object-fit: contain; padding: 16px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .5em; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: .8em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 1em; }
.card-tags li { font-size: .8rem; background: var(--pink-soft); color: var(--pink-deep); padding: 2px 10px; border-radius: 999px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--pink-deep); font-family: var(--font-round); }
.card-more::after { content: ' →'; }

/* ============================================================
   トップページ
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 166, 228, .12), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 51, 153, .14), transparent 45%),
    linear-gradient(160deg, #fff 30%, var(--pink-soft));
  padding: 72px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 32px; }
.hero-tagline { font-family: var(--font-round); font-weight: 700; color: var(--pink); letter-spacing: .12em; margin: 0 0 12px; font-size: .95rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.35; margin: 0 0 20px; }
.hero h1 .nb { display: inline-block; }
@media (max-width: 420px) { .hero h1 { font-size: 1.6rem; } }
.hero h1 em { font-style: normal; color: var(--pink-deep); background: linear-gradient(transparent 65%, rgba(255, 51, 153, .18) 65%); }
.hero-lead { font-size: 1.05rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tel { font-size: 1.15rem; }
.hero-mascot { justify-self: center; width: min(320px, 80%); filter: drop-shadow(0 12px 24px rgba(255, 51, 153, .18)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-mascot { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mascot { width: 180px; order: -1; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* お知らせ一覧（共通） */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item a {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  padding: 18px 8px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s;
}
.news-item a:hover { background: var(--pink-soft); }
.news-thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.placeholder img { width: 56%; height: auto; object-fit: contain; opacity: .7; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.news-cat { display: inline-block; font-size: .75rem; padding: 1px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); font-weight: 700; }
.news-cat.cat-works { background: var(--sky-soft); color: #00739f; }
.news-cat.cat-community { background: #effaf1; color: #23763a; }
.news-cat.cat-local { background: #fff6e5; color: #94600a; }
.news-title { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.5; margin: 0; }
.news-excerpt { font-size: .9rem; color: var(--muted); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .news-item a { grid-template-columns: 84px 1fr; gap: 14px; }
  .news-thumb { width: 84px; }
  .news-excerpt { display: none; }
}

/* 地域・社会貢献 */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-grid a, .logo-grid div {
  display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; min-height: 96px; transition: box-shadow .2s;
}
.logo-grid a:hover { box-shadow: var(--shadow); }
.logo-grid img { max-height: 64px; width: auto; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.cert { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; text-align: center; }
.cert img { height: 120px; width: auto; object-fit: contain; margin-bottom: 12px; }
.cert p { margin: 0; font-size: .9rem; font-weight: 700; }
.cert small { display: block; color: var(--muted); font-weight: 400; }

/* ============================================================
   お知らせ
   ============================================================ */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.cat-tabs a {
  display: block; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-size: .9rem; font-weight: 700; background: #fff;
}
.cat-tabs a:hover { border-color: var(--pink); color: var(--pink-deep); }
.cat-tabs a[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: #fff; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700;
}
.pagination a:hover { border-color: var(--pink); color: var(--pink-deep); }
.pagination [aria-current="page"] { background: var(--pink); color: #fff; border-color: var(--pink); }

.post-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-header h1 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 8px 0 0; }
.post-body { font-size: 1.02rem; }
.post-body img { border-radius: 10px; }
.post-body figure { margin: 0 0 1.2em; }
.post-body figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.post-body table { margin: 0 0 1.5em; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; }
.post-body blockquote { margin: 0 0 1.2em; padding: 12px 20px; border-left: 4px solid var(--pink-line); background: var(--bg-alt); }
.post-body .cols { display: flex; gap: 28px; margin: 0 0 1.2em; }
.post-body .col { flex: 2; min-width: 0; }
.post-body .col-narrow { flex: 1; }
.post-body .col > *:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .post-body .cols { flex-direction: column; gap: 0; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.post-nav a:hover { border-color: var(--pink); }
.post-nav small { display: block; color: var(--muted); }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

/* ============================================================
   下層ページ用パーツ
   ============================================================ */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.check {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: relative;
}
.check h3 { font-size: 1.05rem; margin: 0 0 .5em; color: var(--ink); padding-left: 32px; position: relative; }
.check h3::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center;
}
.check p { font-size: .92rem; color: var(--muted); margin: 0; }

.enemy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.enemy { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; text-align: center; }
.enemy img { width: 140px; height: 140px; object-fit: contain; }
.enemy h3 { font-size: 1.1rem; margin: 8px 0 4px; color: var(--ink); }
.enemy h3 small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.enemy p { font-size: .88rem; color: var(--muted); margin: 0; text-align: left; }

.place { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.place:last-child { border-bottom: 0; }
.place h3 { margin-top: 0; }
@media (max-width: 760px) { .place { grid-template-columns: 1fr; gap: 16px; } .place .scene { max-width: 420px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--pink-line); }
.timeline > li { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 0 0 28px; position: relative; }
.timeline > li::before { content: ''; position: absolute; left: 86px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--pink-line); }
.timeline .year { font-family: var(--font-round); font-weight: 700; color: var(--pink-deep); }
.timeline dl { margin: 0; display: grid; grid-template-columns: 48px 1fr; row-gap: 6px; }
.timeline dt { font-weight: 700; color: var(--muted); }
.timeline dd { margin: 0; }

.message { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.message-photo img { border-radius: var(--radius); }
.message-photo figcaption { white-space: nowrap; font-size: .9rem; text-align: center; margin-top: 8px; color: var(--muted); }
@media (max-width: 700px) { .message { grid-template-columns: 1fr; } .message-photo { max-width: 200px; margin: 0 auto; } }
.philosophy {
  text-align: center; font-family: var(--font-round); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.8;
  background: var(--pink-soft); border-radius: var(--radius); padding: 32px 24px; margin: 24px 0; color: var(--pink-deep);
}
.signature { text-align: right; }

.page-toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.page-toc a { display: block; padding: 6px 16px; border: 1px solid var(--pink-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; }
.page-toc a:hover { background: var(--pink-soft); }

.map { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); background: var(--bg-alt); }

.sdg-goal { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.sdg-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.sdg-icons img { width: 72px; height: 72px; border-radius: 4px; }
.sdg-goal p { margin: 0; }

/* ============================================================
   お問い合わせ帯・フッター
   ============================================================ */
.contact-band { background: linear-gradient(135deg, var(--pink), #ff5fae); color: #fff; padding: 64px 0; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.contact-band .eyebrow { color: rgba(255, 255, 255, .85); }
.contact-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .4em; }
.contact-band p { margin: 0; }
.contact-ways { display: grid; gap: 12px; }
.contact-card {
  display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 16px 22px; text-decoration: none; box-shadow: 0 8px 24px rgba(160, 0, 80, .18);
}
a.contact-card:hover { transform: translateY(-2px); transition: transform .2s; }
.contact-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.contact-number { font-family: var(--font-round); font-weight: 700; font-size: 1.7rem; color: var(--pink-deep); line-height: 1.3; letter-spacing: .05em; }
.contact-note { font-size: .82rem; color: var(--muted); }
.contact-line { flex-direction: row; align-items: center; gap: 16px; }
.contact-line img { width: 96px; height: 96px; flex: none; }
.contact-line div { display: flex; flex-direction: column; }
@media (max-width: 800px) { .contact-inner { grid-template-columns: 1fr; gap: 24px; } }

.site-footer { background: var(--dark); color: #d9d3db; padding: 56px 0 24px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-logo { width: 260px; margin-bottom: 16px; }
.footer-invoice { margin: 12px 0 0; font-size: .8rem; color: #a99fac; }
.footer-nav { display: flex; gap: 48px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { text-align: center; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #a99fac; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-nav { gap: 32px; } }

/* ============================================================
   ピカリンジャー：汚れ衆図鑑（めくれるカード）
   ============================================================ */
.zukan-hint { color: var(--pink-deep); }
.zukan { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.zukan-card {
  display: grid; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: center; perspective: 1200px;
}
.zukan-face {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 16px;
}
.zukan-front img { width: 130px; height: 130px; object-fit: contain; transition: transform .3s; }
.zukan-name { font-family: var(--font-round); font-weight: 700; font-size: 1.15rem; }
.zukan-real { font-size: .8rem; color: var(--muted); margin-top: -4px; }
.zukan-danger { color: #e53935; letter-spacing: .1em; font-size: .95rem; }
.zukan-danger .off { color: #e5dfe3; }
.zukan-tap { display: none; margin-top: auto; padding-top: 6px; font-size: .78rem; font-weight: 700; color: var(--pink-deep); }
.zukan-back { text-align: left; align-items: stretch; background: linear-gradient(160deg, #fff, var(--pink-soft)); border-color: var(--pink-line); }
.zukan-back .zukan-name { text-align: center; color: var(--pink-deep); }
.zukan-text { font-size: .86rem; line-height: 1.7; margin: 4px 0 6px; }
.zukan-row { font-size: .82rem; line-height: 1.6; }
.zukan-label { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.zukan-waza .zukan-label { background: #e53935; }
.zukan-waza { font-weight: 700; margin-top: 4px; }

/* JSが動くときだけ：裏返しの動き */
.zukan.is-interactive .zukan-tap { display: block; }
.zukan.is-interactive .zukan-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2, .7, .3, 1.2); }
.zukan.is-interactive .zukan-back { transform: rotateY(180deg); }
.zukan.is-interactive .zukan-card[aria-pressed="true"] .zukan-front { transform: rotateY(-180deg); }
.zukan.is-interactive .zukan-card[aria-pressed="true"] .zukan-back { transform: rotateY(0); }
.zukan.is-interactive .zukan-card:hover .zukan-front { border-color: var(--pink); box-shadow: var(--shadow); }
.zukan.is-interactive .zukan-card:hover .zukan-front img { transform: scale(1.08) rotate(-4deg); }
.zukan:not(.is-interactive) .zukan-face { position: static; }
.zukan:not(.is-interactive) .zukan-card { gap: 8px; }
.zukan:not(.is-interactive) .zukan-back { grid-area: 2 / 1; }
@media (prefers-reduced-motion: reduce) {
  .zukan.is-interactive .zukan-face { transition: none; }
}

/* ============================================================
   ピカリンジャー：汚れ度診断
   ============================================================ */
.shindan {
  background: #fff; border: 3px solid var(--pink); border-radius: 20px; padding: 32px 28px; margin: 8px 0 24px;
  box-shadow: 0 10px 30px rgba(255, 51, 153, .12); scroll-margin-top: calc(var(--header-h) + 16px); text-align: center;
}
.shindan h3:focus { outline: none; }
.shindan-lead { font-family: var(--font-round); font-weight: 700; font-size: 1.15rem; }
.shindan-progress { height: 10px; background: var(--pink-soft); border-radius: 99px; overflow: hidden; max-width: 480px; margin: 0 auto; }
.shindan-progress span { display: block; height: 100%; background: var(--pink); border-radius: 99px; transition: width .3s; }
.shindan-count { font-size: .85rem; color: var(--muted); margin: 10px 0 4px; font-weight: 700; }
.content .shindan-q { font-size: clamp(1.1rem, 2.8vw, 1.35rem); color: var(--ink); margin: 0 auto 24px; max-width: 30em; line-height: 1.6; }
.shindan-answers { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.shindan-answers .btn { min-width: 140px; font-size: 1.1rem; }
.shindan-back { margin-top: 20px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.shindan-level { font-weight: 700; color: var(--muted); margin-bottom: 0; }
.shindan-level strong { font-size: 2.6rem; font-family: var(--font-round); line-height: 1.1; }
.content .shindan-result h3 { font-size: 1.6rem; margin: 0 0 .5em; }
.shindan-result.lv1 strong, .content .shindan-result.lv1 h3 { color: #23763a; }
.shindan-result.lv2 strong, .content .shindan-result.lv2 h3 { color: #b87300; }
.shindan-result.lv3 strong, .content .shindan-result.lv3 h3 { color: #e05a00; }
.shindan-result.lv4 strong, .content .shindan-result.lv4 h3 { color: #d1001f; }
.shindan-result > p { max-width: 34em; margin-left: auto; margin-right: auto; }
.shindan-result h4 { font-family: var(--font-round); margin: 24px 0 10px; font-size: 1rem; }
.shindan-enemies, .shindan-places { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.shindan-enemies li { display: flex; flex-direction: column; align-items: center; font-size: .82rem; font-weight: 700; width: 76px; animation: pop .4s backwards; }
.shindan-enemies li:nth-child(2) { animation-delay: .08s; } .shindan-enemies li:nth-child(3) { animation-delay: .16s; }
.shindan-enemies li:nth-child(4) { animation-delay: .24s; } .shindan-enemies li:nth-child(5) { animation-delay: .32s; }
.shindan-enemies li:nth-child(n+6) { animation-delay: .4s; }
.shindan-enemies img { width: 64px; height: 64px; object-fit: contain; }
.shindan-places a { display: block; padding: 6px 16px; border-radius: 99px; background: var(--sky-soft); color: #00739f; font-weight: 700; text-decoration: none; font-size: .9rem; }
.shindan-places a:hover { background: #d8f1fc; }
.shindan-free { margin: 28px 0 10px !important; font-family: var(--font-round); font-weight: 700; color: var(--pink-deep); }
.shindan-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .shindan-enemies li { animation: none; } }
@media (max-width: 600px) { .shindan { padding: 24px 16px; } .shindan-answers .btn, .shindan-cta .btn { flex: 1 1 100%; } }

/* ============================================================
   ピカリンジャー：住処の写真で動く汚れ衆
   ============================================================ */
.scene { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-enemy {
  position: absolute; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0;
  transform-origin: 50% 85%; animation: wobble 2.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1);
  -webkit-tap-highlight-color: transparent;
}
.scene-enemy img { width: 100%; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.scene-enemy:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 50%; }
.scene-enemy.is-defeated { animation: defeat .45s ease-in forwards; pointer-events: none; }
.scene-enemy.is-back { animation: respawn .5s ease-out, wobble 2.6s ease-in-out .5s infinite; }
@keyframes wobble {
  0%, 100% { transform: translateY(0) rotate(calc(var(--r) * -5deg)); }
  50% { transform: translateY(-7%) rotate(calc(var(--r) * 5deg)) scale(1.03); }
}
@keyframes defeat { 30% { transform: scale(1.25) rotate(-10deg); } 100% { transform: scale(.2) rotate(200deg); opacity: 0; } }
@keyframes respawn { from { transform: scale(0); opacity: 0; } }
.scene-pow {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 2;
  font-family: var(--font-round); font-weight: 700; font-size: clamp(1rem, 3vw, 1.4rem); color: #fff; white-space: nowrap;
  background: #e53935; border: 3px solid #fff; border-radius: 999px; padding: 2px 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  animation: pow .9s ease-out forwards;
}
@keyframes pow { 0% { transform: translate(-50%, -50%) scale(.3); } 25% { transform: translate(-50%, -50%) scale(1.15); } 70% { opacity: 1; } 100% { transform: translate(-50%, -110%) scale(1); opacity: 0; } }
.scene-cleared {
  position: absolute; inset: auto 0 8px; margin: 0 auto; width: fit-content; z-index: 3; pointer-events: none;
  font-family: var(--font-round); font-weight: 700; color: #fff; background: rgba(43, 37, 48, .85); padding: 4px 16px; border-radius: 999px;
  animation: pow 2.4s ease-out forwards; font-size: .9rem;
}

/* ポーズ画像 */
.pose { height: auto; }
.page-hero-pika .container { position: relative; }
.page-hero-pose { position: absolute; right: 20px; bottom: -48px; height: 210px; width: auto; animation: float 4s ease-in-out infinite; }
.page-hero-pika h1, .page-hero-pika .page-toc { padding-right: 200px; }
.callout-pose { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.callout-pose-img { height: 210px; width: auto; max-width: none; }
.shindan-pose { height: 160px; width: auto; }
.shindan-qpose { height: 120px; width: auto; margin-bottom: 8px; animation: pop .35s backwards; }
.pose-big { max-height: 320px; width: auto; }
@media (max-width: 700px) {
  .page-hero-pose { height: 110px; bottom: auto; top: -36px; right: 8px; }
  .page-hero-pika h1 { padding-right: 90px; }
  .page-hero-pika .page-toc { padding-right: 0; }
  .callout-pose { grid-template-columns: 1fr; }
  .callout-pose-img { order: -1; height: 150px; justify-self: center; }
  .pose-big { max-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-enemy, .scene-enemy.is-back, .page-hero-pose, .shindan-qpose { animation: none; }
  .scene-enemy.is-defeated { animation: none; opacity: 0; }
}

/* トップ：認定・取り組み（ヒーロー直下の帯） */
.certs-band { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.certs-inner { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.certs-head h2 { font-size: 1.25rem; margin: 0 0 6px; }
.certs-head .eyebrow { margin-bottom: 2px; }
.certs-link { font-size: .88rem; font-weight: 700; }
.certs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.certs-list .cert { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; border-radius: 12px; }
.certs-list .cert img { height: 64px; width: 96px; object-fit: contain; margin: 0; flex: none; }
.certs-list .cert p { font-size: .82rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .certs-inner { grid-template-columns: 1fr; gap: 14px; }
  .certs-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .certs-head .eyebrow { display: none; }
  .certs-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) { .certs-list .cert img { width: 48px; height: 48px; } .certs-list .cert { padding: 8px 10px; gap: 8px; } }

/* 個人情報保護方針 */
.privacy-date { text-align: right; margin-top: 40px; color: var(--muted); font-size: .9rem; }
/* 公開前に確認・記入が必要な箇所（確認後は class="todo" を外す） */
.todo { background: #fff3a8; outline: 2px dashed #e0b400; outline-offset: 1px; }

/* 改行の見栄え：最後の行に1〜2文字だけ残らないようにする（対応ブラウザのみ） */
p, li, dd, td, th, figcaption, .news-excerpt, .card-body p { text-wrap: pretty; }
h1, h2, h3, h4, .news-title, .zukan-name { text-wrap: balance; word-break: auto-phrase; }
/* ひとかたまりで改行させたい語句 */
.nb { display: inline-block; }
.nowrap { white-space: nowrap; }
.footer-nav a { white-space: nowrap; }
@media (max-width: 520px) { .footer-nav { flex-direction: column; gap: 0; } }

/* 汚れ度メーター */
.shindan-meter { max-width: 420px; margin: 12px auto 20px; }
.shindan-meter-track {
  position: relative; height: 18px; border-radius: 999px; overflow: hidden;
  background: var(--bg-alt); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12);
}
.shindan-meter-fill {
  position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, #2e9e4f 0%, #f2b705 35%, #f27405 65%, #d1001f 100%);
  clip-path: inset(0 calc(100% - var(--pct)) 0 0 round 999px);
  animation: meter-fill 1.1s cubic-bezier(.2, .8, .2, 1) backwards;
}
@keyframes meter-fill { from { clip-path: inset(0 100% 0 0 round 999px); } }
.shindan-meter-labels { display: flex; justify-content: space-between; list-style: none; margin: 6px 2px 0; padding: 0; font-size: .75rem; color: var(--muted); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .shindan-meter-fill { animation: none; } }
/* 認定マーク：画像を上、名前を下に（画像を大きく、名前を読みやすく） */
.certs-list .cert { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 8px; padding: 12px 10px; }
.certs-list .cert img { width: 100%; max-width: 160px; height: 64px; }
.certs-list .cert p { font-size: .8rem; }
@media (max-width: 420px) { .certs-list .cert img { width: 100%; height: 56px; } }
