@charset "utf-8";
/* =========================================================
   大阪商店街にぎわいキャンペーン2026
   ========================================================= */

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, li, figure, blockquote {
  margin: 0; padding: 0;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: top; }

/* ---------- カラー変数 ---------- */
:root {
  --cream:        #efe8d8;   /* ページ最背面 */
  --panel:        #f7f2e7;   /* スマホ面 */
  --card:         #ffffff;
  --ink:          #5a4736;   /* 見出し茶 */
  --ink-soft:     #6f5d4c;   /* 本文茶 */
  --footer-bg:    #6f5240;
  --accent:       #ec5a6e;   /* コーラル（メガホン・ボタン） */

  --m7:  #e85f7c;  /* 7月 ピンク */
  --m8:  #4a82c4;  /* 8月 ブルー */
  --m9:  #1faa90;  /* 9月 グリーン */
  --m10: #f0913a;  /* 10月 オレンジ */
  --m11: #9a6cb6;  /* 11月 パープル */
  --m12: #e8506e;  /* 12月 レッド */
}

/* ---------- ベース ---------- */
body {
  font-family: "Zen Maru Gothic", "ヒラギノ丸ゴ ProN", "Hiragino Maru Gothic ProN", sans-serif;
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}
html { scroll-behavior: smooth; }

/* ---------- レイアウト ---------- */
html { scroll-behavior: smooth; }
.container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 46px;
  padding: 48px 24px;
}

/* 左サイドバー（PC・タブレット） */
.side {
  position: sticky;
  top: 40px;
  width: 280px;
  flex-shrink: 0;
}
.side__logo { text-align: center; }
.side__logo img { width: 200px; }
.side__menu {
  margin-top: 26px;
  background: #fff;
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 16px 34px rgba(120, 95, 60, .14);
}
.side__menu-head {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .04em;
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.side__menu li + li { border-top: 1px solid #f0ece2; }
.side__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  position: relative;
  transition: transform .2s ease, color .2s ease;
}
.side__menu a:hover { transform: translateX(4px); }
.side__menu-txt { font-weight: 700; color: var(--ink); font-size: 15px; }
.badge {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
}
.side__chevron {
  margin-left: auto;
  width: 8px; height: 8px;
  border-top: 2px solid #9fc0e0;
  border-right: 2px solid #9fc0e0;
  transform: rotate(45deg);
}
.badge--m7  { background: var(--m7); }
.badge--m8  { background: var(--m8); }
.badge--m9  { background: var(--m9); }
.badge--m10 { background: var(--m10); }
.badge--m11 { background: var(--m11); }
.badge--m12 { background: var(--m12); }

/* サイドメニュー下のSNSボタン */
.side__sns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.side__sns a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--footer-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform .2s ease, opacity .2s ease;
}
.side__sns a:hover { transform: translateY(-3px); opacity: .85; }

/* 右カラム（スマホ面） */
.phone-wrap {
  position: relative;
  width: 480px;
  flex-shrink: 0;
}
.phone {
  width: 100%;
  background: var(--panel);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(120, 95, 60, .16);
}
/* 個別ページは .phone-wrap で包まれていないため、index と同じ幅(480px固定)に揃える */
.phone--event {
  width: 480px;
  flex-shrink: 0;
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  background: var(--panel);
  overflow: hidden;
  padding-bottom: 18px;
}
.hero__visual {
  position: relative;
  background: url("../images/mv_bg.png") center top / cover no-repeat;
  overflow: hidden;
}
/* あいちゃん（肩書・波模様を含む一体画像） */
.hero__aichan {
  position: relative;
  display: block;
  width: 100%;
  z-index: 2;
}
.hero__bubble {
  position: absolute;
  right: 8px;
  bottom: 34px;
  width: 152px;
  z-index: 5;
  animation: bubble-pop 3.4s ease-in-out infinite;
}
@keyframes bubble-pop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-1.5deg); }
}

.hero__title {
  position: relative;
  text-align: center;
  padding: 14px 20px 6px;
  margin-top: -54px;
  z-index: 4;
}
.hero__lead {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}
.hero__lead-mark { width: 13px; margin-bottom: 8px; }
.hero__lead-arch {
  width: 66%;
  max-width: 300px;
  height: auto;
  overflow: visible;
  /* ロード時に左→右へ流れるように出現（1回） */
  animation: arch-flow 1.3s cubic-bezier(.22, .61, .36, 1) .3s both;
}
@keyframes arch-flow {
  from { clip-path: inset(0 100% 0 0); opacity: .35; }
  to   { clip-path: inset(0 0 0 0);   opacity: 1; }
}
.hero__lead-arch text {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 19px;
  fill: var(--ink);
  letter-spacing: .5px;
}
/* ロゴ：ロード時にふわっと登場 → 以降ごく控えめに上下ゆらぎ */
.hero__logo { animation: logo-bob 6s ease-in-out 2s infinite; }
.hero__logo img { width: 72%; max-width: 320px; animation: logo-pop .8s cubic-bezier(.22, .61, .36, 1) 1s both; }
@keyframes logo-pop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.hero__sub {
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  margin-top: 22px;
}
.hero__deco {
  position: absolute;
  width: 30%;
  max-width: 160px;
  z-index: 1;
}
.hero__deco--1 { top: 32px;    right: -13%; width: 30%; max-width: 158px; animation: floaty 4s ease-in-out infinite; }
.hero__deco--2 { bottom: 30px; left: -9%;  width: 29%; max-width: 150px; animation: floaty 4.6s ease-in-out infinite .4s; }
.hero__deco--3 { bottom: 2px;  right: -12%; width: 30%; max-width: 160px; animation: floaty 4.3s ease-in-out infinite .2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(2deg); }
}

/* SCROLLインジケーター（ページ全体に対して右下固定の白い縦タブ） */
.scroll-indicator {
  position: fixed;
  right: 22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 13px 26px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(120, 95, 60, .16);
  z-index: 50;
}
.scroll-indicator span {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .34em;
  color: #9a8a76;
  font-weight: 700;
}
.scroll-indicator::after {
  content: "";
  width: 1.5px; height: 46px;
  background: #8d86a0;
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   開催スケジュール
   ========================================================= */
.schedule {
  background: var(--panel);
  padding: 8px 20px 0;
}
.schedule__panel {
  background: #fff;
  border-radius: 24px;
  padding: 26px 20px 30px;
  box-shadow: 0 14px 30px rgba(120, 95, 60, .10);
}
.schedule__title {
  text-align: center;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 22px;
}
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sched-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border: 2px solid;
  border-radius: 14px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sched-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(120, 95, 60, .16); }
.sched-card__month {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.sched-card__go {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}
.sched-card--m7  { --mc: var(--m7); }
.sched-card--m8  { --mc: var(--m8); }
.sched-card--m9  { --mc: var(--m9); }
.sched-card--m10 { --mc: var(--m10); }
.sched-card--m11 { --mc: var(--m11); }
.sched-card--m12 { --mc: var(--m12); }
.sched-card { border-color: color-mix(in srgb, var(--mc) 42%, #fff); }
.sched-card__month, .sched-card__go { color: var(--mc); }

.schedule__machinami {
  display: block;
  width: 100%;
  margin-top: 18px;
}

/* =========================================================
   紹介文
   ========================================================= */
.intro {
  background: var(--panel);
  text-align: center;
  padding: 26px 20px 30px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  line-height: 2.1;
}

/* =========================================================
   食べる・遊ぶ・買う（画像）
   ========================================================= */
.feature { background: var(--panel); }
.feature__item img { width: 100%; display: block; }

/* =========================================================
   イベントリスト
   ========================================================= */
.events {
  background: var(--panel);
  padding: 30px 20px 36px;
}
.events__month { scroll-margin-top: 20px; }
.events__month + .events__month { margin-top: 30px; }
.events__month--m7  { --mc: var(--m7); }
.events__month--m8  { --mc: var(--m8); }
.events__month--m9  { --mc: var(--m9); }
.events__month--m10 { --mc: var(--m10); }
.events__month--m11 { --mc: var(--m11); }
.events__month--m12 { --mc: var(--m12); }
.events__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
/* 下線：表示時に左→右へスッと伸びる */
.events__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 2px dotted color-mix(in srgb, var(--mc, var(--accent)) 55%, #fff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1) .15s;
}
.events__head.is-visible::after { transform: scaleX(1); }
/* メガホン：表示時に1回だけ小さく揺れる */
.events__head.is-visible .megaphone { animation: mega-wiggle .7s ease both; }
@keyframes mega-wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-12deg); }
  45%  { transform: rotate(9deg); }
  65%  { transform: rotate(-5deg); }
  85%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}
.megaphone {
  width: 24px; height: 24px;
  flex-shrink: 0;
  background-color: var(--mc, var(--accent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4a1 1 0 0 0 1 1h2l1.5 4.5a1 1 0 0 0 .95.7h1.1a1 1 0 0 0 .95-1.32L10.4 15H11l8 4V5l-8 4H4a1 1 0 0 0-1 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4a1 1 0 0 0 1 1h2l1.5 4.5a1 1 0 0 0 .95.7h1.1a1 1 0 0 0 .95-1.32L10.4 15H11l8 4V5l-8 4H4a1 1 0 0 0-1 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.event-list { display: flex; flex-direction: column; gap: 18px; }
.event-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 10px 22px rgba(120, 95, 60, .10);
}
.event-card__title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.event-card__date {
  color: #8a7868;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 14px;
}
.event-card__body {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.event-card__img {
  flex-shrink: 0;
  align-self: flex-start;
  width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
}
.event-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.event-card__img img.is-loaded { opacity: 1; }
.event-card__img.is-placeholder {
  background: #c9c9c9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='m4 17 4.5-4.5 3 3L15 11l5 5'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.event-card__text {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.event-card__btn {
  align-self: flex-end;
  margin-top: 14px;
  display: inline-block;
  background: color-mix(in srgb, var(--mc, var(--accent)) 13%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--mc, var(--accent)) 45%, #fff);
  color: var(--mc, var(--accent));
  font-weight: 700;
  font-size: 14px;
  padding: 9px 26px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.event-card__btn:hover { background: color-mix(in srgb, var(--mc, var(--accent)) 22%, #fff); transform: translateY(-2px); }

.events__note {
  margin-top: 22px;
  font-size: 12px;
  color: #998978;
  text-align: center;
  line-height: 1.7;
}

/* =========================================================
   SNS（Instagram / Facebook / LINE）
   ========================================================= */
.sns { background: var(--panel); padding: 6px 16px 26px; }
.sns__instagram, .sns__facebook { margin-bottom: 16px; }
.sns__facebook { overflow: hidden; }
.sns__facebook .fb-page,
.sns__facebook .fb-page > span,
.sns__facebook .fb-page iframe { width: 100% !important; }
.sns__line { text-align: center; }
.sns__line img { width: 100%; border-radius: 10px; }

/* =========================================================
   フッター
   ========================================================= */
.footer {
  background: var(--footer-bg);
  color: #f3ece2;
  /* iOS: ホームインジケーター分の下余白を確保（cover時のみ有効・通常は0） */
  padding: 40px 24px calc(46px + env(safe-area-inset-bottom));
}
.footer__inner {
  font-size: 12.5px;
  line-height: 2;
  text-align: center;
  font-weight: 500;
}
.footer__copy { margin-top: 22px; font-size: 12px; letter-spacing: .04em; }

/* iOS対策：ダイナミックアイランド／ステータスバーの領域はページ背景色（body）が出る。
   スマホ幅（≤480px）では本体が常に全幅で、bodyの背景はセーフエリア（ノッチ周辺）と
   オーバースクロール時にしか見えないため、index含む全ページで白にして
   上部の白い帯／清潔感のある見た目に統一する。タブレット幅以上には影響させない。 */
@media (max-width: 480px) {
  html, body { background-color: #fff; }
}

/* =========================================================
   イベント個別ページ
   ========================================================= */
/* スマホ時のみ表示するロゴヘッダー */
.event-topbar { display: none; }
@media (max-width: 1023px) {
  .event-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* 左=戻る / 中央=ロゴ / 右=メニュー（中央ロゴを維持） */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    /* iOS: ダイナミックアイランド／ステータスバーの領域まで白い帯を広げる */
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(120, 95, 60, .12);
  }
  .event-topbar__logo { justify-self: center; }
  .event-topbar__logo img { height: 54px; width: auto; }

  /* 左右のボタン（戻る／ハンバーガー）：44px角のタップ領域 */
  .event-topbar__back,
  .event-topbar__menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
  }
  .event-topbar__back { justify-self: start; }
  .event-topbar__menu-btn { justify-self: end; }

  /* 戻る（左向きシェブロン） */
  .event-topbar__back-ico {
    width: 11px;
    height: 11px;
    border-left: 2.5px solid var(--ink);
    border-bottom: 2.5px solid var(--ink);
    transform: rotate(45deg);
    margin-left: 3px;
  }

  /* ハンバーガー（3本線→×に変形） */
  .hamburger { position: relative; }
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease, top .2s ease, background .2s ease;
  }
  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .hamburger::before { top: -7px; }
  .hamburger::after  { top: 7px; }
  .event-topbar__menu-btn[aria-expanded="true"] .hamburger { background: transparent; }
  .event-topbar__menu-btn[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
  .event-topbar__menu-btn[aria-expanded="true"] .hamburger::after  { top: 0; transform: rotate(-45deg); }

  /* 月別メニュー（バー直下にドロップダウン。中身はPC左サイドと同じ .side__menu を流用） */
  .month-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 40;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .month-menu.is-open { opacity: 1; transform: translateY(0); }
  .month-menu .side__menu { margin-top: 0; }  /* サイドの上マージンはドロップダウン内では不要 */
}
.event-detail {
  background: var(--panel);
  padding: 22px 22px 36px;
}
.event-detail__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  transition: opacity .2s ease;
}
.event-detail__breadcrumb i { font-size: 11px; }
.event-detail__breadcrumb:hover { opacity: .7; }
.event-detail__title {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}
.event-detail__date {
  color: #8a7868;
  font-size: 13px;
  margin-top: 6px;
}
.event-detail__img {
  margin: 16px 0 20px;
  border-radius: 14px;
  overflow: hidden;
}
.event-detail__img img { width: 100%; display: block; }
.event-detail__img.is-placeholder {
  height: 220px;
  background: #c9c9c9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='m4 17 4.5-4.5 3 3L15 11l5 5'/%3E%3C/svg%3E") center / 48px no-repeat;
}
.event-detail__lead {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.event-detail__table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 14px;
}
.event-detail__table th,
.event-detail__table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid #eadfce;
}
.event-detail__table th {
  width: 92px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.event-detail__table td { color: var(--ink-soft); }
.event-detail__table a { color: var(--m8); text-decoration: underline; }
.event-detail__back {
  margin-top: 30px;
  text-align: center;
}
.event-detail__back a {
  display: inline-block;
  background: #fdeaec;
  border: 1.5px solid #f3aeb6;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 48px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
}
.event-detail__back a:hover { background: #fbdde1; transform: translateY(-2px); }

/* 他のイベントもチェック（おすすめ・回遊） */
.related {
  background: var(--panel);
  padding: 8px 22px 36px;
}
.related__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  padding-bottom: 12px;
  border-bottom: 2px dotted #e3b4ad;
  margin-bottom: 16px;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-card {
  --mc: var(--accent);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(120, 95, 60, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(120, 95, 60, .14); }
.related-card--m7  { --mc: var(--m7); }
.related-card--m8  { --mc: var(--m8); }
.related-card--m9  { --mc: var(--m9); }
.related-card--m10 { --mc: var(--m10); }
.related-card--m11 { --mc: var(--m11); }
.related-card--m12 { --mc: var(--m12); }
.related-card a {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 88px;   /* 全カードの高さを統一（タイトルは下で2行に制限） */
}
.related-card__img {
  flex-shrink: 0;
  width: 92px;
  align-self: stretch;
  background-size: cover;
  background-position: center;
}
.related-card__img.is-placeholder {
  background-color: #d8d2c6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='m4 17 4.5-4.5 3 3L15 11l5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;
}
.related-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px 12px 0;
}
.related-card__date {
  font-size: 12px;
  font-weight: 700;
  color: var(--mc);
}
.related-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* タイトルは最大2行（はみ出しは…で省略） */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   スクロール表示アニメーション
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   レスポンシブ：1024px以下はスマホ1カラム
   ========================================================= */
@media (max-width: 1023px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-width: 100%;
  }
  .side { display: none; }
  .phone-wrap {
    width: 100%;
    max-width: 480px;
  }
  .phone {
    border-radius: 0;
    box-shadow: none;
  }
  /* イベント個別ページのみ：ロゴ固定ヘッダー(position:sticky)を効かせるため
     overflow:hidden を解除（全幅・角丸なしのため見た目への影響なし） */
  .phone--event {
    overflow: visible;
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .scroll-indicator { display: none; }
}

/* アニメーションを好まないユーザー向け */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* アニメ無効でも要素が消えないように保険 */
  .event-card__img img { opacity: 1 !important; }
  .events__head::after { transform: scaleX(1) !important; }
  .hero__lead-arch { clip-path: none !important; opacity: 1 !important; }
  .hero__logo img { opacity: 1 !important; transform: none !important; }
}

.events__empty {
  margin: 4px 2px 10px;
  padding: 20px 16px;
  background: #f3efe6;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: center;
}
