@charset "utf-8";
/* ==========================================================================
   福山楽器センター コーポレートサイト
   style.css
   1. デザイントークン
   2. ベース / リセット
   3. レイアウト（ヘッダー・フッター・共通CTA）
   4. コンポーネント（ボタン・見出し等）
   5. ページ個別
   6. レスポンシブ
   ========================================================================== */

/* ==========================================================================
   1. デザイントークン
   ========================================================================== */
:root {
  /* color */
  --c-pink: #f5025a;
  --c-pink-dark: #d0004b;
  --c-pink-light: #fde7ee;
  --c-gold: #f6c91c;
  --c-lavender: #dbdce8;
  --c-lavender-bg: #f7f7fc;
  --c-ink: #333;
  --c-ink-strong: #1a1a1a;
  --c-gray: #767777;
  --c-gray-light: #999;
  --c-line: #cdced8;
  --c-white: #fff;
  --c-badge: #4d4d4d;

  /* typography */
  --f-base: 16px;
  --f-serif:"Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --f-serif-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* layout（幅の体系 / layout-widths.css を統合） */
  --gutter: 24px;
  --w-default: 1140px;   /* 通常：カード、事業一覧、会社案内 */
  --w-narrow: 900px;     /* 読み物：お知らせ詳細、プライバシー、お問い合わせ */
  --w-wide: 1240px;      /* thanks、404 */
  --w-form: 600px;       /* お問い合わせフォーム */
  --h-header: 86px;

  /* section spacing */
  --sp-section: 100px;
}

/* ==========================================================================
   2. ベース / リセット
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--f-base);
  font-weight: 400;
  line-height: 2;
  color: var(--c-ink);
  background: var(--c-white);
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a {
  color: inherit;
  text-decoration: none;
  transition: color .25s, text-decoration-color .25s, opacity .25s, background-color .25s, border-color .25s;
}
/* header / footer 以外：ピンク、hover で下線 */
a:not(
  .l-header a,
  .l-footer a,
  .c-btn,
  .p-service__main,
  .p-service__ext,
  .p-ecshop__link,
  .p-news__link,
  .p-case-card,
  .p-tips-card__link,
  .ez-toc-link,
  .p-hero__sublink,
  .p-cta__shop-link,
  .p-cta__tel-num,
  .page-numbers,
  .wp-block-button__link,
  .p-links__cta
) {
  color: var(--c-pink);
}
a:not(
  .l-header a,
  .l-footer a,
  .c-btn,
  .p-service__main,
  .p-service__ext,
  .p-ecshop__link,
  .p-news__link,
  .p-case-card,
  .p-tips-card__link,
  .ez-toc-link,
  .p-hero__sublink,
  .p-cta__shop-link,
  .p-cta__tel-num,
  .page-numbers,
  .wp-block-button__link,
  .p-links__cta
):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/*
body:not(.editor-styles-wrapper) ul,
body:not(.editor-styles-wrapper) ol { margin: 0; padding: 0; list-style: none; }
body:not(.editor-styles-wrapper) :where(h1, h2, h3, h4, p, dl, dd, figure) { margin: 0; }
*/
ul, ol { list-style-position: inside; padding-left: 0;}
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 共通ユーティリティ ------------------------------------------------------ */
.l-container { width: 100%; max-width: calc(var(--w-default) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.l-container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.l-container--wide { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.l-container--form { max-width: calc(var(--w-form) + var(--gutter) * 2); }
.l-container--form { max-width: calc(var(--w-form) + var(--gutter) * 2); }

/* --- 本文ラッパー（the_content を包む。ページ見出しとの余白もここで持つ） --- */
.l-entry { padding-block: 72px 96px; }
/* 本文直下のコアブロックだけ内側に寄せる。fgc/カスタムブロックは対象外＝帯は全幅。 */
.l-entry > .wp-block-heading,
.l-entry > p,
.l-entry > .wp-block-paragraph,
.l-entry > .wp-block-list,
.l-entry > .wp-block-table,
.l-entry > .wp-block-quote,
.l-entry > .wp-block-image,
.l-entry > .wp-block-separator,
.l-entry > .wp-block-buttons,
.l-entry > .wp-block-embed,
.l-entry > .wpcf7,
.l-entry > .p-contact {
  width: 100%;
  max-width: calc(var(--w-narrow) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.l-entry > .p-contact,
.l-entry > .wpcf7 {
  max-width: calc(var(--w-form) + var(--gutter) * 2);
  padding-inline: var(--gutter);
}
/* お問い合わせ：リード文などのコアブロックをフォーム幅に揃える */
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-heading,
.l-entry:has(> .p-contact, > .wpcf7) > p,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-paragraph,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-list,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-table,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-quote,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-image,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-separator,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-buttons,
.l-entry:has(> .p-contact, > .wpcf7) > .wp-block-embed {
  max-width: calc(var(--w-form) + var(--gutter) * 2);
}
/* 通常幅で読ませたいページ用（コア要素を1140に） */
.l-entry--default > * { max-width: calc(var(--w-default) + var(--gutter) * 2); }

/* ブロック主体ページ用：paddingを持たず、コアブロックだけ1140に。fgcブロックは全幅の帯のまま。
   （layout-widths.css には無かったため、指定 2-2 に沿って追記） */
.l-entry--blocks { padding-block: 0; padding-top: 72px;}
.l-entry--blocks > .wp-block-heading,
.l-entry--blocks > p,
.l-entry--blocks > .wp-block-paragraph,
.l-entry--blocks > .wp-block-list,
.l-entry--blocks > .wp-block-table,
.l-entry--blocks > .wp-block-quote,
.l-entry--blocks > .wp-block-image,
.l-entry--blocks > .wp-block-separator,
.l-entry--blocks > .wp-block-buttons,
.l-entry--blocks > .wp-block-embed,
.l-entry--blocks > .wpcf7,
/* 事業案内：テンプレ未設定でもリード文をカード（l-container）幅に揃える */
.l-entry:has(.p-services) > p,
.l-entry:has(.p-services) > .wp-block-paragraph {
  width: 100%;
  max-width: calc(var(--w-default) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* thanks / 404：1240の内側で中央 */
.l-entry--center { padding-block: 96px 120px; text-align: center; }
.l-entry--center > * { max-width: calc(var(--w-wide) + var(--gutter) * 2); margin-inline: auto; }

/* 帯の背景ユーティリティ */
.u-bg-lavender { background: linear-gradient(180deg, #fbfbfd 0%, #f4f3fa 100%); }
.u-bg-white { background: var(--c-white); }
.u-bg-lavender + .u-bg-lavender { padding-top: 0; }

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .l-entry { padding-block: 44px 64px; }
  .l-entry--center { padding-block: 56px 72px; }
}
.u-sp { display: none; }
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. レイアウト
   ========================================================================== */

/* --- ヘッダー --- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--h-header);
}
.l-header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.l-header__logo span { white-space: nowrap; }
.l-header__logo img { width: 40px; height: auto; }
.l-header__logo span { font-size: var(--f-base); font-weight: 500; letter-spacing: .06em; color: var(--c-ink); }
.l-header__logo:hover { color: inherit; opacity: .75; }

.l-header__nav-wrap { display: flex; align-items: center; gap: 36px; }
.l-header__bar-actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.l-nav { display: flex; align-items: center; gap: 30px; }
.l-header__utils { display: flex; align-items: center; gap: 14px; }
.l-header__cta--mobile { display: none; }
.l-nav__link {
  position: relative;
  white-space: nowrap;
  font-size: var(--f-base);
  font-weight: 500;
  letter-spacing: .06em;
  padding-block: 6px;
}
.l-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--c-pink);
  transform: scaleX(0);
  transition: transform .25s;
}
.l-nav__link:hover::after,
.l-nav__link.is-current::after { transform: scaleX(1); }
.l-nav__link.is-current { font-weight: 700; }
.l-nav__link.is-disabled { color: #bdbdbd; pointer-events: none; }

.l-header__cta {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--c-pink);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}
.l-header__cta:hover { background: var(--c-pink-dark); color: var(--c-white); }

/* ハンバーガー */
.l-header__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 0;
  position: relative; z-index: 110;
}
.l-header__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--c-ink); transition: transform .3s, opacity .3s;
}
.l-header__toggle span:nth-child(1) { top: 15px; }
.l-header__toggle span:nth-child(2) { top: 21px; }
.l-header__toggle span:nth-child(3) { top: 27px; }
.l-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.l-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.l-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 共通CTA（全ページ共通） --- */
.p-cta {
  position: relative;
  padding: 96px 0 84px;
  background: #3a1a20 url("../img/cta-bg.jpg") center / cover no-repeat;
  color: var(--c-white);
  text-align: center;
  overflow: hidden;
}
.p-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,8,12,.42), rgba(20,8,12,.30));
}
.p-cta__inner { position: relative; z-index: 1; }
.p-cta__title {
  font-family: var(--f-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.p-cta__lead {
  margin-top: 26px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .05em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.p-cta__buttons {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
/* EC（メリーネット）への導線は副次扱い */
.p-cta__shop { margin-top: 26px; }
.p-cta__shop-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.p-cta__shop-link:hover { color: var(--c-white); border-color: var(--c-white); }
.p-cta__tel {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.p-cta__tel-block { text-align: center; }
.p-cta__tel-block + .p-cta__tel-block { border-left: 1px solid rgba(255,255,255,.5); padding-left: 40px; }
.p-cta__tel-label { display: block; font-size: 13px; letter-spacing: .06em; line-height: 1.6; }
.p-cta__tel-num {
  display: inline-block;
  margin-top: 2px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--c-white);
}
.p-cta__tel-num:hover { color: var(--c-white); opacity: .8; }
.p-cta__tel-time { display: block; margin-top: 4px; font-size: var(--f-base); font-weight: 700; letter-spacing: .04em; }

/* TOP以外：CTA直前の要素の下余白を増やす（本文内 fgc/cta ブロックも対象） */
body:not(.home) main *:has(+ .p-cta) {
  padding-bottom: 140px;
}

/* --- フッター --- */
.l-footer { background: #f7f7fa; color: var(--c-ink); padding: 56px 0 0; }
.l-footer__inner { display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.l-footer__logo { display: flex; align-items: center; gap: 10px; }
.l-footer__logo img { width: 36px; }
.l-footer__logo span { font-size: var(--f-base); font-weight: 500; letter-spacing: .06em; }
.l-footer__address { margin-top: 18px; font-size: 12.5px; line-height: 1.95; letter-spacing: .02em; }
.l-footer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.l-footer__heading {
  font-family: var(--f-serif-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #4a4a4a;
  margin-bottom: 14px;
}
.l-footer__list { margin: 0; padding: 0; list-style: none; }
.l-footer__list li { font-size: 13px; line-height: 2.3; }
.l-footer__bottom {
  margin-top: 48px;
  padding: 18px 0 22px;
  border-top: 1px solid #e6e6ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.l-footer__policy { display: flex; gap: 28px; font-size: 12px; flex-wrap: wrap; }
.l-footer__copyright { font-size: 12px; letter-spacing: .04em; color: #7a7a86; }

/* ==========================================================================
   4. コンポーネント
   ========================================================================== */

/* --- ボタン --- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 256px;
  height: 60px;
  padding-inline: 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--f-base);
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.c-btn--pink {
  background: var(--c-pink);
  color: var(--c-white);
  border-color: var(--c-pink);
}
.c-btn--pink:hover {
  background: var(--c-pink-dark);
  color: var(--c-white);
  border-color: var(--c-pink-dark);
  text-decoration: none;
}
.c-btn--lg { min-width: 360px; height: 72px; font-size: 18px; letter-spacing: .1em; }
.c-btn--outline-light { background: transparent; color: var(--c-white); border: 1px solid rgba(255,255,255,.85); }
.c-btn--outline-light:hover { background: rgba(255,255,255,.14); color: var(--c-white); }
.c-btn--outline { background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-line); }
.c-btn--outline:hover { border-color: var(--c-pink); color: var(--c-pink); }
.c-btn--shop {
  background: var(--c-white);
  color: var(--c-pink);
  gap: 12px;
  min-width: 200px;
  line-height: 1.25;
}
.c-btn--shop:hover { background: var(--c-pink-light); color: var(--c-pink); }
.c-btn--shop .c-btn__shop-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.c-btn--shop .c-btn__shop-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.c-btn__arrow {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 10px;
  transition: transform .25s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.c-btn:hover .c-btn__arrow,
.c-btn:focus-visible .c-btn__arrow,
.wp-block-button__link:hover .c-btn__arrow,
.wp-block-button__link:focus-visible .c-btn__arrow {
  transform: translate3d(4px, 0, 0);
}

/* コアボタン（wp:button） */
.wp-block-buttons > .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  height: 60px;
  padding-inline: 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--f-base);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wp-block-button[class*="is-style-outline"] .wp-block-button__link {
  background: transparent;
  color: var(--c-pink);
  border: 1px solid var(--c-pink);
}
.wp-block-button[class*="is-style-outline"] .wp-block-button__link:hover {
  background: var(--c-pink-light);
  color: var(--c-pink);
  border-color: var(--c-pink);
  text-decoration: none;
}
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--c-pink);
  color: var(--c-white);
  border: 1px solid var(--c-pink);
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--c-pink-dark);
  color: var(--c-white);
  border-color: var(--c-pink-dark);
  text-decoration: none;
}

/* 丸矢印ボタン（事業案内カード等） */
.c-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-pink);
  color: var(--c-white);
  flex-shrink: 0;
}
.c-arrow-circle svg { width: 14px; height: 14px; }

/* 外部リンク（自社オンラインショップ「メリーネット」） */
.c-external-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--f-base);
  font-weight: 700;
  letter-spacing: .06em;
}
.c-external-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-pink);
  color: var(--c-white);
}
.c-external-link__icon svg { width: 13px; height: 13px; }

/* --- ページ見出しエリア --- */
.p-pagehead {
  position: relative;
  overflow: hidden;
  --pagehead-deco-note-w: 200px;
  --pagehead-deco-gap: 24px;
  --pagehead-deco-reserve: calc(var(--pagehead-deco-note-w) + var(--pagehead-deco-gap));
}
.p-pagehead__inner { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 26px; }
.p-pagehead__title {
  font-family: var(--f-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--c-ink);
  max-width: calc(100% - var(--pagehead-deco-reserve));
}
.p-pagehead__title::after {
  content: attr(data-en);
  display: block;
  margin-top: 6px;
  font-family: var(--f-serif-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--c-gray);
}
.p-pagehead__title[data-en=""]::after {
  display: none;
}
/* 事業案内（service）配下：欧文サブタイトル（::after）を非表示 */
.p-pagehead--no-subtitle .p-pagehead__title::after {
  display: none;
}
/* ページ見出しの音符は、タイトルのレイアウトに影響しないよう見出し帯の下端へ絶対配置する */
.p-pagehead { position: relative; }
.p-pagehead > .p-deco {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  opacity: .9;
  pointer-events: none;
  /* ページ見出しの音符は縮小表示（360×181 → 200×100）。線端・線の太さも同じ比率に合わせる。 */
  height: 100px;
  --deco-note-w: var(--pagehead-deco-note-w);
  --deco-line-r: 46px;
  --deco-line-h: 1px;   /* 縮小後の音符の線の太さに合わせる（左右とも同値で揃える） */
}
/* パンくずがタイトル下に入るパターン */
.p-pagehead .c-breadcrumb {
  margin-top: 22px;
  max-width: calc(100% - var(--pagehead-deco-reserve));
}
/* パンくずがヘッダー直下（タイトル上）に入るパターン */
.p-pagehead--breadcrumb-top { border-bottom: 0; }
.p-pagehead--breadcrumb-top .p-pagehead__inner { padding-top: 26px; }

/* --- パンくず --- */
.c-breadcrumb { font-size: 13px; letter-spacing: .04em; color: var(--c-gray); }
.c-breadcrumb__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}
.c-breadcrumb__trail > span { display: contents; }
.c-breadcrumb__trail span > span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.c-breadcrumb__trail span > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
.c-breadcrumb__trail span > span.breadcrumb_last { flex-shrink: 0; }
.c-breadcrumb__trail span > span:not(:first-child)::before {
  content: "";
  width: 6px; height: 6px;
  border-top: 1px solid #b5b5bb;
  border-right: 1px solid #b5b5bb;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.c-breadcrumb__bar { border-bottom: 1px solid var(--c-line); }
.c-breadcrumb__bar .c-breadcrumb { padding: 14px 0; }

/* --- セクション見出し（全ページ共通） ---
   h2の中身は日本語のみ。欧文は data-en を ::before で、金線は ::after で描画する。
   見出しテキストに装飾用の欧文が混ざらないようにするため。 */
/* セクション見出し（全ページ共通・1定義）。
   日本語（h2本文）を大きく明朝、英語（data-en）を小さくゴシックで日本語の下、その下に金罫。
   flex + order で、日本語(order 0) → 英語(order 1) → 金罫(order 2) の順に並べる。 */
.c-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--c-ink-strong);
}
.c-section-title::before {
  content: attr(data-en);
  order: 1;                       /* 日本語（本文＝order 0）の下に置く */
  margin-top: 12px;
  font-family: var(--f-sans);     /* ゴシック */
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--c-gray);
}
.c-section-title::after {
  content: "";
  order: 2;
  width: 48px; height: 3px;
  margin-top: 16px;
  background: var(--c-gold);
}
.c-section-title--left { align-items: flex-start; text-align: left; }
.c-section-title + * { margin-top: 46px; }

/* TOP：CONCEPT / NEWS / 事業案内 / 導入事例 見出し — 欧文大・日本語小・金罫なし */
.home .p-split__head .c-section-title[data-en="CONCEPT"],
.home .p-news-top__head .c-section-title[data-en="NEWS"],
.home .p-services .c-section-title.c-section-title--left,
.home .p-case-top .c-section-title,
.editor-styles-wrapper .c-section-title[data-en="CONCEPT"].c-section-title--left,
.editor-styles-wrapper .p-news-top__head .c-section-title[data-en="NEWS"].c-section-title--left,
.editor-styles-wrapper .p-services .c-section-title.c-section-title--left,
.editor-styles-wrapper .p-case-top .c-section-title {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--c-gray);
}
.home .p-split__head .c-section-title[data-en="CONCEPT"]::before,
.home .p-news-top__head .c-section-title[data-en="NEWS"]::before,
.home .p-services .c-section-title.c-section-title--left::before,
.home .p-case-top .c-section-title::before,
.editor-styles-wrapper .c-section-title[data-en="CONCEPT"].c-section-title--left::before,
.editor-styles-wrapper .p-news-top__head .c-section-title[data-en="NEWS"].c-section-title--left::before,
.editor-styles-wrapper .p-services .c-section-title.c-section-title--left::before,
.editor-styles-wrapper .p-case-top .c-section-title::before {
  order: -1;
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--c-ink-strong);
}
.home .p-split__head .c-section-title[data-en="CONCEPT"]::after,
.home .p-news-top__head .c-section-title[data-en="NEWS"]::after,
.home .p-services .c-section-title.c-section-title--left::after,
.home .p-case-top .c-section-title::after,
.editor-styles-wrapper .c-section-title[data-en="CONCEPT"].c-section-title--left::after,
.editor-styles-wrapper .p-news-top__head .c-section-title[data-en="NEWS"].c-section-title--left::after,
.editor-styles-wrapper .p-services .c-section-title.c-section-title--left::after,
.editor-styles-wrapper .p-case-top .c-section-title::after {
  display: none;
}
/* TOP：事業案内・導入事例 — 見出し中央＋下余白 */
.home .p-services .c-section-title.c-section-title--left,
.home .p-case-top .c-section-title,
.editor-styles-wrapper .p-services .c-section-title.c-section-title--left,
.editor-styles-wrapper .p-case-top .c-section-title {
  align-items: center;
  text-align: center;
  margin-bottom: 46px;
}
.home .p-services .c-section-title.c-section-title--left + *,
.home .p-case-top .c-section-title + *,
.editor-styles-wrapper .p-services .c-section-title.c-section-title--left + *,
.editor-styles-wrapper .p-case-top .c-section-title + * {
  margin-top: 0;
}

/* --- 事業案内カード（TOP / 404 / thanks 下部の SERVICE） --- */
.p-lavender-block {
  background: linear-gradient(180deg, #fff 0%, #f6f5fb 42%, #f0eff8 100%);
  border-radius: 0 0 50% 50% / 0 0 90px 90px;
  padding-bottom: 40px;
}
/* --- 事業カード（TOP・事業案内で共通 / fgc/cards + fgc/card） --- */
.p-services { padding-block: 104px; }
.p-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 32px;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
  list-style: none;
}
/* カードは枠線ではなく影で輪郭を出す */
.p-service {
  background: var(--c-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 6px 20px rgba(26, 26, 26, .06);
  display: flex;
  flex-direction: column;
}
@supports (grid-template-rows: subgrid) {
  .p-service { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.p-service__main { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
@supports (grid-template-rows: subgrid) {
  .p-service__main { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}
.p-service__thumb { overflow: hidden; }
.p-service__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.p-service__main:hover .p-service__thumb img { transform: scale(1.03); }
.p-service__head { padding: 24px 24px 0; }
.p-service__target { margin: 0; font-size: 12px; letter-spacing: .04em; color: var(--c-pink); line-height: 1.7; }
.p-service__name { margin: 8px 0 0; font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--c-ink-strong); transition: color .25s ease; }
.p-service__main:hover .p-service__name { color: var(--c-pink); }
.p-service__foot { display: flex; flex-direction: column; padding: 14px 24px 20px; }
.p-service__desc { margin: 0 0 16px; font-size: 13px; line-height: 1.95; color: var(--c-gray); flex: 1; text-align: left;}
.p-service__more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--c-ink-strong);
  transition: color .25s ease;
}
.p-service__ico { flex-shrink: 0; transition: transform .25s ease; }
.p-service__main:hover .p-service__more { color: var(--c-pink); }
.p-service__main:hover .p-service__ico { transform: translateX(3px); }
.p-service__ext {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 15px 24px;
  border-top: 1px dotted #d6d1e6;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  text-decoration: none;
  color: var(--c-ink-strong);
  transition: color .25s ease;
}
.p-service__ext:hover { color: var(--c-pink); }
/* 編集画面：アイキャッチ未設定時のプレースホルダー */
.p-service__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #ececf2;
  color: var(--c-gray);
  font-size: 12px;
  text-align: center;
  padding: 0 16px;
}

/* --- 外部リンクまとめ（fgc/link-group） --- */
.wp-block-fgc-link-group.l-container { padding: 0; }
.c-ico { flex-shrink: 0; }
.p-links { margin: 44px 0 0; padding-top: 28px; border-top: 1px dotted #d6d1e6; }
.p-links__label { margin: 0; font-size: 12px; letter-spacing: .06em; color: var(--c-gray); }
.p-links__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; padding-inline-start: 0; list-style: none; }
.p-links__item a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: border-color .25s, color .25s;
}
.p-links__item a:hover { border-color: var(--c-pink); color: var(--c-pink); }
.p-links__item .c-ico { color: var(--c-pink); }
.p-links__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--c-pink);
  color: var(--c-white);
  font-size: var(--f-base);
  text-decoration: none;
  transition: opacity .25s;
}
.p-links__cta .c-ico { color: var(--c-white); }
.p-links__cta:hover { color: var(--c-white); opacity: .85; text-decoration: none; }
@media (max-width: 767px) {
  .p-links__cta { width: 100%; justify-content: center; }
}

/* --- 導入事例（TOP） --- */
.p-case-top { padding: 20px 0 76px; }
.p-case-top__foot { margin-top: 44px; text-align: center; }

/* --- お知らせ（TOP） --- */
.p-news-top { padding: 96px 0; background: var(--c-white); }
.p-news-top--divided .p-news-top__inner { border-top: 1px solid var(--c-line); padding-top: 72px; }
.p-news-top__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "head list"
    "btn  list";
  gap: 0 64px;
  align-items: start;
}
.p-news-top__head { grid-area: head; }
.p-news-top__list { grid-area: list; }
.p-news-top__button { grid-area: btn; }
.p-news-top__button { margin-top: 32px; grid-area: btn; }
.p-news-top .p-news__link { grid-template-columns: 92px auto 1fr 24px; }
.c-category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding-inline: 12px;
  border: 1px solid var(--c-pink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-pink);
  white-space: nowrap;
}

/* --- オンラインショップ（EC SHOP） --- */
.p-ecshop { padding: 44px 0 48px; background: linear-gradient(180deg, #fefaee 0%, #fdf5df 100%); }
.p-ecshop__inner { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.p-ecshop__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-ink-strong);
}
.p-ecshop__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--c-gold);
  color: var(--c-ink-strong);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.p-ecshop__note { margin-top: 8px; font-size: 12px; line-height: 1.7; color: #7a6a45; }
.p-ecshop__links,
.p-ecshop__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* 3つ以下は1行で均等配置、4つ以上は最大4列で改行 */
.p-ecshop__links:has(> :only-child),
.p-ecshop__list:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.p-ecshop__links:has(> :nth-child(2):last-child),
.p-ecshop__list:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p-ecshop__links:has(> :nth-child(3):last-child),
.p-ecshop__list:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.p-ecshop__links > li { min-width: 0; display: flex; }
.p-ecshop__link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  background: var(--c-white);
  border-radius: 8px;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
  box-sizing: border-box;
}
.p-ecshop__link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(140, 110, 40, .14); color: inherit; }
.p-ecshop__link-name { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--c-ink-strong); }
.p-ecshop__link-text { grid-column: 1 / 2; font-size: 11px; line-height: 1.6; color: var(--c-gray); }
.p-ecshop__arrow {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-pink);
  color: var(--c-white);
}
.p-ecshop__arrow svg { width: 11px; height: 11px; }


/* --- 汎用セクション --- */
.p-section { padding: 88px 0; }
.p-section--tint { background: var(--c-lavender-bg); }   /* ラベンダー。背景は白かこの2択のみ */

/* --- 見出しを内蔵した帯（feature-list / def-table を単独の帯として使うとき） --- */
/* 上下余白はブロック側で持たせる（デスクトップ 104px / モバイルは末尾のメディアクエリで 64px） */
.p-feature-list--headed,
.p-def-table--headed { padding-top: 104px; padding-bottom: 104px; }
/* 見出しから本体まで（デスクトップ 56px / モバイル 40px） */
.p-feature-list--headed .c-section-title + *,
.p-def-table--headed .c-section-title + * { margin-top: 56px; }
/* 同じ背景色の帯が隣接したときに余白が二重にならないよう、上側を詰める */
.p-section--lavender + .p-section--lavender.p-feature-list--headed,
.p-section--lavender + .p-section--lavender.p-def-table--headed { padding-top: 0; }

/* --- タグ --- */
.c-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.c-tag--service { background: var(--c-pink); color: var(--c-white); }
.c-tag--industry { background: var(--c-lavender); color: var(--c-ink); }
.c-category {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 12px;
  background: #b9b9c2;
  color: var(--c-white);
  font-size: 12px;
  letter-spacing: .08em;
}

/* --- 選ばれる理由 / サービス一覧 --- */
.p-reasons__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.p-reasons__item {
  background: var(--c-white);
  border-radius: 14px;
  padding: 34px 28px 32px;
  box-shadow: 0 4px 20px rgba(90, 60, 90, .06);
  transition: transform .3s, box-shadow .3s;
}
.p-reasons__item:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(90, 60, 90, .12); }
.p-reasons__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-ink-strong);
  font-family: var(--f-serif-en);
  font-size: 20px;
  font-weight: 600;
}
.p-reasons__title { margin-top: 18px; font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--c-ink-strong); }
.p-reasons__text { margin-top: 12px; font-size: 14px; line-height: 1.9; }

/* --- 導入までの流れ --- */
.p-flow__list { max-width: 760px; margin-inline: auto; }
.p-flow__item { position: relative; padding: 0 0 40px 108px; }
.p-flow__item:last-child { padding-bottom: 0; }
.p-flow__item::before { content: ""; position: absolute; left: 35px; top: 14px; bottom: -14px; width: 1px; background: var(--c-lavender); }
.p-flow__item:last-child::before { display: none; }
.p-flow__step {
  position: absolute;
  left: 0; top: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.p-flow__step-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--c-gray); }
.p-flow__step-num { font-family: var(--f-serif-en); font-size: 26px; font-weight: 600; color: var(--c-pink); }
.p-flow__title { padding-top: 12px; font-size: 18px; font-weight: 700; letter-spacing: .04em; color: var(--c-ink-strong); }
.p-flow__text { margin-top: 8px; font-size: 14px; line-height: 1.9; }

/* --- よくあるご質問（Yoast SEO の FAQ ブロック出力をトグル化） ---
   JSが無効な場合は開いた状態のまま。JSが .is-toggle を付けたときだけ折りたたむ。 */
.schema-faq { max-width: 860px; margin: 40px auto 0; border-top: 1px solid var(--c-line); }
.schema-faq-section { border-bottom: 1px solid var(--c-line); }
.schema-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 22px 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--c-ink-strong);
}
.schema-faq-question::before {
  content: "Q";
  font-family: var(--f-serif-en);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-pink);
  line-height: 1.3;
  flex-shrink: 0;
}
.schema-faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 6px 24px;
  font-size: 14px;
  line-height: 2;
}
.schema-faq-answer::before {
  content: "A";
  font-family: var(--f-serif-en);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-ink-strong);
  line-height: 1.4;
  flex-shrink: 0;
}
.schema-faq.is-toggle .schema-faq-question { cursor: pointer; }
.schema-faq.is-toggle .schema-faq-question::after {
  content: "";
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: auto;
  margin-top: 7px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--c-ink), var(--c-ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--c-ink), var(--c-ink)) center / 1.5px 14px no-repeat;
  transition: transform .3s;
}
.schema-faq.is-toggle .schema-faq-question[aria-expanded="true"]::after {
  background: linear-gradient(var(--c-ink), var(--c-ink)) center / 14px 1.5px no-repeat;
}
.schema-faq.is-toggle .schema-faq-question:hover { color: var(--c-pink); }
.schema-faq.is-toggle .schema-faq-answer[hidden] { display: none; }

/* --- 送信前の確認画面（JSで表示） --- */
.c-confirm__lead { font-size: var(--f-base); font-weight: 700; line-height: 1.9; margin-bottom: 28px; }
.c-confirm__list { border-top: 1px solid var(--c-line); }
.c-confirm__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--c-line);
}
.c-confirm__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--c-gray); }
.c-confirm__value { font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.c-confirm__value:empty::before { content: "（未入力）"; color: #b6b6bf; }
.c-confirm__actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.c-confirm__actions .c-btn { min-width: 220px; }
.is-confirming .c-form__group,
.is-confirming .p-contact__intro,
.is-confirming .p-contact__lead,
.is-confirming .p-contact__agreement-lead,
.is-confirming .c-terms,
.is-confirming .p-contact__agreements,
.is-confirming .p-contact__turnstile,
.is-confirming .p-contact__submit,
.is-confirming .c-notice { display: none; }

/* --- 注記ボックス --- */
.c-notice { border-left: 4px solid var(--c-gold); background: #fffaeb; padding: 20px 24px; font-size: 14px; line-height: 1.9; }
.c-notice__title { font-weight: 700; margin-bottom: 4px; }

/* --- 目次（プラグイン出力に当てる想定。セレクタは導入プラグインに合わせて調整） --- */
.c-toc { border: 1px solid var(--c-line); background: var(--c-white); max-width: 500px; }
.c-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  list-style: none;
}
.c-toc__summary::-webkit-details-marker { display: none; }
.c-toc__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.c-toc__icon::before,
.c-toc__icon::after { content: ""; position: absolute; background: var(--c-ink); transition: transform .3s; }
.c-toc__icon::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.c-toc__icon::after { top: 0; left: 6px; width: 1.5px; height: 14px; }
details[open] > summary .c-toc__icon::after { transform: scaleY(0); }
.c-toc__body { padding: 0 22px 20px; }
.c-toc__body li { font-size: 14px; line-height: 2.1; }

/* --- 目次（Easy Table of Contents プラグイン） --- */
.c-article #ez-toc-container {
  display: block !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 40px !important;
  padding: 0 !important;
  border: 1px solid var(--c-line) !important;
  border-radius: 8px;
  background: var(--c-lavender-bg) !important;
  box-shadow: none !important;
}
.c-article #ez-toc-container .ez-toc-title-container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100% !important;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  border-radius: 8px 8px 0 0;
}
.c-article #ez-toc-container .ez-toc-title {
  display: block !important;
  flex: 1;
  margin: 0;
  padding: 0;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-ink-strong);
  line-height: 1.5;
  text-align: left;
  cursor: inherit;
}
.c-article #ez-toc-container .ez-toc-title-toggle {
  display: block !important;
  flex-shrink: 0;
  float: none !important;
  margin: 0;
  line-height: 1;
  vertical-align: middle;
}
/* プラグイン側の float ずれのみ解除（トグル見た目はプラグイン既定のまま） */
.c-article #ez-toc-container .ez-toc-js-icon-con,
.c-article #ez-toc-container .ez-toc-toggle label {
  float: none !important;
  left: auto !important;
}
.c-article #ez-toc-container a.ez-toc-toggle {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.c-article #ez-toc-container .ez-toc-icon-toggle-span svg {
  fill: var(--c-gray) !important;
  color: var(--c-gray) !important;
}
.c-article #ez-toc-container nav {
  display: block !important;
  margin: 0 !important;
  padding: 0;
  opacity: 1;
  max-height: none;
}
.c-article #ez-toc-container ul,
.c-article #ez-toc-container li,
.c-article #ez-toc-container .ez-toc-list,
.c-article #ez-toc-container .ez-toc-list li {
  margin: 0;
  padding: 0;
  overflow: visible !important;
  list-style: none !important;
  list-style-type: none !important;
  background: none !important;
}
.c-article #ez-toc-container .ez-toc-list li::marker { content: none !important; }
.c-article #ez-toc-container .ez-toc-list li::before {
  content: none !important;
  display: none !important;
  position: static !important;
  height: auto !important;
  line-height: inherit !important;
}
.c-article #ez-toc-container .ez-toc-list > li {
  line-height: 1.9;
}
.c-article #ez-toc-container .ez-toc-list > li + li { margin-top: 10px; }
.c-article #ez-toc-container .ez-toc-list-level-2 { margin-top: 8px; padding-left: 1.1em; }
.c-article #ez-toc-container .ez-toc-list-level-3 { margin-top: 6px; padding-left: 1.1em; }
.c-article #ez-toc-container div.ez-toc-title-container + ul.ez-toc-list { margin-top: 0 !important; }
.c-article #ez-toc-container nav > ul.ez-toc-list,
.c-article #ez-toc-container div.ez-toc-title-container + ul.ez-toc-list {
  padding: 18px 22px 22px;
}
.c-article #ez-toc-container nav a.ez-toc-link {
  display: inline-flex !important;
  align-items: center;
  gap: .35em;
  box-shadow: none !important;
  text-shadow: none !important;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.9;
  text-decoration: none;
  transition: color .25s ease;
}
.c-article #ez-toc-container nav a.ez-toc-link:hover {
  color: var(--c-pink);
  text-decoration: none;
}
.c-article #ez-toc-container nav a.ez-toc-link:visited { color: var(--c-ink); }
.c-article #ez-toc-container.ez-toc-counter nav a.ez-toc-link::before {
  flex: 0 0 1.5em;
  min-width: 1.5em;
  margin: 0;
  color: var(--c-gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
  text-align: right;
}
.c-article #ez-toc-container.ez-toc-collapsed nav { display: none !important; }
.c-article #ez-toc-container.ez-toc-collapsed .ez-toc-title-container {
  border-bottom: 0;
  border-radius: 8px;
}

@media screen and (max-width: 767px) {
  .c-article #ez-toc-container { margin-bottom: 32px !important; }
  .c-article #ez-toc-container .ez-toc-title-container { padding: 16px 18px; }
  .c-article #ez-toc-container nav > ul.ez-toc-list,
  .c-article #ez-toc-container div.ez-toc-title-container + ul.ez-toc-list {
    padding: 14px 18px 18px;
  }
  .c-article #ez-toc-container nav a.ez-toc-link { font-size: 13px; }
  .c-article #ez-toc-container.ez-toc-counter nav a.ez-toc-link::before { font-size: 13px; }
}

/* --- 定義リスト（企業情報・沿革） --- */
.c-deflist { margin-top: 38px; border-top: 1px solid var(--c-line); }
.c-deflist__row { display: grid; grid-template-columns: 180px 1fr; gap: 20px 30px; padding: 24px 6px; border-bottom: 1px solid var(--c-line); }
.c-deflist__label { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--c-gray); line-height: 2.2; }
.c-deflist__data { font-size: 14px; line-height: 2.1; margin: 0;}
.c-deflist__data > * + * { margin-top: 8px; }
.c-deflist__data > *:last-child { margin-bottom: 0; }
.c-deflist__data iframe { margin: 0 0 16px; width: 100%;  aspect-ratio: 16 / 9; max-height: 250px;}
.c-deflist__data .c-biz-heading { font-weight: 700; margin-top: 20px; }
.c-deflist__data .c-biz-heading:first-child { margin-top: 0; }
/* body:not(.editor-styles-wrapper) .c-deflist__data ul li { position: relative; padding-left: 1.2em; } */
/* body:not(.editor-styles-wrapper) .c-deflist__data ul li::before { content: "・"; position: absolute; left: 0; } */
.c-map { margin-top: 14px; max-width: 460px; }
.c-map img,
.c-map iframe { width: 100%; aspect-ratio: 25 / 14; border: 0; display: block; }
.c-address-block + .c-address-block { margin-top: 34px; }

/* コア段落ブロック：先頭要素は上余白なし */
.wp-block-paragraph:first-child { margin-top: 0; }

/* --- 記事本文 --- */
.c-article { font-size: var(--f-base); line-height: 2.1; }
.c-article > * + * { margin-top: 22px; }
.c-article strong { font-weight: 700; }
.c-article h2 {
  position: relative;
  margin-top: 62px;
  padding-top: 26px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--c-ink-strong);
}
.c-article h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--c-gold); }
.c-article h3 { margin-top: 44px; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; letter-spacing: .06em; color: var(--c-ink-strong); }
.c-article h3::before { content: ""; width: 18px; height: 2px; background: var(--c-gold); flex-shrink: 0; }
/* body:not(.editor-styles-wrapper) .c-article ul { margin-top: 20px; }
body:not(.editor-styles-wrapper) .c-article ul li { position: relative; padding-left: 1.3em; line-height: 2.1; }
body:not(.editor-styles-wrapper) .c-article ul li::before { content: "・"; position: absolute; left: 0; } */
.c-article figure img { width: 100%; max-width: 440px; }
.c-article__button { margin-top: 40px; }

/* --- ページャー --- */
.c-pagination { margin-top: 46px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.c-pagination a,
.c-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  font-size: 14px;
  letter-spacing: .04em;
}
.c-pagination .is-current { background: #4d4d4d; border-color: #4d4d4d; color: var(--c-white); }
.c-pagination a:hover { border-color: var(--c-pink); color: var(--c-pink); }

/* --- フォーム --- */
.c-form__group + .c-form__group { margin-top: 34px; }
.c-form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: var(--f-base);
  font-weight: 700;
  letter-spacing: .06em;
}
.c-badge-required,
.c-badge-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding-inline: 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--c-white);
  flex-shrink: 0;
}
.c-badge-required { background: var(--c-pink); }
.c-badge-optional { background: var(--c-badge); }
.c-form__input,
.c-form__textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-white);
  font-family: inherit;
  font-size: var(--f-base);
  line-height: 1.8;
  color: var(--c-ink);
}
.c-form__textarea,
.wpcf7-form textarea { min-height: 172px; resize: vertical; }
.c-form__input::placeholder,
.c-form__textarea::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: #b6b6bf; }
.c-form__input:focus,
.c-form__textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline: 0; border-color: var(--c-pink); }
.c-form__note { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--c-gray); }
.c-form__note--alert { color: var(--c-pink); font-weight: 700; }
.c-form__checks,
.c-form__radios { display: flex; flex-direction: column; gap: 10px; }
.c-form__checks .wpcf7-list-item,
.c-form__radios .wpcf7-list-item { margin: 0; }
.wpcf7-form-control.wpcf7-checkbox,
.wpcf7-form-control.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item {
  display: block;
  margin: 0;
}
.c-radio { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.7; letter-spacing: .04em; cursor: pointer; }
.c-radio input[type="radio"] {
  appearance: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.c-radio input[type="radio"]:checked { border-color: var(--c-pink); }
.c-radio input[type="radio"]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-pink); }
.c-form__radios .wpcf7-list-item label,
.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--f-base);
  line-height: 1.7;
  letter-spacing: .04em;
  cursor: pointer;
}
.c-form__radios input[type="radio"],
.wpcf7-radio input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.c-form__radios input[type="radio"]:checked,
.wpcf7-radio input[type="radio"]:checked { border-color: var(--c-pink); }
.c-form__radios input[type="radio"]:checked::after,
.wpcf7-radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--c-pink);
}
.c-check,
.c-form__checks .wpcf7-list-item label,
.p-contact__agreements .wpcf7-list-item label,
.wpcf7-checkbox .wpcf7-list-item label,
.wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--f-base);
  line-height: 1.7;
  letter-spacing: .04em;
  cursor: pointer;
}
.c-check input[type="checkbox"],
.c-form__checks input[type="checkbox"],
.p-contact__agreements input[type="checkbox"],
.wpcf7-checkbox input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-white);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.c-check input[type="checkbox"]:checked,
.c-form__checks input[type="checkbox"]:checked,
.p-contact__agreements input[type="checkbox"]:checked,
.wpcf7-checkbox input[type="checkbox"]:checked,
.wpcf7-acceptance input[type="checkbox"]:checked {
  background: var(--c-pink);
  border-color: var(--c-pink);
}
.c-check input[type="checkbox"]:checked::after,
.c-form__checks input[type="checkbox"]:checked::after,
.p-contact__agreements input[type="checkbox"]:checked::after,
.wpcf7-checkbox input[type="checkbox"]:checked::after,
.wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.c-check--bold,
.p-contact__agreements .wpcf7-list-item-label { font-weight: 700; }
.c-terms {
  margin-top: 22px;
  max-height: 130px;
  overflow-y: auto;
  padding: 20px 22px;
  background: var(--c-lavender-bg);
  font-size: 13px;
  line-height: 1.9;
}
.c-terms p + p { margin-top: 12px; }
.c-terms strong { font-weight: 700; }

/* Contact Form 7 */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { margin-top: 8px; color: var(--c-pink); font-size: 12px; font-weight: 700; }
.wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--c-pink);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.8;
}
.wpcf7 form .wpcf7-spinner { margin-left: 12px; }

/* ==========================================================================
   5. ページ個別
   ========================================================================== */

/* --- 事業案内（一覧） --- */
.p-service-index { padding: 76px 0 96px; }
.p-service-index__lead { text-align: center; }
.p-service-index__lead-en { font-family: var(--f-serif); font-size: 24px; font-weight: 500; letter-spacing: .14em; color: var(--c-ink-strong); }
.p-service-index__lead-ja { margin-top: 16px; font-family: var(--f-serif); font-size: 19px; font-weight: 500; letter-spacing: .1em; }
.p-service-index__list { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 40px; align-items: start; }
.p-service-item { display: flex; flex-direction: column; color: inherit; padding-bottom: 26px; border-bottom: 1px solid var(--c-line); }
.p-service-item__img { display: block; overflow: hidden; margin-bottom: 26px; }
.p-service-item__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.p-service-item__img:hover img { transform: scale(1.04); }
.p-service-item__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.p-service-item__title { font-size: 18px; font-weight: 700; line-height: 1.7; letter-spacing: .06em; color: var(--c-ink-strong); }
.p-service-item__title small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--c-gray); }
.p-service-item__text { margin-top: 14px; font-size: 14px; line-height: 1.9; }
.p-service-item__shop {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.p-service-item .p-service-card__more {
  width: 100%;
  padding-top: 18px;
  justify-content: space-between;
}
.p-service-item__shop { width: 100%; }

/* --- 事業案内（詳細） --- */
.p-service-detail { padding: 78px 0 96px; }
.p-service-detail__inner { display: grid; grid-template-columns: 580px 1fr; gap: 76px; align-items: start; }
.p-service-detail__figure { border-radius: 220px 0 0 0; overflow: hidden; }
.p-service-detail__figure img { width: 100%; aspect-ratio: 58 / 76; object-fit: cover; }
.p-service-detail__title { font-family: var(--f-serif); font-size: 32px; font-weight: 500; line-height: 1.6; letter-spacing: .1em; color: var(--c-ink-strong); }
.p-service-detail__line { width: 48px; height: 3px; background: var(--c-gold); margin: 26px 0 34px; }
.p-service-detail__body > * + * { margin-top: 26px; }
.p-service-detail__body p { font-size: var(--f-base); line-height: 2.1; }
body:not(.editor-styles-wrapper) .p-service-detail__list li { position: relative; padding-left: 1.2em; font-size: var(--f-base); line-height: 2.1; }
body:not(.editor-styles-wrapper) .p-service-detail__list li::before { content: "・"; position: absolute; left: 0; }
.p-service-detail__link { margin-top: 40px; text-align: right; }

/* --- お知らせ --- */
.p-news { padding: 84px 0 100px; }
.p-news__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.p-news__item { border-bottom: 1px solid var(--c-line); }
.p-news__link { display: grid; grid-template-columns: 94px auto 1fr 24px; align-items: center; gap: 18px; padding: 24px 6px; }
.p-news__link:hover { color: var(--c-pink); }
.p-news__date { font-size: 13px; letter-spacing: .06em; color: var(--c-gray); }
.p-news__title { font-size: var(--f-base); font-weight: 500; letter-spacing: .04em; color: var(--c-ink-strong); }
.p-news__link:hover .p-news__title { color: var(--c-pink); }
.p-news__chevron { justify-self: end; color: #b5b5bb; }

/* --- お知らせ詳細 --- */
.p-news-detail { padding: 62px 0 96px; }
.p-news-detail__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.p-news-detail__date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-gray); }
.p-news-detail__date svg { width: 14px; height: 14px; }

/* --- お役立ち情報（通常投稿） --- */
.p-tips { padding: 78px 0 96px; }
.p-tips__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.p-tips-related { padding: 78px 0 96px; }
.p-tips-related .c-section-title { margin-bottom: 40px; }
.p-tips-card {
  background: var(--c-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 6px 20px rgba(26, 26, 26, .06);
  transition: box-shadow .3s, transform .3s;
}
.p-tips-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.p-tips-card__link:hover { text-decoration: none; }
.p-tips-card:hover { box-shadow: 0 4px 10px rgba(26, 26, 26, .06), 0 14px 32px rgba(26, 26, 26, .10); transform: translateY(-4px); }
.p-tips-card__img { overflow: hidden; }
.p-tips-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.p-tips-card:hover .p-tips-card__img img { transform: scale(1.05); }
.p-tips-card__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 26px; }
.p-tips-card__title { font-size: 16px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; color: var(--c-ink-strong); }
.p-tips-card:hover .p-tips-card__title { color: var(--c-pink); }
.p-tips-card__excerpt {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--c-gray);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.p-tips-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--c-gray);
}

/* --- お役立ち情報（詳細） --- */
.p-tips-detail { padding: 62px 0 96px; }
.p-tips-detail__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.p-tips-detail__date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-gray); }
.p-tips-detail__date svg { width: 14px; height: 14px; }
.p-tips-detail__hero { margin: 0 0 32px; border-radius: 12px; overflow: hidden; }
.p-tips-detail__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --- 導入事例 --- */
.p-case { padding: 78px 0 96px; }
.p-case__lead { text-align: center; font-size: var(--f-base); line-height: 2.1; margin-bottom: 50px; }
.p-case__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.p-case-related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.p-case-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--c-white);
  border-radius: 8px;
  overflow: hidden;
  /* 事業カードと揃えた影で輪郭を出す（枠線は使わない） */
  box-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 6px 20px rgba(26, 26, 26, .06);
  transition: box-shadow .3s, transform .3s;
}
.p-case-card:hover { box-shadow: 0 4px 10px rgba(26, 26, 26, .06), 0 14px 32px rgba(26, 26, 26, .10); transform: translateY(-4px); }
.p-case-card__img { overflow: hidden; }
.p-case-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.p-case-card:hover .p-case-card__img img { transform: scale(1.05); }
.p-case-card__body { flex: 1; padding: 24px 26px 28px; }
.p-case-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-case-card__title { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; color: var(--c-ink-strong); }
.p-case-card:hover .p-case-card__title { color: var(--c-pink); }
.p-case-card__client { margin-top: 10px; font-size: 13px; color: var(--c-gray); }
.p-case-card__text { margin-top: 12px; font-size: 13.5px; line-height: 1.9; }
.p-case-back { margin-top: 56px; text-align: center; }

/* --- 導入事例（詳細） --- */
.p-case-detail { padding: 62px 0 96px; }
.p-case-detail__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;}
.p-case-detail__hero { margin: 26px 0 40px; border-radius: 12px; overflow: hidden; }
.p-case-detail__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.c-case-summary {
  margin: 0 0 48px;
  padding: 28px 32px;
  background: var(--c-lavender-bg);
  border-radius: 6px;
}
.c-case-summary__row + .c-case-summary__row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dotted #d6d1e6;
}
.c-case-summary dt {
  margin: 0 0 10px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.c-case-summary dd {
  margin: 0;
  font-size: .9375rem;
  line-height: 2;
  color: var(--c-ink);
}
.c-case-block__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-pink);
}
.c-case-block__label::before { content: ""; width: 22px; height: 2px; background: var(--c-gold); }
.c-case-block__body { margin-top: 12px; font-size: var(--f-base); line-height: 2.1; }
.c-quote { background: var(--c-white); border: 1px solid var(--c-lavender); border-radius: 12px; padding: 30px 34px; }
.c-quote__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--c-gray); }
.c-quote__text { margin-top: 12px; font-size: var(--f-base); line-height: 2.1; }
.c-quote__name { margin-top: 14px; font-size: 13px; color: var(--c-gray); text-align: right; }

/* --- 会社案内 --- */
.p-about-intro { padding: 88px 0 96px; }
.p-about-intro__inner { display: grid; grid-template-columns: 1fr 570px; gap: 80px; align-items: start; }
.p-about-intro__title { font-family: var(--f-serif); font-size: 30px; font-weight: 500; line-height: 1.9; letter-spacing: .1em; color: var(--c-ink-strong); }
.p-about-intro__body { margin-top: 34px; }
.p-about-intro__body p + p { margin-top: 24px; }
.p-about-intro__figure { border-radius: 0 220px 0 0; overflow: hidden; }
.p-about-intro__figure img { width: 100%; aspect-ratio: 19 / 18; object-fit: cover; }
.p-about-message { background: var(--c-lavender-bg); padding: 92px 0; }
.p-about-message__inner { display: grid; grid-template-columns: 520px 1fr; gap: 90px; align-items: center; }
.p-about-message__figure { border-radius: 220px 0 0 0; overflow: hidden; }
.p-about-message__figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.p-about-message__title { font-family: var(--f-serif); font-size: 28px; font-weight: 500; letter-spacing: .12em; color: var(--c-ink-strong); }
.p-about-message__body { margin-top: 30px; }
.p-about-message__body p + p { margin-top: 24px; }
.p-about-message__sign { margin-top: 34px; font-size: 13px; line-height: 1.9; }
.p-about-message__sign strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: .1em; }
.p-about-profile { padding: 92px 0 0; }
.p-about-history { padding: 78px 0 100px; }

/* --- お問い合わせ --- */
.p-contact { padding: 56px 0 104px; }
.p-contact .l-container--form { width: 100%; margin-inline: auto; padding-inline: 0; }
.p-contact__lead,
.p-contact__confirm-lead {
  font-size: var(--f-base);
  font-weight: 700;
  line-height: 2;
  margin-bottom: 28px;
}
.p-contact__intro { margin-bottom: 32px; }
.p-contact__intro .p-contact__lead { margin-bottom: 0; }
.p-contact__intro .p-contact__lead + .p-contact__lead { margin-top: 12px; }
.p-contact__agreement-lead { margin-top: 52px; font-size: var(--f-base); font-weight: 700; line-height: 1.9; }
.p-contact__agreements {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.p-contact__turnstile {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.p-contact__submit { margin-top: 48px; text-align: center; }
.p-contact__submit .c-btn,
.p-contact__submit .wpcf7-submit { display: block; margin: 0 auto; min-width: 400px; border: 0; }

/* --- お問い合わせ：確認画面（JSで生成） --- */
.p-contact__confirm { display: none; margin-top: 8px; }
.is-confirming .p-contact__confirm { display: block; }
.c-confirm { border-top: 1px solid var(--c-line); }
.c-confirm__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 24px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--c-line);
}
.c-confirm__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--c-gray); line-height: 1.9; }
.c-confirm__value { font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.c-confirm__value:empty::before { content: "（未入力）"; color: #b6b6bf; }
.p-contact__confirm-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* --- 404 / thanks の中央メッセージ --- */
.p-message { padding: 80px 0 0; text-align: center; }
.p-message__title { font-family: var(--f-serif); font-size: 34px; font-weight: 500; letter-spacing: .1em; line-height: 1.5; color: var(--c-ink); }
.p-message__en { display: block; margin-top: 10px; font-family: var(--f-serif-en); font-size: 16px; letter-spacing: .08em; color: var(--c-gray); }
.p-message__line { width: 56px; height: 3px; background: var(--c-gold); margin: 20px auto 0; }
.p-message__texts { margin: 0; padding: 0; }
.p-message__texts > div,
.p-message__texts .wp-block { margin: 0; padding: 0; max-width: none; }
.p-message__text,
.p-message__texts p { margin-top: 30px; font-size: var(--f-base); line-height: 2.2; }
.p-message__text strong,
.p-message__texts p strong { font-weight: 700; }
.p-message__button { margin-top: 34px; }
/* 404 / thanks の音符は .p-deco--both（上部で定義）。max-width を message に合わせる */
.p-message .p-deco--both,
.p-message + .p-deco--both { max-width: 1160px; margin-inline: auto; }
.p-message + * { margin-bottom: 70px; }

/* ==========================================================================
   5-2. TOPページ
   ========================================================================== */

/* --- ヒーロー --- */
.p-hero { position: relative; background: var(--c-white); overflow: hidden; }
.p-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 82%; }
.p-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.p-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 18%, rgba(255,255,255,.55) 38%, rgba(255,255,255,0) 62%);
}
.p-hero__inner {
  position: relative;
  z-index: 1;
  padding-inline: max(var(--gutter), 40px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 1280px前後でテキストが画面端に寄りすぎないよう、最低40pxの余白を確保 */
  padding: 90px max(var(--gutter), 40px);
}
.p-hero__eyebrow {
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--c-gray);
}
.p-hero__actions { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.p-hero__sublink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 3px;
}
.p-hero__sublink svg { width: 20px; height: 16px; color: var(--c-pink); }
.p-hero__sublink:hover { border-color: var(--c-pink); }
.p-hero__title {
  font-family: var(--f-serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .06em;
  color: var(--c-ink-strong);
}
.p-hero__lead { margin-top: 26px; font-size: var(--f-base); line-height: 2.1; letter-spacing: .04em; }

/* --- CONCEPT（静的HTML用。WordPressでは fgc/section-split が同じ見た目を担当） --- */
.p-concept { padding: 96px 0 0; }
.p-concept__inner { display: grid; grid-template-columns: 300px 1fr; gap: 70px; align-items: start; }
.p-concept__head { position: relative; }
.p-concept__body { max-width: 720px; }
.p-concept__text { font-size: var(--f-base); line-height: 2.2; letter-spacing: .04em; }
.p-concept__text + .p-concept__text { margin-top: 22px; }
.p-concept__button { margin-top: 34px; }

/* ==========================================================================
   音符の装飾（3種類）
   図柄は共通の deco-note.svg（360×181）1枚。音符の左右へ CSS で線を伸ばす。
   3種類とも両側に線を出し、違いは音符の置き位置だけ（左端／右端／中央）。
   音符は span.p-deco__note に CSS 背景で描画（静的ブロック/テンプレートからテーマURLを
   注入せずに済み、編集画面でも相対URLで解決される）。固定サイズなので拡大縮小しない。
   線端の位置：右へ抜ける線＝下から82.8px／左下の巻きの終端＝下端(0px)。実測値のため変更しないこと。
   ========================================================================== */
.p-deco {
  position: relative;
  height: 181px;
  color: #1A1A1A;                  /* 音符と線の色 */
  --deco-note-w: 360px;            /* SVGの幅 */
  --deco-line-r: 82.8px;           /* 右へ抜ける線の高さ（下から） */
  --deco-line-l: 0px;              /* 左下の巻きの終端（下から） */
  --deco-line-h: 1.8px;            /* 線の太さ */
  /* 音符を本文コンテンツ幅の端に合わせる。帯は全幅なので、右・左・両方いずれも両側に線が出る。 */
  --deco-edge: calc(max(0px, (100% - (var(--w-default) + var(--gutter) * 2)) / 2) + var(--gutter));
}
.p-deco__note {
  position: absolute;
  bottom: 0;
  display: block;
  width: var(--deco-note-w);
  height: 100%;
  background: url("../img/deco-note.svg") center bottom / contain no-repeat;
}
.p-deco::before,
.p-deco::after {
  content: "";
  position: absolute;
  height: var(--deco-line-h);
  background: currentColor;
}
.p-deco::before { bottom: var(--deco-line-l); left: 0; }   /* 左へ伸びる線 */
.p-deco::after  { bottom: var(--deco-line-r); right: 0; }  /* 右へ伸びる線 */

/* 3種類とも両側に線を出す（::before=左／::after=右）。違いは音符の置き位置だけ。 */
/* right：音符を左端（本文左）に */
.p-deco--right .p-deco__note { left: var(--deco-edge); }
.p-deco--right::before { right: calc(100% - var(--deco-edge)); }
.p-deco--right::after  { left: calc(var(--deco-edge) + var(--deco-note-w)); }

/* left：音符を右端（本文右）に */
.p-deco--left .p-deco__note { right: var(--deco-edge); }
.p-deco--left::before { right: calc(var(--deco-edge) + var(--deco-note-w)); }
.p-deco--left::after  { left: calc(100% - var(--deco-edge)); }

/* both：音符を中央に */
.p-deco--both .p-deco__note { left: 50%; transform: translateX(-50%); }
.p-deco--both::before { right: calc(50% + var(--deco-note-w) / 2); }
.p-deco--both::after  { left: calc(50% + var(--deco-note-w) / 2); }

/* 帯ごとの余白（旧 .p-deco-band / .p-message__deco 相当） */
/* TOP（deco-band）の音符は約半分に縮小（360×181 → 180×90）。線の太さも合わせる。 */
.p-deco--right { margin: 40px 0; height: 90px; --deco-note-w: 180px; --deco-line-r: 41.4px; --deco-line-h: 1px; }
.p-split + .p-deco--right { margin-top: -20px; }
.p-deco--both { margin: 60px auto; }

/* --- 法人向け訴求（2枚） --- */
.p-biz__list { display: grid; gap: 28px; }
.p-biz__item {
  display: block;
  background: var(--c-white);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 4px 20px rgba(90, 60, 90, .06);
  transition: transform .3s, box-shadow .3s;
}
.p-biz__item:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(90, 60, 90, .14); }
.p-biz__item { display: grid; grid-template-columns: 44% 1fr; align-items: stretch; }
.p-biz__img { overflow: hidden; }
.p-biz__img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.p-biz__body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.p-biz__label {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--c-pink-light);
  color: var(--c-pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.p-biz__title { margin-top: 14px; font-size: 24px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--c-ink-strong); }
.p-biz__text { margin-top: 12px; font-size: 14px; line-height: 1.95; }
.p-biz__more { margin-top: 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--c-pink); }

/* --- TOPのお知らせ --- */
.p-news-top__foot { margin-top: 36px; text-align: center; }

/* --- 会社案内ティザー --- */
.p-about-teaser__inner {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 70px;
  align-items: center;
}
.p-about-teaser__figure { border-radius: 0 200px 0 0; overflow: hidden; }
.p-about-teaser__figure img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.p-about-teaser__title {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .1em;
  color: var(--c-ink-strong);
}
.p-about-teaser__text { margin-top: 26px; font-size: var(--f-base); line-height: 2.1; }
.p-about-teaser__button { margin-top: 34px; }


/* --- 復元時の補完 --- */
.l-footer__brand { max-width: 320px; }
.p-ecshop__head { display: block; }

/* ==========================================================================
   6. レスポンシブ
   ========================================================================== */
@media screen and (max-width: 1280px) {
  .p-service-detail__inner { grid-template-columns: 46% 1fr; gap: 48px; }
  .p-about-intro__inner { grid-template-columns: 1fr 44%; gap: 48px; }
  .p-about-message__inner { grid-template-columns: 42% 1fr; gap: 56px; }
}

/* --- ヘッダー：1180px以下はドロワー --- */
@media screen and (max-width: 1180px) {
  :root { --h-header: 66px; }
  .l-header__bar-actions { display: flex; }
  .l-header__toggle { display: block; }
  .l-header__cta--mobile {
    display: inline-flex;
    min-width: auto;
    height: 40px;
    padding-inline: 16px;
    font-size: 13px;
  }
  .l-header__utils { display: none; }
  .l-header__nav-wrap {
    display: block;
    position: fixed;
    inset: var(--h-header) 0 0;
    background: var(--c-white);
    padding: 28px var(--gutter) 60px;
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .l-header__nav-wrap.is-open { opacity: 1; visibility: visible; transform: none; }
  .l-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .l-nav__link { padding: 16px 4px; border-bottom: 1px solid var(--c-line); font-size: var(--f-base); }
  .l-nav__link::after { display: none; }
  .l-header__logo img { width: 34px; }
  .l-header__logo span { font-size: 13px; }
  body.is-nav-open { overflow: hidden; }
}

@media screen and (max-width: 1024px) {
  .p-service-index__list { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 900px) {
  :root { --h-header: 66px; --sp-section: 64px; }

  .u-sp { display: block; }
  .u-pc { display: none; }

  /* ページ見出し */
  .p-pagehead { --pagehead-deco-gap: 16px; }
  .p-pagehead__inner { padding-top: 40px; padding-bottom: 26px; }
  .p-pagehead__title { font-size: 26px; max-width: none; }

  /* CTA */
  .p-cta { padding: 80px 0 76px; }
  .p-cta__title { font-size: 26px; }
  .p-cta__lead { font-size: 14px; margin-top: 18px; }
  .p-cta__buttons { flex-direction: column; gap: 14px; }
  .p-cta__tel { flex-direction: column; gap: 20px; margin-top: 32px; }
  .p-cta__tel-block + .p-cta__tel-block { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.4); padding-top: 18px; }
  .p-cta__tel-num { font-size: 28px; }
  body:not(.home) main *:has(+ .p-cta) {
    padding-bottom: 112px;
  }
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; font-size: 14px; }
  .c-btn { width: 100%; min-width: 0; max-width: 340px; }

  /* 事業案内 */
  .p-service-index { padding: 64px 0 80px; }
  .p-service-index__lead-en { font-size: 19px; }
  .p-service-index__lead-ja { font-size: 16px; }
  .p-service-index__list { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .p-service-detail { padding: 64px 0 80px; }
  .p-service-detail__inner { grid-template-columns: 1fr; gap: 36px; }
  .p-service-detail__figure { border-radius: 80px 0 0 0; }
  .p-service-detail__figure img { aspect-ratio: 4 / 3; }
  .p-service-detail__title { font-size: 24px; }
  .p-service-detail__link { text-align: left; }


  /* メッセージページ */
  .p-message { padding: 64px 0 0; }
  .p-message__title { font-size: 22px; }
  .p-message__text,
  .p-message__texts p { font-size: 14px; }

  /* お知らせ SP：1行目=日付+カテゴリ、2行目=タイトル */
  .p-news { padding: 64px 0 80px; }
  .p-news__link {
    grid-template-columns: auto 1fr 20px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 12px;
    padding: 18px 4px;
  }
  .p-news__date { grid-row: 1; grid-column: 1; }
  .p-news__link .c-category-tag,
  .p-news__link > span:not(.p-news__title):not(.p-news__chevron) {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
  }
  .p-news__link > span:empty { display: none; }
  .p-news__title { grid-row: 2; grid-column: 1 / 3; }
  .p-news__chevron { grid-row: 1 / -1; grid-column: 3; align-self: center; }
  .p-news-detail { padding: 48px 0 80px; }
  .c-article h2 { font-size: 19px; margin-top: 48px; }

  /* 会社案内 */
  .p-about-intro { padding: 64px 0 72px; }
  .p-about-intro__inner { grid-template-columns: 1fr; gap: 36px; }
  .p-about-intro__title { font-size: 24px; }
  .p-about-intro__figure { border-radius: 0 80px 0 0; order: -1; }
  .p-about-message { padding: 72px 0; }
  .p-about-message__inner { grid-template-columns: 1fr; gap: 32px; }
  .p-about-message__figure { border-radius: 80px 0 0 0; }
  .p-about-message__title { font-size: 24px; }
  .p-about-profile { padding: 72px 0 0; }
  .p-about-history { padding: 64px 0 80px; }
  .c-deflist__row { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }
  .c-deflist__label { line-height: 1.8; }

  /* フォーム */
  .p-contact { padding: 44px 0 80px; }
  .c-confirm__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
  .p-contact__confirm-actions { flex-direction: column; align-items: center; }
  .p-contact__submit .c-btn,
  .p-contact__submit .wpcf7-submit { min-width: 0; width: 100%; display: block;margin: 0 auto;}

  /* フッター */
  .l-footer { padding-top: 56px; }
  .l-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .l-footer__nav { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .l-footer__bottom { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .l-footer__policy { gap: 16px; }
}

@media screen and (max-width: 900px) {
  /* ヒーロー：SPは写真を上に置いて全幅表示 */
  .p-hero { display: flex; flex-direction: column; }
  .p-hero__media { position: static; width: 100%; }
  .p-hero__media img { aspect-ratio: 16 / 9; height: auto; }
  .p-hero__media::after { display: none; }
  .p-hero__inner { min-height: 0; padding: 56px 28px 68px; text-align: center; }
  .p-hero__title { font-size: 25px; line-height: 1.7; }
  .p-hero__lead { font-size: 14px; margin-top: 18px; }
  .p-hero__eyebrow { margin-bottom: 12px; font-size: 11px; letter-spacing: .14em; }
  .p-hero__actions { margin-top: 28px; align-items: center; gap: 16px; }
  .p-hero__actions .c-btn { width: 100%; font-size: 14px; }
  .p-hero__sublink { font-size: 12.5px; }
  .p-hero__media img { aspect-ratio: 16 / 11; object-position: 72% center; }

  .p-case-top { padding: 16px 0 64px; }
  .p-case-top__foot { margin-top: 40px; }

  .p-concept { padding: 72px 0 0; }
  .p-concept__inner { grid-template-columns: 1fr; gap: 32px; }

  .p-concept__text { font-size: 14px; }
  .p-deco--right { margin-top: 44px; }

  .p-news-top { padding: 72px 0; }
  .p-news-top__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "head" "list" "btn";
    gap: 24px 0;
  }
  .p-news-top__button { margin-top: 4px; text-align: center; }
  .p-news-top__button .c-btn { width: 100%; max-width: 340px; font-size: 14px; }
  .p-news-top__button { margin-top: 20px; }

  .p-ecshop { padding: 44px 0 48px; }
  .p-ecshop__inner { grid-template-columns: 1fr; gap: 20px; }
  .p-ecshop__links {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
  }
  .p-ecshop__links:has(> :only-child),
  .p-ecshop__links:has(> :nth-child(2):last-child),
  .p-ecshop__links:has(> :nth-child(3):last-child),
  .p-ecshop__links:has(> :nth-child(4)) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .p-ecshop__list { gap: 10px; }
  /* SP：p-ecshop__list のみ4つ以上は2列（links は常に1列） */
  .p-ecshop__list:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-news-top { padding: 72px 0; }

  .p-lavender-block { border-radius: 0 0 50% 50% / 0 0 40px 40px; padding-bottom: 28px; }

  .p-biz__list { gap: 20px; }
  .p-biz__item { grid-template-columns: 1fr; }
  .p-biz__img img { min-height: 0; aspect-ratio: 16 / 9; }
  .p-biz__body { padding: 24px 22px 28px; }
  .p-biz__title { font-size: 19px; }
  .p-about-teaser__inner { grid-template-columns: 1fr; gap: 32px; }
  .p-about-teaser__figure { border-radius: 0 80px 0 0; }
  .p-about-teaser__title { font-size: 24px; }

  .p-section { padding: 72px 0; }
  .c-section-title { font-size: 24px; }
  .c-section-title + * { margin-top: 36px; }
  /* SPは1カラムになるため左寄せ見出しも中央に揃える */
  .c-section-title--left { align-items: center; text-align: center; }
  .home .p-split__head .c-section-title[data-en="CONCEPT"]::before,
  .home .p-news-top__head .c-section-title[data-en="NEWS"]::before,
  .home .p-services .c-section-title.c-section-title--left::before,
  .home .p-case-top .c-section-title::before,
  .editor-styles-wrapper .c-section-title[data-en="CONCEPT"].c-section-title--left::before,
  .editor-styles-wrapper .p-news-top__head .c-section-title[data-en="NEWS"].c-section-title--left::before,
  .editor-styles-wrapper .p-services .c-section-title.c-section-title--left::before,
  .editor-styles-wrapper .p-case-top .c-section-title::before {
    font-size: 24px;
  }
  .home .p-services .c-section-title.c-section-title--left,
  .home .p-case-top .c-section-title {
    margin-bottom: 36px;
  }
  .p-numbers__list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-numbers__num { font-size: 40px; }
  .p-reasons__list { grid-template-columns: 1fr; gap: 18px; }
  .p-flow__item { padding: 0 0 32px 74px; }
  .p-flow__step { width: 56px; height: 56px; }
  .p-flow__step-num { font-size: 20px; }
  .p-flow__item::before { left: 27px; }
  .p-flow__title { font-size: 16px; padding-top: 6px; }
  .c-btn--lg { min-width: 0; height: 60px; font-size: var(--f-base); }
  .p-cta__buttons { gap: 12px; }

  /* 導入事例 */
  .p-case { padding: 64px 0 80px; }
  .p-case__list { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .p-case-related__list { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .p-case-detail { padding: 48px 0 80px; }
  .p-case-detail__title { font-size: 22px; }
  .c-case-summary { padding: 24px 22px; }
  .c-case-block { margin-top: 44px; }
  .c-case-block__title { font-size: 19px; }
  .c-quote { padding: 26px 22px; }
  .p-case-related { padding: 72px 0 0; }

  /* お役立ち情報 */
  .p-tips { padding: 64px 0 80px; }
  .p-tips__list { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .p-tips-related { padding: 64px 0 80px; }
  .p-tips-detail { padding: 48px 0 80px; }
}

@media screen and (max-width: 560px) {
  body { font-size: 14px; }
  .p-numbers__list { grid-template-columns: 1fr; }

  .p-case__list,
  .p-case-related__list,
  .p-tips__list { grid-template-columns: 1fr; gap: 44px; }
  .p-cta__title { font-size: 22px; }
}

@media screen and (max-width: 400px) {
  .l-header__cta--mobile {
    font-size: 11px;
    padding-inline: 12px;
  }
}

/* ==========================================================================
   7. WordPress ブロック出力用
   静的HTMLのクラス設計を、ブロックが出力するマークアップへ橋渡しする。
   ========================================================================== */

/* --- セクション背景（ラッパーブロックを使わず、各ブロックの属性で付与） --- */
.p-section--lavender { background: linear-gradient(180deg, #fff 0%, #f4f3fa 100%); }
.p-section--curve { border-radius: 0 0 50% 50% / 0 0 90px 90px; }
/* 導入事例0件時のフォールバックdiv（このクラスは0件時にしか出力されない）は非表示 */
.p-lavender-tail { display: none; }

/* 帯が連続するときは、間の境目を消す */
.p-section--lavender + .p-section--lavender { background: #f4f3fa; margin-top: -1px; }

/* --- 画像＋本文（事業詳細・会社理念・代表メッセージ） --- */
.p-media-text { padding: 78px 0 88px; }
.p-media-text__inner {
  display: grid;
  grid-template-columns: 48% 1fr;
  gap: 76px;
  align-items: center;
  width: 100%;
  max-width: calc(var(--w-default) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.p-media-text__figure { overflow: hidden; margin: 0; }
.p-media-text__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.p-media-text--left .p-media-text__figure { border-radius: 220px 0 0 0; }
.p-media-text--right .p-media-text__figure { border-radius: 0 220px 0 0; }
.p-media-text__body h2 {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--c-ink-strong);
  margin: 0 0 32px;
  position: relative;
  padding-bottom: 26px;
}
.p-media-text__body h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--c-gold);
}
.p-media-text__body p { font-size: var(--f-base); line-height: 2.1; margin: 0 0 16px; }
.p-media-text__body ul li { font-size: var(--f-base); line-height: 2.1; }

/* --- 項目リスト（カード表示＝選ばれる理由 / サービス一覧） --- */
.p-feature-list--card .p-reasons__list { counter-reset: fgc-item; }
.p-feature-list--card .p-feature-item {
  width: 100%;
  counter-increment: fgc-item;
  background: var(--c-white);
  border-radius: 14px;
  padding: 34px 28px 32px;
  box-shadow: 0 4px 20px rgba(90, 60, 90, .06);
  transition: transform .3s, box-shadow .3s;
}
.p-feature-list--card .p-feature-item:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(90, 60, 90, .12); }
.p-feature-list--card .p-feature-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-ink-strong);
  font-family: var(--f-serif-en);
  font-size: 20px;
  font-weight: 600;
}
.p-feature-list--card .p-feature-item__num::before { content: counter(fgc-item, decimal-leading-zero); }
.p-feature-list--card .p-reasons__list[data-number="0"] .p-feature-item__num { display: none; }
.p-feature-list--card .p-feature-item__title {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--c-ink-strong);
}
.p-feature-list--card .p-reasons__list[data-number="0"] .p-feature-item__title { margin-top: 0; }
.p-feature-list--card .p-feature-item__text { margin: 12px 0 0; font-size: 14px; line-height: 1.9; }
.p-reasons__list[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }

/* --- 項目リスト（ステップ表示＝導入までの流れ） --- */
.p-feature-list--step .p-flow__list { counter-reset: fgc-step; }
.p-feature-list--step .p-feature-item {
  position: relative;
  counter-increment: fgc-step;
  padding: 0 0 40px 108px;
}
.p-feature-list--step .p-feature-item:last-child { padding-bottom: 0; }
.p-feature-list--step .p-feature-item::before {
  content: "";
  position: absolute;
  left: 35px; top: 14px; bottom: -14px;
  width: 1px;
  background: var(--c-lavender);
}
.p-feature-list--step .p-feature-item:last-child::before { display: none; }
.p-feature-list--step .p-feature-item__num {
  position: absolute;
  left: 0; top: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-family: var(--f-serif-en);
  font-size: 26px;
  font-weight: 600;
  color: var(--c-pink);
}
.p-feature-list--step .p-feature-item__num::before {
  content: "STEP";
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-gray);
}
.p-feature-list--step .p-feature-item__num::after { content: counter(fgc-step, decimal-leading-zero); }
.p-feature-list--step .p-feature-item__title {
  margin: 0;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-ink-strong);
}
.p-feature-list--step .p-feature-item__text { margin: 8px 0 0; font-size: 14px; line-height: 1.9; }


/* --- 見出し＋本文の2カラム（fgc/section-split） ---
   CONCEPT・企業情報・沿革で共用。見出しと本文を同じグリッドに入れることで
   2カラムを保つ。1カラムに切り替えると見出しの下に本文が並ぶ。 */
.p-split { padding: 96px 0; }
.p-split__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 70px;
  align-items: start;
}
.p-split--stack .p-split__inner { grid-template-columns: 1fr; gap: 40px; }
.p-split__head .c-section-title { margin: 0; }
.p-split__head .c-section-title + * { margin-top: 0; }
.p-split__body > * { margin-block: 0 22px; }
.p-split__body > *:last-child { margin-bottom: 0; }
/* section-split 内の def-table は帯余白を持たない（親の p-split が担当） */
.p-split__body > .p-def-table,
.p-split__body > .wp-block-fgc-def-table { padding: 0; }
.p-split__body p { font-size: var(--f-base); line-height: 2.2; letter-spacing: .04em; }
.p-split__body .wp-block-buttons { margin-top: 34px; }
/* section-split 内ボタン：NEWS と同じ矢印 */
.p-split__body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* （直後に一筆書き音符が続く場合の余白詰めは .p-split + .p-deco--right で定義済み） */

@media screen and (max-width: 900px) {
  .p-split { padding: 72px 0; }
  .p-split__inner { grid-template-columns: 1fr; gap: 32px; }
  /* SPは1カラムになるため見出しを中央に揃える */
  .p-split__head .c-section-title--left { text-align: center; }
  .p-split__body p { font-size: 14px; }
}


/* --- 編集画面：InnerBlocks のラッパー対策 ---
   useInnerBlocksProps でクラスは正しい要素に付くが、
   WordPressのバージョン差でラッパーが挟まった場合にもレイアウトが崩れないようにする。 */
.p-services__list > .block-editor-inner-blocks,
.p-services__list > .block-editor-inner-blocks > .block-editor-block-list__layout,
.p-reasons__list > .block-editor-inner-blocks,
.p-reasons__list > .block-editor-inner-blocks > .block-editor-block-list__layout,
.p-flow__list > .block-editor-inner-blocks,
.p-flow__list > .block-editor-inner-blocks > .block-editor-block-list__layout,
.p-ecshop__links > .block-editor-inner-blocks,
.p-ecshop__links > .block-editor-inner-blocks > .block-editor-block-list__layout,
.c-deflist > .block-editor-inner-blocks,
.c-deflist > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: contents;
}

/* 編集画面でカード内の余白が潰れないように */
.editor-styles-wrapper .p-feature-item,
.editor-styles-wrapper .p-service { margin-block: 0; }

/* 編集画面：見出しの装飾疑似要素が RichText のクリックを妨げないようにする */
.editor-styles-wrapper .c-section-title::before,
.editor-styles-wrapper .c-section-title::after {
  pointer-events: none;
}

.editor-styles-wrapper .c-deflist__data > *:last-child {
  margin-bottom: 0;
  margin-block-end: 0;
}

.editor-styles-wrapper .c-deflist__data iframe,
.editor-styles-wrapper .c-map iframe,
.editor-styles-wrapper .wp-block-embed__wrapper iframe {
  pointer-events: none;
}

/* 編集画面：段落・リストはブロック間の余白を確保（:where で詳細度を下げ、各ブロック側の指定を優先させる） */
.editor-styles-wrapper :where(p, ul, ol, .wp-block-paragraph, .wp-block-list) {
  margin-block: 0 1em;
}
.editor-styles-wrapper :is(ul, ol) {
  padding-inline-start: 1.8em;
  list-style-position: outside;
}
.editor-styles-wrapper :is(ul, ol) > li,
.editor-styles-wrapper .wp-block-list-item {
  display: list-item;
}
.editor-styles-wrapper .p-links__list,
.editor-styles-wrapper .p-services__list,
.editor-styles-wrapper .p-ecshop__links { padding-inline-start: 0; }

/* 編集画面キャンバス：本文リンク（フロントと同じピンク＋外部リンクアイコン） */
.editor-styles-wrapper a:not(
  .c-btn,
  .p-service__main,
  .p-service__ext,
  .p-ecshop__link,
  .p-news__link,
  .p-case-card,
  .p-tips-card__link,
  .ez-toc-link,
  .p-hero__sublink,
  .p-cta__shop-link,
  .p-cta__tel-num,
  .page-numbers,
  .wp-block-button__link,
  .p-links__cta
) {
  color: var(--c-pink);
}
.editor-styles-wrapper a:not(
  .c-btn,
  .p-service__main,
  .p-service__ext,
  .p-ecshop__link,
  .p-news__link,
  .p-case-card,
  .p-tips-card__link,
  .ez-toc-link,
  .p-hero__sublink,
  .p-cta__shop-link,
  .p-cta__tel-num,
  .page-numbers,
  .wp-block-button__link,
  .p-links__cta
):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 編集画面：section-split 内ボタンに矢印プレビュー（フロントは PHP で SVG 注入） */
.editor-styles-wrapper .p-split__body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.editor-styles-wrapper .p-split__body .wp-block-button__link:not(:has(.c-btn__arrow))::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 10px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .25s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.editor-styles-wrapper .p-split__body .wp-block-button__link:hover::after,
.editor-styles-wrapper .p-split__body .wp-block-button__link:focus-visible::after {
  transform: translate3d(4px, 0, 0);
}

.editor-styles-wrapper a[target="_blank"]:not(
  .c-btn,
  .p-service__main,
  .p-service__ext,
  .p-ecshop__link,
  .p-news__link,
  .p-case-card,
  .p-tips-card__link,
  .ez-toc-link,
  .p-hero__sublink,
  .p-cta__shop-link,
  .p-cta__tel-num,
  .page-numbers,
  .wp-block-button__link,
  .p-links__cta
)::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: -0.15em;
  background-color: var(--c-pink);
  mask: url("../img/icon-blank.svg") no-repeat center / contain;
  -webkit-mask: url("../img/icon-blank.svg") no-repeat center / contain;
}

/* 編集画面：ページから自動取得される項目の表示 */
.fgc-auto-field { color: #9a9aa5; font-weight: 400; }
.editor-styles-wrapper .p-service__name:has( .fgc-auto-field ),
.editor-styles-wrapper .p-service__desc:has( .fgc-auto-field ) { opacity: .85; }

/* 連続する帯の2枚目以降は上の余白を詰める */
.p-section--lavender + .p-section--lavender.p-case-top { padding-top: 20px; }

/* --- 編集画面用のプレースホルダー（動的ブロック） --- */
.fgc-editor-placeholder {
  border: 1px dashed #c3c4c7;
  border-radius: 6px;
  padding: 20px 22px;
  background: #f6f7f7;
  font-size: 13px;
  line-height: 1.9;
}
.fgc-editor-placeholder strong { display: block; margin-bottom: 4px; color: var(--c-pink); }
.fgc-editor-placeholder p { margin: 0; }

/* --- WordPressの標準クラス --- */
.wp-block-quote { margin: 0; color: var(--c-pink); }
.c-article .wp-block-image img { width: 100%; max-width: 440px; height: auto; }
.c-article .wp-block-quote.is-style-customer {
  margin: 32px 0;
  padding: 26px 30px;
  border: 1px solid var(--c-lavender);
  border-radius: 12px;
  background: var(--c-white);
}
.c-article .wp-block-quote.is-style-customer cite { display: block; margin-top: 12px; font-size: 13px; color: var(--c-gray); font-style: normal; text-align: right; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ページャー（paginate_links の list 出力） */
.c-pagination,
.p-news .page-numbers,
.p-case .page-numbers { list-style: none; }
ul.page-numbers {
  margin: 46px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  list-style: none;
}
ul.page-numbers li { margin: 0; }
ul.page-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--c-ink);
}
ul.page-numbers .page-numbers.current { background: #4d4d4d; border-color: #4d4d4d; color: var(--c-white); }
ul.page-numbers a.page-numbers:hover { border-color: var(--c-pink); color: var(--c-pink); }

@media screen and (max-width: 900px) {
  .p-media-text { padding: 56px 0 64px; }
  .p-media-text__inner { grid-template-columns: 1fr; gap: 32px; }
  .p-media-text--left .p-media-text__figure { border-radius: 80px 0 0 0; }
  .p-media-text--right .p-media-text__figure { border-radius: 0 80px 0 0; order: -1; }
  .p-media-text__figure img { aspect-ratio: 16/9; }
  .p-media-text__body h2 { font-size: 24px; }
  .p-reasons__list[data-columns="2"] { grid-template-columns: 1fr; }
  .p-section--curve { border-radius: 0 0 50% 50% / 0 0 40px 40px; }
  .p-feature-list--step .p-feature-item { padding: 0 0 32px 74px; }
  .p-feature-list--step .p-feature-item__num { width: 56px; height: 56px; font-size: 20px; }
  .p-feature-list--step .p-feature-item::before { left: 27px; }
}

/* --- 見出しを内蔵した帯（feature-list / def-table）：モバイル --- */
@media screen and (max-width: 767px) {
  .p-feature-list--headed,
  .p-def-table--headed { padding-top: 64px; padding-bottom: 64px; }
  .p-feature-list--headed .c-section-title + *,
  .p-def-table--headed .c-section-title + * { margin-top: 40px; }
}

/* --- 音符の装飾（.p-deco）：モバイル。音符を0.7倍に縮小し、右線の高さも合わせる --- */
@media (max-width: 767px) {
  /* モバイルは各音符をさらに半分に（それぞれのデスクトップ寸法の半分） */
  .p-pagehead { --pagehead-deco-note-w: 100px; }
  .p-deco { height: 90px; --deco-note-w: 180px; --deco-line-r: 41.4px; }               /* 404/thanks（--both） */
  .p-deco--right { height: 45px; --deco-note-w: 90px; --deco-line-r: 20.7px; }          /* TOP */
  .p-pagehead > .p-deco { height: 50px; --deco-line-r: 23px; }    /* ページ見出し */
  /* 音符の幅は --deco-note-w、高さは .p-deco の高さ（100%）に追従するため個別指定は不要 */
}

/* --- 事業カード（.p-services / .p-service）：モバイル --- */
@media (max-width: 767px) {
  .p-services { padding-block: 64px; }
  .p-services__list { grid-template-columns: 1fr; grid-template-rows: none; margin-top: 44px; gap: 44px; }
  .p-service { display: flex; grid-row: auto; }
  .p-service__main { display: flex; grid-row: auto; }
  .p-service__head { padding: 20px 20px 0; }
  .p-service__foot { padding: 12px 20px 18px; }
  .p-service__name { font-size: 19px; }
  .p-service__ext { padding: 14px 20px; }
}
