/* ECモール イベントカレンダー（ShopValue）
   色・書体・部品の形は shopvalue.net のテーマ（wp-theme/shopvalue/style.css）に合わせる。
   書体は /fonts/ から配信し、外部の Web フォントには読みに行かない */
:root {
  --red: #e50914;
  --red-dark: #c5070f;
  --gold: #ffc85a;
  --black: #1a1a1a;
  --gray-dark: #6e6e6e;
  --gray-mid: #999999;
  --gray-light: #f6f6f6;
  --gray-border: #eeeeee;
  --white: #ffffff;
  --pink: #fff5f5;
  --footer: #282828;
  --warn-bg: #fff4dc;
  --warn-ink: #7a4d00;
  --error-bg: #fdeced;
  --error-ink: #9a1017;

  --m-rakuten: #a61e4d;
  --m-yahoo: #1c6dd0;
  --m-amazon: #a85a00;
  --m-aupay: #0f7a5c;
  --m-qoo10: #6b4fd3;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
  --font-brand: "EB Garamond", Garamond, "Times New Roman", serif;

  --lane-h: 24px;
  --header-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--black); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.5; margin: 0; }

button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

/* ========== ヘッダー（shopvalue.net と同じ） ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 48px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.logo { font-family: var(--font-brand); font-size: 28px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; color: var(--black); text-decoration: none; }
.logo span { color: var(--red); }
.logo:hover { color: var(--black); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { font-size: 14px; font-weight: 500; color: var(--black); text-decoration: none; white-space: nowrap; }
.header-nav a:hover { color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, var(--red), var(--gold)); color: var(--white);
  font-size: 14px; font-weight: 700; line-height: 1.5;
  padding: 10px 24px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); z-index: 99; overflow-y: auto; padding: 8px 24px 32px; }
.mobile-nav a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--gray-border); text-decoration: none; font-weight: 500; }
.mobile-menu-cta { margin-top: 24px; }
.mobile-menu-cta .btn-primary { width: 100%; padding: 14px 24px; }

/* ========== ページの見出し帯とパンくず（shopvalue.net の page-hero と同じ） ========== */
.page-hero { background: var(--red); padding: 56px 24px; text-align: center; color: var(--white); }
.page-hero-label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.8); letter-spacing: 2px; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(22px, 5.6vw, 34px); color: var(--white); margin-bottom: 16px; text-wrap: balance; }
.page-hero p { margin: 0 auto; max-width: 40em; font-size: 15px; color: rgba(255, 255, 255, 0.92); text-wrap: pretty; }

.breadcrumb { border-bottom: 1px solid var(--gray-border); font-size: 12px; color: var(--gray-dark); }
.breadcrumb .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 12px; }
.breadcrumb a { color: var(--gray-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; }
.page-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ========== 見出しと本文まわり ========== */
section.wrap > h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.section-lead { margin: 12px 0 18px; color: var(--gray-dark); max-width: 44em; }

.intro { padding-block: 28px 0; }
.status { margin: 0; font-size: 14px; }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 14px; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; }
.status-detail { margin-top: 8px; font-size: 13px; color: var(--gray-dark); }
.status-detail summary { cursor: pointer; }
.status-detail ul { margin: 8px 0 0; padding-left: 20px; }
.status-detail .bad { color: var(--error-ink); font-weight: 700; }

/* これから始まる大型セール */
.next { padding-block: 36px 8px; }
.next-list { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--gray-border); border-radius: 12px; overflow: hidden; background: var(--white); }
.next-list li + li { border-top: 1px solid var(--gray-border); }
.next-row {
  display: grid; grid-template-columns: 9.5em 1fr auto; gap: 6px 18px; align-items: baseline;
  width: 100%; text-align: left; background: none; border: 0; padding: 14px 20px; cursor: pointer;
}
.next-row:hover { background: var(--pink); }
.next-when { font-size: 14px; color: var(--gray-dark); font-variant-numeric: tabular-nums; }
.next-title { font-weight: 700; }
.next-title .chip { margin-right: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.6; padding: 1px 12px; border: 1px solid var(--red); color: var(--red); border-radius: 999px; white-space: nowrap; }
.tag.now { background: var(--red); border-color: var(--red); color: var(--white); }

/* カレンダー */
.cal-section { padding-block: 40px 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.month-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.month-label { font-family: var(--font-serif); font-size: 20px; font-weight: 600; min-width: 7.5em; text-align: center; }
.view-toggle { display: flex; }

.btn {
  display: inline-block; background: var(--white); border: 1px solid #d9d9d9; border-radius: 999px; padding: 6px 18px;
  cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.6;
}
.btn:hover { background: var(--pink); border-color: var(--red); color: var(--black); }
.btn-quiet { border-color: var(--gray-border); }
.view-toggle .btn:first-child { border-radius: 999px 0 0 999px; border-right-width: 0; }
.view-toggle .btn:last-child { border-radius: 0 999px 999px 0; }
.toggle[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); font-weight: 700; }
.toggle[aria-pressed="true"]:hover { background: var(--red-dark); color: var(--white); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.filter-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group legend { font-size: 13px; color: var(--gray-dark); padding: 0; margin-bottom: 4px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9d9d9; border-radius: 999px; padding: 2px 14px 2px 10px; cursor: pointer; font-size: 13px; background: var(--white); }
.chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chk:has(input:checked) { border-color: var(--red); background: var(--pink); font-weight: 700; }
.chk:has(input:focus-visible) { outline: 3px solid var(--black); outline-offset: 2px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--black)); flex: none; }
.chk:not(:has(input:checked)) .swatch { opacity: 0.35; }

.count { margin: 18px 0 8px; font-size: 13px; color: var(--gray-dark); }

.m-rakuten { --c: var(--m-rakuten); }
.m-yahoo { --c: var(--m-yahoo); }
.m-amazon { --c: var(--m-amazon); }
.m-aupay { --c: var(--m-aupay); }
.m-qoo10 { --c: var(--m-qoo10); }

.chip { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.6; padding: 0 10px; border-radius: 999px; background: var(--c); color: var(--white); white-space: nowrap; }

/* 月表示 */
.cal-scroll { overflow-x: auto; border: 1px solid var(--gray-border); border-radius: 12px; background: var(--white); }
.cal-inner { min-width: 700px; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--gray-light); border-bottom: 1px solid var(--gray-border); font-size: 12px; color: var(--gray-dark); text-align: center; }
.dow div { padding: 5px 0; }
.week:last-child { border-bottom: 0; }
.week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: var(--lane-h);
  grid-template-rows: auto; border-bottom: 1px solid var(--gray-border); position: relative; padding-bottom: 4px;
}
.day { grid-row: 1 / -1; border-left: 1px solid var(--gray-border); min-height: 64px; }
.day:first-of-type { border-left: 0; }
.day.out { background: var(--gray-light); }
.day.today { background: var(--pink); box-shadow: inset 0 3px 0 var(--red); }
.day-num {
  grid-row: 1; justify-self: start; margin: 4px 0 2px 4px; min-width: 26px; height: 24px; padding: 0 4px;
  background: none; border: 0; font-size: 13px; line-height: 24px; text-align: center; cursor: pointer; z-index: 1; font-variant-numeric: tabular-nums;
}
.day-num:hover { text-decoration: underline; }
.day-num.out { color: #8a8a8a; }
.day-num.today { background: var(--red); color: var(--white); font-weight: 700; border-radius: 12px; }
.bar {
  height: calc(var(--lane-h) - 3px); margin: 0 2px; padding: 0 6px; background: var(--c); color: var(--white);
  border: 0; text-align: left; font-size: 12px; line-height: calc(var(--lane-h) - 3px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; z-index: 1; border-radius: 4px; align-self: center;
}
.bar:hover { filter: brightness(0.88); }
.bar:focus-visible { outline: 2px solid var(--white); box-shadow: 0 0 0 5px var(--black); }
.bar.cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar .ini { font-weight: 700; margin-right: 5px; opacity: 0.95; }
.bar.rule { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1px var(--c); }
.bar.rule .ini { color: var(--c); }
.more { margin: 0 4px; border: 0; background: none; font-size: 12px; color: var(--gray-dark); text-align: left; cursor: pointer; z-index: 1; text-decoration: underline; padding: 0; }
.cal-bottom { display: none; }

/* 一覧表示 */
.list-group { margin: 22px 0 0; }
.list-group h3 { font-size: 17px; padding-bottom: 6px; border-bottom: 2px solid var(--black); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { border-bottom: 1px solid var(--gray-border); }
.event-row {
  display: grid; grid-template-columns: 11.5em 5.5em 1fr auto; gap: 4px 14px; align-items: baseline;
  width: 100%; text-align: left; background: none; border: 0; padding: 10px 6px; cursor: pointer;
}
.event-row:hover { background: var(--pink); }
.event-row .when { font-size: 13px; color: var(--gray-dark); font-variant-numeric: tabular-nums; }
.event-row .cat { font-size: 12px; color: var(--gray-dark); margin-left: 8px; }
.list-more { display: block; margin: 20px auto 0; padding: 10px 28px; }
.past-toggle { display: inline-block; margin-top: 16px; font-size: 14px; cursor: pointer; }

.empty { margin: 18px 0; padding: 18px; background: var(--gray-light); border-radius: 12px; }
.error { margin: 18px 0; padding: 14px 16px; background: var(--error-bg); color: var(--error-ink); border-radius: 12px; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--gray-dark); max-width: 50em; }

/* 購読 */
.subscribe { padding-block: 48px 8px; }
.feed-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gray-border); border-radius: 12px; overflow: hidden; }
.feed-list li { display: grid; grid-template-columns: 11em 1fr auto; gap: 6px 14px; align-items: center; padding: 10px 20px; }
.feed-list li + li { border-top: 1px solid var(--gray-border); }
.feed-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.feed-url { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--gray-dark); overflow-wrap: anywhere; }
.howto { margin-top: 16px; }
.howto summary { cursor: pointer; font-weight: 700; }
.howto dl { margin: 10px 0 0; }
.howto dt { font-weight: 700; margin-top: 10px; }
.howto dd { margin: 2px 0 0; color: var(--gray-dark); max-width: 46em; }

/* ニュース */
.news { padding-block: 48px 8px; }
.news-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gray-border); border-radius: 12px; overflow: hidden; }
.news-list li { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 14px; padding: 12px 20px; align-items: baseline; }
.news-list li + li { border-top: 1px solid var(--gray-border); }
.news-date { font-size: 13px; color: var(--gray-dark); font-variant-numeric: tabular-nums; }
.news-site { font-size: 12px; color: var(--gray-dark); margin-left: 8px; }
.news-list .chip { margin-left: 8px; }

/* 説明・規約のページ */
.prose { padding-block: 40px 56px; max-width: 800px; }
.prose h2 { font-size: 19px; margin-top: 36px; padding-bottom: 6px; border-bottom: 2px solid var(--red); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 42em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-top: 4px; }
.prose .meta { font-size: 13px; color: var(--gray-dark); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; background: var(--gray-light); padding: 1px 6px; border-radius: 4px; }
.spec { border-collapse: collapse; width: 100%; max-width: 42em; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--gray-border); }
.spec th { width: 9em; font-weight: 700; white-space: nowrap; }

/* ========== 相談への導線（フッター直前の赤い帯。shopvalue.net と同じ） ========== */
.cta-band { background: var(--red); color: var(--white); text-align: center; padding: 64px 24px; margin-top: 56px; }
.cta-band h2 { color: var(--white); font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.cta-band p { margin: 0 auto 28px; max-width: 40em; color: rgba(255, 255, 255, 0.92); }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-white, .btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; line-height: 1.5;
  padding: 14px 40px; border-radius: 999px; text-decoration: none;
}
.btn-white { background: var(--white); color: var(--red); border: 2px solid var(--white); }
.btn-white:hover { background: var(--pink); color: var(--red); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.6); }
.btn-outline-white:hover { border-color: var(--white); color: var(--white); }

/* ========== フッター（shopvalue.net と同じ） ========== */
.footer { background: var(--footer); color: var(--white); padding: 48px 80px 32px; font-size: 13px; }
.footer a { text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-logo { font-family: var(--font-brand); font-size: 28px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; margin-bottom: 2px; }
.footer-logo span { color: var(--red); }
.footer-company { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.footer-company a { color: inherit; }
.footer-tagline { font-size: 12px; color: rgba(255, 255, 255, 0.45); line-height: 1.7; margin: 10px 0 0; }
.footer-nav h4 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, 0.4); margin: 0 0 14px; }
.footer-nav a { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-nav .cat { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.5); margin-top: 12px; margin-bottom: 6px; }
.footer-nav .cat:first-of-type { margin-top: 0; }
.footer-nav .sub { padding-left: 10px; font-size: 12px; margin-bottom: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-copy { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--white); }

/* 詳細ダイアログ */
.dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); background: var(--white); color: var(--black); overflow: hidden; }
.dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 2px solid var(--red); }
.dialog-head h2 { font-size: 19px; }
.dialog-head .btn { flex: none; }
.dialog-body { padding: 14px 20px 22px; overflow-y: auto; max-height: calc(100vh - 160px); }
.facts { margin: 0; }
.facts dt { font-size: 12px; color: var(--gray-dark); margin-top: 12px; }
.facts dd { margin: 2px 0 0; }
.facts .hint { font-size: 13px; color: var(--gray-dark); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.day-list { list-style: none; margin: 0; padding: 0; }
.day-list li { border-bottom: 1px solid var(--gray-border); }
.day-list .event-row { grid-template-columns: 5.5em 1fr; }

/* ========== 画面が狭いとき ========== */
@media (max-width: 1100px) {
  .header { padding: 0 32px; }
  .header-nav { gap: 20px; }
  .header-nav a { font-size: 13px; }
  .footer { padding: 40px 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .header-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  :root { --header-h: 64px; }
  .header { padding: 0 20px; }
  .logo { font-size: 24px; }
  .page-hero { padding: 40px 20px; }
  .wrap { padding-inline: 20px; }
  .next-row { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .next-when { grid-column: 1 / -1; }
  .event-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .event-row .when { width: 100%; }
  .event-row .ttl { flex: 1 1 12em; }
  .day-list .event-row .mall-col { min-width: 5.5em; }
  .feed-list li { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .feed-url { grid-column: 1 / -1; grid-row: 2; }
  .news-list li { grid-template-columns: 1fr; padding: 12px 16px; }
  .cta-band { padding: 48px 20px; }
  .btn-white, .btn-outline-white { padding: 12px 28px; font-size: 15px; }
  .footer { padding: 36px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
