/* ==========================================================
   自動生成（06_wordpress/_tools/build_wp.py）— 手で直さない
   元：05_coding/assets/css/pages/sensu.css
   変更点：各セレクタの頭に :is(.kk-wp, .editor-styles-wrapper) を足しただけ（値は同じ）。.kk-wp は SWELL の #body_wrap に付く
   SWELL の .post_content h2 などより詳細度を上げ、管理画面のエディタにも同じ見た目を出すため
   ========================================================== */
/* ==========================================================
   pages/sensu.css — 47扇子プロジェクト（.kk-p-sensu-*）
   Figma：Design/sensu/PC 56:6533・SP 56:6655（ページヘッダー 56:6633 / 56:6748、本文 56:6548）
   本文の枠は components.css 33（.kk-c-entry）。ここは現行ページにしかない要素だけ
   ========================================================== */
/* ---------- 導入（現行ヒーローの文言） ---------- */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-intro__catch {
  font-family: var(--kk-ff-mincho);
  font-size: var(--kk-fs-h2);            /* 40/60 ・ SP 25/37.5 */
  font-weight: var(--kk-fw-heading);
  letter-spacing: var(--kk-ls-heading);
  line-height: var(--kk-lh-heading);
  color: var(--kk-color-text);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-intro__note {
  font-size: var(--kk-fs-small);
  letter-spacing: var(--kk-ls-caption);
  line-height: var(--kk-lh-small);
  color: var(--kk-color-label-gold);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-intro__en {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--kk-color-border);
  font-family: var(--kk-ff-en);
  font-size: var(--kk-fs-label);
  font-weight: var(--kk-fw-en-medium);
  letter-spacing: var(--kk-ls-label);
  line-height: var(--kk-lh-label);
  color: var(--kk-color-text-faint);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-intro__en span:nth-child(2) { color: var(--kk-color-accent); }

/* ---------- 仕上げ・循環の枠 ---------- */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-finish { margin-top: 16px; }

/* 職人技の写真（2026-10-26：ケースの写真。白い背景の商品写真なので、枠も白に） */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-photo { overflow: hidden; background: #fff; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 扇面の表・裏（2026-10-26）：つまみ・ボタンで扇子を裏返す。角度は --kk-flip（0＝表、1＝裏。common.js の [data-kk-flip]） */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip { display: flex; flex-direction: column; gap: 12px; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__stage { position: relative; aspect-ratio: 900 / 548; perspective: 1200px; background: var(--kk-color-base-sub); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__face { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; backface-visibility: hidden; transition: transform 0.7s var(--kk-ease-base); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__face--front { transform: rotateY(calc(var(--kk-flip, 0) * 180deg)); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__face--back { transform: rotateY(calc(var(--kk-flip, 0) * 180deg - 180deg)); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip.is-dragging .kk-p-sensu-flip__face { transition: none; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__stage[data-kk-flip-toggle] { cursor: pointer; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__stage[data-kk-flip-toggle]:focus-visible { outline: 2px solid var(--kk-color-main); outline-offset: 4px; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__controls { display: flex; align-items: center; gap: 12px; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__side { flex: none; padding: 4px 0; font-size: var(--kk-fs-caption); letter-spacing: var(--kk-ls-caption); line-height: var(--kk-lh-label); color: var(--kk-color-text-muted); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__side[aria-pressed="true"] { color: var(--kk-color-accent-light); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__range { flex: 1; min-width: 0; margin: 0; accent-color: var(--kk-color-main); cursor: pointer; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__hint { font-size: var(--kk-fs-caption); letter-spacing: var(--kk-ls-caption); line-height: var(--kk-lh-label); color: var(--kk-color-text-faint); }
@media (prefers-reduced-motion: reduce) {
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flip__face { transition: none; }
}
/* 四つの色と裏面の柄 */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-colors { display: flex; flex-direction: column; margin: 4px 0 0; border-top: 1px solid var(--kk-color-border); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-colors__row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--kk-color-border); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-colors dt { font-family: var(--kk-ff-heading); font-size: var(--kk-fs-small); letter-spacing: var(--kk-ls-body); line-height: var(--kk-lh-small); color: var(--kk-color-text); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-colors dt small { display: block; font-family: var(--kk-ff-base); font-size: 11px; color: var(--kk-color-text-faint); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-colors dd { margin: 0; font-size: var(--kk-fs-caption); letter-spacing: var(--kk-ls-body); line-height: var(--kk-lh-small); color: var(--kk-color-text-sub); }

/* ---------- 二人の職人（2026-10-26） ---------- */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker { display: flex; flex-direction: column; gap: 12px; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__photo { aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; background: var(--kk-color-base-sub); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__photo--portrait img { object-position: 50% 28%; }  /* 縦の写真：顔と手元が入るように */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__role { font-size: var(--kk-fs-small); letter-spacing: var(--kk-ls-body); line-height: var(--kk-lh-small); color: var(--kk-color-label-gold); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__career { display: flex; flex-direction: column; margin: 4px 0; padding: 0; list-style: none; border-top: 1px solid var(--kk-color-border); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__career li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--kk-color-border); font-size: var(--kk-fs-small); letter-spacing: var(--kk-ls-body); line-height: var(--kk-lh-small); color: var(--kk-color-text-sub); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-maker__career span { font-family: var(--kk-ff-en); font-weight: var(--kk-fw-en-medium); color: var(--kk-color-accent); }

/* ---------- 商品ライン ---------- */
/* スタンダードラインの写真：自動で横に流れ続ける（2026-10-26 ユーザー指示：スクロール連動ではなく横スクロールのアニメーション）
   写真の列を2回並べ、半分（1回分）動かしてつなぎ目なくループ。マウスを乗せている間・フォーカス中は止まる
   動きを減らす設定のときは動かさず、指・ホイールで横スクロールして見られる */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase { overflow: hidden; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: kk-sensu-marquee 48s linear infinite; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase:hover .kk-p-sensu-showcase__track,
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase:focus-within .kk-p-sensu-showcase__track { animation-play-state: paused; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__item { flex: none; width: clamp(260px, 36vw, 520px); aspect-ratio: 4 / 3; margin-right: 24px; overflow: hidden; background: var(--kk-color-base-sub); }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__caption { margin-top: -8px; font-size: var(--kk-fs-caption); letter-spacing: var(--kk-ls-caption); line-height: var(--kk-lh-label); color: var(--kk-color-text-muted); }
@keyframes kk-sensu-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase { overflow-x: auto; scroll-snap-type: x mandatory; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__track { animation: none; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__item { scroll-snap-align: start; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__item[aria-hidden="true"] { display: none; }
}
@media (max-width: 760px) {
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__track { animation-duration: 36s; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-showcase__item { width: 78vw; margin-right: 12px; }
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-tagline {
  font-size: var(--kk-fs-small);
  letter-spacing: var(--kk-ls-body);
  line-height: var(--kk-lh-small);
  color: var(--kk-color-accent);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-price {
  margin-top: 8px;
  font-family: var(--kk-ff-en);
  font-size: var(--kk-fs-number-l);      /* 40 ・ SP 32 */
  font-weight: var(--kk-fw-en-medium);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--kk-color-accent);   /* 2026-10-26 ユーザー指示：金額はオレンジ */
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-price small {
  margin-inline: 2px 6px;
  font-family: var(--kk-ff-base);
  font-size: var(--kk-fs-small);
  font-weight: var(--kk-fw-regular);
  letter-spacing: var(--kk-ls-body);
  color: var(--kk-color-text-sub);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-price-note {
  font-size: var(--kk-fs-caption);
  letter-spacing: var(--kk-ls-caption);
  line-height: var(--kk-lh-label);
  color: var(--kk-color-text-faint);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-uses {
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--kk-color-border);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-uses li {
  font-size: var(--kk-fs-small);
  letter-spacing: var(--kk-ls-body);
  line-height: var(--kk-lh-small);
  color: var(--kk-color-text-sub);
}

/* OEM：左に説明・右に対象とリンク */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: end;
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem__main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem__main .kk-c-feature__title,
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem__main .kk-c-feature__body { margin-top: 0; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem__side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem__target {
  font-size: var(--kk-fs-small);
  letter-spacing: var(--kk-ls-body);
  line-height: var(--kk-lh-small);
  color: var(--kk-color-text);
}

/* ---------- BEYOND THE PRODUCT ---------- */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-story-number {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--kk-ff-en);
  font-size: 96px; /* Figma に指定なし（現行ページの装飾数字）。tokens に該当値なし */
  font-weight: var(--kk-fw-en-medium);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--kk-color-accent);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-story-number span {
  font-size: var(--kk-fs-label);
  letter-spacing: var(--kk-ls-label);
  color: var(--kk-color-label-gold);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flow li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--kk-ff-heading);
  font-size: var(--kk-fs-h4);
  font-weight: var(--kk-fw-heading);
  letter-spacing: var(--kk-ls-card);
  line-height: 1.6;
  color: var(--kk-color-text);
}
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flow li + li::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--kk-color-main);
}

/* ---------- 締め ---------- */
:is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-closing { scroll-margin-top: calc(var(--kk-header-h) + 24px); }

/* ---------- SP ---------- */
@media (max-width: 760px) {
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-oem { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-story-number { font-size: 64px; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flow { gap: 8px; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flow li { font-size: var(--kk-fs-theme); gap: 8px; }
  :is(.kk-wp, .editor-styles-wrapper) .kk-p-sensu-flow li + li::before { width: 16px; }
}
