@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============================================================
   Custom Template: yakushi（えごま搾油のやくし食品 / サクセストレード）
   サブオプション A（特注 TOP）+ C（共通 Chrome）
   すべて [data-template="custom-yakushi"] スコープに閉じ込め
   ============================================================ */

[data-template="custom-yakushi"] {
  /* ── ブランドカラー（えごま＝深緑 / 搾油＝黄金 / 生成り） ── */
  --yk-green:        #3c5a3e;  /* えごまの葉・深緑 */
  --yk-green-dark:   #2b4430;  /* ヘッダー/フッター */
  --yk-green-deep:   #1f3324;  /* ヒーロー最暗部 */
  --yk-gold:         #c2982f;  /* 搾りたての黄金 */
  --yk-gold-light:   #e3c473;  /* 黄金ハイライト */
  --yk-cream:        #faf6ea;  /* 生成りの背景 */
  --yk-cream-alt:    #f1ead4;  /* セクション交互背景 */
  --yk-text:         #2e2a22;
  --yk-text-light:   #6a6452;
  --yk-border:       #e3dcc4;

  --yk-serif: 'Noto Serif JP', serif;
  --yk-sans:  'Noto Sans JP', sans-serif;

  background: var(--yk-cream);
  color: var(--yk-text);
  font-family: var(--yk-sans);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

[data-template="custom-yakushi"] h1,
[data-template="custom-yakushi"] h2,
[data-template="custom-yakushi"] h3 {
  font-family: var(--yk-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── レイアウト補助 ───────────────────────────────────────── */
[data-template="custom-yakushi"] .yk-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* セクション内側：中央寄せ */
[data-template="custom-yakushi"] .yk-section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 2.5rem;
}

[data-template="custom-yakushi"] .yk-section {
  padding: 4.5rem 0;
}
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-section {
    padding: 7rem 0;
  }
}

/* ── セクション見出し ─────────────────────────────────────── */
[data-template="custom-yakushi"] .yk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--yk-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yk-gold);
}
[data-template="custom-yakushi"] .yk-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--yk-gold);
}

[data-template="custom-yakushi"] .yk-heading {
  font-size: 1.7rem;
  line-height: 1.5;
  color: var(--yk-green);
  margin: 0.6rem 0 0;
}
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-heading {
    font-size: 2.25rem;
  }
}
/* 見出しを 2pt 大きく・太字にする修飾（yk-heading と併用） */
[data-template="custom-yakushi"] .yk-heading--lg {
  font-size: calc(1.7rem + 2pt);
  font-weight: 800;
}
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-heading--lg {
    font-size: calc(2.25rem + 2pt);
  }
}
/* 見出しを 2pt 大きくするだけの修飾（太さは変えない） */
[data-template="custom-yakushi"] .yk-heading--big {
  font-size: calc(1.7rem + 2pt);
}
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-heading--big {
    font-size: calc(2.25rem + 2pt);
  }
}

/* ── ヒーロー ──────────────────────────────────────────────── */
[data-template="custom-yakushi"] .yk-hero {
  position: relative;
  min-height: 100vh;
  margin-top: -128px;        /* 固定ヘッダー分を打ち消し動画を天井まで敷く＋第二階層の上余白を半行詰める */
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 72% 30%, rgba(194, 152, 47, 0.32), transparent 70%),
    linear-gradient(160deg, var(--yk-green) 0%, var(--yk-green-deep) 100%);
}
/* 背景動画レイヤー（5 本クロスフェード） */
[data-template="custom-yakushi"] .yk-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--yk-green-deep) center / cover no-repeat;
}
[data-template="custom-yakushi"] .yk-hero-video,
[data-template="custom-yakushi"] .yk-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.7s ease-in-out;
  will-change: opacity, transform;
}
[data-template="custom-yakushi"] .yk-hero-video.is-active,
[data-template="custom-yakushi"] .yk-hero-img.is-active {
  opacity: 1;
}
/* 画像：ゆっくりズーム（フェードと同時に transform をトランジション）
   --in＝ズームイン（1→1.12）/ --out＝ズームアウト（1.12→1） */
[data-template="custom-yakushi"] .yk-hero-img {
  transition: opacity 1.7s ease-in-out, transform 6.5s ease-in-out;
}
[data-template="custom-yakushi"] .yk-hero-img--in            { transform: scale(1); }
[data-template="custom-yakushi"] .yk-hero-img--in.is-active  { transform: scale(1.12); }
[data-template="custom-yakushi"] .yk-hero-img--out           { transform: scale(1.12); }
[data-template="custom-yakushi"] .yk-hero-img--out.is-active { transform: scale(1); }
/* テキスト可読性のためのスクリム（緑はかぶせず、中立色で最小限） */
[data-template="custom-yakushi"] .yk-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.22) 52%,
    rgba(0, 0, 0, 0.06) 100%
  );
}
[data-template="custom-yakushi"] .yk-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  /* 左端をヘッダーのタイトルロゴ位置（padding 1.25rem）に合わせる */
  padding: 0 2.5rem;
  /* 中央配置から約2行分ほど上に */
  transform: translateY(-4.5rem);
}
[data-template="custom-yakushi"] .yk-hero-title {
  font-size: 2.4rem;
  line-height: 1.55;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 4px 24px rgba(0, 0, 0, 0.45);
}
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-hero-title {
    font-size: 3.6rem;
  }
}
[data-template="custom-yakushi"] .yk-hero-accent {
  color: var(--yk-gold-light);
}

/* ヒーロー見出し：1 文字ずつ・ときどき波打つウェーブアニメ */
[data-template="custom-yakushi"] .yk-wave-char {
  display: inline-block;
  animation: yk-wave 9s ease-in-out infinite;
}
@keyframes yk-wave {
  0%, 82%, 100% { transform: translateY(0); }
  88%           { transform: translateY(-0.32em); }
  94%           { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-wave-char { animation: none; }
}
[data-template="custom-yakushi"] .yk-drop {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin: 0 0.08em;
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--yk-gold-light), var(--yk-gold));
  box-shadow: 0 0 16px rgba(227, 196, 115, 0.7);
  vertical-align: middle;
}

/* スクロール誘導 */
[data-template="custom-yakushi"] .yk-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
}
[data-template="custom-yakushi"] .yk-scroll-cue span {
  width: 2px;
  height: 3.4rem;
  background: linear-gradient(to bottom, var(--yk-gold-light), transparent);
  animation: yk-cue 2s ease-in-out infinite;
}
@keyframes yk-cue {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── ボタン ────────────────────────────────────────────────── */
[data-template="custom-yakushi"] .yk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
[data-template="custom-yakushi"] .yk-btn-gold {
  background: linear-gradient(135deg, var(--yk-gold-light), var(--yk-gold));
  color: var(--yk-green-deep);
  box-shadow: 0 10px 24px -8px rgba(194, 152, 47, 0.65);
}
[data-template="custom-yakushi"] .yk-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(194, 152, 47, 0.8);
}
[data-template="custom-yakushi"] .yk-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
[data-template="custom-yakushi"] .yk-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
[data-template="custom-yakushi"] .yk-btn-green {
  background: var(--yk-green);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(60, 90, 62, 0.7);
}
[data-template="custom-yakushi"] .yk-btn-green:hover {
  transform: translateY(-2px);
  background: var(--yk-green-dark);
}
[data-template="custom-yakushi"] .yk-btn-black {
  background: #1a1a1a;
  color: var(--yk-gold-light);
  border: 2px solid var(--yk-gold);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
[data-template="custom-yakushi"] .yk-btn-black:hover {
  transform: translateY(-2px);
  background: #000;
  border-color: var(--yk-gold-light);
}

/* えごま油とは：写真のやさしいアニメーション（ゆっくり呼吸ズーム） */
[data-template="custom-yakushi"] .yk-about-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}
[data-template="custom-yakushi"] .yk-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: yk-about-float 16s ease-in-out infinite;
}
@keyframes yk-about-float {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-about-photo img { animation: none; }
}

/* ── 2枚の画像を交互にクロスフェード ───────────────────────── */
@keyframes yk-xfade {
  0%   { opacity: 0; }
  40%  { opacity: 0; }
  50%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}
/* 汎用クロスフェード（コールドプレス画像など。下が基準・上がフェード）
   さりげなくズーム（ケンバーンズ）も併用 */
[data-template="custom-yakushi"] .yk-xfade { position: relative; }
[data-template="custom-yakushi"] .yk-xfade > img {
  display: block;
  width: 100%;
  height: auto;
  animation: yk-about-float 16s ease-in-out infinite;
}
[data-template="custom-yakushi"] .yk-xfade > img.yk-xfade-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: yk-about-float 16s ease-in-out infinite, yk-xfade 9s ease-in-out infinite;
}
/* about-photo 内のクロスフェード（ケンバーンズと併用） */
[data-template="custom-yakushi"] .yk-about-photo img.yk-xfade-top {
  position: absolute;
  inset: 0;
  animation: yk-about-float 16s ease-in-out infinite, yk-xfade 9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-xfade > img { animation: none; }
  [data-template="custom-yakushi"] .yk-xfade > img.yk-xfade-top,
  [data-template="custom-yakushi"] .yk-about-photo img.yk-xfade-top { animation: none; opacity: 0; }
}

/* ── 3枚クロスフェード（about-photo 内・ケンバーンズ併用） ───────── */
@keyframes yk-xfade3 {
  0%       { opacity: 1; }
  25%      { opacity: 1; }
  33.333%  { opacity: 0; }
  91.666%  { opacity: 0; }
  100%     { opacity: 1; }
}
[data-template="custom-yakushi"] .yk-about-photo .yk-xfade3 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: yk-about-float 18s ease-in-out infinite, yk-xfade3 18s ease-in-out infinite;
}
[data-template="custom-yakushi"] .yk-about-photo .yk-xfade3:nth-child(1) { animation-delay: 0s, 0s; }
[data-template="custom-yakushi"] .yk-about-photo .yk-xfade3:nth-child(2) { animation-delay: -12s, -12s; }
[data-template="custom-yakushi"] .yk-about-photo .yk-xfade3:nth-child(3) { animation-delay: -6s, -6s; }
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-about-photo .yk-xfade3 { animation: none; }
  [data-template="custom-yakushi"] .yk-about-photo .yk-xfade3:nth-child(n+2) { opacity: 0; }
}

/* ── ヒーロー主CTA「えごま搾油サービス」黒背景＋アニメーション金枠（横長・低め） ── */
[data-template="custom-yakushi"] .yk-cta-press {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  padding: 2.5px;                 /* 金枠の太さ */
  border-radius: 12px;
  background: linear-gradient(
    115deg,
    #e3c473 0%, #c2982f 24%, #6f5419 48%, #e3c473 72%, #c2982f 100%
  );
  background-size: 300% 100%;
  animation: yk-cta-border 4.5s linear infinite;
  box-shadow: 0 12px 32px -12px rgba(194, 152, 47, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-template="custom-yakushi"] .yk-cta-press:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -12px rgba(227, 196, 115, 0.8);
}
@keyframes yk-cta-border {
  0%   { background-position:   0% 0; }
  100% { background-position: 300% 0; }
}
[data-template="custom-yakushi"] .yk-cta-press-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: #0b0b0b;
  border-radius: 9.5px;
  padding: 1rem 2rem;
  text-align: center;
}
[data-template="custom-yakushi"] .yk-cta-press-title {
  font-family: var(--yk-serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.05em;
}
/* タイトル内「えごま搾油」：少し大きく・金色アニメーション文字 */
[data-template="custom-yakushi"] .yk-cta-press-accent {
  font-size: 1.22em;
  font-weight: 700;
  background: linear-gradient(
    115deg,
    #f3dca0 0%, #e3c473 22%, #c2982f 46%, #f3dca0 68%, #c2982f 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: yk-cta-border 4.5s linear infinite;
}
/* タイトルとサブ文の間：金色アニメの細いライン */
[data-template="custom-yakushi"] .yk-cta-press-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.35rem 0;
  border-radius: 1px;
  background: linear-gradient(
    115deg,
    #f3dca0 0%, #c2982f 24%, #6f5419 48%, #f3dca0 72%, #c2982f 100%
  );
  background-size: 300% 100%;
  animation: yk-cta-border 4.5s linear infinite;
}
[data-template="custom-yakushi"] .yk-cta-press-sub {
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-cta-press-inner {
    padding: 1.35rem 2.8rem;
  }
  [data-template="custom-yakushi"] .yk-cta-press-title { font-size: 1.5rem; }
  [data-template="custom-yakushi"] .yk-cta-press-sub   { font-size: 0.82rem; }
}
/* クリック誘導カーソル：ボタン右下でときどきタップ＋波紋 */
[data-template="custom-yakushi"] .yk-cta-cursor {
  position: absolute;
  right: 34px;
  bottom: -16px;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.25s ease;
}
[data-template="custom-yakushi"] .yk-cta-press:hover .yk-cta-cursor {
  opacity: 0;   /* ホバー中はヒント不要 */
}
[data-template="custom-yakushi"] .yk-cta-cursor-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 20% 10%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
  animation: yk-cta-tap 3s ease-in-out infinite;
}
@keyframes yk-cta-tap {
  0%, 55%, 100% { transform: translateY(0) scale(1); }
  70%           { transform: translateY(-8px) scale(1.05); }
  82%           { transform: translateY(0) scale(0.88); }
  90%           { transform: translateY(0) scale(1); }
}
[data-template="custom-yakushi"] .yk-cta-cursor-ripple {
  position: absolute;
  left: 22%;
  top: 14%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--yk-gold-light);
  opacity: 0;
  animation: yk-cta-ripple 3s ease-out infinite;
}
@keyframes yk-cta-ripple {
  0%, 78% { transform: scale(0.3); opacity: 0; }
  83%     { transform: scale(0.7); opacity: 0.9; }
  100%    { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-cta-press,
  [data-template="custom-yakushi"] .yk-cta-press-accent,
  [data-template="custom-yakushi"] .yk-cta-press-line { animation: none; }
  [data-template="custom-yakushi"] .yk-cta-cursor { display: none; }
}

/* ── カード ────────────────────────────────────────────────── */
[data-template="custom-yakushi"] .yk-card {
  background: #fff;
  border: 1px solid var(--yk-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
[data-template="custom-yakushi"] .yk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(60, 90, 62, 0.4);
}

/* お知らせ（/blog）カードのサムネイル（16:9） */
[data-template="custom-yakushi"] .yk-blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--yk-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
[data-template="custom-yakushi"] .yk-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
[data-template="custom-yakushi"] .yk-card:hover .yk-blog-thumb img {
  transform: scale(1.05);
}

/* おすすめ商品：写真右下のバッジ（えんじ色・白文字） */
[data-template="custom-yakushi"] .yk-prod-photo {
  position: relative;
}
[data-template="custom-yakushi"] .yk-prod-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
[data-template="custom-yakushi"] .yk-prod-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: #9c2e3a;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

/* 3つのこだわり：正円カード（上＝テキスト / 下半分＝画像） */
[data-template="custom-yakushi"] .yk-commit-circle {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}
[data-template="custom-yakushi"] .yk-commit-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6% 15% 0;
}
[data-template="custom-yakushi"] .yk-commit-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
  object-fit: cover;
}

/* 画像未到着時のプレースホルダ（搾油の黄金グラデ） */
[data-template="custom-yakushi"] .yk-imgslot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(150deg, var(--yk-gold-light) 0%, var(--yk-gold) 55%, #9d7a23 100%);
  color: rgba(31, 51, 36, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}
[data-template="custom-yakushi"] .yk-imgslot--green {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(150deg, #5a7d5c 0%, var(--yk-green) 60%, var(--yk-green-deep) 100%);
  color: rgba(255, 255, 255, 0.7);
}

/* ── スクロール連動フェードイン ───────────────────────────── */
@keyframes yk-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-template="custom-yakushi"] .yk-reveal {
  animation: yk-rise 0.9s ease-out both;
}
@supports (animation-timeline: view()) {
  [data-template="custom-yakushi"] .yk-reveal {
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-reveal { animation: none; }
}

/* ── 写真専用：ズーム＋フェードで登場（yk-reveal と組み合わせて使う） ── */
@keyframes yk-photo-in {
  from { opacity: 0; transform: scale(1.08) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
[data-template="custom-yakushi"] .yk-reveal-photo {
  animation: yk-photo-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@supports (animation-timeline: view()) {
  [data-template="custom-yakushi"] .yk-reveal-photo {
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-reveal-photo { animation: none; }
}

/* ── 共通 Chrome（ヘッダー / フッター） ───────────────────── */
[data-template="custom-yakushi"] .yk-header {
  position: fixed;           /* 固定オーバーレイ（流れを占有しない＝動画を天井まで敷ける） */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;   /* 背景なし（ヒーロー等が透ける） */
  color: #fff;
}
/* 第二階層ページ：白背景ヘッダー＋下端ゴールドライン */
[data-template="custom-yakushi"] .yk-header--solid {
  background: #fff;
  border-bottom: 2px solid #c2982f;
}
[data-template="custom-yakushi"] .yk-header--solid .yk-hamburger {
  border-color: #c2982f;
}
[data-template="custom-yakushi"] .yk-header--solid .yk-ham-bar {
  background: #c2982f;
}
[data-template="custom-yakushi"] .yk-header--solid .yk-menu-label {
  color: #c2982f;
}
[data-template="custom-yakushi"] .yk-header--solid .yk-header-icon {
  color: #c2982f;
}

/* 背景なしでもロゴ/ハンバーガーが視認できるよう、小さく薄い影を付与 */
[data-template="custom-yakushi"] .yk-logo {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
[data-template="custom-yakushi"] .yk-header-icon {
  color: #e3c473;
}
[data-template="custom-yakushi"] .yk-hamburger {
  width: 64px;
  height: 64px;
  border: 1.5px solid #e3c473;
  border-radius: 4px;
}
[data-template="custom-yakushi"] .yk-menu-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e3c473;
}

/* ── もくじ：右側ドロワー（黒背景・シンプル） ───────────────── */
[data-template="custom-yakushi"] .yk-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
  animation: yk-fade-in 0.3s ease both;
}
[data-template="custom-yakushi"] .yk-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 45;
  height: 100dvh;
  width: 300px;
  max-width: 82vw;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 0 2rem;
  overflow-y: auto;
  animation: yk-fade-in 0.28s ease both;
}
@keyframes yk-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
[data-template="custom-yakushi"] .yk-drawer-link {
  display: block;
  padding: 1rem 1.9rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, background 0.2s ease;
}
[data-template="custom-yakushi"] .yk-drawer-link::before {
  content: '・';
  margin-right: 0.2em;
  color: var(--yk-gold);
  font-weight: 700;
  font-size: 1.45em;
  vertical-align: -0.08em;
}
[data-template="custom-yakushi"] .yk-drawer-link:hover {
  color: var(--yk-gold-light);
  background: rgba(255, 255, 255, 0.05);
}
[data-template="custom-yakushi"] .yk-drawer-cta {
  align-self: stretch;
  margin: 1.6rem 1.9rem 0;
}

/* 横方向のはみ出しをクリップ（オフスクリーン要素のスクロールバー防止） */
html { overflow-x: clip; }

/* ── スクロール追従サイド CTA（縦書き・右端貼り付け・2 段スタック） ── */
[data-template="custom-yakushi"] .yk-side-cta-stack {
  position: fixed;
  right: 0;
  top: 156px;          /* 固定ヘッダー（140px＋ゴールド線）より下に */
  z-index: 44;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.34, 1.05, 0.5, 1), opacity 0.3s ease;
}
[data-template="custom-yakushi"] .yk-side-cta-stack.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
[data-template="custom-yakushi"] .yk-side-cta {
  writing-mode: vertical-rl;
  background: #0b0b0b;
  color: var(--yk-gold-light);
  font-family: var(--yk-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  padding: 1.1rem 0.55rem;
  border: 1.5px solid var(--yk-gold);
  border-right: none;
  border-radius: 9px 0 0 9px;
  box-shadow: -5px 5px 18px -8px rgba(0, 0, 0, 0.6);
}
[data-template="custom-yakushi"] .yk-side-cta:hover {
  background: #1c1c1c;
  color: #fff;
}
/* えごま商品（お買い物）：背景を深緑に（金文字・金枠はそのまま） */
[data-template="custom-yakushi"] .yk-side-cta--green {
  background: var(--yk-green);
}
[data-template="custom-yakushi"] .yk-side-cta--green:hover {
  background: var(--yk-green-dark);
  color: var(--yk-gold-light);
}

/* 第二階層ページのボディ背景：生成り無地（TOP「えごま油とは」と同色） */
[data-template="custom-yakushi"] .yk-page-bg {
  background: var(--yk-cream);
}

/* ── フローティングチャット ────────────────────────────────────────── */
/* grid auto/1fr でヘッダーとコンテンツを分割。コンテンツに明示的 height を渡すことで
   ChatUI の height:100% を確実に解決し、messages flex-1 でスクロール領域を確保する。
   ヘッダー高さ = py-3(12px×2) + h-8(32px) = 56px = 3.5rem */
[data-template="custom-yakushi"] .yk-chat-window {
  display: grid;
  grid-template-rows: auto 1fr;
}
/* スマホ：100dvh - ヘッダー */
@media (max-width: 640px) {
  [data-template="custom-yakushi"] .yk-chat-content {
    height: calc(100dvh - 3.5rem);
    overflow: hidden;
  }
}
/* PC/タブレット：70vh（ウインドウ全体）- ヘッダー */
@media (min-width: 641px) {
  [data-template="custom-yakushi"] .yk-chat-window {
    height: 70vh;
  }
  [data-template="custom-yakushi"] .yk-chat-content {
    height: calc(70vh - 3.5rem);
    overflow: hidden;
  }
}
/* 会社案内（/profile）：共通SectionRendererの bg-slate-50/bg-white を生成り色に上書き
   （グラデーション等のインライン背景はそのまま残す）。各セクションは data-sec の div で包む。 */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec] > section {
  background-color: var(--yk-cream);
}

/* 代表あいさつ(quote=max-w-2xl)・会社概要(table=max-w-3xl) の箱幅を
   「私たちの強み(cards=max-w-5xl)」に合わせる */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] .max-w-2xl,
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="table"] .max-w-3xl {
  max-width: 64rem; /* = Tailwind max-w-5xl */
}

/* 代表あいさつの見出しを「私たちの強み」と同じ大きさ・余白に */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] h2 {
  font-size: 1.5rem;       /* text-2xl */
  margin-bottom: 1.5rem;   /* mb-6 */
}
@media (min-width: 640px) {
  [data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] h2 {
    font-size: 1.875rem;   /* sm:text-3xl */
  }
}

/* 会社概要のボックス背景を白に */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="table"] .overflow-x-auto {
  background: #fff;
}

/* マイページ ログイン：白背景＋ゴールド枠のカード */
[data-template="custom-yakushi"] .yk-login-card {
  background: #fff;
  border: 1.5px solid var(--yk-gold);
  border-radius: 16px;
  padding: 4.8rem 4rem;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.18);
}
/* /mypage/login と /mypage/unsubscribe の max-w-md を広めに */
[data-template="custom-yakushi"] .yk-page-bg main.max-w-md {
  max-width: 40rem;
}

/* 私たちの強み（cards・4枚）を 2×2 に固定（既定の lg:grid-cols-3 を上書き） */
@media (min-width: 1024px) {
  [data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 私たちの強み：見出し 深緑 +5pt / 説明文 +2pt / アイコンは非表示
   ※ h3 はインライン style で色が付いているため !important で上書きする */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] h3 {
  font-size: calc(1rem + 5pt) !important;  /* text-base +3pt → さらに +2pt */
  color: var(--yk-green) !important;       /* 深緑 #3c5a3e */
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] p {
  font-size: calc(0.75rem + 2pt);  /* text-xs + 2pt */
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] .text-3xl {
  display: none;                   /* カードの絵文字アイコンを非表示 */
}

/* 代表あいさつ：大きな引用符「“」を非表示 */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] .text-4xl {
  display: none;
}

/* 代表あいさつ：箱の余白・本文の行間をもっと広く */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] .max-w-2xl {
  padding: 3rem 3.25rem;
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] blockquote {
  line-height: 2.2;
  margin-bottom: 1.75rem;
}

/* 代表あいさつの署名（代表取締役 齊藤 光雄）：右寄せ・大きく・黒・明朝体 */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] .border-t {
  justify-content: flex-end;
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] .border-t > div {
  font-family: var(--yk-serif);
  font-size: 1.3rem;
  color: #1a1a1a;
}
/* 代表あいさつ：代表者の顔写真を丸く大きめに（既定48px→88px） */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="quote"] .border-t img {
  width: 88px !important;
  height: 88px !important;
}

/* 会社概要の外観写真：高さを抑えてバナー風に */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="image"] img {
  max-height: 380px;
  object-fit: cover;
}

/* 会社概要：ヘッダー行「項目／内容」を非表示（先頭行の上線も消す） */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="table"] thead {
  display: none;
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="table"] tbody tr:first-child {
  border-top: none;
}

/* 私たちの強み：行間・余白をもう少し広く */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] .grid {
  gap: 1.6rem;                       /* カード間の間隔（gap-4→） */
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] .grid > div {
  padding: 1.75rem;                  /* カード内の余白（p-5→） */
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] h3 {
  margin-bottom: 0.7rem;             /* 見出し下の余白（mb-1→） */
  line-height: 1.6;
}
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="cards"] p {
  line-height: 2;                    /* 説明文の行間（leading-relaxed→） */
}

/* 会社概要：行間・余白をさらに広く＋文字を 2pt 大きく */
[data-template="custom-yakushi"] .yk-profile-sections [data-sec="table"] td {
  padding: 1.35rem 1.75rem;          /* セル余白（さらに広く） */
  line-height: 1.9;
  font-size: calc(0.875rem + 2pt);   /* text-sm + 2pt */
}

/* ── 相談窓口：タブ ─────────────────────────────────────── */
[data-template="custom-yakushi"] .yk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 2px solid var(--yk-border);
  margin-bottom: 2.2rem;
}
[data-template="custom-yakushi"] .yk-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--yk-text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
[data-template="custom-yakushi"] .yk-tab:hover {
  color: var(--yk-green);
}
[data-template="custom-yakushi"] .yk-tab.is-active {
  color: var(--yk-green);
  border-bottom-color: var(--yk-gold);
}
[data-template="custom-yakushi"] .yk-navlink {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
[data-template="custom-yakushi"] .yk-navlink:hover {
  color: var(--yk-gold-light);
}
[data-template="custom-yakushi"] .yk-navlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--yk-gold);
  transition: width 0.25s ease;
}
[data-template="custom-yakushi"] .yk-navlink:hover::after {
  width: 100%;
}

/* ── ヘッダーロゴ：2 枚のロゴをクロスフェードでループ ───────── */
[data-template="custom-yakushi"] .yk-logo {
  position: relative;
  display: block;
  width: 304px;   /* 447:112 ≒ 4:1 → 高さ76px 相当（2倍） */
  height: 76px;
}
[data-template="custom-yakushi"] .yk-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes yk-logo-a {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes yk-logo-b {
  0%, 40%  { opacity: 0; }
  50%, 90% { opacity: 1; }
  100%     { opacity: 0; }
}
[data-template="custom-yakushi"] .yk-logo-a {
  animation: yk-logo-a 7s ease-in-out infinite;
}
[data-template="custom-yakushi"] .yk-logo-b {
  animation: yk-logo-b 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-yakushi"] .yk-logo-a,
  [data-template="custom-yakushi"] .yk-logo-b {
    animation: none;
  }
  [data-template="custom-yakushi"] .yk-logo-b { opacity: 0; }
}
@media (max-width: 640px) {
  [data-template="custom-yakushi"] .yk-logo {
    width: 213px;  /* 304 × 0.7 (-30%) */
    height: 53px;
  }
  [data-template="custom-yakushi"] .yk-hamburger {
    width: 46px;   /* 64 × 0.8 × 0.9 (-20% -10%) */
    height: 46px;
  }
  [data-template="custom-yakushi"] .yk-header-icon svg {
    width: 25px;   /* 35 × 0.8 × 0.9（-10% 追加）*/
    height: 25px;
  }
  /* アイコンリンクの padding を縮小してロゴとの間隔を確保（p-2=8px → 4px） */
  [data-template="custom-yakushi"] .yk-header-icon {
    padding: 0.25rem !important;
  }
  [data-template="custom-yakushi"] .yk-header-inner {
    height: 90px !important;
    padding: 1.1rem 1.2rem 0 !important;
  }
  [data-template="custom-yakushi"] .yk-main-content {
    padding-top: 90px !important;
  }
  /* ヒーロー：スマホ用ヘッダー高さ(90px)に合わせて margin-top を修正 */
  [data-template="custom-yakushi"] .yk-hero {
    margin-top: -90px;
  }
  /* ロゴと被らないようにコンテンツを下方向にシフト */
  [data-template="custom-yakushi"] .yk-hero-inner {
    transform: translateY(0.1rem);
  }
  /* CTA ボックス文字を -3pt */
  [data-template="custom-yakushi"] .yk-cta-press-title {
    font-size: 1.05rem;
  }
  [data-template="custom-yakushi"] .yk-cta-press-sub {
    font-size: 0.49rem;
  }
  /* フローティングチャットボタン -20% -10% = -28% */
  [data-template="custom-yakushi"] .yk-chat-button button {
    width: 65px;   /* 90 × 0.8 × 0.9 */
    height: 65px;
  }
  /* サイドCTA -20% + 位置調整 */
  [data-template="custom-yakushi"] .yk-side-cta-stack {
    top: 110px !important;  /* 90px header + 20px */
  }
  [data-template="custom-yakushi"] .yk-side-cta {
    font-size: 0.8rem !important;
    padding: 0.88rem 0.44rem !important;
    letter-spacing: 0.1em !important;
  }
  /* ハンバーガー「もくじ」文字 -4pt（-2pt×2回） */
  [data-template="custom-yakushi"] .yk-menu-label {
    font-size: 0.48rem;
  }
}

[data-template="custom-yakushi"] .yk-footer {
  background: var(--yk-green-dark);
  color: rgba(255, 255, 255, 0.78);
}
[data-template="custom-yakushi"] .yk-footer a:hover {
  color: var(--yk-gold-light);
}

/* ── ブログ等 標準ページ本文の最低限の体裁調整 ───────────── */
[data-template="custom-yakushi"] .article-body a {
  color: var(--yk-green);
  text-decoration: underline;
}

/* ── 搾油申込フォーム：ラベル／入力欄 2 列グリッド ────────── */
[data-template="custom-yakushi"] .yk-form-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 0.6rem 1.2rem;
  align-items: start;
  margin-bottom: 1.2rem;
}
@media (max-width: 600px) {
  [data-template="custom-yakushi"] .yk-form-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* input/textarea フォーカス: ゴールドアウトライン */
[data-template="custom-yakushi"] input:focus,
[data-template="custom-yakushi"] textarea:focus {
  outline: none;
  border-color: var(--yk-gold) !important;
  box-shadow: 0 0 0 3px rgba(194, 152, 47, 0.18);
}

/* ── /lp ページ サブコンポーネント：デフォルトサイズ（インラインから移管） ── */
/* /lp フォーム 入力フィールドとセクション説明文（インラインから移管） */
.yk-sakulp input,
.yk-sakulp textarea  { font-size: 1.50rem; }
.yk-sakulp-secdesc   { font-size: 0.90rem; }
.yk-sakulp-stitle   { font-size: 1.58rem; }
.yk-sakulp-flabel   { font-size: 1.46rem; }
.yk-sakulp-badge    { font-size: 1.30rem; }
.yk-sakulp-note     { font-size: 1.34rem; }
.yk-sakulp-opt      { font-size: 1.48rem; }
.yk-sakulp-optnote  { font-size: 1.36rem; }
.yk-sakulp-calchead { font-size: 1.13rem; }
.yk-sakulp-calcopt  { font-size: 1.12rem; }
.yk-sakulp-calctotal{ font-size: 2.20rem; }
.yk-sakulp-kgunit   { font-size: 1.50rem; }
.yk-sakulp-kgnote   { font-size: 1.38rem; }
.yk-sakulp-ctd      { font-size: 1.38rem; }
.yk-sakulp-conftotal{ font-size: 1.70rem; }
.yk-sakulp-subtxt   { font-size: 1.40rem; }
.yk-sakulp-faxhead  { font-size: 1.48rem; }
.yk-sakulp-faxlabel { font-size: 1.33rem; }
.yk-sakulp-faxnum   { font-size: 1.83rem; }
.yk-sakulp h2.yk-heading { font-size: 1.70rem; }
#sakulp-submit-area .yk-btn  { font-size: 1.60rem; }
#sakulp-confirm-btns .yk-btn { font-size: 1.38rem; }
/* ── /lp ページ：スマホ版 テキストをデスクトップ比70%に縮小 ── */
@media (max-width: 640px) {
  .yk-sakulp input,
  .yk-sakulp textarea      { font-size: 1.05rem !important; }
  .yk-sakulp-secdesc       { font-size: 0.63rem !important; }
  .yk-sakulp h2.yk-heading { font-size: 1.19rem !important; }
  .yk-sakulp-stitle        { font-size: 1.11rem !important; }
  .yk-sakulp-flabel        { font-size: 1.02rem !important; }
  .yk-sakulp-badge         { font-size: 0.91rem !important; }
  .yk-sakulp-note          { font-size: 0.94rem !important; }
  .yk-sakulp-opt           { font-size: 1.04rem !important; }
  .yk-sakulp-optnote       { font-size: 0.95rem !important; }
  .yk-sakulp-calchead      { font-size: 0.79rem !important; }
  .yk-sakulp-calcopt       { font-size: 0.78rem !important; }
  .yk-sakulp-calctotal     { font-size: 1.54rem !important; }
  .yk-sakulp-kgunit        { font-size: 1.05rem !important; }
  .yk-sakulp-kgnote        { font-size: 0.97rem !important; }
  .yk-sakulp-ctd           { font-size: 0.97rem !important; }
  .yk-sakulp-conftotal     { font-size: 1.19rem !important; }
  .yk-sakulp-subtxt        { font-size: 0.98rem !important; }
  .yk-sakulp-faxhead       { font-size: 1.04rem !important; }
  .yk-sakulp-faxlabel      { font-size: 0.93rem !important; }
  .yk-sakulp-faxnum        { font-size: 1.28rem !important; }
  #sakulp-submit-area .yk-btn  { font-size: 1.12rem !important; }
  #sakulp-confirm-btns .yk-btn { font-size: 0.97rem !important; }
}

/* ── /egoma・/profile ページ h1（インラインから移管） ─────────── */
.yk-page-h1 { font-size: 2.1rem; }
/* /egoma ページ：スマホ版 本文縮小（デスクトップ比70%） */
@media (max-width: 640px) {
  .yk-egoma .yk-page-h1    { font-size: 1.47rem !important; }
  .yk-egoma h2.yk-heading  { font-size: 1.19rem !important; }
  .yk-egoma p              { font-size: 0.70rem !important; }
}
/* /profile ページ：スマホ版 本文縮小（デスクトップ比70%） */
@media (max-width: 640px) {
  .yk-prof .yk-page-h1   { font-size: 1.47rem !important; }
  .yk-prof h2.yk-heading { font-size: 1.19rem !important; }
  .yk-prof p             { font-size: 0.70rem !important; }
}

/* ── カートに追加ボタン（深緑＋ゴールド枠アニメ） ───────────── */
@keyframes yk-cart-glow {
  0%, 100% {
    border-color: #c2982f;
    box-shadow: 0 0 0 0 rgba(194, 152, 47, 0);
  }
  50% {
    border-color: #e3c473;
    box-shadow: 0 0 10px 3px rgba(194, 152, 47, 0.38);
  }
}
.yk-cart-btn {
  background-color: #3c5a3e;
  color: #fff;
  border: 2px solid #c2982f;
  animation: yk-cart-glow 2s ease-in-out infinite;
}
.yk-cart-btn:hover:not(:disabled) {
  background-color: #4d7350;
}
