/*
Theme Name: APPREX
Theme URI: https://site.aiscompany.jp/
Author: AIS Company
Author URI: https://site.aiscompany.jp/
Description: クラウド型アプリ開発プラットフォーム「APPREX」公式サイト用テーマ。Hello Elementor の思想を踏襲したライセンス非依存の自作テーマ。固定ページ構成＋カスタム投稿タイプ cases によるリニューアル実装。モバイルファースト・WebP・Lazy Load 対応。
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apprex
Tags: business, custom-post-types, custom-menu, featured-images, responsive-layout
*/

/* ===========================================================================
   Design Tokens — APPREX bright blue palette (現行サイト準拠 / 案A)
   ======================================================================== */
:root {
  --color-primary: #3b82f6;       /* 明るいブルー */
  --color-primary-dark: #2563eb;
  --color-primary-light: #eff6ff;
  --color-secondary: #10b981;     /* グリーン */
  --color-accent: #f59e0b;        /* オレンジ */
  --color-ink: #1f2937;
  --color-body: #374151;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-soft: #f0f9ff;       /* 淡いブルー */
  --color-bg-dark: #1e3a8a;       /* ネイビー */
  --color-success: #10b981;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(59, 130, 246, .1);
  --shadow: 0 4px 12px rgba(59, 130, 246, .15);
  --shadow-lg: 0 10px 30px rgba(59, 130, 246, .2);

  --container: 1200px;
  --gap: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 9vw, 110px);

  --font-sans: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

/* ===========================================================================
   Base / Reset
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.35; font-weight: 700; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===========================================================================
   Layout helpers
   ======================================================================== */
.container { width: min(100% - 2 * var(--gap), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: #c7cee0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  color: var(--color-primary); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-head p { color: var(--color-muted); }

.grid { display: grid; gap: clamp(16px, 3vw, 28px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ===========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent; text-align: center;
  white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(59, 130, 246, .3); }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 12px 26px rgba(59, 130, 246, .38); }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 20px rgba(245, 158, 11, .3); }
.btn--accent:hover { filter: brightness(1.05); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-primary-light); }
.btn--line { background: #06c755; color: #fff; }
.btn--line:hover { background: #05b34c; color: #fff; }
.btn--block { width: 100%; }

/* ===========================================================================
   Header / Nav
   ======================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--color-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.site-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; color: var(--color-ink); }
.site-logo span { color: var(--color-primary); }
.site-branding { flex-shrink: 0; }
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 22px; }
.main-nav a { color: var(--color-ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { color: var(--color-primary); }
.header-actions { display: none; align-items: center; flex-shrink: 0; gap: 12px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 68px 0 0; background: #fff; padding: 24px var(--gap);
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: 99;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--color-line); color: var(--color-ink); font-weight: 600; }
.mobile-drawer .btn { margin-top: 18px; }

@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .nav-toggle, .mobile-drawer { display: none; }
}

/* ===========================================================================
   01. Hero
   ======================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, .18), transparent 60%),
    linear-gradient(180deg, var(--color-bg-soft), #fff 70%);
  padding-block: clamp(48px, 8vw, 96px);
}
.hero__inner { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: .01em; }
.hero__title em { font-style: normal; color: var(--color-primary); }
.hero__lead { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--color-body); max-width: 36ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.hero__badge { background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 600; color: var(--color-ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; }
.hero__mock {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%;
  background: linear-gradient(135deg, #1a5cff, #6b8cff); aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.1rem; padding: 24px; text-align: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}

/* ===========================================================================
   02. Stats
   ======================================================================== */
.stats { display: grid; gap: clamp(16px, 3vw, 28px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 28px 16px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat__num { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: var(--color-primary); line-height: 1.1; }
.stat__num small { font-size: .55em; font-weight: 700; }
.stat__label { font-size: .9rem; color: var(--color-muted); margin-top: 6px; }

/* ===========================================================================
   03. Problem
   ======================================================================== */
.problem-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start; }
.problem-card .icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #fff3ec; color: var(--color-accent); display: grid; place-items: center; font-weight: 800; }
.problem-card p { margin: 0; font-weight: 600; color: var(--color-ink); }

/* ===========================================================================
   04. Solution
   ======================================================================== */
.solution { text-align: center; }
.solution__formula {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 26px;
  font-size: clamp(1.2rem, 3.4vw, 2rem); font-weight: 800; color: var(--color-ink);
}
.solution__formula span { background: var(--color-primary-light); color: var(--color-primary-dark); padding: 6px 18px; border-radius: 999px; }
.solution__formula .x { background: none; color: var(--color-muted); padding: 6px 4px; }

/* ===========================================================================
   05/06. Features & Functions
   ======================================================================== */
.feature-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--color-muted); margin: 0; font-size: .95rem; }

/* Tabs (functions) */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tabs__btn { border: 1px solid var(--color-line); background: #fff; color: var(--color-ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer; font-size: .9rem; transition: .2s; }
.tabs__btn[aria-selected="true"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===========================================================================
   07. Cases
   ======================================================================== */
.case-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card__thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--color-primary), #6b8cff); object-fit: cover; }
.case-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__industry { font-size: .8rem; font-weight: 700; color: var(--color-primary); }
.case-card__title { font-size: 1.1rem; margin: 0; }
.case-card__metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { background: var(--color-primary-light); color: var(--color-primary-dark); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; }
.tag--accent { background: #fff3ec; color: var(--color-accent); }
.cases-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }

/* ===========================================================================
   08. Pricing
   ======================================================================== */
.pricing { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 820px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 32px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.price-card--featured { border-color: var(--color-primary); box-shadow: var(--shadow); transform: none; }
.price-card--featured .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--color-ink); line-height: 1; margin: 8px 0; }
.price-card .price small { font-size: .9rem; font-weight: 600; color: var(--color-muted); }
.price-card ul.feats { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 26px; }
.price-card ul.feats li { padding-left: 26px; position: relative; font-size: .95rem; }
.price-card ul.feats li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ===========================================================================
   09. FAQ (accordion)
   ======================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.faq-item__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--color-ink); font-size: 1rem; position: relative; }
.faq-item__q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--color-primary); transition: transform .2s; }
.faq-item__q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item__a-inner { padding: 0 22px 20px; color: var(--color-muted); }

/* ===========================================================================
   10. Final CTA
   ======================================================================== */
.final-cta { text-align: center; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; border-radius: 0; }
.final-cta h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
.final-cta p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-inline: auto; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* ===========================================================================
   11. Footer
   ======================================================================== */
.site-footer { background: var(--color-bg-dark); color: #9aa3bd; padding-block: 56px 28px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c7cee0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand .site-logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .82rem; }

/* ===========================================================================
   Page header (lower pages)
   ======================================================================== */
.page-hero { background: var(--color-bg-soft); padding-block: clamp(40px, 6vw, 72px); text-align: center; border-bottom: 1px solid var(--color-line); }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page-hero p { color: var(--color-muted); max-width: 60ch; margin-inline: auto; }
.breadcrumbs { font-size: .82rem; color: var(--color-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--color-muted); }

.content-prose { max-width: 760px; margin-inline: auto; }
.content-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.content-prose img { border-radius: var(--radius); margin: 1.2em 0; }

/* single case meta */
.case-meta { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
@media (min-width: 680px) { .case-meta { grid-template-columns: repeat(4, 1fr); } }
.case-meta__item { background: var(--color-bg-soft); border-radius: var(--radius); padding: 18px; text-align: center; }
.case-meta__label { font-size: .78rem; color: var(--color-muted); }
.case-meta__value { font-weight: 800; color: var(--color-ink); font-size: 1.05rem; margin-top: 4px; }

/* utilities */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.is-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.is-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .is-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================================
   APPREX brushed-up components (現行サイト準拠)
   ======================================================================== */

/* Campaign bar (月末まで限定！先着5名様) */
.campaign-bar {
  background: linear-gradient(135deg, var(--color-accent), #fbbf24);
  color: #fff; text-align: center; font-weight: 700; font-size: .9rem;
  padding: 8px 16px; line-height: 1.5;
}
.campaign-bar strong { font-size: 1rem; }

/* Logo image in header/footer */
.logo-image { height: 44px; width: auto; display: block; }
.site-footer .logo-image { height: 40px; }

/* Hero secondary line under badges */
.hero__sub { font-size: .9rem; color: var(--color-muted); margin-top: 14px; }
.hero__sub strong { color: var(--color-secondary); }

/* Section: highlight callout (e.g. HP制作) */
.callout {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); text-align: center;
}
.callout h2, .callout h3 { color: #fff; }
.callout p { color: rgba(255,255,255,.92); }
.callout .btn { margin-top: 18px; }

/* Instagram strip */
.insta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af 90%);
  color: #fff; border-radius: var(--radius-lg); padding: 26px clamp(20px, 4vw, 40px); text-align: center;
}
.insta h3 { color: #fff; margin: 0; }
.insta p { color: rgba(255,255,255,.92); margin: 4px 0 0; }

/* Pricing: secondary plan groups (制作代行 / 自社制作) */
.plan-group-title { text-align: center; font-size: 1.2rem; margin: 48px 0 8px; color: var(--color-ink); }
.plan-note { text-align: center; color: var(--color-muted); font-size: .85rem; margin-top: 14px; }
.price-card .price--ask { font-size: 1.4rem; }

/* Secondary color button */
.btn--secondary { background: var(--color-secondary); color: #fff; box-shadow: 0 8px 20px rgba(16,185,129,.3); }
.btn--secondary:hover { filter: brightness(1.05); color: #fff; }

/* Zapier chatbot floating button + window */
.apprex-chat-toggle {
  position: fixed; bottom: 22px; right: 22px; width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #60a5fa 55%, #818cf8);
  border: none; box-shadow: 0 12px 30px rgba(59,130,246,.5); cursor: pointer; z-index: 9999;
  color: #fff; font-size: 30px; display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.34,1.8,.5,1), box-shadow .25s;
  animation: apprexBob 2.6s ease-in-out infinite;
}
@keyframes apprexBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.apprex-chat-toggle::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #3b82f6; opacity: .5; z-index: -1;
  animation: apprexPulseRing 2.4s ease-out infinite;
}
.apprex-chat-toggle:hover { animation-play-state: paused; transform: translateY(-4px) scale(1.08); box-shadow: 0 18px 38px rgba(59,130,246,.6); }
.apprex-chat-toggle:active { transform: translateY(-1px) scale(1.02); }
.apprex-chat-toggle[aria-expanded="true"] { animation: none; }
.apprex-chat-toggle[aria-expanded="true"]::before { display: none; }
.apprex-chat-toggle__icon { grid-area: 1 / 1; line-height: 1; transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.apprex-chat-toggle__icon--close { opacity: 0; transform: rotate(-90deg) scale(.5); font-size: 22px; }
.apprex-chat-toggle[aria-expanded="true"] .apprex-chat-toggle__icon--open { opacity: 0; transform: rotate(90deg) scale(.5); }
.apprex-chat-toggle[aria-expanded="true"] .apprex-chat-toggle__icon--close { opacity: 1; transform: none; }
.apprex-chat-toggle__badge {
  position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: #ef4444; color: #fff; border: 2px solid #fff;
  font-size: 11px; font-weight: 700; line-height: 14px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: apprexBadgePop 2.2s ease-in-out infinite;
}
.apprex-chat-toggle[aria-expanded="true"] .apprex-chat-toggle__badge,
.apprex-chat-toggle.has-seen .apprex-chat-toggle__badge { display: none; }
@keyframes apprexPulseRing { 0% { transform: scale(1); opacity: .45; } 70% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }
@keyframes apprexBadgePop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.apprex-chat-window {
  position: fixed; bottom: 92px; right: 20px; width: 400px; height: 600px; max-height: 76vh;
  border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.2);
  z-index: 9998; display: none; background: #fff;
}
.apprex-chat-window.is-open { display: block; }
.apprex-chat-window iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) {
  .apprex-chat-window { width: calc(100vw - 24px); right: 12px; left: 12px; height: 70vh; bottom: 88px; }
}

/* App sample (cases) — show full app screenshot without cropping */
.case-card__thumb--contain { aspect-ratio: 3 / 4; background: #f1f5f9; object-fit: contain; }

/* ===========================================================================
   In-site AI chat widget
   ======================================================================== */
.apprex-chat-toggle__icon { line-height: 1; }
.apprex-chat {
  position: fixed; bottom: 100px; right: 22px; width: 388px; max-width: calc(100vw - 24px);
  height: 580px; max-height: 78vh; background: #fff; border-radius: 28px; z-index: 9998;
  box-shadow: 0 26px 64px rgba(37,99,235,.3); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: apprexChatIn .42s cubic-bezier(.34,1.7,.5,1) both;
}
.apprex-chat[hidden] { display: none; }
@keyframes apprexChatIn { 0% { opacity: 0; transform: translateY(24px) scale(.86); } 60% { opacity: 1; transform: translateY(-4px) scale(1.02); } 100% { opacity: 1; transform: none; } }
.apprex-chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.apprex-chat__actions { display: flex; align-items: center; gap: 4px; }
.apprex-chat__mute { background: none; border: 0; color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .9; transition: transform .15s, opacity .2s; padding: 2px 4px; }
.apprex-chat__mute:hover { opacity: 1; transform: scale(1.15); }
.apprex-chat__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.apprex-chat__avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 21px; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.apprex-chat__head strong { display: block; font-size: 1rem; }
.apprex-chat__status { display: flex; align-items: center; gap: 6px; font-size: .72rem; opacity: .95; }
.apprex-chat__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex-shrink: 0;
  animation: apprexOnline 2s ease-out infinite;
}
@keyframes apprexOnline { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.apprex-chat__close { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .85; transition: opacity .2s, transform .2s; }
.apprex-chat__close:hover { opacity: 1; transform: rotate(90deg); }
.apprex-chat__log {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
}
.apprex-msg {
  max-width: 85%; padding: 11px 15px; border-radius: 20px; font-size: .9rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; box-shadow: 0 2px 6px rgba(37,99,235,.08);
  animation: apprexMsgIn .34s cubic-bezier(.34,1.7,.5,1) both;
}
@keyframes apprexMsgIn { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 100% { opacity: 1; transform: none; } }
.apprex-msg--assistant { background: #fff; align-self: flex-start; border-bottom-left-radius: 6px; }
.apprex-msg--user { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.apprex-msg--operator { background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b; align-self: flex-start; border-bottom-left-radius: 5px; }
.apprex-msg__tag { display: block; font-size: .66rem; font-weight: 700; color: #059669; margin-bottom: 2px; letter-spacing: .03em; }
.apprex-msg--system { align-self: center; max-width: 92%; text-align: center; background: #eef2ff; color: #4338ca; font-size: .76rem; border-radius: 999px; padding: 6px 14px; box-shadow: none; }
.apprex-msg--typing { padding: 12px 14px; }
.apprex-typing { display: inline-flex; gap: 5px; align-items: center; }
.apprex-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-muted); opacity: .45; animation: apprexTyping 1.2s infinite ease-in-out; }
.apprex-typing span:nth-child(2) { animation-delay: .18s; }
.apprex-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes apprexTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.apprex-chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 90%; margin-top: -2px; }
.apprex-chat-suggest__btn { font-size: .78rem; text-decoration: none; border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff; border-radius: 999px; padding: 6px 12px; line-height: 1.2; transition: background .2s, color .2s, transform .15s; }
.apprex-chat-suggest__btn:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.apprex-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--color-line); }
.apprex-chat__quick button { font-size: .78rem; border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.apprex-chat__quick button:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.apprex-chat__quick--op { border-color: #059669; color: #059669; }
.apprex-chat__quick--op:hover { background: #059669; color: #fff; }
.apprex-chat__quick--op::before { content: "🙋 "; }
.apprex-chat__form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.apprex-chat__form input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: 999px; font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.apprex-chat__form input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.apprex-chat__form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--color-primary); color: #fff; cursor: pointer; font-size: 1rem; transition: background .2s, transform .15s; }
.apprex-chat__form button:hover { background: var(--color-primary-dark); transform: scale(1.08); }
.apprex-chat__form button:active { transform: scale(.96); }
.apprex-chat__cta { display: block; text-align: center; padding: 10px; font-size: .82rem; font-weight: 700; background: var(--color-secondary); color: #fff; transition: filter .2s; }
.apprex-chat__cta:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 480px) { .apprex-chat { right: 12px; left: 12px; bottom: 88px; height: 72vh; } }
@media (prefers-reduced-motion: reduce) {
  .apprex-chat-toggle::before, .apprex-chat-toggle__badge, .apprex-chat__dot,
  .apprex-typing span, .apprex-chat, .apprex-msg { animation: none !important; }
}

/* ===========================================================================
   Estimate → order
   ======================================================================== */
.estimate { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .estimate { grid-template-columns: 1.4fr .9fr; } }
.estimate__block { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.estimate__h { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 14px; }
.estimate__h span { width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.estimate__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.est-chip { border: 2px solid var(--color-line); background: #fff; border-radius: 12px; padding: 12px 16px; cursor: pointer; text-align: left; transition: .15s; min-width: 130px; }
.est-chip:hover { border-color: var(--color-primary-light); }
.est-chip.is-active { border-color: var(--color-primary); background: var(--color-primary-light); }
.est-chip__label { display: block; font-weight: 700; color: var(--color-ink); }
.est-chip__sub { display: block; font-size: .8rem; color: var(--color-muted); margin-top: 2px; }
.estimate__options { display: grid; gap: 10px; }
.est-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: 10px; cursor: pointer; }
.est-opt input { width: 18px; height: 18px; }
.est-opt span { flex: 1; }
.est-opt b { color: var(--color-primary); }
.estimate__hint { color: var(--color-muted); font-size: .9rem; margin: 0; }

.estimate__summary { background: #fff; border: 2px solid var(--color-primary); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.estimate__summary h3 { font-size: 1.1rem; }
.estimate__lines { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.estimate__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.estimate__lines li.is-opt { color: var(--color-muted); }
.estimate__big { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin: 12px 0; line-height: 1.1; }
.estimate__big small { font-size: .8rem; font-weight: 600; color: var(--color-muted); }
.estimate__sub { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--color-body); margin: 8px 0 0; }
.estimate__sub s { color: var(--color-muted); }
.estimate__sub em { color: var(--color-accent); font-style: normal; font-weight: 700; }
.estimate__order { margin-top: 20px; border-top: 1px dashed var(--color-line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.estimate__order h4 { margin: 0; }
.estimate__order label { font-weight: 600; font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
.estimate__order label span { color: var(--color-accent); }
.estimate__order input, .estimate__order textarea { padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 8px; font-size: .95rem; font-family: inherit; }
.estimate__note { font-size: .75rem; color: var(--color-muted); margin: 0; }
.estimate__success { text-align: center; }
.estimate__success h4 { color: var(--color-secondary); }
.estimate-summary { text-align: left; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: .9rem; }

/* LINE CTA */
.line-cta { display: inline-flex; align-items: center; gap: 8px; background: #06c755; color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 700; }
.line-cta:hover { color: #fff; filter: brightness(1.04); }
.apprex-chat__line { display: block; text-align: center; padding: 8px; font-size: .8rem; font-weight: 700; background: #06c755; color: #fff; }
.apprex-chat__line:hover { color: #fff; }

/* ===========================================================================
   Native forms
   ======================================================================== */
.apprex-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.apprex-form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .apprex-form__row { grid-template-columns: 1fr 1fr; } }
.apprex-form label { font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; color: var(--color-ink); }
.apprex-form label span { color: var(--color-accent); }
.apprex-form input, .apprex-form textarea { padding: 12px 14px; border: 1px solid var(--color-line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; }
.apprex-form input:focus, .apprex-form textarea:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); }
.apprex-form__consent { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.apprex-form__consent input { width: 18px; height: 18px; }
.apprex-form__result { margin-top: 8px; }
.apprex-form__success { background: var(--color-bg-soft); border: 1px solid var(--color-secondary); border-radius: var(--radius); padding: 24px; text-align: center; }
.apprex-form__success h4 { color: var(--color-secondary); margin-top: 0; }
.apprex-form__line { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--color-line); text-align: center; }
.apprex-form__line p { margin: 0 0 10px; color: var(--color-muted); font-size: .9rem; }

/* Chat CTA alt (meeting) */
.apprex-chat__cta--alt { background: var(--color-primary); }
.apprex-chat__cta--alt:hover { background: var(--color-primary-dark); }

/* ===========================================================================
   流れるスライド（アプリ画面マーキー）
   ======================================================================== */
.app-marquee-sec { padding-bottom: clamp(40px, 6vw, 72px); }
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: apprex-marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { margin: 0; flex: 0 0 auto; width: 200px; text-align: center; }
.marquee__item img { width: 200px; height: 356px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--color-line); background: #f1f5f9; }
.marquee__item figcaption { margin-top: 8px; font-size: .8rem; color: var(--color-muted); font-weight: 600; }
@keyframes apprex-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

/* ===========================================================================
   トップの横ズレ防止 ＋ マーキーのシームレス化（上書き）
   ======================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
.marquee { max-width: 100%; }
/* gap を使わず item の margin で1セット幅＝-50% を厳密一致させ、継ぎ目を無くす */
.marquee__track { gap: 0; will-change: transform; }
.marquee__item { margin: 0 20px 0 0; }
@keyframes apprex-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================================
   ブログ：記事カード・NEWバッジ・シェア
   ======================================================================== */
.badge-new { display: inline-block; background: var(--color-accent); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; animation: apprex-newpulse 1.6s ease-in-out infinite; }
@keyframes apprex-newpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .badge-new { animation: none; } }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb { position: relative; display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--color-primary), #6b8cff); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb .badge-new { position: absolute; top: 10px; left: 10px; margin: 0; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.post-card__date { font-size: .78rem; color: var(--color-muted); }
.post-card__title { font-weight: 700; color: var(--color-ink); font-size: 1.05rem; line-height: 1.45; }
.post-card__excerpt { font-size: .9rem; color: var(--color-muted); }

.post-meta { color: var(--color-muted); font-size: .9rem; }
.share-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-line); }
.share-buttons > span { font-weight: 700; color: var(--color-ink); font-size: .9rem; }
.share-buttons__btn { color: #fff; border-radius: 8px; padding: 8px 16px; font-size: .85rem; font-weight: 700; }
.share-buttons__btn:hover { color: #fff; filter: brightness(1.05); }
.share-x { background: #000; } .share-facebook { background: #1877f2; } .share-line { background: #06c755; }

/* ===========================================================================
   料金：キャンペーン表示・個別見積カード・パートナー
   ======================================================================== */
.price-was { text-align: center; font-size: .82rem; color: var(--color-muted); margin: -4px 0 10px; }
.price-was s { color: var(--color-muted); }
.price-was b { color: var(--color-accent); }

.quote-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote-card h3 { font-size: 1.2rem; }
.quote-card__lead { color: var(--color-muted); font-size: .9rem; }
.quote-card__table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .85rem; }
.quote-card__table th { text-align: left; color: var(--color-ink); white-space: nowrap; padding: 6px 8px 6px 0; vertical-align: top; width: 42%; }
.quote-card__table td { padding: 6px 0; border-bottom: 1px solid var(--color-line); }
.quote-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.quote-card .btn { margin-top: auto; }

/* パートナー */
.partner-reward { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
@media (min-width: 640px) { .partner-reward { grid-template-columns: 1fr 1fr; } }
.partner-reward__item { text-align: center; background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 26px; }
.partner-reward__num { font-size: 3rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.partner-reward__num small { font-size: 1.2rem; }
.partner-reward__label { font-weight: 700; color: var(--color-ink); margin-top: 6px; }

/* マーキー：事例リンク化 */
.marquee__item { display: block; text-decoration: none; }
.marquee__cap { display: block; margin-top: 8px; font-size: .8rem; color: var(--color-muted); font-weight: 600; text-align: center; }
.marquee__item:hover .marquee__cap { color: var(--color-primary); }

/* ===========================================================================
   全体調整：hidden属性の徹底／事例画像（縦長アプリ最適化）
   ======================================================================== */
[hidden] { display: none !important; }

/* 事例カードの画像：縦長スマホ画面をきれいに（上揃え・4:5） */
.case-card__thumb { aspect-ratio: 4 / 5; object-position: top center; }
.case-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* 料金：プラン注記・比較表 */
.price-note { font-size: .76rem; color: var(--color-muted); margin: 4px 0 14px; line-height: 1.6; }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--color-line); font-size: .92rem; }
.compare-table thead th { background: var(--color-bg-dark); color: #fff; font-size: .95rem; }
.compare-table thead th.is-feat { background: var(--color-primary); }
.compare-table tbody th { text-align: left; color: var(--color-ink); background: var(--color-bg-soft); white-space: nowrap; }
.compare-table td.is-feat { background: var(--color-primary-light); font-weight: 700; }

/* パートナー：制度テーブル */
.partner-terms { max-width: 820px; margin: 0 auto; }
.partner-terms table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.partner-terms th { text-align: left; background: var(--color-bg-soft); color: var(--color-ink); padding: 14px 16px; width: 32%; vertical-align: top; border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.partner-terms td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); }

/* お問い合わせ等：フォームと案内ボックスの枠を揃える（枠ズレ防止） */
.content-prose .apprex-form { max-width: 100%; }
.content-prose .callout { text-align: center; }
.apprex-form__line { max-width: 100%; }

/* フォーム：ラベルと必須マークの整列（会社名と名前の枠ズレ解消） */
.apprex-form label span { color: inherit; }
.apprex-form__lbl { display: block; font-weight: 600; color: var(--color-ink); }
.apprex-form .req { color: var(--color-accent); }
.apprex-form__row { align-items: start; }
.apprex-form__row > label { margin: 0; }

/* ===========================================================================
   記事（ブログ単体）の見た目強化
   ======================================================================== */
.post-hero .post-cat { display: inline-block; background: var(--color-primary); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.post-hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); max-width: 820px; margin-inline: auto; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--color-muted); font-size: .88rem; }

.post-hero-img { max-width: 860px; margin: 0 auto clamp(28px, 5vw, 48px); }
.post-hero-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.post-article { max-width: 720px; margin-inline: auto; font-size: 1.06rem; line-height: 1.95; color: var(--color-body); }
.post-article > p:first-of-type { font-size: 1.15rem; color: var(--color-ink); }
.post-article h2 { font-size: clamp(1.4rem, 3.6vw, 1.7rem); line-height: 1.45; margin: 2.2em 0 .7em; padding: 6px 0 6px 16px; border-left: 5px solid var(--color-primary); }
.post-article h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; color: var(--color-primary-dark); position: relative; padding-left: 18px; }
.post-article h3::before { content: ""; position: absolute; left: 0; top: .35em; width: 8px; height: 8px; border-radius: 2px; background: var(--color-accent); }
.post-article p { margin: 0 0 1.4em; }
.post-article h2 + p, .post-article h3 + p { margin-top: 0; }
.post-article a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-article a:hover { color: var(--color-primary-dark); }
.post-article strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(245,158,11,.28) 62%); }
.post-article ul, .post-article ol { margin: 0 0 1.6em; padding: 0; }
.post-article ul li { list-style: none; position: relative; padding-left: 1.8em; margin-bottom: .55em; }
.post-article ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-secondary); font-weight: 800; }
.post-article ol { counter-reset: ol; }
.post-article ol li { list-style: none; position: relative; padding-left: 2em; margin-bottom: .55em; counter-increment: ol; }
.post-article ol li::before { content: counter(ol); position: absolute; left: 0; top: .1em; width: 1.4em; height: 1.4em; background: var(--color-primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.post-article img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.6em 0; }
.post-article blockquote { margin: 1.6em 0; padding: 16px 22px; background: var(--color-bg-soft); border-left: 4px solid var(--color-primary); border-radius: 8px; color: var(--color-ink); }
.post-article blockquote p:last-child { margin-bottom: 0; }
.post-article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.post-article th, .post-article td { border: 1px solid var(--color-line); padding: 10px 12px; text-align: left; }
.post-article th { background: var(--color-bg-soft); }
.post-article hr { border: 0; border-top: 1px solid var(--color-line); margin: 2.4em 0; }

/* ===========================================================================
   モバイルメニュー（右からのサイドパネル）強化・確実化
   ======================================================================== */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto;
  width: min(84vw, 320px); height: 100%;
  background: #fff;
  padding: 84px 22px 28px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  z-index: 95;            /* ヘッダー(100)より下＝ハンバーガーで閉じられる */
  inset: auto 0 0 auto;   /* 旧 inset:68px 0 0 を打ち消す */
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer ul, .mobile-drawer .menu { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--color-line); color: var(--color-ink); font-weight: 600; font-size: 1.05rem; }
.mobile-drawer .btn { margin-top: 22px; }
/* 背景オーバーレイ（ドロワー外タップで閉じる） */
.mobile-drawer__overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  z-index: 94; border: 0;
}
.mobile-drawer__overlay[hidden] { display: none; }
/* ハンバーガーは必ず見える・押せる（モバイル時） */
.nav-toggle { z-index: 110; position: relative; }
@media (min-width: 960px) {
  .mobile-drawer, .mobile-drawer__overlay { display: none !important; }
}

/* ===========================================================================
   ミーティング予約（Google Meet）ブロック
   ======================================================================== */
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 1.1rem; }
.meet-book {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--color-primary-light), #fff);
  border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow);
}
.meet-book__icon { font-size: 2.4rem; margin-bottom: 8px; }
.meet-book__title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: 12px; }
.meet-book__lead { color: var(--color-muted); max-width: 540px; margin: 0 auto 24px; }
.meet-book__steps {
  display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 480px;
  margin: 28px auto 0; text-align: left;
}
@media (min-width: 640px) { .meet-book__steps { grid-template-columns: repeat(3, 1fr); text-align: center; } }
.meet-book__steps li {
  display: flex; align-items: center; gap: 10px; justify-content: flex-start;
  font-size: .9rem; font-weight: 600; color: var(--color-ink);
}
@media (min-width: 640px) { .meet-book__steps li { flex-direction: column; gap: 8px; } }
.meet-book__steps span {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700;
}
.meet-or {
  position: relative; text-align: center; margin: 40px auto; max-width: 720px;
}
.meet-or::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  border-top: 1px dashed var(--color-line);
}
.meet-or span {
  position: relative; background: var(--color-bg); padding: 0 18px;
  color: var(--color-muted); font-size: .9rem;
}
