/* ========================================
   那珂市商品券事業HP - メインスタイルシート
   ======================================== */

/* --- CSS変数 --- */
:root {
  --color-primary: #f4ea57;
  --color-primary-dark: #c9b835;
  --color-primary-light: #fdfce8;
  --color-secondary: #2E8B57;
  --color-secondary-dark: #1F6B42;
  --color-secondary-light: #E8F5EE;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAF7;
  --color-bg-warm: #FFF9F0;
  --color-bg-green: #F0FAF4;
  --color-text: #222222;
  --color-text-light: #5C5C5C;
  --color-accent: #E04B4B;
  --color-accent-light: #FFF0F0;
  --color-border: #E8E5DF;
  --color-blue: #3B82F6;
  --color-purple: #8B5CF6;
  --header-height: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

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

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  font-size: 15px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* --- 共通レイアウト --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.section__subtitle {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #B8960A;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section__desc {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* セクションにアクセントカラーを付与 */
.section--yellow { background: var(--color-primary-light); }
.section--green { background: var(--color-bg-green); }
.section--warm { background: var(--color-bg-warm); }

/* 大きな数字スタイル */
.big-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.big-number small {
  font-size: 20px;
  font-weight: 500;
}

/* カラフルな装飾ライン */
.color-line {
  width: 48px;
  height: 4px;
  margin: 0 auto 24px;
  border-radius: 2px;
}

.color-line--yellow { background: var(--color-primary); }
.color-line--green { background: var(--color-secondary); }
.color-line--red { background: var(--color-accent); }
.color-line--blue { background: var(--color-blue); }

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  border-bottom: 3px solid var(--color-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.header .nav {
  margin-left: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
}

.header__logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary-dark);
}

/* ハンバーガーメニュー（PC/SP共通で表示） */
.hamburger {
  display: block;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  bottom: 11px;
  transform: rotate(-45deg);
}

/* --- メインビジュアル (KV) --- */
.kv {
  position: relative;
  width: 100%;
  margin-top: var(--header-height);
  background: var(--color-primary);
}

.kv picture {
  display: block;
  width: 100%;
}

.kv__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* PC: 横長バナー。高さはビューポートの約8割まで。左右は KV 背景の黄色 */
@media (min-width: 769px) {
  .kv picture {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-height: 80vh;
    padding: 0 clamp(20px, 6vw, 80px);
    box-sizing: border-box;
  }

  .kv .kv__image {
    flex: 0 1 auto;
    width: auto;
    max-width: min(100%, 1320px);
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

/* モバイル: 縦長KVを幅いっぱい */
@media (max-width: 768px) {
  .kv picture {
    max-width: 100%;
  }

  .kv .kv__image {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* KV背景グラデーション（写真なしモード） */
.kv:not(:has(.kv__image)) {
  background: linear-gradient(160deg, #2E8B57, #F5A623);
}

.kv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(31, 107, 66, 0.7) 0%,
    rgba(245, 166, 35, 0.4) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.kv__catch {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.15);
  padding: 6px 20px;
  border-radius: 20px;
  backdrop-filter: blur(2px);
}

.kv__title {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.kv__title small {
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* --- CTAボタン --- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.text-center {
  text-align: center;
}

/* --- お知らせセクション --- */
.news__list {
  max-width: 720px;
  margin: 0 auto;
}

.news__item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.news__item:last-child {
  border-bottom: none;
}

.news__date {
  font-size: 14px;
  color: var(--color-text-light);
  white-space: nowrap;
  min-width: 100px;
}

.news__tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.news__tag--info {
  background: var(--color-secondary);
}

.news__text {
  font-size: 15px;
  flex: 1;
}

.news__text a {
  color: var(--color-text);
}

.news__text a:hover {
  color: var(--color-primary-dark);
}

/* --- 事業概要カード --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.card:hover .card__icon {
  background: var(--color-primary-light);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary);
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.card__text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.card__highlight {
  font-size: 32px;
  font-weight: 700;
  color: #B8960A;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.card__highlight small {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
}

/* --- ページヘッダー（下層ページ用） --- */
.page-header {
  background: var(--color-bg-alt);
  padding: 40px 0 36px;
  margin-top: var(--header-height);
  text-align: center;
  border-bottom: 2px solid var(--color-primary);
}

.page-header__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-header__sub {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* --- メリット訴求 --- */
.merits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.merit {
  text-align: center;
}

.merit__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #faf38a 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 217, 0, 0.3);
  transition: transform 0.3s ease;
}

.merit:hover .merit__icon {
  transform: scale(1.05);
}

.merit__icon svg {
  width: 44px;
  height: 44px;
  color: #fff;
}

.merit__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.merit__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- ステップフロー --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(46, 139, 87, 0.25);
}

.step__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.step__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.step__arrow {
  position: absolute;
  top: 24px;
  right: -20px;
  width: 24px;
  height: 24px;
  color: var(--color-border);
}

.step:last-child .step__arrow {
  display: none;
}

/* --- テーブル --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 720px;
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--color-bg-alt);
  font-weight: 700;
  width: 180px;
  white-space: nowrap;
}

/* --- 精算フロー タイムライン --- */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 3px;
  height: 100%;
  background: var(--color-border);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--color-secondary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-secondary);
}

.timeline__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- CTA セクション --- */
.cta-section {
  background: linear-gradient(135deg, #2E8B57 0%, #1F6B42 50%, #F5A623 150%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 50%;
}

.cta-section__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  position: relative;
}

.cta-section__text {
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
}

.cta-section__text a {
  color: #fff9c4;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.cta-section__text a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary-dark);
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-secondary-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  position: relative;
}

.cta-section .btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* --- 注意テキスト --- */
.note {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-top: 24px;
}

.note--accent {
  color: var(--color-accent);
}

/* --- フッター --- */
.footer {
  background: var(--color-secondary-dark);
  color: #fff;
  padding: 48px 0 24px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__info {
  text-align: center;
  line-height: 2;
}

.footer__info-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer__info p {
  font-size: 14px;
  opacity: 0.85;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.footer__links a:hover {
  color: #fff;
}

/* 緑フッター上のリンク（問い合わせメール等）はコントラスト確保 */
.footer__info a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer__info a:hover {
  color: #fff9c4;
}

.footer__copyright {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 16px;
}

/* --- プライバシーポリシー --- */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 16px;
  font-size: 15px;
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-content ul li {
  list-style: disc;
  font-size: 15px;
  margin-bottom: 4px;
}

/* --- 店舗一覧 --- */
.shops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.shops-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.shops-search__input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s;
  background: #fff;
}

.shops-search__input:focus {
  border-color: var(--color-primary);
}

.shops-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  pointer-events: none;
}

.shops-count {
  font-size: 14px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.shops-count strong {
  color: var(--color-primary-dark);
  font-size: 18px;
}

/* カテゴリフィルタ */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-light);
  background: #fff;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.filter-tag.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 店舗カードグリッド */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shop-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
}

.shop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.shop-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.shop-card__category--food {
  background: #FFF3E0;
  color: #E65100;
}

.shop-card__category--retail,
.shop-card__category--retail-food,
.shop-card__category--retail-nonfood {
  background: #E8F5E9;
  color: #2E7D32;
}

.shop-card__category--beauty {
  background: #FCE4EC;
  color: #C62828;
}

.shop-card__category--service {
  background: #E3F2FD;
  color: #1565C0;
}

.shop-card__category--medical {
  background: #F3E5F5;
  color: #6A1B9A;
}

.shop-card__category--other {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

.shop-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.shop-card__info {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.shop-card__info-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.shop-card__info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-text-light);
}

/* 検索結果なし */
.shops-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}

.shops-empty__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-border);
}

.shops-empty__text {
  font-size: 15px;
}

/* --- 商品券内訳テーブル --- */
.ticket-breakdown {
  max-width: 720px;
  margin: 0 auto;
}

.ticket-breakdown table {
  width: 100%;
  border-collapse: collapse;
}

.ticket-breakdown th,
.ticket-breakdown td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  text-align: left;
}

.ticket-breakdown thead th {
  background: var(--color-secondary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.ticket-breakdown tbody th {
  background: var(--color-bg-alt);
  font-weight: 700;
  white-space: nowrap;
}

.ticket-breakdown tbody td {
  text-align: center;
}

.ticket-label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
  vertical-align: middle;
}

.ticket-label--red { background: #D32F2F; }
.ticket-label--green { background: #388E3C; }
.ticket-label--blue { background: #1565C0; }

/* 券種マーク（店舗カード用） */
.ticket-marks {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.ticket-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ticket-mark--red { background: #D32F2F; }
.ticket-mark--green { background: #388E3C; }
.ticket-mark--blue { background: #1565C0; }

/* --- セクション画像（横幅帯） --- */
.section-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
}

/* --- 2カラムレイアウト（画像＋テキスト） --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__image {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 280px;
}

.split__text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.split__text p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    direction: ltr;
  }

  .section-image {
    max-height: 200px;
  }

  .split__image {
    max-height: 200px;
  }
}

/* --- ひまわり装飾パターン --- */
.sunflower-bg {
  position: relative;
}

.sunflower-bg::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='8' fill='%23D4891C'/%3E%3Cg fill='%23F5A623'%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(0 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(45 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(90 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(135 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(180 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(225 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(270 20 20)'/%3E%3Cellipse cx='20' cy='6' rx='4' ry='7' transform='rotate(315 20 20)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* --- HTMLフォーム --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group label .required {
  color: var(--color-accent);
  font-size: 12px;
  margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group .help-text {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

/* FAQ アコーディオン */
details summary {
  position: relative;
  padding-right: 28px;
}

details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}

details[open] summary::after {
  content: '-';
}

/* ニュースタグのポップ化 */
.news__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #333;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.news__tag--info {
  background: linear-gradient(135deg, var(--color-secondary), #4CAF7D);
}

/* フッターの装飾 */
.footer {
  background: var(--color-secondary-dark);
  color: #fff;
  padding: 48px 0 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

/* --- 右下固定ボタン（スクロールで出現） --- */
#fixedApplyBtn {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}

#fixedApplyBtn.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#fixedApplyBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
  #fixedApplyBtn {
    bottom: 16px !important;
    right: 16px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
  }
}

/* --- 利用上の注意 --- */
.caution-list {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 0;
}

.caution-list li {
  list-style: none;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 4px;
}

.caution-list li::before {
  content: "\25CF ";
  color: var(--color-accent);
  font-size: 10px;
  vertical-align: middle;
}

/* --- スライドインドロワー（PC/SP共通） --- */
.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transition: right 0.3s ease;
  z-index: 1050;
  padding: 80px 24px 40px;
  overflow-y: auto;
}

.drawer.is-open {
  right: 0;
}

.drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer__list li {
  border-bottom: 1px solid var(--color-border);
}

.drawer__list a {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.drawer__list a:hover {
  color: var(--color-primary-dark);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
}

.drawer-overlay.is-visible {
  display: block;
}

/* ========================================
   レスポンシブ
   ======================================== */

/* タブレット */
@media (max-width: 1079px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kv__title {
    font-size: 28px;
  }
}

/* スマートフォン */
@media (max-width: 767px) {
  :root {
    --header-height: 56px;
  }

  /* SP: テキストナビを隠す（ハンバーガーのみ） */
  .nav__list {
    display: none;
  }

  .hamburger {
    margin-left: 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
  }

  .nav-overlay.is-visible {
    display: block;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 15px;
  }

  /* セクション */
  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 17px;
    margin-bottom: 28px;
  }

  /* カード */
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 28px 20px;
  }

  /* お知らせ */
  .news__item {
    flex-direction: column;
    gap: 6px;
  }

  .news__date {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* メリット */
  .merits {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .merit__icon {
    width: 72px;
    height: 72px;
  }

  .merit__icon svg {
    width: 36px;
    height: 36px;
  }

  /* ステップ */
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step__arrow {
    display: none !important;
  }

  /* テーブル */
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 4px;
  }

  /* ページヘッダー */
  .page-header {
    padding: 28px 0 24px;
  }

  .page-header__title {
    font-size: 20px;
  }

  /* フッター */
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* CTA */
  .cta-section__title {
    font-size: 18px;
  }

  /* 店舗一覧 */
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shops-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shops-count {
    text-align: center;
  }
}
