/* =========================================================
   情報PiPi・ジョイ企画 共通スタイルシート (v2 モダン版)
   ---------------------------------------------------------
   ■ コンセプト:「上質でモダンな情報掲示板」
     余白を広く、角丸カード+柔らかい影、画像主体のタイル。
     レトロな配色とイラストはそのまま活かす。
   ■ スマホファースト(モバイル基準で書き、@mediaでPC対応)
   ■ お年寄りにも読みやすい大きめの文字(本文17px〜)
   ---------------------------------------------------------
   色を変えたいときは、下の :root の変数を書き換えるだけで
   サイト全体の色が変わります。
   ========================================================= */

:root {
  /* ===== サイト全体の色設定 ===== */
  --ink: #1c1b18;            /* 文字色(墨色) */
  --ink-soft: #6b675e;       /* 薄めの文字色 */
  --paper: #faf8f4;          /* 背景色(あたたかい白) */
  --paper-card: #ffffff;     /* カードの背景 */
  --accent: #c1272d;         /* アクセント色(えんじ) */
  --accent-dark: #95201f;    /* アクセント色(濃いめ) */
  --gold: #b08d2f;           /* 補助色(金茶) */
  --line: #eae6dd;           /* 罫線の色(薄く) */

  /* ===== 角丸と影 ===== */
  --radius: 20px;                                        /* カードの角丸 */
  --radius-lg: 28px;                                     /* 大きなカードの角丸 */
  --shadow: 0 2px 4px rgba(48, 45, 40, 0.08), 0 10px 24px -8px rgba(48, 45, 40, 0.16);
  --shadow-hover: 0 3px 6px rgba(48, 45, 40, 0.10), 0 20px 40px -12px rgba(48, 45, 40, 0.26);

  /* ===== 文字サイズ設定(お年寄り対応で大きめ) ===== */
  --fs-base: 17px;           /* 本文の基準サイズ */
  --fs-small: 14px;          /* 最小サイズ(これより小さくしない) */

  /* ===== フォント ===== */
  --font-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* 横はみ出し対策。hidden だとヘッダーの position: sticky が
     無効化されてしまうため clip を使う(hiddenは古いブラウザ用の保険) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  width: 100%;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   1. ヘッダー(細いモダンなバー・スクロールしても上に固定)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1400px; }  /* ヘッダーだけ広めに使う */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* ロゴのh1親要素のリセット */
.brand-wrapper {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: flex;
  align-items: center;
}

/* ロゴ */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand .brand-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
}
.brand .pipi { color: var(--accent); }
/* ロゴの「+」:企業ロゴ風に小さく・太く・上付きで「i」に寄せる */
.brand .plus {
  font-family: var(--font-sans); /* 明朝体からゴシック体に変更して太さを均一化 */
  color: var(--gold);            /* 非対応ブラウザ用のフォールバック */
  font-weight: 900;
  font-size: 0.88em;             /* はっきり見えるサイズに拡大 */
  display: inline-block;
  margin-left: 0.08em;           /* 食い込みをやめ、少し右に離す */
  position: relative;
  top: -0.25em;                  /* 上付き位置の微調整 */

  /* レインボーグラデーション（じんわりと色が移り変わる超スローアニメーション） */
  background: linear-gradient(
    to right, 
    #ff4a6e 0%, 
    #ff9a3c 20%, 
    #3cd57a 40%, 
    #3ca3ff 60%, 
    #a24cff 80%, 
    #ff4a6e 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 20s linear infinite; /* 20秒ループ */
}
.brand .brand-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  display: none;
  margin-left: 0;
}
@media (min-width: 1480px) { .brand .brand-sub { display: inline; } }

/* ヘッダー右側 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-tel {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  transition: background 0.25s;
}
.header-tel::before { content: "☎ "; }
.header-tel:hover { background: var(--accent); }
@media (max-width: 599px) {
  .header-tel { padding: 8px 12px; font-size: 0.9rem; }
}

/* ハンバーガーボタン(スマホ・タブレット用) */
.nav-toggle {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle .bars {
  display: block;
  width: 18px; height: 14px;
  position: relative;
}
.nav-toggle .bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: 0.25s;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --- メニュー(スマホ:全画面に近いパネルで開く) --- */
.global-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: calc(100vh - 65px);
  background: rgba(250, 248, 244, 0.98);
  overflow-y: auto;
  padding: 28px 24px 48px;
}
.nav-open .global-nav { display: block; }
.nav-menu { list-style: none; }
.nav-menu li { border-bottom: 1px solid var(--line); }
.nav-menu a {
  display: block;
  padding: 16px 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
}
.nav-menu a.current { color: var(--accent); }

/* === PC表示(1080px以上)では横並びメニュー === */
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .global-nav {
    display: block;
    position: static;
    height: auto;
    background: none;
    padding: 0;
    overflow: visible;
  }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-menu li { border-bottom: none; }
  .nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 9px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }
  .nav-menu a:hover { background: #f0ece3; }
  .nav-menu a.current { color: var(--accent); font-weight: 700; }
}
/* メモ: 以前はここで 1080〜1239px のとき電話ボタンを隠していましたが、
   現在のメニュー項目数なら最小幅(1080px)でも約130pxの余裕があるため
   常に表示するようにしました。メニューを増やして窮屈になったら
   ボタンの padding や font-size を小さくして調整してください。 */

/* =========================================================
   2. 共通パーツ
   ========================================================= */

main { padding: 28px 0 0; }
section { margin-bottom: 72px; }
/* メニューからページ内ジャンプしたとき、固定ヘッダーに隠れないように */
section[id] { scroll-margin-top: 84px; }

/* --- セクション見出し(赤い英字+大きな明朝) --- */
.section-title {
  display: flex;
  flex-direction: column-reverse;   /* 英字ラベルを上に表示する */
  gap: 2px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 10px;
}
.section-title .en {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
}
.section-lead {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.98rem;
}

/* --- セクション見出し 回転プラス装飾 --- */
@keyframes spin-plus {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes plus-color {
  0%, 100% { color: var(--gold); }
  50%       { color: var(--accent); }
}
.section-title:not(.section-title--news) .en::after {
  content: '+';
  display: inline-block;
  margin-left: 5px;
  font-weight: 900;
  animation: spin-plus 8s linear infinite, plus-color 3s ease-in-out infinite;
}

/* --- お知らせ掲示板 特大グラデーション見出し --- */
@keyframes news-grad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.section-title--news {
  align-items: flex-start;
  margin-bottom: 24px;
}
.section-title--news .en {
  color: #888;
  letter-spacing: 0.38em;
}
.section-title--news .news-title-text {
  display: block;
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  background: linear-gradient(120deg, #c0392b, #e74c3c, #f39c12, #e74c3c, #c0392b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: news-grad 4s ease infinite;
}
/* SP(スマホ)だけ改行を有効に */
.sp-only { display: none; }
@media (max-width: 599px) {
  .sp-only { display: block; }
  .section-title--news .news-title-text {
    font-size: clamp(3.6rem, 20vw, 5rem);
  }
}

/* --- カテゴリーラベル(淡い色のピル型) --- */
.tag {
  display: inline-flex;        /* 文字を箱の上下中央に確実に揃える */
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  font-weight: 700;
  height: 28px;                /* 高さを28pxに完全固定してズレを防止 */
  box-sizing: border-box;
  padding: 0 14px;             /* 上下はheightに任せ、左右のみpadding指定 */
  border-radius: 999px;
  letter-spacing: 0.06em;
  background: #eceae4;
  color: var(--ink-soft);
  vertical-align: middle;
}
.tag-tv      { background: #fbe9e8; color: #b3221d; } /* テレビ・放送 */
.tag-radio   { background: #fde68a; color: #8a6a1d; } /* ラジオ */
.tag-music   { background: #e7eef6; color: #2e5e8c; } /* 音楽 */
.tag-event   { background: #bbf7d0; color: #2f6b3a; } /* イベント・グッズ */
.tag-info    { background: #e0e0dd; color: #5d5a52; } /* お知らせ・Q&A */
.tag-service { background: #e9d8fd; color: #6b4f9e; } /* サービス・チラシ */
.tag-new {
  background: var(--accent);
  color: #fff;
  animation: new-pulse 2s ease-in-out infinite;
} /* 新着 NEW（コピペで貼れる新着バッジ） */
/* タグを横並びでひとまとめにする入れ物（NEW＋カテゴリなど） */
.tag-group { display: inline-flex; gap: 8px; align-items: center; }

/* --- ボタン(ピル型) --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 14px 34px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-block { display: block; width: 100%; }

/* =========================================================
   3-0. トップページ:全幅キービジュアル(一面の大きな写真)
   ========================================================= */
.main-home {
  padding-top: 20px;
  position: relative;
}

/* ヘッダー下の背景に、薄いゴールドの網目グラデーションを追加 */
.main-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px; /* 網目が完全に消えるまでの高さ */
  pointer-events: none; /* 下の要素のクリック操作を邪魔しない */
  z-index: 0;
  
  /* 補助色（金茶）をベースにした極薄の網目パターン */
  background-image: 
    linear-gradient(to right, rgba(176, 141, 47, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176, 141, 47, 0.09) 1px, transparent 1px);
  background-size: 18px 18px; /* 網目の大きさ */
  
  /* 上から下へ向かって徐々に透明になるフェードアウトマスク */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* コンテンツ（文字やカード）が網目の上に重なるように調整 */
.main-home .container {
  position: relative;
  z-index: 1;
}

.kv {
  position: relative;
  width: 100%;
  height: clamp(460px, 72vh, 740px);
  margin-bottom: 72px;
}
.kv-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(22, 18, 14, 0.85) 0%,
              rgba(22, 18, 14, 0.45) 42%,
              rgba(22, 18, 14, 0.05) 72%);
}
.kv-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 76px;
  width: 100%;
  max-width: 1140px;
  padding: 0 24px;
  color: #fff;
}
.kv-sub {
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}
.kv-copy h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.45rem, 4.6vw, 2.7rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.kv-copy h1 em { font-style: normal; color: #ffd24d; }

/* キービジュアル下端のニュース帯(白いピル) */
.kv-news {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: min(92%, 860px);
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s;
}
.kv-news:hover { transform: translate(-50%, calc(50% - 3px)); }
.kv-news-label {
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  border-radius: 999px;
  flex-shrink: 0;
}
.kv-news-text {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kv-news-arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* =========================================================
   3-0b. ページ最上部の1行ニュースバー
   ========================================================= */
.news-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  margin: 8px 0 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.news-bar:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* --- ニュースティッカー（自動スクロール）設定 --- */
.news-bar-text-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

/* はみ出していてスクロールが必要な場合（JSで .is-scrollable を付与） */
.news-bar-text-container.is-scrollable {
  /* 左右の端をグラデーションでフェードアウトさせて綺麗に見せる */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.news-bar-text-container.is-scrollable .kv-news-text {
  flex: none;
  display: inline-block;
  padding-left: 100%; /* スタート地点を右端に */
  animation: news-ticker 18s linear infinite;
  text-overflow: clip; /* スクロール中は三点リーダーを消す */
}
/* タップやホバーしている間は一時停止 */
.news-bar:hover .news-bar-text-container.is-scrollable .kv-news-text,
.news-bar:active .news-bar-text-container.is-scrollable .kv-news-text {
  animation-play-state: paused;
}

/* 横スクロールアニメーションの定義 */
@keyframes news-ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* =========================================================
   3-0c. 画鋲ボード上段(イチオシ2枚:2カラム+1カラム)
   ========================================================= */
.pin-featured {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .pin-featured { grid-template-columns: 2fr 1fr; align-items: stretch; }
}

.pin-featured .pin-card {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
}
/* 大きいカードの写真は横長にトリミング */
@media (min-width: 900px) {
  .pin-featured .pin-card.lead img { aspect-ratio: 21 / 9; }
}

/* --- イチオシ（動画制作）カードの反転カラーデザイン（濃い青背景） --- */
.pin-featured .pin-card.lead {
  background: #1c2e5c;
  color: #ffffff;
}
.pin-featured .pin-card.lead .pin-lead-title {
  color: #ffffff;
}
.pin-featured .pin-card.lead .pin-lead-title em {
  color: #ffd24d;
}
.pin-featured .pin-card.lead .pin-body p {
  color: rgba(255, 255, 255, 0.85);
}
.pin-featured .pin-card.lead .pin-list li {
  color: rgba(255, 255, 255, 0.85);
}
.pin-featured .pin-card.lead .pin-list li::before {
  color: #ffd24d;
}
.pin-featured .pin-card.lead .pin-list strong {
  color: #ffd24d;
}
.pin-featured .pin-card.lead .btn-accent {
  background: #ffd24d;
  color: #1c2e5c;
}
.pin-featured .pin-card.lead .btn-accent:hover {
  background: #f5bd1f;
}

/* --- 虹色グラデーションループのアニメーションリンク --- */
.rainbow-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  
  /* 虹色のグラデーション（少し淡めで上品な色合い） */
  background: linear-gradient(
    to right, 
    #ff4a6e 0%, 
    #ff9a3c 20%, 
    #3cd57a 40%, 
    #3ca3ff 60%, 
    #a24cff 80%, 
    #ff4a6e 100%
  );
  background-size: 300% 100%;
  
  /* 文字の形にグラデーションをマスク */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* 非対応ブラウザ用のフォールバック */
  
  /* 滑らかに右から左へ色が流れるアニメーション */
  animation: rainbow-flow 8s linear infinite;
  
  /* ホバー時に少し右に動くトランジションを維持 */
  transition: transform 0.25s;
}

/* 虹色グラデーションが流れるアニメーションの定義 */
@keyframes rainbow-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.pin-lead-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.6vw, 1.95rem);
  line-height: 1.55;
}
.pin-lead-title em { font-style: normal; color: var(--accent); }
/* チェックリスト(できることの箇条書き) */
.pin-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pin-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.pin-list li::before {
  content: "\2714\FE0E";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}
.pin-featured .btn { align-self: flex-start; margin-top: auto; }

/* =========================================================
   3-1. ピンボード(画鋲で留めた貼り紙風の掲示板)
   ========================================================= */
.pinboard {
  columns: 1;
  column-gap: 22px;
}
@media (min-width: 600px) { .pinboard { columns: 2; } }
@media (min-width: 900px) { .pinboard { columns: 3; } }

.pin-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 12px 0 36px;
  background: var(--paper-card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  /* 付箋の傾きは --tilt で一元管理(.reveal や JS からも参照するため) */
  --tilt: -0.8deg;
  transform: rotate(var(--tilt));
  transform-origin: 50% 19px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pin-card:nth-child(even) { --tilt: 0.8deg; }
.pin-card:hover {
  box-shadow: var(--shadow-hover);
  z-index: 2;
}
/* ホバーでまっすぐ浮き上がる演出はPC幅のみ。狭い幅で効かせると、
   スクロール中にカーソルや指が触れたカードの傾きが戻って
   「カクッ」と見える(退場アニメ直前だと特に目立つ)ため */
@media (min-width: 900px) {
  .pin-card:hover {
    /* ピン(上中央)を軸にまっすぐ戻す。translateYを足すと微小角との合成で
       見かけの回転中心が横へ大きくずれ「右上/左上を軸に回る」現象になるため、
       浮き上がり感は box-shadow(--shadow-hover) だけで表現する */
    transform: rotate(0deg);
  }
}
/* 画鋲(カードの内側に収める。外にはみ出させると
   段組レイアウトで切れて表示される不具合が出るため) */
.pin-card .pin {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9f9a, #e02020 70%);
  /* ずらした丸影(影の円) + 全体のふわっとした影 */
  box-shadow:
    0px 13px 5px 0px rgba(0,0,0,0.25),
    2px 3px 6px rgba(0,0,0,0.20);
  z-index: 2;
}
/* 針: 赤丸の下からちょっとだけ出る。暗めグレーから始まるグラデ */
.pin-card .pin::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 4px;
  background: linear-gradient(to bottom, #888 0%, #444 100%);
  border-radius: 0 0 2px 2px;
}
.pin-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.pin-body {
  padding: 16px 19px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pin-body h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  line-break: strict;
}
.pin-body h3 span,
.banner-title span,
.article h2 span,
.pin-lead-title span {
  display: inline-block;
}
.pin-body p { 
  font-size: 0.94rem; 
  color: var(--ink-soft); 
  line-height: 1.7;
  letter-spacing: 0.02em;
}
/* 写真なしの「付箋メモ」タイプ */
.pin-card.note { background: linear-gradient(to bottom, #fffbe8 0%, #fff1b8 100%); }
.pin-card.note .pin-body { padding-top: 38px; }

/* 新しいカラーバリエーション：濃い青の付箋メモ（反転デザイン） */
.pin-card.note-blue {
  background: linear-gradient(to bottom, #2c4482 0%, #15244a 100%);
  color: #ffffff;
}
.pin-card.note-blue .pin-body {
  padding-top: 38px;
}
.pin-card.note-blue h3 {
  color: #ffffff;
}
.pin-card.note-blue p {
  color: rgba(255, 255, 255, 0.85);
}
.pin-card.note-blue .tag-service {
  background: #ffd24d;
  color: #1c2e5c;
}
.pin-card.note-blue .tile-date {
  color: rgba(255, 255, 255, 0.75);
}

/* 新しいカラーバリエーション：ごく薄いピンクの付箋メモ（お問い合わせ用） */
.pin-card.note-red {
  background: linear-gradient(to bottom, #fff9f9 0%, #fcdada 100%);
}
.pin-card.note-red .pin-body {
  padding-top: 38px;
}
.pin-card.note-red .tag-tv {
  background: #ffffff; /* お問い合わせマスの背景を白にします */
}

/* 新しいカラーバリエーション：薄い紫の付箋メモ（オンラインショップ用） */
.pin-card.note-purple {
  background: linear-gradient(to bottom, #f7f5fb 0%, #dfd4f0 100%);
}
.pin-card.note-purple .pin-body {
  padding-top: 38px;
}

/* 新しいカラーバリエーション：薄い緑の付箋メモ（グッズ製作枠用） */
.pin-card.note-green {
  background: linear-gradient(to bottom, #f7fcf7 0%, #def2df 100%);
}
.pin-card.note-green .pin-body {
  padding-top: 38px;
}

/* =========================================================
   3. トップページ:ヒーロー(大きな画像カード)
   ========================================================= */
.hero {
  display: grid;
  gap: 20px;
  margin: 8px 0 72px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.9fr 1fr; }
}

/* メインの大きな画像カード */
.hero-main {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 430px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.hero-main .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 26px;
  background: linear-gradient(to top,
              rgba(22, 18, 14, 0.94) 0%,
              rgba(22, 18, 14, 0.72) 40%,
              rgba(22, 18, 14, 0.25) 70%,
              rgba(22, 18, 14, 0) 90%);
}
.hero-catch {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.55;
  color: #fff;
}
.hero-catch em { font-style: normal; color: #ffd24d; }
.hero-overlay p { color: rgba(255,255,255,0.85); font-size: 0.98rem; }
.hero-more {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  padding: 10px 24px;
  backdrop-filter: blur(4px);
}

/* サイドの小さなカード(サムネイル付き) */
.hero-side {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) { .hero-side { grid-template-rows: 1fr 1fr; } }
.hero-side-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--paper-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-side-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.hero-side-item .side-thumb {
  width: 36%;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-side-item .side-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.hero-side-item h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}
.hero-side-item .more { font-size: var(--fs-small); font-weight: 700; color: var(--accent); }

/* =========================================================
   4. タイルグリッド(情報掲示板)
   ========================================================= */
.tile-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;          /* スマホ:1列 */
}
@media (min-width: 600px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }  /* タブレット:2列 */
}
@media (min-width: 900px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }  /* PC:3列 */
}

/* --- 情報タイル(1枚のカード) --- */
.tile {
  background: var(--paper-card);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
a.tile { text-decoration: none; color: var(--ink); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tile-date {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.tile h3 {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.6;
}
.tile p { font-size: 0.96rem; color: var(--ink-soft); flex-grow: 1; }
.tile .more {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

/* =========================================================
   5. 動画タイル(YouTube・タップでその場で再生)
   ========================================================= */
.video-tile {
  background: var(--paper-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.video-tile .video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-tile .video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-tile .video-thumb iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* 再生ボタン */
.video-tile .play-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.25s, background 0.25s;
}
.video-tile .play-btn::after {
  content: "";
  position: absolute;
  left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent);
}
.video-tile:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.video-tile .video-title {
  padding: 16px 20px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.6;
}
.video-tile .video-meta {
  padding: 0 20px 18px;
  margin-top: -10px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* =========================================================
   6. サービスタイル(画像付きカード)
   ========================================================= */
.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-tile {
  background: var(--paper-card);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-tile .service-photo {
  width: 100%;
  height: 175px;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-tile:hover .service-photo { transform: scale(1.04); }
.service-tile h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 900;
  padding: 20px 24px 0;
}
.service-tile p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-grow: 1;
  padding: 8px 24px 0;
}
.service-tile .more {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--accent);
  padding: 14px 24px 22px;
}

/* =========================================================
   7. 番組表(やわらかいカード型テーブル)
   ========================================================= */
.table-scroll {
  overflow-x: auto;              /* スマホでは横スクロール */
  background: var(--paper-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 560px;
}
.timetable th, .timetable td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.timetable tbody tr:last-child th,
.timetable tbody tr:last-child td { border-bottom: none; }
.timetable thead th {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.timetable .tt-time {
  white-space: nowrap;
  font-weight: 700;
  color: var(--accent);
}
.timetable .tt-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }


/* === スマホ表示用（表形式から、見やすい縦型カード形式へ自動変換） === */
@media (max-width: 767px) {
  .table-scroll {
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .timetable {
    min-width: 100%;
    display: block;
  }
  .timetable thead {
    display: none; /* スマホでは表の見出し行を隠す */
  }
  .timetable tbody {
    display: block;
  }
  .timetable tr {
    display: block;
    background: var(--paper-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 20px;
    margin-bottom: 20px;
    border-bottom: none;
  }
  .timetable tr:last-child {
    margin-bottom: 0;
  }
  .timetable td {
    display: block;
    padding: 0;
    border-bottom: none;
    margin-bottom: 8px;
  }
  .timetable td:last-child {
    margin-bottom: 0;
  }

  /* 1列目: 放送局 */
  .timetable td:nth-child(1) {
    font-size: var(--fs-small);
    color: var(--ink-soft);
    font-weight: 700;
    margin-bottom: 2px;
  }
  /* 2列目: 番組名 */
  .timetable td:nth-child(2) {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.28rem;
    color: var(--ink);
    margin-bottom: 4px;
  }
  /* 3列目: 放送日時 */
  .timetable td:nth-child(3) {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
  }
  /* 4列目: 内容 */
  .timetable td:nth-child(4) {
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.75;
  }
/* PC用改行をスマホでは無効化 */
  .pc-only-br {
    display: none;
  }
}

/* =========================================================
   8. 下層ページ用
   ========================================================= */

/* ページタイトル(余白広めの大きな見出し) */
.page-header {
  padding: 60px 0 44px;
  background: linear-gradient(135deg, #f6f3eb 0%, #ebe6da 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
/* 装飾用の極薄ゴールド網目パターン */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(176, 141, 47, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176, 141, 47, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  border-left: 6px solid var(--accent);
  padding-left: 20px;
}
.page-header .page-en {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
}
/* video-service ページタイトル上書き */
.page-header--video {
  padding: 80px 0 64px;
  background: linear-gradient(135deg, #1c1b18 0%, #2e2b25 60%, #3a2a1e 100%);
  border-bottom: none;
}
.page-header--video::before {
  background-image:
    linear-gradient(to right, rgba(176, 141, 47, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176, 141, 47, 0.08) 1px, transparent 1px);
  mask-image: none;
  -webkit-mask-image: none;
}
.page-header--video::after {
  content: "VIDEO";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 13rem);
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-header--video h1 {
  color: #ffffff;
  border-left: none;
  padding-left: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.page-header--video .page-en {
  color: var(--gold);
  letter-spacing: 0.4em;
}

/* ===== あなたの言葉をYouTube作品に ページ ===== */
/* ページ見出し（あたたかい配色＋大きな飾り文字 STORY） */
.page-header--word {
  padding: 76px 0 60px;
  background: linear-gradient(135deg, #2a1c14 0%, #4a2d1c 55%, #6b3b2a 100%);
  border-bottom: none;
}
.page-header--word::before {
  background-image:
    linear-gradient(to right, rgba(217, 184, 90, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 184, 90, 0.10) 1px, transparent 1px);
  mask-image: none;
  -webkit-mask-image: none;
}
.page-header--word::after {
  content: "STORY";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(4.5rem, 20vw, 12rem);
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-header--word h1 {
  color: #ffffff;
  border-left: none;
  padding-left: 0;
  flex-direction: column;
  font-size: clamp(1.55rem, 5.5vw, 3rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
@media (max-width: 480px) {
  .page-header--word h1 { font-size: 1.55rem; }
  .word-hero-lead br { display: none; }
  .dialogue-divider span { font-size: 1rem; letter-spacing: 0.08em; }
}
.page-header--word .page-en {
  color: var(--gold);
  letter-spacing: 0.3em;
}

/* このページは少し大きめの文字で読みやすく */
.word-video-page .dialogue-bubble {
  font-size: 1.18rem;
  line-height: 1.9;
}
.word-video-page .dialogue-bubble p { margin-bottom: 4px; }
.word-video-page .dialogue-bubble p:last-child { margin-bottom: 0; }
.word-video-page .usage-list li { font-size: 1.05rem; line-height: 1.7; }

/* 導入ビジュアル */
.word-hero {
  max-width: 820px;
  margin: 28px auto 8px;
  text-align: center;
}
.word-hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.word-hero-lead {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.2vw, 1.7rem);
  line-height: 1.7;
  margin-top: 22px;
  color: var(--ink);
}
.word-hero-lead strong { color: var(--accent); }

/* 料金カード */
.price-card {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fffbef 0%, #fdf2cf 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 22px 20px;
  margin: 16px 0;
  text-align: center;
}
.price-label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.price-value {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 3rem);
  color: var(--accent);
  line-height: 1;
}
.price-value .price-unit { font-size: 1.3rem; margin-left: 4px; }

@media (max-width: 600px) {
  .word-video-page .dialogue-bubble { font-size: 1.1rem; }
}

/* パンくず */
.breadcrumb {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* 記事本文(白い角丸カード) */
.article {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  margin-bottom: 40px;
}
@media (min-width: 900px) { .article { padding: 56px 64px; } }
.article h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin: 48px 0 18px;
}
.article h2::before {
  content: "";
  display: block;
  width: 30px; height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 12px;
}
.article h2:first-child,
.article .page-photo + h2 { margin-top: 0; }
.article h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 30px 0 12px;
}
.article h3::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: 2px;
}
.article p { margin-bottom: 16px; }
.article ul, .article ol { padding-left: 26px; margin-bottom: 16px; }
.article li { margin-bottom: 8px; }

/* ページ上部の写真 */
.page-photo {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

/* 強調ボックス */
.note-box {
  background: #fbf4e2;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
}
.note-box strong { color: var(--accent-dark); }

/* 会社概要などの表 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.info-table th, .info-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  text-align: left;
  font-size: 1rem;
}
.info-table th {
  width: 30%;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (max-width: 599px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 2px; font-size: var(--fs-small); }
  .info-table td { padding-top: 0; }
}

/* 制作の流れ(ステップ表示) */
.flow-list {
  list-style: none;
  padding: 0;
  counter-reset: flow;
  margin: 24px 0;
}
.flow-list li {
  counter-increment: flow;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 18px 18px 70px;
  margin-bottom: 12px;
  position: relative;
  min-height: 64px;
}
.flow-list li::before {
  content: counter(flow);
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.flow-list li strong { display: block; font-size: 1.05rem; }
.flow-list li span { font-size: 0.95rem; color: var(--ink-soft); }

/* 動画の埋め込み(YouTube・Googleマップ用 16:9) */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eceae4;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 実績・紹介企業リスト(街角エッセイ用) */
.works-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
@media (min-width: 600px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
.works-grid li {
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}
.works-grid li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.works-grid li small {
  display: block;
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding-left: 18px;
}

/* =========================================================
   9. お問い合わせ(CTA)カード
   ========================================================= */
.cta-band {
  padding: 0 20px;
  margin: 72px 0;
}
.cta-band .container {
  background: linear-gradient(135deg, #232019 0%, #36302a 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
  padding: 56px 24px;

  /* ★既定は「全表示」。JSが動かなくても必ず見える(白画面防止)。
     画面内に入って .revealed が付いたときだけ、下のアニメで
     左→右へスライス表示する演出を再生する。 */
  clip-path: inset(0 0 0 0);
}

/* 画面内に入ったら左→右へスライスして登場(文字の位置は動かさない) */
.cta-band.revealed .container {
  animation: cta-slide-in 0.9s cubic-bezier(0.25, 1, 0.5, 1) both;
}
@keyframes cta-slide-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.cta-band p { margin-bottom: 18px; font-size: 1rem; color: rgba(255,255,255,0.8); }
.cta-band .cta-tel {
  display: block;
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.cta-band .cta-hours { font-size: var(--fs-small); color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.cta-band .btn { background: var(--accent); }
.cta-band .btn:hover { background: var(--accent-dark); }

/* =========================================================
   10. フッター
   ========================================================= */
.site-footer {
  background: #1c1b18;
  color: #b6b1a6;
  padding: 56px 0 90px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
.site-footer .footer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.site-footer .footer-title .pipi { color: #ff8a8e; }
.site-footer .footer-title .plus {
  font-family: var(--font-sans); /* 明朝体からゴシック体に変更して太さを均一化 */
  color: #e8c766;            /* 非対応ブラウザ用のフォールバック */
  font-weight: 900;
  font-size: 0.88em;             /* はっきり見えるサイズに拡大 */
  display: inline-block;
  margin-left: 0.08em;           /* 食い込みをやめ、少し右に離す */
  position: relative;
  top: -0.25em;                  /* 上付き位置の微調整 */

  /* レインボーグラデーション（じんわりと色が移り変わる超スローアニメーション） */
  background: linear-gradient(
    to right, 
    #ff4a6e 0%, 
    #ff9a3c 20%, 
    #3cd57a 40%, 
    #3ca3ff 60%, 
    #a24cff 80%, 
    #ff4a6e 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 20s linear infinite; /* 20秒ループ */
}
.site-footer address { font-style: normal; line-height: 2.1; }
.site-footer a { color: #fff; transition: color 0.25s; }
.site-footer a:hover { color: #ff8a8e; }
.footer-sub {
  font-size: 0.8em;
  opacity: 0.9;
  display: inline-block;
}
.footer-nav { list-style: none; padding: 0; columns: 2; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #ff8a8e; }
.copyright {
  text-align: center;
  font-size: var(--fs-small);
  color: #7a766c;
  border-top: 1px solid #34322c;
  margin-top: 40px;
  padding-top: 24px;
}

/* =========================================================
   11. 追加パーツ
   ========================================================= */

/* --- 実績数字(トップページ・ヒーロー下) --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 72px;
}
.stat {
  background: var(--paper-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 22px 8px 18px;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.15rem, 4.5vw, 1.8rem);
  color: var(--accent);
  line-height: 1.3;
}
.stat span { font-size: var(--fs-small); color: var(--ink-soft); }
/* スマホでは横長の行にして読みやすく */
@media (max-width: 599px) {
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    padding: 14px 12px;
  }
}

/* --- NEWバッジ(新しいお知らせに付ける) --- */
.new-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  margin-right: 8px;
  animation: new-pulse 2s ease-in-out infinite;
}
@keyframes new-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}


/* --- 写真グリッド(記事内に写真を並べる) --- */
.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 20px 0 28px;
}
.photo-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #efece5;
}
.photo-grid img.portrait { aspect-ratio: 3 / 4; }
.photo-grid figcaption {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}

/* --- ホバー時の小さな動き --- */
.tile .more, .service-tile .more, .hero-side-item .more {
  display: inline-block;
  transition: transform 0.25s;
}
.tile:hover .more,
.service-tile:hover .more,
.hero-side-item:hover .more { transform: translateX(5px); }
.hero-main .hero-photo { transition: transform 0.6s; }
.hero-main:hover .hero-photo { transform: scale(1.03); }

/* --- スクロールでふわっと表示 ---
   ★【一時的に無効化】以前は「最初に opacity:0 で全要素を隠し、JSが .revealed を
     付けて表示する」設計だったが、キャッシュやアプリ内ブラウザ(LINE等)でJSが
     正しく動かないと要素が透明のまま＝真っ白になる事故が起きた。
     そのため『最初に隠す』処理を削除し、要素は常に表示される状態にした。
     (フェードイン演出は無くなるが、白画面になる危険を完全に排除する)
     演出を戻したいときは、この下の opacity:0 ブロックを復活させる。 */
@media (prefers-reduced-motion: no-preference) {
  /* 表示状態(.revealedをJSが付ける。今は常時表示なので実質ホバー用) */
  .tile.revealed,
  .service-tile.revealed,
  .video-tile.revealed,
  .hero-side-item.revealed,
  .stat.revealed,
  .article.revealed,
  .cta-band.revealed {
    opacity: 1;
    transform: none;
  }
  .pin-card.revealed {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }

  @media (min-width: 900px) {
    .pin-card.revealed:hover {
      transform: rotate(0deg) translateY(-4px);
    }
    .tile.revealed:hover,
    .video-tile.revealed:hover,
    .service-tile.revealed:hover,
    .hero-side-item.revealed:hover {
      transform: translateY(-3px);
    }
  }
}

/* ページ上部へ戻るボタン */
.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: var(--shadow-hover);
  transition: transform 0.25s;
}
.to-top:hover { transform: translateY(-3px); }
.to-top.show { display: flex; }

/* --- 掲示板（画鋲ボード）内での動画再生対応 --- */
.pin-card[data-video] {
  cursor: pointer;
}
.pin-card .video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.pin-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin-card .play-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.25s, background 0.25s;
  z-index: 2;
}
.pin-card .play-btn::after {
  content: "";
  position: absolute;
  left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent);
}
.pin-card:hover .play-btn { 
  transform: translate(-50%, -50%) scale(1.1); 
  background: #fff; 
}
.pin-card.playing .play-btn {
  display: none;
}
.pin-card .video-thumb iframe {
  position: absolute; 
  inset: 0;
  width: 100%; 
  height: 100%;
  border: 0;
}

/* =========================================================
   12. 掲示板掲載ルール＆情報募集（最上部横長バナー）
   ========================================================= */
.pin-card.rule-banner {
  background: linear-gradient(135deg, #a72d32 0%, #7d1a1d 100%); /* アクセントカラーの濃い赤グラデーション */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-hover);
  color: #ffffff;
  --tilt: -0.3deg;
  margin: 0 0 40px; /* 下部との間隔 */
}

/* 内包コンテナ */
.banner-inner {
  display: flex;
  flex-direction: column;
}
.banner-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-body {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.banner-body .tag-rule {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.4;
  color: #ffffff;
}
.banner-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  line-break: strict;
}
.banner-detail {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.rule-btn {
  align-self: flex-start; /* PCでは左寄せ、幅は中身に合わせる */
  background: #ffffff !important;
  color: #95201f !important;
  border: none;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}
.rule-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(149, 32, 31, 0.15), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 3s ease-in-out infinite;
}
.rule-btn:hover {
  background: #fdf2f2 !important;
  transform: translateY(-2px);
}

/* タブレット・PC表示 (768px以上) で2カラム化 */
@media (min-width: 768px) {
  .banner-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .banner-photo {
    width: 38%;
    aspect-ratio: auto; /* 高さを揃える */
  }
  .banner-photo img {
    border-radius: 16px 0 0 16px;
  }
  .banner-body {
    width: 62%;
    padding: 32px 40px;
    justify-content: center;
  }
}

/* ===== 導入キャッチフレーズ枠（あなたの言葉をYouTube作品に） ===== */
.pin-card.word-banner {
  background: linear-gradient(135deg, #2f1f15 0%, #5a3322 55%, #7a3d2a 100%);
  border: 1px solid rgba(217, 184, 90, 0.35);
  box-shadow: var(--shadow-hover);
  color: #ffffff;
  --tilt: 0.3deg;
  margin: 36px 0 40px;
  overflow: hidden;
  position: relative;
}
.word-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(217, 184, 90, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 184, 90, 0.10) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.6;
}
.word-banner .banner-body { gap: 14px; position: relative; }
.word-banner-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.word-banner-title span { display: inline; }
.word-banner-title em {
  font-style: normal;
  color: #ffd96b;
}
.word-banner-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  line-break: strict;
}
.word-banner-desc strong { color: #ffd96b; }
.word-banner-btn {
  align-self: flex-start;
  background: #ffd24d !important;
  color: #5a3322 !important;
  border: none;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pin-card.word-banner:hover .word-banner-btn {
  background: #ffdf75 !important;
}
@media (min-width: 768px) {
  .word-banner .banner-photo img { border-radius: 16px 0 0 16px; }
}

/* ミニボタン（カードやサイド用） */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ナイトライダー風ラインエフェクト（サイト読み込み時に1回だけ実行） */
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px; /* 下側の境界線にぴったり重ねます */
  left: 0;
  width: 20%; /* 光のビームの長さ */
  height: 2px; /* 光の線の太さ */
  background: linear-gradient(to right, transparent, var(--accent) 50%, transparent);
  box-shadow: 0 0 8px var(--accent); /* ネオンのように光らせる影 */
  transform: translateX(-100%);
  opacity: 0; /* 最初は透明にして待機します */
  animation: knight-rider 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1;
  animation-delay: 0.3s; /* 表示から0.3秒だけ待ってから走らせます */
  animation-fill-mode: both; /* 待っている間も非表示をキープします */
  pointer-events: none; /* クリックなどの邪魔をしない設定 */
}

@keyframes knight-rider {
  0% {
    transform: translateX(-100%);
    opacity: 0; /* スタート時は透明 */
  }
  15% {
    opacity: 1; /* 左端から出た瞬間にクッキリ光らせます */
  }
  100% {
    transform: translateX(400%);
    opacity: 0; /* 右端に抜けたら完全に消えます */
  }
}

/* =========================================================
   13. スマホ専用: 画面上端での付箋カードめくれエフェクト
   ========================================================= */
@media (max-width: 899px) {
  .pin-card {
    /* スクロール連動のために transition-origin を上端に設定 */
    transform-origin: top center;
    /* 戻る時の滑らかな復元用 */
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
}

/* =========================================================
   14. スムーススクロールライブラリ (Lenis) 動作安定用設定
   ========================================================= */
html.lenis, html.lenis-smooth {
  height: auto;
  /* Lenis動作中はブラウザ標準のスムーススクロールを切る。
     二重にスムース化されると、スクロールが「もっさり始まって
     急に追いつく」引っかかった動きになるため */
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}




/* ========================================================= */
/* ヒーロー動画レイアウト用スタイル */
/* ========================================================= */
.hero-video-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #000;
  line-height: 0;
}
.hero-video {
  width: 100%;
  height: auto;
  display: block;
}
/* PCとスマホでの表示切り替え */
.pc-only { display: block; }
.sp-only { display: none; }
@media (max-width: 767px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}

/* ========================================================= */
/* 音声オンオフ切り替え（タップ対応）用スタイル */
/* ========================================================= */
.mute-indicator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none; /* 動画コンテナのクリックを優先 */
  transition: background 0.3s, opacity 0.3s;
}
.hero-video-container {
  cursor: pointer;
}
.hero-video-container:hover .mute-indicator {
  background: rgba(0, 0, 0, 0.8);
}

/* =========================================================
   スプラッシュ画面（動画読み込みまでのブランド表示）
   ========================================================= */
.hero-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper, #faf8f4);
  /* ★安全装置(地味なフェードのみ): JSが完全に動かない場合でも6秒後に
     自動で消える。JSが動く時は5秒で先に消えるので、通常この演出は
     表に出ない。見た目・動きは今までと変わらない。 */
  animation: hero-splash-failsafe 0.5s ease 11s forwards;
}
/* フェードアウト用クラス */
.hero-splash-hide {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
@keyframes hero-splash-failsafe {
  to { opacity: 0; pointer-events: none; }
}
.hero-splash-title {
  font-family: var(--font-serif, "Noto Serif JP", serif);
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  color: var(--ink, #1c1b18);
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
}
.hero-splash-title .pipi {
  font-family: "Outfit", var(--font-sans, sans-serif);
  font-weight: 700;
  color: var(--accent, #c1272d);
}
/* 「+」の回転アニメーション（回転→停止→回転→停止のリズム） */
.hero-splash-plus {
  display: inline-block;
  color: var(--gold, #b08d2f);
  font-weight: 900;
  animation: spin-pause 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes spin-pause {
  0%   { transform: rotate(0deg); }
  42%  { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================================
   動画制作サービス紹介ページ (video-service.html) 固有スタイル
   ========================================================= */
.main-video-service {
  padding-bottom: 80px;
  position: relative;
}
/* ヘッダー下の背景に、薄いゴールドの網目グラデーションを追加 */
.main-video-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px; /* 網目が完全に消えるまでの高さ */
  pointer-events: none; /* 下の要素のクリック操作を邪魔しない */
  z-index: 0;
  
  /* 補助色（金茶）をベースにした極薄の網目パターン */
  background-image: 
    linear-gradient(to right, rgba(176, 141, 47, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176, 141, 47, 0.09) 1px, transparent 1px);
  background-size: 18px 18px; /* 網目の大きさ */
  
  /* 上から下へ向かって徐々に透明になるフェードアウトマスク */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}
.main-video-service .container {
  position: relative;
  z-index: 1;
}
.dialogue-section {
  max-width: 900px;
  margin: 40px auto;
}
.dialogue-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.dialogue-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.dialogue-item.align-left {
  flex-direction: row;
}
.dialogue-item.align-right {
  flex-direction: row-reverse;
}
/* セクション冒頭などに単独で置く会話吹き出しの余白 */
.dialogue-item.is-intro {
  margin: 10px 0 28px;
}

.char-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}
.avatar-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.char-name {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  color: #fff;
  line-height: 1.2;
}

/* キャラクター別カラー設定 */
.char-ai .avatar-img-wrap { border: 3px solid var(--gold); }
.char-ai .char-name { background-color: var(--gold); }
.char-ai .dialogue-bubble {
  --bubble-bg: #fffbf0;
  --bubble-border: #ecd9a6;
  background-color: #fffbf0;
  border: 1px solid #ecd9a6;
}

.char-rin .avatar-img-wrap { border: 3px solid #ff7fa7; }
.char-rin .char-name { background-color: #ff7fa7; }
.char-rin .dialogue-bubble {
  --bubble-bg: #fff3f7;
  --bubble-border: #ffc9d8;
  background-color: #fff3f7;
  border: 1px solid #ffc9d8;
}

.char-mio .avatar-img-wrap { border: 3px solid #2da662; }
.char-mio .char-name { background-color: #2da662; }
.char-mio .dialogue-bubble {
  --bubble-bg: #edfaf3;
  --bubble-border: #b6e6cb;
  background-color: #edfaf3;
  border: 1px solid #b6e6cb;
}

.dialogue-bubble {
  position: relative;
  --bubble-bg: var(--paper-card, #ffffff);
  --bubble-border: var(--line, #eae6dd);
  background-color: var(--paper-card, #ffffff);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: calc(100% - 100px);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* 吹き出しのツノ */
.dialogue-item.align-left .dialogue-bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -10px;
  border-style: solid;
  border-width: 8px 10px 8px 0;
  border-color: transparent var(--bubble-bg) transparent transparent;
  display: block;
  width: 0;
  z-index: 1;
}
.dialogue-item.align-right .dialogue-bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  right: -10px;
  border-style: solid;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent var(--bubble-bg);
  display: block;
  width: 0;
  z-index: 1;
}

/* ツノの縁取り（濃い色の少し大きい三角を背面に重ねる） */
.dialogue-item.align-left .dialogue-bubble::after {
  content: "";
  position: absolute;
  top: 23px;
  left: -12px;
  border-style: solid;
  border-width: 9px 12px 9px 0;
  border-color: transparent var(--bubble-border) transparent transparent;
  display: block;
  width: 0;
  z-index: 0;
}
.dialogue-item.align-right .dialogue-bubble::after {
  content: "";
  position: absolute;
  top: 23px;
  right: -12px;
  border-style: solid;
  border-width: 9px 0 9px 12px;
  border-color: transparent transparent transparent var(--bubble-border);
  display: block;
  width: 0;
  z-index: 0;
}

/* 吹き出し内カード */
.bubble-embed-card {
  background: var(--paper, #faf8f4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}
.usage-list {
  list-style: none;
  padding: 0;
}
.usage-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.usage-list li:last-child {
  margin-bottom: 0;
}
.usage-list .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* 業種カード */
.industry-card {
  max-width: 100%;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-col h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.industry-col ul {
  list-style: none;
  padding: 0;
}
.industry-col li {
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.industry-note {
  margin-top: 14px;
  font-size: var(--fs-small);
  text-align: center;
  font-weight: 700;
  color: var(--accent);
}

/* キャラクターの強調テキストに色をつける */
.char-ai .dialogue-bubble strong { color: #8a6a18; }
.char-rin .dialogue-bubble strong { color: #c93360; }
.char-mio .dialogue-bubble strong { color: #1a7a42; }

/* 話題の区切り線 */
.dialogue-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.dialogue-divider::before,
.dialogue-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 40%, var(--accent) 60%, transparent);
  opacity: 0.35;
}
.divider-scene {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 8px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.divider-scene img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.divider-scene--full {
  max-width: 760px;
}
.divider-scene--full img {
  height: auto;
  object-fit: unset;
}

.dialogue-divider span {
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  white-space: nowrap;
  padding: 2px 10px;
  border-bottom: 2px solid var(--gold);
}
@media (min-width: 900px) {
  .dialogue-divider span {
    font-size: 1.6rem;
  }
}

/* お問い合わせページ：白カードを外して薄黄色の地に直接会話を乗せる */
.contact-talks {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.talk-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 900;
  text-decoration: none;
  margin: 12px 0 2px;
  padding: 8px 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  line-height: 1;
  transition: background .2s, color .2s;
}
.talk-tel:hover {
  background: var(--accent);
  color: #fff;
}
.talk-btn { display: inline-block; margin-top: 16px; }

/* お知らせ掲示板の見出し（最上部）。上はメニューとの間隔、下はNEWSティッカーとの間隔 */
.board-head {
  margin-top: 24px;
  margin-bottom: 28px;
}

/* Ai３姉妹 モーダル */
.ai3modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.ai3modal-overlay.is-visible {
  display: flex;
}
.ai3modal-box {
  background: var(--paper-card);
  border-radius: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.ai3modal-img img {
  width: 100%;
  height: auto;
  display: block;
}
.ai3modal-body {
  padding: 20px 20px 24px;
  text-align: center;
}
.ai3modal-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #1f6fb2;
  margin: 0 0 8px;
}
.ai3modal-welcome {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #1f6fb2;
  line-height: 1.2;
  margin-bottom: 2px;
}
.ai3modal-lead {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 20px;
}
.ai3modal-lead strong {
  color: #d6336c;
  font-weight: 700;
}
.ai3modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.ai3modal-divider::before,
.ai3modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ai3modal-divider span {
  font-size: 0.92rem;
  color: #1f6fb2;
  white-space: nowrap;
}
.ai3modal-members {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.ai3modal-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 150px;
}
.ai3modal-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--line);
}
.ai3modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ai3modal-member.char-rin .ai3modal-avatar { border-color: #c93360; }
.ai3modal-member.char-ai  .ai3modal-avatar { border-color: #8a6a18; }
.ai3modal-member.char-mio .ai3modal-avatar { border-color: #1a7a42; }
.ai3modal-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
}
.ai3modal-member.char-rin .ai3modal-name { color: #c93360; }
.ai3modal-member.char-ai  .ai3modal-name { color: #8a6a18; }
.ai3modal-member.char-mio .ai3modal-name { color: #1a7a42; }
.ai3modal-member p {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.ai3modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ai3modal-actions .btn {
  font-size: 0.9rem;
  padding: 10px 20px;
}
@media (min-width: 900px) {
  .ai3modal-title { font-size: 1.5rem; }
  .ai3modal-avatar { width: 88px; height: 88px; }
  .ai3modal-name   { font-size: 1.1rem; }
  .ai3modal-member p { font-size: 0.85rem; }
}
/* 縦の狭いスマホ(iPhone SE等)で収まるよう余白と画像を詰める */
@media (max-width: 480px) {
  .ai3modal-img img { max-height: 26vh; object-fit: cover; }
  .ai3modal-welcome { font-size: 1.5rem; }
  .ai3modal-body { padding: 14px 16px 18px; }
  .ai3modal-lead { margin-bottom: 14px; line-height: 1.6; }
  .ai3modal-members { margin-bottom: 16px; gap: 8px; }
  .ai3modal-avatar { width: 60px; height: 60px; }
  .ai3modal-divider { margin-bottom: 12px; }
}

/* CTAボタンのシマー(光が流れるアニメ) */
@keyframes btn-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.video-cta-section .btn-accent {
  position: relative;
  overflow: hidden;
}
.video-cta-section .btn-accent::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 3s ease-in-out infinite;
}
.video-cta-section .btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: #fff;
}
.video-cta-section .btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 3s ease-in-out 1.5s infinite;
}
@keyframes btn-shimmer {
  0%   { left: -75%; }
  60%, 100% { left: 125%; }
}

/* CTA */
.video-cta-section {
  margin-top: 60px;
}
.cta-card {
  background-color: var(--paper-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  border: 2px dashed var(--line);
}
.cta-card h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--ink);
}
.cta-card p {
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 28px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cta-actions .btn {
  min-width: 260px;
  font-size: 1.1rem;
  padding: 16px 32px;
}
.cta-note {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .dialogue-item {
    gap: 12px;
  }
  .char-avatar {
    width: 60px;
  }
  .avatar-img-wrap {
    width: 54px;
    height: 54px;
  }
  .char-name {
    font-size: 0.75rem;
    padding: 1px 6px;
  }
  .dialogue-bubble {
    font-size: 0.95rem;
    padding: 16px 20px;
    max-width: calc(100% - 72px);
  }
  .industry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta-card {
    padding: 30px 20px;
  }
  .cta-card h2 {
    font-size: 1.4rem;
  }
  .cta-actions .btn {
    width: 100%;
  }
}

/* --- スクロールで対話吹き出しがふわっと登場する設定 --- */
@media (prefers-reduced-motion: no-preference) {
  .dialogue-item.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .dialogue-item.reveal.revealed {
    opacity: 1;
    transform: none;
  }
}
