/*
 * Tailwind8 Pop — 全ページ共通のCSS
 *
 * 配色と形は AOKI LAND（/Users/a-aoki/agents/bni/gainsSheet/site/src/app/globals.css）から移植。
 * モックは mocks/pop/。設計の決めごとは tailwind8-pop/DESIGN.md。
 *
 * - 16px 未満の font-size を書かないこと（tests/test-pop-theme.php が弾く）
 * - coral の面に白文字を載せない（文字は ink）
 * - 親の Tailwind（theme/assets/css/style.css）がこの前に読まれている。クラス名が親と
 *   ぶつかるもの（.card など）は使わず、このテーマの部品は .p〜 / 固有名で書く
 *
 * 節:
 *   1. 書体とトークン   2. 土台   3. 文字   4. 部品   5. ヘッダー・フッター
 *   6. トップ   7. 下層ページの共通部品   8. 親の部品（書き直していないテンプレート用）
 *   9. 動き・下書き
 */

/* ===== 1. 書体とトークン ===== */
@font-face { font-family: "Cabinet"; src: url("../fonts/CabinetGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("../fonts/CabinetGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("../fonts/CabinetGrotesk-Extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --sky: #f3fafb;
  --foam: #e2f3ef;
  --ocean: #07739a;
  --lagoon: #3fd3c1;
  --forest: #2c7a55;
  --moss: #a3d977;
  --sun: #ffc845;
  --coral: #ff7a59;
  --ink: #0e2a38;
  --sand: #f6e7c1;
  --white: #ffffff;
  --muted: #3d5a68;

  --display: "Cabinet", "Zen Kaku Gothic New", system-ui, sans-serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1180px;
  --header-h: 76px;
}

/* ===== 2. 土台 ===== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.pop {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.pop img { max-width: 100%; height: auto; }
.pop a { color: var(--ocean); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pop a:hover { color: var(--ink); }
.pop h1, .pop h2, .pop h3, .pop h4 { color: inherit; }
.pop ::selection { background: var(--sun); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.grid-bg {
  background-color: var(--sky);
  background-image:
    repeating-radial-gradient(circle at 78% 30%, transparent 0 46px, rgba(63, 211, 193, 0.16) 46px 47px),
    linear-gradient(rgba(63, 211, 193, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 211, 193, 0.10) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

.sec { padding: 88px 0; position: relative; }
@media (max-width: 767px) { .sec { padding: 64px 0; } }
.sec--tight { padding: 56px 0; }
.sec--foam { background: var(--foam); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.sec--sand { background: var(--sand); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.sec--ink { background: var(--ink); color: var(--sky); }
.sec--ink .eyebrow { color: var(--lagoon); }
.sec--ink .lead { color: var(--foam); }
.sec--ink a:not(.btn) { color: var(--sun); }
.sec--ocean { background: var(--ocean); color: var(--white); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.sec--ocean .eyebrow { color: var(--sun); }
.sec--ocean .lead { color: var(--foam); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px; padding: 8px 16px; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; }

/* ===== 3. 文字 ===== */
.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 16px;
  color: var(--ocean);
  text-transform: uppercase;
  margin: 0;
}
.h1 {
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.3;
  font-feature-settings: "palt";
  margin: 10px 0 0;
}
.h2 {
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  margin: 8px 0 0;
}
.h3 { font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; margin: 0; }
.lead { margin: 16px 0 0; max-width: 46em; color: var(--muted); font-size: 18px; }
.mark { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.en { font-family: var(--display); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ===== 4. 部品 ===== */
.pcard {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.pcard--pad { padding: 28px; }
@media (min-width: 900px) { .pcard--pad { padding: 36px; } }
.pcard--foam { background: var(--foam); }
.pcard--sand { background: var(--sand); }
.pcard--sun { background: var(--sun); }
.pcard--lagoon { background: var(--lagoon); }
.pcard--moss { background: var(--moss); }
a.pcard { display: block; color: var(--ink); text-decoration: none; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
a.pcard:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pop a.btn, .pop button.btn { color: var(--ink); }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible { outline: 3px solid var(--ocean); outline-offset: 4px; }
.btn--main { background: var(--coral); }
.btn--sun { background: var(--sun); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn span[aria-hidden] { display: inline-block; }
.on-dark .btn { box-shadow: 4px 4px 0 var(--lagoon); }
.on-dark .btn:hover { box-shadow: 2px 2px 0 var(--lagoon); }
.pop .on-dark a.btn--ghost, .pop .on-dark button.btn--ghost { color: var(--sky); border-color: var(--sky); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btns--center { justify-content: center; }

.tag {
  display: inline-block;
  padding: 2px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.tag--sun { background: var(--sun); }
.tag--moss { background: var(--moss); }
.tag--lagoon { background: var(--lagoon); }
.tag--foam { background: var(--foam); }
.tag--coral { background: var(--coral); }
.tag--sand { background: var(--sand); }
.pop a.tag { color: var(--ink); }
.pop a.tag:hover { background: var(--sun); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.link-arrow { font-weight: 900; text-decoration: none; }
.link-arrow::after { content: " →"; }
.pop .link-arrow:hover { text-decoration: underline; }

/* ===== 5. ヘッダー・フッター ===== */
.site-header.p-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sky);
  border-bottom: 3px solid var(--ink);
}
.admin-bar .site-header.p-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header.p-header { top: 46px; } }
.p-header .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.p-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.p-logo img { height: 40px; width: auto; display: block; }
.p-nav { display: none; margin-left: auto; }
.p-nav > ul { display: flex; gap: 2px; align-items: center; margin: 0; padding: 0; list-style: none; }
.p-nav > ul > li { position: relative; }
.p-nav a, .p-nav button {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--sans); font-weight: 900; font-size: 16px; line-height: 1.4;
  padding: 8px 14px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.pop .p-nav a { color: var(--ink); }
.p-nav a:hover, .p-nav button:hover, .p-nav button[aria-expanded="true"], .p-nav .current-menu-item > a { background: var(--ink); color: var(--sky); }
.pop .p-nav a:hover { color: var(--sky); }
.p-nav button svg { width: 16px; height: 16px; transition: transform 0.2s; }
.p-nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
/* 子メニュー（親の main.js が data-open を付け外しする。クラス名は親と同じ .main-navigation .sub-menu） */
.p-nav.main-navigation .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  display: none; margin: 0; padding: 10px; list-style: none;
  background: var(--white); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
}
.p-nav.main-navigation .menu-item-has-children:hover > .sub-menu,
.p-nav.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.p-nav.main-navigation .menu-item-has-children[data-open='true'] > .sub-menu { display: block; }
.p-nav.main-navigation .sub-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.p-nav .sub-menu a { display: block; width: 100%; border-radius: 10px; }
.p-header-cta { margin-left: auto; }
.p-search { display: none; }
@media (min-width: 1280px) {
  .p-nav { display: block; }
  .p-header-cta { margin-left: 4px; }
  .p-menu-btn { display: none !important; }
}
.p-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-left: 4px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.p-menu-btn svg { width: 22px; height: 22px; }
.p-mobile { border-top: 3px solid var(--ink); background: var(--sky); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.p-mobile.hidden { display: none; }
.p-mobile .wrap { display: block; padding-top: 20px; padding-bottom: 28px; min-height: 0; }
.p-mobile ul { list-style: none; margin: 0; padding: 0; }
.p-mobile > .wrap > ul > li { border-bottom: 2px dashed rgba(14, 42, 56, 0.2); }
.p-mobile a { display: block; padding: 12px 4px; font-weight: 900; text-decoration: none; }
.pop .p-mobile a { color: var(--ink); }
.p-mobile .p-mobile-group { padding: 12px 4px 4px; font-family: var(--display); font-weight: 800; letter-spacing: 0.12em; color: var(--ocean); margin: 0; }
.p-mobile .p-mobile-sub { padding-left: 14px; border-left: 3px solid var(--lagoon); margin-bottom: 10px; }
.p-mobile .btn { width: 100%; margin-top: 20px; }
.p-mobile .search-form, .p-mobile form[role="search"] { margin-bottom: 12px; }

.site-footer.p-footer { background: var(--ink); color: var(--foam); padding: 64px 0 32px; }
.p-footer .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .p-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.p-footer-logo img { height: 44px; width: auto; display: block; }
.p-footer-tag { margin-top: 16px; font-family: var(--display); font-weight: 800; color: var(--lagoon); letter-spacing: 0.08em; font-size: 18px; }
.p-footer-address { margin-top: 12px; font-size: 16px; }
.p-footer h3 { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.14em; color: var(--sun); margin: 0 0 14px; text-transform: uppercase; }
.p-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pop .p-footer a { color: var(--sky); text-decoration: none; font-weight: 700; }
.pop .p-footer a:hover { color: var(--sun); }
.p-sns { display: flex; gap: 14px; margin-top: 18px; }
.p-sns svg { width: 26px; height: 26px; display: block; }
.p-copy { grid-column: 1 / -1; border-top: 2px solid rgba(226, 243, 239, 0.2); padding-top: 24px; font-size: 16px; color: var(--foam); text-align: center; }

/* ページトップ（親の main.js が .is-visible を付け外しする） */
.p-pagetop {
  position: fixed; right: 24px; bottom: 96px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.p-pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.p-pagetop svg { width: 22px; height: 22px; }

/* ===== 6. トップ ===== */
/* 6-1 ヒーロー */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } .hero { padding: 72px 0 96px; } }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 7.4vw, 100px); line-height: 0.95; letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .more { color: var(--forest); }
.hero-title .fun { display: inline-block; background: linear-gradient(transparent 60%, var(--sun) 60%) no-repeat 0 0 / 100% 100%; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-ja { margin: 24px 0 0; font-weight: 900; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.45; font-feature-settings: "palt"; }
.hero-sub { margin: 16px 0 0; color: var(--muted); max-width: 32em; }
.hero-ctas { margin-top: 28px; }
.hero-check { margin: 16px 0 0; }
.hero-note { margin: 14px 0 0; font-size: 16px; color: var(--muted); }

.scene { position: relative; }
.scene svg { width: 100%; height: auto; overflow: visible; display: block; }
.sticker {
  position: absolute; top: -2%; right: 4%; z-index: 2; margin: 0;
  font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.15; text-align: center;
  background: var(--coral); border: 3px solid var(--ink); border-radius: 999px;
  padding: 10px 20px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-10deg);
}
.flow-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; }
.flow-steps li { font-weight: 900; font-size: 16px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); transition: background 0.3s, transform 0.3s var(--ease); }
.flow-steps li.is-on { background: var(--sun); transform: translateY(-3px); }

.numbers { margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; }
.num { padding: 22px 12px 18px; text-align: center; margin: 0; }
.num:nth-child(1) { background: var(--sun); transform: rotate(-1.5deg); }
.num:nth-child(2) { background: var(--moss); transform: rotate(1deg); }
.num:nth-child(3) { background: var(--lagoon); transform: rotate(-0.8deg); }
.num .val { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 104px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; margin: 0; }
.num .val small { font-size: 0.42em; margin-left: 4px; letter-spacing: 0; }
.num .lbl { display: block; font-weight: 900; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; margin-top: 10px; }
.numbers-note { grid-column: 1 / -1; font-size: 16px; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .numbers { grid-template-columns: 1fr; gap: 18px; } .num .val { font-size: 64px; } }

/* 6-2 流れる帯 */
.marquee { background: var(--ink); color: var(--sky); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); overflow: hidden; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; font-weight: 900; font-size: clamp(18px, 2vw, 24px); white-space: nowrap; }
.marquee-track .dot { color: var(--coral); }
.marquee-track .en { color: var(--lagoon); letter-spacing: 0.04em; }

/* 6-3 ストーリー。GSAP が動くときは画面に固定して重ねる。動かないときは縦に並べるだけ */
.story-scene { padding: 80px 0; position: relative; overflow: hidden; }
html.anim .story { height: 100vh; height: 100svh; position: relative; overflow: hidden; border-top: 3px solid var(--ink); }
html.anim .story-scene { position: absolute; inset: 0; padding: 0; display: flex; align-items: center; }
.story-scene .wrap { width: 100%; position: relative; }
.story-q { font-weight: 900; font-size: clamp(44px, 8.4vw, 120px); line-height: 1.1; margin: 12px 0 0; font-feature-settings: "palt"; }
.story-pills { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.story-pills li { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.4vw, 30px); padding: 8px 28px; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); }
.story-pills li:nth-child(1) { transform: rotate(-3deg); }
.story-pills li:nth-child(2) { transform: rotate(2deg); }
.story-pills li:nth-child(3) { transform: rotate(-1deg); }
.story-pills li:nth-child(4) { transform: rotate(3deg); }
.story-pills li:nth-child(5) { transform: rotate(-2deg); }
.story-growth { margin-top: 40px; display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.bars { height: 140px; display: flex; align-items: flex-end; gap: 12px; }
.bars span { display: block; width: 44px; background: var(--lagoon); border: 3px solid var(--ink); border-radius: 10px; }
.story-years { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); color: var(--ocean); margin: 0; }
.story-growth-label { font-weight: 900; font-size: clamp(20px, 2.6vw, 32px); margin: 0; }
.story-stamp {
  position: absolute; left: 50%; top: 50%; transform: rotate(-4deg); /* 中央寄せは GSAP の xPercent/yPercent（CSS の translate と二重にしない） */
  margin: 0; white-space: nowrap;
  background: var(--coral); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  font-weight: 900; font-size: clamp(30px, 6.6vw, 96px); line-height: 1; padding: 0.4em 0.6em; border-radius: 8px;
}
html:not(.anim) .story-stamp { position: static; transform: rotate(-3deg); display: inline-block; margin-top: 32px; white-space: normal; }
.story-2 { background: radial-gradient(ellipse at 85% 10%, #0b4a5e, var(--ink) 60%); color: var(--sky); }
.story-turn-lead { font-weight: 900; color: var(--lagoon); font-size: clamp(22px, 2.8vw, 36px); margin: 0; }
.story-turn { margin: 24px 0 0; font-weight: 900; font-size: clamp(36px, 7vw, 100px); line-height: 1.3; font-feature-settings: "palt"; }
.story-turn span { display: block; }
.story-flow { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.story-flow li { font-weight: 900; font-size: clamp(16px, 1.8vw, 22px); padding: 6px 20px; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); }
.story-flow li + li { margin-left: 40px; position: relative; }
.story-flow li + li::before { content: "→"; position: absolute; left: -32px; color: var(--ocean); font-weight: 900; }
.story-flow li.hot { background: var(--coral); }
.bubbles { margin-top: 40px; display: grid; gap: 44px; }
.bubble {
  position: relative; justify-self: start; transform: rotate(var(--tilt)); margin: 0;
  font-weight: 900; font-size: clamp(22px, 4vw, 56px); line-height: 1.2;
  padding: 0.45em 1em; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 6px 6px 0 var(--ink);
}
.bubble::before, .bubble::after { content: ""; position: absolute; border: 3px solid var(--ink); border-radius: 50%; background: inherit; }
.bubble::before { width: 26px; height: 26px; bottom: -34px; left: 60px; }
.bubble::after { width: 16px; height: 16px; bottom: -58px; left: 40px; }
.bubble--lagoon { background: var(--lagoon); justify-self: center; }
.bubble--sun { background: var(--sun); margin-left: 6%; }
.story-close { margin: 56px 0 0; font-weight: 900; font-size: clamp(24px, 3.4vw, 44px); }
.spark { position: absolute; height: auto; pointer-events: none; }
@media (max-width: 767px) {
  .bubbles { gap: 34px; }
  .bubble, .bubble--lagoon, .bubble--sun { justify-self: stretch; margin-left: 0; text-align: center; border-radius: 40px; }
  .story-flow li + li { margin-left: 32px; }
  .story-flow li + li::before { left: -26px; }
  .spark { display: none; }
  .story-stamp { white-space: normal; width: 88%; text-align: center; }
  /* 場面1は縦に長く、中央寄せのままだと上端が帯（.marquee）の下に潜る（2026-12-06 実機）。
     帯のぶん上を、固定バー（.p-bar）のぶん下を空け、はみ出すときは上から並べる（safe） */
  html.anim .story-scene { padding: 40px 0 calc(76px + 16px); align-items: safe center; }
  .story-q { font-size: clamp(34px, 9.6vw, 44px); }
  .story-pills { margin-top: 20px; gap: 10px; }
  .story-pills li { padding: 6px 18px; }
  .story-growth { margin-top: 24px; gap: 16px; }
  .bars { height: 88px; gap: 8px; }
  .bars span { width: 32px; }
}

/* 6-4 困りごとチップ */
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--sans); font-size: 17px; font-weight: 900; line-height: 1.5; color: var(--ink); text-align: left;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}
.chip:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--sun); transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.answer { margin-top: 28px; padding: 28px; display: grid; gap: 14px; }
.answer h3 { font-weight: 900; font-size: 22px; line-height: 1.5; margin: 0; }
.answer p { margin: 0; }
.answer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.answer ul a { font-weight: 700; }
.answer ul a::before { content: "→ "; }

/* 6-5 制作実例 */
.cases { margin-top: 40px; display: grid; gap: 28px; }
@media (min-width: 720px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s var(--ease); margin: 0; }
.case:hover { transform: rotate(-0.6deg) translateY(-4px); }
.case figure { margin: 0; aspect-ratio: 16 / 10; background: var(--foam); border-bottom: 3px solid var(--ink); overflow: hidden; }
.case figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.case-body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.case h3 { font-weight: 900; font-size: 21px; line-height: 1.45; margin: 0; }
.case dl { margin: 0; display: grid; gap: 10px; }
.case dt { display: inline-block; font-weight: 900; font-size: 16px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--ink); }
.case dt.before { background: var(--foam); }
.case dt.after { background: var(--moss); }
.case dd { margin: 4px 0 0; }
.cases-more { margin-top: 28px; }
.cases-more > summary { list-style: none; text-align: center; }
.cases-more > summary::-webkit-details-marker { display: none; }
.cases-more[open] > summary { display: none; }
.cases-cta { margin-top: 56px; padding: 32px; display: grid; gap: 20px; align-items: center; background: var(--sun); }
@media (min-width: 900px) { .cases-cta { grid-template-columns: 1fr auto; padding: 40px 48px; } }
.cases-cta h3 { font-weight: 900; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; margin: 0; }
.cases-cta p { margin: 8px 0 0; }

/* 6-6 浮いた時間 */
.time { display: grid; gap: 40px; margin-top: 40px; align-items: start; }
@media (min-width: 900px) { .time { grid-template-columns: 1.1fr 1fr; } }
.slider { display: grid; gap: 6px; margin-bottom: 28px; }
.slider label { display: flex; justify-content: space-between; gap: 12px; font-weight: 900; }
.slider output { font-family: var(--display); font-weight: 800; color: var(--lagoon); font-size: 22px; white-space: nowrap; }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px;
  background: rgba(226, 243, 239, 0.18); border: 2px solid var(--foam); margin: 10px 0;
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--sun); cursor: pointer;
}
.slider input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); cursor: pointer; }
.slider input[type="range"]:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.result-box { padding: 32px; border: 3px solid var(--lagoon); border-radius: var(--radius); }
.result-box p { margin: 0; }
.result-box .big { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 92px); line-height: 1; color: var(--sun); margin-top: 8px; }
.result-box .big small { font-size: 0.32em; margin-left: 6px; color: var(--sky); font-family: var(--sans); font-weight: 900; }
.result-box .equal { margin-top: 12px; font-weight: 900; font-size: 20px; }
.use-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.time-note { margin: 20px 0 0; font-size: 16px; color: var(--foam); }

/* 6-7 サービス3段階 */
.strong-band { margin: 32px 0 0; padding: 20px 24px; font-weight: 900; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.6; background: var(--white); }
.steps { margin-top: 56px; display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px 26px; display: grid; gap: 12px; position: relative; align-content: start; }
@media (min-width: 960px) {
  .step:nth-child(2) { margin-bottom: 36px; }
  .step:nth-child(3) { margin-bottom: 72px; }
}
.step > * { margin: 0; }
.step .no { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--ocean); }
.step .act { position: absolute; top: -18px; right: 20px; transform: rotate(4deg); }
.step .situation { font-weight: 900; font-size: 16px; color: var(--muted); }
.step h3 { font-weight: 900; font-size: 22px; line-height: 1.45; }
.step .boundary { font-weight: 700; padding: 8px 14px; background: var(--sky); border: 2px dashed var(--ink); border-radius: 12px; }
.step .price { font-size: 16px; padding-top: 12px; border-top: 2px dashed var(--ink); }
.step .price b { display: block; }
.step:nth-child(1) { background: var(--white); }
.step:nth-child(2) { background: var(--foam); }
.step:nth-child(3) { background: var(--sand); }
.series { margin-top: 40px; padding: 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; background: var(--lagoon); }
.series p { margin: 0; }
.series b { font-weight: 900; font-size: 20px; }
.series .btn { margin-left: auto; }

/* 6-8 手段と進め方 */
.means { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.means li { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 900; }
.means li svg { width: 26px; height: 26px; flex: none; }
.means-core { margin: 28px 0 0; display: inline-flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 14px 24px; background: var(--ocean); color: var(--white); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.means-core b { font-weight: 900; font-size: 20px; }
.road-heading { margin: 48px 0 0; }
.road { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); position: relative; }
.road-line { display: none; }
@media (min-width: 900px) {
  .road { grid-template-columns: repeat(6, 1fr); }
  .road-line { display: block; position: absolute; left: 4%; right: 4%; top: 50%; height: 6px; margin-top: -3px; background: var(--ink); border-radius: 6px; z-index: 0; }
}
.road li { position: relative; z-index: 1; padding: 16px 14px; border: 3px solid var(--ink); border-radius: 16px; background: var(--white); font-weight: 900; text-align: center; }
.road li b { display: block; font-family: var(--display); font-weight: 800; color: var(--coral); font-size: 22px; line-height: 1.2; }
.road li:nth-child(2) { background: var(--sand); }
.road li:last-child { background: var(--lagoon); }

/* 6-9 読みもの（タブ） */
.tabs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.tab { font-family: var(--sans); font-size: 17px; font-weight: 900; color: var(--ink); padding: 8px 20px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--sky); }
.tab-summary { margin: 24px 0 0; color: var(--muted); max-width: 46em; }
.lab { margin-top: 32px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.lab p { margin: 0; }
.lab .n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ocean); }

/* 6-10 想い・約束・声 */
.mind { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 960px) { .mind { grid-template-columns: 1fr 1fr; } }
.mind-strong { font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.45; margin: 0; }
.mind-body { margin: 20px 0 0; }
.mind-name { margin: 16px 0 0; font-weight: 700; color: var(--muted); }
.promises { display: grid; gap: 18px; }
.promise { padding: 20px 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.promise h3 { font-weight: 900; font-size: 20px; margin: 0; }
.promise p { margin: 4px 0 0; }
.promise .icon { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.promise:nth-child(1) .icon { background: var(--sun); }
.promise:nth-child(2) .icon { background: var(--moss); }
.promise:nth-child(3) .icon { background: var(--lagoon); }
.voices { margin-top: 56px; display: grid; gap: 32px; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(3, 1fr); } }
.voice { padding: 26px; position: relative; margin: 0; }
.voice::before { content: "\201C"; position: absolute; top: -26px; left: 18px; font-family: var(--display); font-weight: 800; font-size: 80px; line-height: 1; color: var(--coral); }
.voice blockquote { margin: 0; font-size: 16px; }
.voice figcaption { margin-top: 14px; font-weight: 900; font-size: 16px; }
.voice figcaption span { display: block; font-weight: 500; color: var(--muted); }

/* 6-11 最終CTA */
.final { text-align: center; overflow: hidden; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .btns { margin-top: 32px; justify-content: center; }
.final-hours { margin: 20px 0 0; color: var(--foam); font-size: 16px; }
.final-big { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 96px); line-height: 1; color: var(--lagoon); letter-spacing: -0.01em; margin: 0; }
.final-big .y { color: var(--sun); }

/* 6-12 スマホの固定バー（ヘッダーの相談ボタンが消える 1280px 未満だけ） */
.p-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; padding: 10px 16px; background: var(--sky); border-top: 3px solid var(--ink); }
.p-bar .btn { flex: 1; min-height: 48px; padding: 8px 12px; font-size: 16px; }
.p-bar .p-bar-chat { flex: 0 0 52px; padding: 0; }
.p-bar .p-bar-chat svg { width: 22px; height: 22px; }
@media (min-width: 1280px) { .p-bar { display: none; } }
@media (max-width: 1279px) {
  body.has-p-bar { padding-bottom: 76px; }
  body.has-p-bar .p-pagetop { bottom: 92px; right: 16px; }
  body.has-p-bar .tw8c-launcher { display: none; }
  /* 左下の縦型動画とチャットのパネルはバーの上へ（親の front-top.css がやっていたこと。このテーマでは読まない） */
  body.has-p-bar .tw8m-dock { bottom: calc(76px + 16px + env(safe-area-inset-bottom)) !important; }
  body.has-p-bar .tw8c-panel { bottom: calc(76px + 12px + env(safe-area-inset-bottom)) !important; }
}
/* スマホでチャットを開いている間は全面のシートにする。バーの上に浮かせると、キーボードが出たときに
   会話欄が潰れて候補と入力欄しか残らなかった（2026-12-06 実機）。高さは pop.js が visualViewport から入れる */
@media (max-width: 767px) {
  body.tw8c-open .tw8c-panel {
    top: var(--tw8c-vv-top, 0px) !important; bottom: auto !important; left: 0 !important; right: 0 !important;
    width: auto !important; height: var(--tw8c-vv-h, 100dvh) !important;
    border-radius: 0; box-shadow: none; z-index: 60;
  }
  body.tw8c-open .p-bar, body.tw8c-open .tw8m-dock, body.tw8c-open .p-pagetop { display: none !important; }
  body.tw8c-open { overflow: hidden; }
}

/* ===== 7. 下層ページの共通部品 ===== */
/* 7-1 ページの見出し帯 */
.page-hero { padding: 56px 0 64px; border-bottom: 3px solid var(--ink); }
.page-hero .lead { margin-top: 14px; }
.crumb { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; color: var(--muted); }
.crumb li + li::before { content: "／"; margin-right: 10px; color: var(--muted); }
.crumb a { font-weight: 700; }
.page-hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.page-hero-meta time { font-family: var(--display); font-weight: 700; color: var(--muted); }

/* 7-2 カードの並び */
.grid-cards { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 720px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--foam); border-bottom: 3px solid var(--ink); overflow: hidden; margin: 0; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.post-card .body > * { margin: 0; }
.post-card h2, .post-card h3 { font-weight: 900; font-size: 19px; line-height: 1.55; }
.post-card time { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 16px; }
.post-card .excerpt { color: var(--muted); font-size: 16px; }
/* 一覧の並び: 交互にほんの少し傾ける（ポップさ。ホバーで戻る） */
.grid-cards > .post-card:nth-child(3n+1) { --tilt: -0.4deg; }
.grid-cards > .post-card:nth-child(3n+2) { --tilt: 0.35deg; }

/* 7-3 記事本文（.prose は親の @tailwindcss/typography。色と見出しだけ被せる） */
.p-article { padding: 48px 0 72px; }
.p-article .entry { padding: 28px 22px; }
@media (min-width: 768px) { .p-article .entry { padding: 48px 56px; } }
.pop .prose { color: var(--ink); max-width: none; font-size: 17px; line-height: 1.95; }
.pop .prose :where(h2) { font-weight: 900; font-size: clamp(24px, 2.8vw, 30px); line-height: 1.45; color: var(--ink); margin-top: 2.2em; padding: 0.3em 0 0.3em 0.8em; border-left: 8px solid var(--lagoon); background: none; }
.pop .prose h2::after { display: none; }
.pop .prose :where(h3) { font-weight: 900; font-size: clamp(20px, 2.2vw, 24px); color: var(--ink); margin-top: 1.8em; padding-bottom: 0.3em; border-bottom: 3px dashed var(--ink); }
.pop .prose :where(h4) { font-weight: 900; color: var(--ink); }
.pop .prose :where(a) { color: var(--ocean); font-weight: 700; text-decoration-color: var(--lagoon); }
.pop .prose :where(strong) { color: var(--ink); background: linear-gradient(transparent 62%, rgba(255, 200, 69, 0.7) 62%); }
.pop .prose :where(blockquote) { border-left: 6px solid var(--sun); background: var(--sky); border-radius: 0 16px 16px 0; padding: 0.6em 1.2em; color: var(--ink); font-style: normal; }
.pop .prose :where(code):not(:where(pre *)) { background: var(--foam); border: 2px solid var(--ink); border-radius: 6px; padding: 0.1em 0.4em; color: var(--ink); }
.pop .prose :where(code)::before, .pop .prose :where(code)::after { content: none; }
.pop .prose :where(pre) { background: var(--ink); color: var(--sky); border-radius: 16px; border: 3px solid var(--ink); }
.pop .prose :where(img) { border: 3px solid var(--ink); border-radius: 16px; }
.pop .prose :where(table) { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.pop .prose :where(thead th) { background: var(--ink); color: var(--sky); padding: 10px 12px; }
.pop .prose :where(tbody td) { padding: 10px 12px; border-top: 2px solid var(--foam); }
.pop .prose :where(ul > li)::marker { color: var(--coral); }
.pop .prose :where(ol > li)::marker { color: var(--ocean); font-weight: 900; }
.pop .prose :where(hr) { border-top: 3px dashed var(--ink); }

/* 7-4 FAQ（<details>） */
.faq { display: grid; gap: 16px; margin-top: 32px; }
.faq details { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 900; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--display); font-weight: 800; color: var(--coral); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; background: var(--sun); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 22px 20px; }

/* 7-5 表 */
.ptable-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.ptable { border-collapse: collapse; width: 100%; }
.ptable th, .ptable td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--foam); }
.ptable thead th { background: var(--ink); color: var(--sky); font-weight: 900; }
.ptable tbody th { font-weight: 900; background: var(--foam); white-space: nowrap; }
.ptable tr:last-child > * { border-bottom: 0; }

/* 7-6 定義リスト（会社概要など） */
.pdl { margin: 0; display: grid; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.pdl > div { display: grid; gap: 4px 20px; padding: 16px 20px; border-bottom: 2px solid var(--foam); }
.pdl > div:last-child { border-bottom: 0; }
@media (min-width: 720px) { .pdl > div { grid-template-columns: 180px 1fr; } }
.pdl dt { font-weight: 900; }
.pdl dd { margin: 0; }

/* 7-7 ページ送り（WordPress の the_posts_pagination） */
.pop .navigation.pagination { margin-top: 48px; }
.pop .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pop .navigation.pagination .page-numbers {
  min-width: 48px; height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink);
  font-family: var(--display); font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--ink);
}
.pop .navigation.pagination a.page-numbers:hover { background: var(--sun); color: var(--ink); }
.pop .navigation.pagination .page-numbers.current { background: var(--ink); color: var(--sky); box-shadow: none; }
.pop .navigation.pagination .page-numbers.dots { border: 0; box-shadow: none; background: transparent; }

/* 7-8 空のとき */
.empty { margin-top: 40px; padding: 40px 24px; text-align: center; border: 3px dashed var(--ink); border-radius: var(--radius); }

/* 7-9 共通CTA（template-parts/cta-contact.php） */
.p-cta { text-align: center; }
.p-cta .h2 { color: var(--sky); }
.p-cta .btns { margin-top: 28px; justify-content: center; }
.p-cta-note { margin: 16px 0 0; font-size: 16px; color: var(--foam); }

/* 7-10 フォーム（CF7 と検索） */
.pop .wpcf7 input[type="text"], .pop .wpcf7 input[type="email"], .pop .wpcf7 input[type="tel"], .pop .wpcf7 input[type="url"],
.pop .wpcf7 select, .pop .wpcf7 textarea, .pop .p-input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--sky);
  border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px;
}
.pop .wpcf7 textarea { min-height: 160px; }
.pop .wpcf7 input:focus-visible, .pop .wpcf7 select:focus-visible, .pop .wpcf7 textarea:focus-visible, .pop .p-input:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; background: var(--white); }
.pop .wpcf7 input[type="submit"], .pop .wpcf7 button[type="submit"] {
  font-family: var(--sans); font-weight: 900; font-size: 17px; min-height: 56px; padding: 12px 32px;
  background: var(--coral); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pop .wpcf7 input[type="submit"]:hover, .pop .wpcf7 button[type="submit"]:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.pop .wpcf7 input[type="checkbox"], .pop .wpcf7 input[type="radio"] { width: 22px; height: 22px; accent-color: var(--ocean); vertical-align: middle; }
.pop .wpcf7-not-valid-tip { color: #b3261e; font-weight: 700; font-size: 16px; }
.pop .wpcf7 form .wpcf7-response-output { border: 3px solid var(--ink); border-radius: 14px; padding: 12px 16px; margin: 20px 0 0; font-weight: 700; }
.p-searchform { display: flex; gap: 8px; }
.p-searchform .p-input { padding: 10px 14px; }
.p-searchform .btn { flex: none; }

/* ===== 8. 親の部品（このテーマで書き直していないテンプレート・テンプレートパーツ用） =====
   親の Tailwind のマークアップに、新しい見た目を上から被せる。body.pop の下でだけ効く。 */
.pop .container-custom { max-width: var(--wrap); }
.pop .section-title { font-family: var(--sans); font-weight: 900; color: var(--ink); font-feature-settings: "palt"; }
.pop .card { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.pop .card:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(3px, 3px); }
.pop .btn-primary, .pop .btn-secondary, .pop .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); font-weight: 900; color: var(--ink);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pop .btn-primary { background: var(--coral); }
.pop .btn-secondary, .pop .btn-outline { background: var(--white); }
.pop .btn-primary:hover, .pop .btn-secondary:hover, .pop .btn-outline:hover { background-color: var(--sun); color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.pop main .rounded-xl.shadow-lg, .pop main .rounded-xl.shadow-md, .pop main .rounded-xl.shadow-sm { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink) !important; }
.pop main .bg-slate-100, .pop main .bg-slate-50 { background-color: var(--foam); }
.pop main .bg-white { background-color: var(--white); }
.pop main .text-primary, .pop main .text-brand, .pop main .text-brand-dark, .pop main .text-sky-600 { color: var(--ocean); }
.pop main .bg-primary, .pop main .bg-brand, .pop main .bg-sky-500 { background-color: var(--coral); color: var(--ink); }
.pop main .from-brand.to-brand-dark, .pop main .from-slate-800.to-slate-900, .pop main .from-slate-900\/85 { --tw-gradient-from: var(--ink) var(--tw-gradient-from-position); --tw-gradient-to: var(--ink) var(--tw-gradient-to-position); }
.pop main .rounded-lg:is(a, button).bg-white { border: 3px solid var(--ink); border-radius: 999px; }

/* チャット（.tw8c）と縦型動画（.tw8m）の色だけ寄せる。座標は親のCSSのまま */
.pop .tw8c-launcher { background: var(--coral); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* ===== 9. 動き・下書き ===== */
/* GSAP が読めたときだけ隠す。読めなければ全部見える（functions.php の tailwind8_pop_anim_flag） */
html.anim .reveal { visibility: hidden; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.anim .reveal { visibility: visible; }
}

/* 一覧のカードは交互にほんの少し傾ける（ホバーで a.pcard の translate に置き換わる） */
.grid-cards > .post-card { transform: rotate(var(--tilt, 0deg)); }
