@charset "UTF-8";
/*
Theme Name: PHYLAX Blog
Theme URI: https://kouhei.design/
Author: コウヘイデザイン株式会社
Description: PHYLAX（フィラクス）のブログ専用テーマ。LP・下層ページは静的HTMLで運用し、/blog/ 以下のみWordPressで管理する構成です。
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: phylax
*/

/* ==========================================================================
   PHYLAX ランディングページ
   - 色・余白などは :root の変数をいじれば全体に反映されます
   - 写真は images/ フォルダの同名ファイルを差し替えるだけでOK
   ========================================================================== */

:root {
  /* ---- カラー ---- */
  --c-navy:      #082A36; /* フッターなど一番濃い色 */
  --c-deep:      #0B3D46; /* 見出しの色 */
  --c-teal:      #12857C; /* メインカラー */
  --c-teal-l:    #1FA890; /* グラフなどの明るいティール */
  --c-mint:      #E9F6F2; /* 薄い背景 */
  --c-mint-2:    #CDEBE3; /* もう少し濃い薄背景 */
  --c-yellow:    #FFD23F; /* アクセント（ボタン） */
  --c-yellow-d:  #F2B705;
  --c-ink:       #10333D; /* 本文 */
  --c-muted:     #3D5C64; /* 補足テキスト */
  --c-gray:      #6E888F;
  --c-line:      #E4EEEC;
  --c-red:       #E0654E; /* 「必須」バッジ・注意アイコン */

  /* ---- グラデーション ---- */
  --g-hero: linear-gradient(158deg, #072B36 0%, #0C5B5F 46%, #17A38D 100%);
  --g-dark: linear-gradient(200deg, #0B3D46 0%, #0E6A66 58%, #14907F 100%);

  /* ---- 書体 ---- */
  --f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --f-disp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  /* ---- レイアウト ---- */
  --w-container: 1080px;
  --pad-side: 24px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-ink);
  background: #FFFFFF;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--c-teal); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { color: #0B5A54; }

/* ---------- 共通パーツ ---------- */
.l-container { width: 100%; max-width: var(--w-container); margin: 0 auto; padding: 0 var(--pad-side); }

.c-label { font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--c-teal); }
.c-label--light { color: var(--c-yellow); }

.c-heading {
  font-family: var(--f-disp);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  color: var(--c-deep);
  line-height: 1.5;
  text-align: center;
}
.c-heading em { font-style: normal; color: var(--c-teal); }
.c-heading--light { color: #FFFFFF; }

.c-sechead { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 14px 40px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-align: center; border: 0; cursor: pointer;
  font-family: var(--f-body);
}
.c-btn svg { flex-shrink: 0; }
.c-btn--primary { background: var(--c-yellow); color: #0A3038; box-shadow: 0 12px 28px rgba(3,26,32,.28); }
.c-btn--primary:hover { background: var(--c-yellow-d); color: #0A3038; }
.c-btn--ghost { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.6); min-height: 56px; font-size: 16px; font-weight: 500; }
.c-btn--ghost:hover { background: rgba(255,255,255,.12); color: #FFFFFF; }
.c-btn--dark { background: #0A3038; color: #FFFFFF; min-height: 52px; font-size: 14px; padding: 12px 28px; white-space: nowrap; flex-shrink: 0; }
.c-btn--dark:hover { background: #06222A; color: #FFFFFF; }

.c-wave { display: block; width: 100%; height: auto; line-height: 0; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.p-header { position: relative; z-index: 5; }
.p-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.p-header__burger { display: none; }
.p-logo { display: flex; align-items: center; gap: 10px; }
a.p-logo { transition: opacity .2s; }
a.p-logo:hover { opacity: .78; }
.p-logo__name { font-family: var(--f-disp); color: #FFFFFF; font-size: 22px; font-weight: 900; letter-spacing: .14em; }
.p-logo__kana { color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .18em; }
.p-nav { display: flex; align-items: center; gap: 22px; }
.p-nav ul, .p-nav li { display: contents; } /* WordPressのメニュー出力に対応 */
.p-nav a { color: rgba(255,255,255,.88); font-size: 13px; }
.p-nav a:hover { color: #FFFFFF; }
.p-nav a[aria-current="page"] { color: #FFFFFF; font-weight: 700; border-bottom: 2px solid var(--c-yellow); padding-bottom: 3px; }
.p-nav__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--c-yellow); color: #0A3038 !important; font-size: 13px; font-weight: 700;
}
.p-nav__cta:hover { background: var(--c-yellow-d); }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.p-hero { position: relative; background: #072B36; overflow: hidden; }

/* FV背景写真とオーバーレイ（写真は js/parallax.js でゆっくり動きます） */
.p-hero__bg {
  position: absolute; left: 0; top: -14%; width: 100%; height: 128%; z-index: 0;
  will-change: transform;
}
/* 明るい写真を使っているため、白抜き文字が読めるよう写真側を暗く調整しています。
   暗い写真に差し替えたときは filter の行を削除してください。 */
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(.58); }
.p-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(158deg, rgba(7,43,54,.50) 0%, rgba(12,91,95,.50) 46%, rgba(23,163,141,.50) 100%);
}

.p-hero__deco1 { position: absolute; z-index: 2; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); top: -180px; right: -160px; }
.p-hero__deco2 { position: absolute; z-index: 2; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.05); top: 240px; left: -180px; }
.p-hero__inner { position: relative; z-index: 2; padding-top: 54px; text-align: center; }

.p-hero__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.p-hero__pills li {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 18px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  color: #FFFFFF; font-size: 13px; font-weight: 500;
}
.p-hero__eyebrow { color: var(--c-yellow); font-size: 15px; font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; line-height: 1.7; }
.p-hero__title {
  font-family: var(--f-disp); color: #FFFFFF; font-weight: 900;
  font-size: clamp(28px, 4.2vw, 48px); line-height: 1.45; letter-spacing: .01em; text-wrap: balance;
}
.p-hero__marker { background: linear-gradient(transparent 66%, rgba(255,210,63,.85) 66%); padding: 0 4px; white-space: nowrap; }
.p-hero__lead { color: rgba(255,255,255,.9); font-size: clamp(14px, 1.5vw, 17px); line-height: 2; margin-top: 26px; }
.p-hero__cta { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }

.p-pillars { display: flex; justify-content: center; gap: 44px; margin-top: 56px; }
.p-pillars__item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.p-pillars__photo {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.5); background: rgba(255,255,255,.14);
}
.p-pillars__photo img { width: 100%; height: 100%; object-fit: cover; }
.p-pillars__name { color: #FFFFFF; font-size: 16px; font-weight: 700; }
.p-pillars__note { color: rgba(255,255,255,.72); font-size: 12px; }
.p-hero__wave { position: relative; z-index: 2; margin-top: 48px; }

/* ==========================================================================
   お悩み
   ========================================================================== */
.p-issues { background: var(--c-mint); padding: 12px 0 92px; }
.p-issues .c-sechead { margin-bottom: 52px; }
.p-issues__badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 20px; border-radius: 999px;
  background: var(--c-teal); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .22em;
}
.p-issues__grid { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 28px; align-items: center; }
.p-issues__col { display: flex; flex-direction: column; gap: 18px; }
.p-issues__item {
  display: flex; align-items: flex-start; gap: 14px;
  background: #FFFFFF; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(11,61,70,.07);
  font-size: 15px; line-height: 1.8; font-weight: 500;
}
.p-issues__item svg { flex-shrink: 0; margin-top: 4px; }
.p-issues__visual img { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; margin: 0 auto; }

/* ==========================================================================
   サービス（できること）
   ========================================================================== */
.p-service { position: relative; background: var(--g-dark); padding-bottom: 88px; overflow: hidden; }
.p-service__inner { position: relative; padding-top: 34px; }
.p-service__lead { color: rgba(255,255,255,.86); font-size: clamp(13px, 1.4vw, 16px); line-height: 2; margin-top: 6px; text-align: center; }

/* 管理画面モック */
.p-mock { background: #FFFFFF; border-radius: 20px; padding: 22px; margin-top: 44px; box-shadow: 0 26px 60px rgba(3,26,32,.32); }
.p-mock__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.p-mock__dots { display: flex; gap: 6px; }
.p-mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: #E5EDEB; }
.p-mock__title { font-size: 12px; color: #7A9299; margin-left: 8px; }
.p-mock__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 0 4px; }
.p-kpi { background: #F2F9F7; border-radius: 12px; padding: 16px 18px; }
.p-kpi--warn { background: #FFF7E2; }
.p-kpi__label { font-size: 11px; color: var(--c-gray); font-weight: 500; }
.p-kpi--warn .p-kpi__label { color: #93763A; }
.p-kpi__value { font-family: var(--f-disp); font-size: 30px; font-weight: 900; color: var(--c-teal); line-height: 1.2; }
.p-kpi__value span { font-size: 14px; }
.p-kpi--warn .p-kpi__value { color: #D99500; }
.p-mock__body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 22px 4px 6px; }
.p-mock__subtitle { font-size: 12px; font-weight: 700; color: var(--c-deep); }
.p-bars { display: flex; flex-direction: column; gap: 11px; }
.p-bar { display: flex; align-items: center; gap: 12px; }
.p-bar__name { font-size: 11px; color: var(--c-gray); width: 68px; flex-shrink: 0; }
.p-bar__track { flex: 1; height: 9px; border-radius: 999px; background: #EAF2F0; }
.p-bar__fill { height: 9px; border-radius: 999px; background: var(--c-teal-l); }
.p-bar__fill--warn { background: var(--c-yellow-d); }
.p-bar__num { font-size: 11px; color: var(--c-deep); width: 26px; text-align: right; }
.p-qa { background: #F7FBFA; border: 1px solid var(--c-line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.p-qa__q { font-size: 12px; font-weight: 700; color: var(--c-deep); line-height: 1.7; }
.p-qa__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.p-qa__choices span { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #D7E5E2; color: var(--c-gray); font-size: 11px; }
.p-qa__choices .is-selected { background: var(--c-teal-l); border-color: var(--c-teal-l); color: #FFFFFF; font-weight: 700; }
.p-qa__ai { font-size: 11px; color: #55707A; line-height: 1.9; border-top: 1px dashed #D7E5E2; padding-top: 10px; }

.p-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.p-caps li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px;
  padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #FFFFFF; font-size: 13px; font-weight: 700; text-align: center;
}
.p-service__cta { display: flex; justify-content: center; margin-top: 44px; }

/* ==========================================================================
   特徴
   ========================================================================== */
.p-feature { background: #FFFFFF; padding: 88px 0 96px; }
.p-feature .c-sechead { margin-bottom: 56px; }
.p-feature__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.p-feature__mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 116px; height: 116px; border-radius: 50%; background: var(--c-deep); border: 7px solid #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2;
}
.p-feature__mark b { font-family: var(--f-disp); color: #FFFFFF; font-size: 15px; font-weight: 900; letter-spacing: .1em; }
.p-feature__mark small { color: var(--c-yellow); font-size: 10px; letter-spacing: .14em; margin-top: 3px; }
.p-feature__item { background: var(--c-mint); border-radius: 22px; padding: 38px 36px; display: flex; flex-direction: column; gap: 14px; }
.p-feature__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.p-feature__item h3 { font-family: var(--f-disp); font-size: clamp(18px, 2vw, 23px); font-weight: 900; color: var(--c-deep); line-height: 1.5; }
.p-feature__num { font-family: var(--f-disp); font-size: 40px; font-weight: 900; color: #B9DED4; line-height: 1; }
.p-feature__item p { font-size: 14px; line-height: 2; color: var(--c-muted); }

/* ==========================================================================
   活用シーン
   ========================================================================== */
.p-case { background: #F3FAF8; padding: 84px 0 92px; }
.p-case .c-sechead { margin-bottom: 50px; }
.p-case__list { display: flex; flex-direction: column; gap: 22px; }
.p-case__item {
  background: #FFFFFF; border-radius: 20px; padding: 30px 34px;
  display: flex; gap: 28px; align-items: center; box-shadow: 0 10px 26px rgba(11,61,70,.06);
}
.p-case__photo { flex-shrink: 0; width: 132px; height: 132px; border-radius: 18px; overflow: hidden; }
.p-case__photo img { width: 100%; height: 100%; object-fit: cover; }
.p-case__body { display: flex; flex-direction: column; gap: 10px; }
.p-case__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.p-case__no {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 12px; border-radius: 6px;
  background: var(--c-deep); color: var(--c-yellow); font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.p-case__item h3 { font-family: var(--f-disp); font-size: clamp(17px, 1.9vw, 21px); font-weight: 900; color: var(--c-deep); }
.p-case__item p { font-size: 14px; line-height: 2; color: var(--c-muted); }

/* ==========================================================================
   料金プラン
   ========================================================================== */
.p-plan { background: var(--g-dark); padding: 84px 0 92px; }
.p-plan .c-sechead { margin-bottom: 46px; }
.p-plan__note { color: rgba(255,255,255,.82); font-size: 14px; text-align: center; }
.p-plan__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p-plan__card { background: #FFFFFF; border-radius: 18px; overflow: hidden; }
.p-plan__cap { background: var(--c-mint); padding: 16px; text-align: center; font-family: var(--f-disp); font-size: 17px; font-weight: 900; color: var(--c-deep); }
.p-plan__price { padding: 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.p-plan__price b { font-family: var(--f-disp); font-size: 38px; font-weight: 900; color: var(--c-teal); line-height: 1.1; }
.p-plan__price b span { font-size: 17px; color: var(--c-deep); }
.p-plan__price small { font-size: 12px; color: var(--c-gray); }
.p-plan__over {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px;
  padding: 18px; margin-top: 18px; text-align: center;
}
.p-plan__over b { font-family: var(--f-disp); color: #FFFFFF; font-size: 17px; font-weight: 900; }
.p-plan__over span { color: rgba(255,255,255,.85); font-size: 14px; }

.p-subsidy {
  background: linear-gradient(96deg, var(--c-yellow) 0%, #FFC212 100%); border-radius: 18px;
  padding: 26px 32px; margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.p-subsidy__body { display: flex; align-items: center; gap: 18px; }
.p-subsidy h3 { font-family: var(--f-disp); font-size: clamp(17px, 2vw, 21px); font-weight: 900; color: #0A3038; line-height: 1.5; }
.p-subsidy p { font-size: 13px; color: #4A3D12; line-height: 1.8; }
.p-subsidy svg { flex-shrink: 0; }

.p-option { background: #FFFFFF; border-radius: 18px; padding: 32px 36px; margin-top: 26px; }
.p-option h3 { font-family: var(--f-disp); font-size: 20px; font-weight: 900; color: var(--c-deep); margin-bottom: 20px; }
.p-option__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.p-option__row:last-child { border-bottom: 0; }
.p-option__row dt { font-size: 15px; font-weight: 500; color: var(--c-ink); }
.p-option__row dd { margin: 0; font-size: 14px; color: var(--c-muted); text-align: right; }
.p-plan__disclaimer { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.9; margin-top: 18px; }

/* ==========================================================================
   お問い合わせ
   ========================================================================== */
.p-contact { background: var(--c-mint); padding: 84px 0 88px; }
.p-contact__lead { font-size: 15px; color: var(--c-muted); line-height: 2; text-align: center; margin-top: 6px; }
.p-form { background: #FFFFFF; border-radius: 22px; padding: 44px 56px; margin-top: 28px; }
.p-form__row { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid #EDF4F2; }
.p-form__row:last-of-type { border-bottom: 0; align-items: flex-start; }
.p-form__label { width: 200px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--c-deep); }
.p-form__tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 4px; color: #FFFFFF; font-size: 11px; font-weight: 700; }
.p-form__tag--req { background: var(--c-red); }
.p-form__tag--opt { background: #9CB2B8; }
.p-form input, .p-form textarea {
  flex: 1; width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 8px; background: #F5F9F8; border: 1px solid #E1EBE9;
  font-family: var(--f-body); font-size: 15px; color: var(--c-ink);
}
.p-form textarea { min-height: 128px; resize: vertical; }
.p-form input:focus, .p-form textarea:focus { outline: 2px solid var(--c-teal-l); outline-offset: 1px; background: #FFFFFF; }
.p-form__submit { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.p-form__tel { font-size: 12px; color: var(--c-gray); }

/* ==========================================================================
   フッター
   ========================================================================== */
.p-footer { background: var(--c-navy); padding: 56px 0 34px; }
.p-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.14); }
.p-footer__about { display: flex; flex-direction: column; gap: 14px; }
.p-footer__about p { color: rgba(255,255,255,.6); font-size: 12px; line-height: 2; }
.p-footer__nav { display: flex; gap: 64px; flex-wrap: wrap; }
.p-footer__nav h4 { color: var(--c-yellow); font-size: 11px; font-weight: 700; letter-spacing: .16em; margin-bottom: 12px; }
.p-footer__nav li { margin-bottom: 12px; }
.p-footer__nav a { color: rgba(255,255,255,.8); font-size: 13px; display: inline-flex; align-items: center; min-height: 24px; }
.p-footer__nav a:hover { color: #FFFFFF; }
.p-footer__copy { color: rgba(255,255,255,.4); font-size: 11px; text-align: center; padding-top: 24px; }

/* ==========================================================================
   スマートフォン（900px 以下）
   ========================================================================== */
@media (max-width: 900px) {
  :root { --pad-side: 20px; }

  /* ヘッダー：ナビはハンバーガーに */
  .p-nav { display: none; }
  .p-header__burger {
    display: flex; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14);
    display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  }

  /* ヒーロー */
  /* FV背景写真が横長のため、SPでは被写体（右側）が見えるよう表示位置をずらしています */
  .p-hero__bg img { object-position: 72% center; }
  .p-hero__inner { padding-top: 24px; }
  .p-hero__pills li { font-size: 11px; min-height: 28px; padding: 3px 13px; }
  .p-hero__eyebrow { font-size: 12px; }
  .p-hero__cta { flex-direction: column; gap: 12px; }
  .p-hero__cta .c-btn { width: 100%; }
  .p-pillars { gap: 10px; margin-top: 32px; }
  .p-pillars__item { flex: 1; gap: 10px; }
  .p-pillars__photo { width: 100%; max-width: 108px; height: auto; aspect-ratio: 1 / 1; }
  .p-pillars__name { font-size: 12px; }
  .p-pillars__note { font-size: 10px; }
  .p-hero__wave { margin-top: 30px; }

  /* お悩み */
  .p-issues { padding-bottom: 56px; }
  .p-issues .c-sechead { margin-bottom: 26px; }
  .p-issues__grid { grid-template-columns: 1fr; gap: 14px; }
  .p-issues__col { gap: 12px; }
  .p-issues__item { padding: 18px; font-size: 14px; }
  .p-issues__visual { order: -1; }
  .p-issues__visual img { width: 220px; height: 220px; }

  /* サービス */
  .p-service { padding-bottom: 56px; }
  .p-mock { margin-top: 26px; padding: 16px; border-radius: 16px; }
  .p-mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-mock__body { grid-template-columns: 1fr; gap: 20px; }
  .p-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .p-caps li { padding: 18px 10px; font-size: 12px; }
  .p-service__cta { margin-top: 26px; }
  .p-service__cta .c-btn { width: 100%; }

  /* 特徴 */
  .p-feature { padding: 56px 0 60px; }
  .p-feature .c-sechead { margin-bottom: 28px; }
  .p-feature__grid { grid-template-columns: 1fr; gap: 14px; }
  .p-feature__mark { display: none; }
  .p-feature__item { padding: 24px 22px; border-radius: 18px; }
  .p-feature__num { font-size: 30px; }
  .p-feature__item p { font-size: 13px; line-height: 1.95; }

  /* 活用シーン */
  .p-case { padding: 54px 0 58px; }
  .p-case .c-sechead { margin-bottom: 26px; }
  .p-case__list { gap: 14px; }
  .p-case__item { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 20px; border-radius: 16px; }
  .p-case__photo { width: 100%; height: 160px; }
  .p-case__item p { font-size: 13px; line-height: 1.95; }

  /* 料金 */
  .p-plan { padding: 54px 0 60px; }
  .p-plan .c-sechead { margin-bottom: 26px; }
  .p-plan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-plan__cap { font-size: 14px; padding: 11px; }
  .p-plan__price { padding: 18px 10px; }
  .p-plan__price b { font-size: 30px; }
  .p-plan__over { flex-direction: column; gap: 6px; }
  .p-subsidy { flex-direction: column; text-align: center; padding: 22px 20px; margin-top: 20px; }
  .p-subsidy__body { flex-direction: column; gap: 10px; }
  .p-subsidy .c-btn { width: 100%; }
  .p-option { padding: 24px 20px; margin-top: 20px; }
  .p-option h3 { font-size: 17px; margin-bottom: 14px; }
  .p-option__row { flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px 0; }
  .p-option__row dt { font-size: 14px; font-weight: 700; }
  .p-option__row dd { text-align: left; font-size: 12px; line-height: 1.8; }

  /* お問い合わせ */
  .p-contact { padding: 54px 0 58px; }
  .p-contact__lead { font-size: 13px; }
  .p-form { padding: 24px 20px; border-radius: 18px; }
  .p-form__row { flex-direction: column; align-items: flex-start !important; gap: 8px; padding: 12px 0; border-bottom: 0; }
  .p-form__label { width: auto; font-size: 13px; }

  /* フッター */
  .p-footer { padding: 40px 0 26px; }
  .p-footer__inner { flex-direction: column; gap: 24px; }
  .p-footer__nav { gap: 32px; }
  .p-footer__nav a { min-height: 44px; }
}

/* ==========================================================================
   下層ページ共通（faq / security / company / privacy / terms）
   ========================================================================== */
.p-pagehead { position: relative; background: var(--g-hero); overflow: hidden; padding-bottom: 56px; }
.p-pagehead__inner { position: relative; z-index: 2; text-align: center; padding-top: 52px; }
.p-pagehead__en { display: block; color: var(--c-yellow); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.p-pagehead__title { font-family: var(--f-disp); color: #FFFFFF; font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; margin-top: 10px; }
.p-pagehead__lead { color: rgba(255,255,255,.86); font-size: 15px; line-height: 2; margin-top: 14px; }
.p-crumb { position: relative; z-index: 2; padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.65); }
.p-crumb a { color: rgba(255,255,255,.85); }
.p-crumb a:hover { color: #FFFFFF; }

.p-main { background: #FFFFFF; padding: 72px 0 96px; }

/* 公開前の注意バナー（公開時は該当ブロックごと削除してください） */
.p-draft {
  background: #FFF4D6; border: 1px solid var(--c-yellow-d); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 40px; font-size: 13px; line-height: 1.9; color: #6B5205;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.p-draft b { color: #4A3D12; }

/* 文書ページ（プライバシーポリシー・利用規約） */
.p-doc { max-width: 840px; margin: 0 auto; }
.p-doc__intro { font-size: 15px; line-height: 2; color: var(--c-muted); margin-bottom: 32px; }
.p-doc h2 {
  font-family: var(--f-disp); font-size: 20px; font-weight: 900; color: var(--c-deep);
  margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--c-teal); line-height: 1.6;
}
.p-doc > h2:first-of-type { margin-top: 0; }
.p-doc h3 { font-size: 16px; font-weight: 700; color: var(--c-deep); margin: 24px 0 8px; }
.p-doc p { font-size: 15px; line-height: 2; color: var(--c-muted); margin-bottom: 16px; }
.p-doc ol, .p-doc ul { margin: 0 0 16px; padding-left: 1.6em; }
.p-doc ol > li { list-style: decimal; }
.p-doc ul > li { list-style: disc; }
.p-doc li { font-size: 15px; line-height: 2; color: var(--c-muted); margin-bottom: 6px; }
.p-doc__meta { font-size: 13px; color: var(--c-gray); text-align: right; margin-top: 48px; line-height: 2; }

/* よくある質問 */
.p-faq { max-width: 860px; margin: 0 auto; }
.p-faq__cat { font-family: var(--f-disp); font-size: 20px; font-weight: 900; color: var(--c-deep); margin: 48px 0 18px; display: flex; align-items: center; gap: 12px; }
.p-faq__cat:first-child { margin-top: 0; }
.p-faq__cat::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.p-faq__list { display: flex; flex-direction: column; gap: 14px; }
.p-faq__item { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 16px; padding: 24px 26px; }
.p-faq__q, .p-faq__a { display: flex; gap: 14px; align-items: flex-start; }
.p-faq__q { font-family: var(--f-disp); font-size: 17px; font-weight: 900; color: var(--c-deep); line-height: 1.7; }
.p-faq__a { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--c-line); font-size: 14px; line-height: 2; color: var(--c-muted); }
.p-faq__badge {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-disp); font-weight: 900; font-size: 14px;
}
.p-faq__badge--q { background: var(--c-teal); color: #FFFFFF; }
.p-faq__badge--a { background: var(--c-yellow); color: #0A3038; }

/* セキュリティ */
.p-sec { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p-sec__item { background: var(--c-mint); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.p-sec__icon { width: 52px; height: 52px; border-radius: 14px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.p-sec__item h3 { font-family: var(--f-disp); font-size: 18px; font-weight: 900; color: var(--c-deep); line-height: 1.6; }
.p-sec__item p { font-size: 14px; line-height: 1.95; color: var(--c-muted); }
.p-sec__foot { max-width: 900px; margin: 32px auto 0; font-size: 13px; line-height: 2; color: var(--c-gray); }

/* 会社概要 */
.p-profile { max-width: 840px; margin: 0 auto; }
.p-profile__row { display: flex; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--c-line); }
.p-profile__row:first-child { border-top: 1px solid var(--c-line); }
.p-profile__row dt { width: 200px; flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--c-deep); }
.p-profile__row dd { margin: 0; font-size: 15px; line-height: 1.9; color: var(--c-muted); }

/* 下層ページ末尾のCTA */
.p-cta { background: var(--g-dark); padding: 64px 0 68px; text-align: center; }
.p-cta h2 { font-family: var(--f-disp); color: #FFFFFF; font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; line-height: 1.6; }
.p-cta p { color: rgba(255,255,255,.85); font-size: 14px; line-height: 2; margin-top: 12px; }
.p-cta__btns { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }

@media (max-width: 900px) {
  .p-pagehead { padding-bottom: 36px; }
  .p-pagehead__inner { padding-top: 32px; }
  .p-pagehead__lead { font-size: 13px; }
  .p-main { padding: 44px 0 56px; }
  .p-draft { margin-bottom: 28px; padding: 14px 16px; font-size: 12px; }
  .p-doc h2 { font-size: 17px; margin: 32px 0 12px; }
  .p-doc p, .p-doc li, .p-doc__intro { font-size: 14px; line-height: 1.95; }
  .p-faq__cat { font-size: 17px; margin: 32px 0 14px; }
  .p-faq__item { padding: 20px; border-radius: 14px; }
  .p-faq__q { font-size: 15px; }
  .p-faq__a { font-size: 13px; }
  .p-sec { grid-template-columns: 1fr; gap: 12px; }
  .p-sec__item { padding: 22px 20px; border-radius: 14px; }
  .p-profile__row { flex-direction: column; gap: 6px; padding: 16px 2px; }
  .p-profile__row dt { width: auto; font-size: 14px; }
  .p-profile__row dd { font-size: 14px; }
  .p-cta { padding: 44px 0 48px; }
  .p-cta__btns { flex-direction: column; gap: 12px; }
  .p-cta__btns .c-btn { width: 100%; }
}

/* ==========================================================================
   スマートフォン用メニュー（js/menu.js が生成）
   ========================================================================== */
body.is-menu-open { overflow: hidden; }

.p-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--g-hero);
  padding: 92px 24px 48px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.p-drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.p-drawer__close {
  position: fixed; top: 18px; right: 20px; z-index: 101;
  width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.p-drawer__close:hover { background: rgba(255,255,255,.26); }

.p-drawer__list { display: flex; flex-direction: column; }
.p-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; color: #FFFFFF; font-size: 16px; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.p-drawer__link:hover { color: #FFFFFF; opacity: .75; }
.p-drawer__link[aria-current="page"] { color: var(--c-yellow); }
.p-drawer__link::after {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-top: 2px solid rgba(255,255,255,.5); border-right: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
}
.p-drawer__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; margin-top: 32px; border-radius: 999px;
  background: var(--c-yellow); color: #0A3038 !important; font-size: 16px; font-weight: 700;
}
.p-drawer__cta:hover { background: var(--c-yellow-d); }

/* PC幅では使わない */
@media (min-width: 901px) {
  .p-drawer { display: none !important; }
}

/* OS側で「視差効果を減らす」設定のときは背景を動かさない */
@media (prefers-reduced-motion: reduce) {
  .p-hero__bg { transform: none !important; }
}

/* ==========================================================================
   ブログ
   ========================================================================== */

/* ---- 記事一覧 ---- */
.p-blog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
/* サイドバーがある一覧ページでは2カラム */
.p-single .p-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.p-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 18px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.p-card:hover { box-shadow: 0 16px 34px rgba(11,61,70,.10); transform: translateY(-3px); }
.p-card__thumb { display: block; aspect-ratio: 16 / 10; background: var(--c-mint); overflow: hidden; }
.p-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; flex-grow: 1; }
.p-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.p-cat { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 12px; border-radius: 6px; background: var(--c-mint); color: var(--c-teal); font-size: 11px; font-weight: 700; }
.p-cat:hover { background: var(--c-mint-2); color: var(--c-teal); }
.p-date { font-size: 12px; color: var(--c-gray); font-variant-numeric: tabular-nums; }
.p-card__title { font-family: var(--f-disp); font-size: 17px; font-weight: 900; color: var(--c-deep); line-height: 1.6; }
.p-card a.p-card__title:hover { color: var(--c-teal); }
.p-card__excerpt { font-size: 13px; line-height: 1.9; color: var(--c-muted); }
.p-card__more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--c-teal); display: inline-flex; align-items: center; gap: 6px; }

.p-empty { text-align: center; font-size: 15px; color: var(--c-muted); padding: 48px 0; }

/* ---- ページネーション ---- */
.p-pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.p-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--c-line); background: #FFFFFF; color: var(--c-deep);
  font-size: 14px; font-weight: 700;
}
.p-pager .page-numbers:hover { background: var(--c-mint); color: var(--c-teal); }
.p-pager .page-numbers.current { background: var(--c-teal); border-color: var(--c-teal); color: #FFFFFF; }
.p-pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---- 記事詳細 ---- */
.p-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.p-article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.p-article__thumb { border-radius: 18px; overflow: hidden; margin-bottom: 36px; }
.p-article__thumb img { width: 100%; height: auto; }

.p-article__body { font-size: 16px; line-height: 2; color: var(--c-ink); }
.p-article__body > * + * { margin-top: 22px; }
.p-article__body h2 {
  font-family: var(--f-disp); font-size: 24px; font-weight: 900; color: var(--c-deep); line-height: 1.5;
  margin-top: 56px; padding: 4px 0 4px 16px; border-left: 5px solid var(--c-teal);
}
.p-article__body h3 { font-family: var(--f-disp); font-size: 20px; font-weight: 900; color: var(--c-deep); line-height: 1.6; margin-top: 40px; }
.p-article__body h4 { font-size: 17px; font-weight: 700; color: var(--c-deep); margin-top: 32px; }
.p-article__body a { text-decoration: underline; text-underline-offset: 3px; }
.p-article__body ul, .p-article__body ol { padding-left: 1.6em; }
.p-article__body ul > li { list-style: disc; }
.p-article__body ol > li { list-style: decimal; }
.p-article__body li + li { margin-top: 8px; }
.p-article__body img { border-radius: 14px; height: auto; }
.p-article__body figure { margin: 0; }
.p-article__body figcaption { font-size: 12px; color: var(--c-gray); margin-top: 8px; text-align: center; }
.p-article__body blockquote {
  margin: 0; padding: 22px 26px; border-radius: 14px; background: var(--c-mint);
  font-size: 15px; color: var(--c-muted);
}
.p-article__body blockquote > * + * { margin-top: 14px; }
.p-article__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-article__body th, .p-article__body td { border: 1px solid var(--c-line); padding: 12px 14px; text-align: left; vertical-align: top; }
.p-article__body th { background: var(--c-mint); color: var(--c-deep); font-weight: 700; }
.p-article__body code { background: #F2F7F6; border-radius: 4px; padding: 2px 6px; font-size: 14px; }
.p-article__body pre { background: #0B3D46; color: #E9F6F2; border-radius: 12px; padding: 20px; overflow-x: auto; }
.p-article__body pre code { background: transparent; padding: 0; color: inherit; }
.p-article__body hr { border: 0; border-top: 1px solid var(--c-line); margin: 44px 0; }
.p-article__body .wp-block-image { margin-top: 32px; }
.p-article__body .wp-caption-text { font-size: 12px; color: var(--c-gray); }

/* 記事内の補足ボックス（段落に「注記」クラスを付けて使用） */
.p-article__body .is-note { background: #FFF7E2; border-radius: 12px; padding: 20px 24px; font-size: 14px; color: #6B5205; }

.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.p-tags a { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 14px; border-radius: 999px; border: 1px solid var(--c-line); font-size: 12px; color: var(--c-muted); }
.p-tags a:hover { border-color: var(--c-teal); color: var(--c-teal); }

.p-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.p-postnav__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: 14px; }
.p-postnav__item:hover { border-color: var(--c-teal); }
.p-postnav__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--c-teal); }
.p-postnav__title { font-size: 14px; font-weight: 700; color: var(--c-deep); line-height: 1.7; }
.p-postnav__item--next { text-align: right; }

/* ---- サイドバー ---- */
.p-sidebar { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 24px; }
.p-widget { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 16px; padding: 24px 22px; }
.p-widget__title { font-family: var(--f-disp); font-size: 16px; font-weight: 900; color: var(--c-deep); margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--c-teal); }
.p-widget ul li { border-bottom: 1px dashed var(--c-line); }
.p-widget ul li:last-child { border-bottom: 0; }
.p-widget ul li a { display: block; padding: 12px 0; font-size: 13px; line-height: 1.8; color: var(--c-muted); }
.p-widget ul li a:hover { color: var(--c-teal); }
.p-widget__cta { background: var(--g-dark); border: 0; text-align: center; }
.p-widget__cta h3 { font-family: var(--f-disp); color: #FFFFFF; font-size: 17px; font-weight: 900; line-height: 1.6; }
.p-widget__cta p { color: rgba(255,255,255,.85); font-size: 12px; line-height: 1.9; margin-top: 10px; }
.p-widget__cta .c-btn { width: 100%; min-height: 52px; font-size: 14px; padding: 12px 20px; margin-top: 18px; }

.p-searchform { display: flex; gap: 8px; }
.p-searchform input[type="search"] {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--c-line); background: #F5F9F8; font-family: var(--f-body); font-size: 14px; color: var(--c-ink);
}
.p-searchform input[type="search"]:focus { outline: 2px solid var(--c-teal-l); outline-offset: 1px; background: #FFFFFF; }
.p-searchform button {
  min-width: 46px; min-height: 46px; border: 0; border-radius: 10px; background: var(--c-teal);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.p-searchform button:hover { background: #0B5A54; }

/* ---- 404 ---- */
.p-404 { text-align: center; padding: 40px 0 24px; }
.p-404 p { font-size: 15px; line-height: 2; color: var(--c-muted); margin-bottom: 32px; }

@media (max-width: 900px) {
  .p-blog { grid-template-columns: 1fr; gap: 16px; }
  .p-card__body { padding: 18px 18px 22px; }
  .p-card__title { font-size: 16px; }
  .p-pager { margin-top: 36px; }
  .p-single { grid-template-columns: 1fr; gap: 48px; }
  .p-sidebar { position: static; }
  .p-article__body { font-size: 15px; line-height: 1.95; }
  .p-article__body h2 { font-size: 20px; margin-top: 40px; }
  .p-article__body h3 { font-size: 17px; margin-top: 30px; }
  .p-article__thumb { margin-bottom: 26px; }
  .p-postnav { grid-template-columns: 1fr; }
  .p-postnav__item--next { text-align: left; }
}

/* ==========================================================================
   フッターのSNSアイコン
   ========================================================================== */
.p-sns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.p-sns a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.82);
  transition: background .2s, border-color .2s, color .2s;
}
.p-sns a:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: #0A3038; }

/* 「続きを読む」のホバー */
a.p-card__more:hover { color: #0B5A54; }

/* 本文中の表（プライバシーポリシーのCookie一覧など）。狭い画面では横スクロールします */
.p-doc__table { overflow-x: auto; margin: 8px 0 20px; -webkit-overflow-scrolling: touch; }
.p-doc__table table { border-collapse: collapse; width: 100%; min-width: 560px; }
.p-doc__table th, .p-doc__table td {
  border: 1px solid var(--c-line);
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.85;
  text-align: left;
  vertical-align: top;
  color: var(--c-muted);
}
.p-doc__table th { background: var(--c-mint); color: var(--c-deep); font-weight: 700; white-space: nowrap; }
.p-doc__table--narrow table { min-width: 0; }
.p-doc__table--narrow th { width: 30%; }

/* 3列レイアウト（セキュリティの可用性・バックアップ・監査など） */
.p-sec3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin: 4px 0 28px; }
.p-sec3 h3 { margin-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--c-teal); display: inline-block; }
.p-sec3 ul { margin-top: 12px; }
.p-doc__note { font-size: 12.5px !important; color: var(--c-gray) !important; border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 32px !important; }
@media (max-width: 760px) {
  .p-sec3 { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   Cookie同意バナー（画面下部）
   - 表示・非表示は js/cookie-consent.js が制御します
   - 文言の変更も js/cookie-consent.js の中です
   ========================================================================== */
.p-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;                      /* ハンバーガーメニュー（100）より前面 */
  background: var(--c-navy);
  color: rgba(255,255,255,.9);
  box-shadow: 0 -8px 30px rgba(8,42,54,.22);
  transform: translateY(100%);
  transition: transform .32s ease;
}
.p-cookie.is-shown { transform: translateY(0); }

.p-cookie__inner {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 18px var(--pad-side);
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-cookie__text { font-size: 13px; line-height: 1.9; margin: 0; }
.p-cookie__link { color: var(--c-yellow); text-decoration: underline; margin-left: 6px; white-space: nowrap; }
.p-cookie__link:hover { color: #FFFFFF; }

.p-cookie__btns { display: flex; gap: 10px; flex-shrink: 0; }

.p-cookie__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.p-cookie__btn--ok {
  background: var(--c-yellow);
  color: #0A3038;
  border: 1px solid var(--c-yellow);
}
.p-cookie__btn--ok:hover { background: var(--c-yellow-d); border-color: var(--c-yellow-d); }
.p-cookie__btn--deny {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.42);
}
.p-cookie__btn--deny:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }
.p-cookie__btn:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }

@media (max-width: 700px) {
  .p-cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px var(--pad-side) 18px; }
  .p-cookie__text { font-size: 12.5px; }
  .p-cookie__btns { justify-content: stretch; }
  .p-cookie__btn { flex: 1; padding: 13px 12px; }
}

/* 動きを減らす設定のときは、せり上がりのアニメーションをやめます */
@media (prefers-reduced-motion: reduce) {
  .p-cookie { transition: none; }
}

/* ==========================================================================
   ページトップへ戻るボタン（右下）
   - ボタンは js/backtotop.js が自動で作ります
   ========================================================================== */
.p-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  border: 0; background: var(--c-deep); color: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(6,26,32,.3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s, bottom .25s;
}
.p-totop.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.p-totop:hover { background: var(--c-teal); }
.p-totop:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
.p-totop__text { font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1; }

@media (max-width: 700px) {
  .p-totop { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-totop { transition: opacity .01s, visibility .01s; }
}

/* ==========================================================================
   スマホ表示の安全策
   --------------------------------------------------------------------------
   スマホで「PC表示のまま縮んで見える」原因は、ページのどこか1か所が
   画面幅より広くなり、ページ全体が横に引き伸ばされることです。
   引き伸ばされた枠に対して画像が width:100% で描かれるため、
   アイキャッチ画像だけが極端に大きく、右にはみ出して見えます。

   ここでは「広がりうる要素」をすべて枠の中に閉じ込めます。
   このブロックは他のCSSより後ろに置いてください（優先されます）。
   ========================================================================== */

/* --- 1. ページ全体が横に伸びないようにする ------------------------------ */
html, body {
  overflow-x: hidden;
  overflow-x: clip;         /* clip は sticky を壊さないので、対応ブラウザではこちらが効きます */
  max-width: 100%;
}

/* --- 2. グリッドの列が中身に押し広げられないようにする ------------------
   grid の子要素は初期値が min-width:auto のため、中に広い要素があると
   列そのものが画面幅を超えて広がります。ここが最大の原因です。          */
.p-single { grid-template-columns: minmax(0, 1fr) 300px; }
.p-single > *,
.p-blog > *,
.p-postnav > * { min-width: 0; }
.p-main .l-container { max-width: 100%; }

/* --- 3. 画像・動画・埋め込みは、必ず枠の中に収める ---------------------- */
img, svg, video, iframe, embed, object, canvas { max-width: 100%; }

.p-article__thumb { max-width: 100%; }
.p-article__thumb img,
.p-article__body img,
.p-card__thumb img,
.p-sidebar img {
  max-width: 100%;
  height: auto;
}

.p-article__body video,
.p-article__body iframe,
.p-article__body embed,
.p-article__body object { max-width: 100%; height: auto; }

.p-article__body .wp-block-embed__wrapper { position: relative; }
.p-article__body .wp-block-embed iframe { width: 100%; }

/* --- 4. 長いURL・英単語で行があふれないようにする ---------------------- */
.p-article__body,
.p-pagehead__title,
.p-pagehead__lead,
.p-crumb,
.p-card__title,
.p-card__excerpt,
.p-postnav__title { overflow-wrap: anywhere; word-break: normal; }

/* --- 5. 表は、枠の中だけで横スクロールさせる --------------------------- */
.p-article__body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.p-article__body .wp-block-table,
.p-article__body figure.wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

/* --- 6. コード・整形済みテキストも枠の中に収める ----------------------- */
.p-article__body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.p-article__body code { overflow-wrap: anywhere; }

/* --- 7. WordPressの全幅・広め配置を、スマホでは通常幅に戻す ------------ */
@media (max-width: 900px) {
  .p-single { grid-template-columns: minmax(0, 1fr); }

  .p-article__body .alignfull,
  .p-article__body .alignwide,
  .p-article__body .alignleft,
  .p-article__body .alignright {
    max-width: 100%;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    float: none;
  }
}

@media (max-width: 700px) {
  .p-article__body pre { font-size: 12px; }
}

/* ==========================================================================
   ページ見出しの寄せ
   --------------------------------------------------------------------------
   下層ページとブログ記事の見出し（BLOG／タイトル／リード文）を左寄せにします。
   中央寄せに戻すときは、下の text-align を center にしてください。
   ========================================================================== */
.p-pagehead__inner { text-align: left; }
