/* 整理版：基本設定・各セクション・画面幅別指定の順に配置 */

:root {
  --black: #101010;
  --red: #d60012;
  --nav-gray: #777777;
  --text: #303030;
  --line: #d8d8d8;
  --page-bg: #ffffff;
  --content-bg: #e1e1e1;
  --mint: #d4f9f4;
  --accent-blue: #629df4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-shell {
  width: calc(100% - 2 * clamp(0px, 14vw, 102px));
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "header"
    "nav"
    "main"
    "footer";
}

.site-header {
  grid-area: header;
  background: var(--black);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
}

.site-header a img {
  width: clamp(130px, 110.3px + 5.26vw, 186px);
  height: auto;
}

.site-header h1 {
  font-size: initial;
  font-weight: initial;
  margin: initial;
  padding: initial;
}

.site-nav {
  grid-area: nav;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, min(280px, 22%)) minmax(0, 1fr);
  min-height: 48px;
  background: var(--nav-gray);
  color: #fff;
  border-bottom: 1px solid #aaa;
  width: 100%;
  box-sizing: border-box;
}

.headline-label {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--red);
  color: white;
  font-weight: 800;
  letter-spacing: .06em;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.nav-links {
  display: grid;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
}

.nav-links a {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 10px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-left: 1px solid rgba(255,255,255,.35);
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  padding-inline: clamp(2px, 1vw, 16px);
  font-size: clamp(0.8rem, 1.4vw, 1.5rem);
}

.nav-links a:hover, .nav-links a:focus-visible {
  background: #626262;
}

.nav-links a[aria-current="page"] {
  background: #686868;
}

.nav-links a:nth-child(4) {
  background: #20b0c6;
}

.nav-links a:nth-child(4):hover {
  background: #249bad;
}

main {
  grid-area: main;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero"
    "quick"
    "new"
    "order"
    "maincontent"
    "related";
  /* 全段をコンテンツの高さで確定させ、Safariの行伸縮を防ぐ */
  grid-template-rows: repeat(6, max-content);
  align-content: start;
}

.hero {
  grid-area: hero;
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 0;

  display: grid;
  place-items: center;
  overflow: hidden;

  color: #fff;
  background: var(--black);

  height: auto;
  aspect-ratio: 1216 / 390;
  max-height: none;

  box-sizing: border-box;
}

.hero-slides {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: none;
  min-height: 0;
  padding: 42px 24px 64px;
  align-content: center;
  justify-items: center;
  text-align: center;
  animation: fade-in .45s ease;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow-wrap: anywhere;
}

.hero-slide.is-active {
  display: grid;
}

.hero-kicker {
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-slide h1, .hero-slide h2 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(1.5rem, 3.8vw, 2.65rem);
  line-height: 1.25;
  font-weight: 900;
}

.hero-slide p {
  margin: 16px 0 0;
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
}

.hero-controls {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-control, .hero-dot {
  pointer-events: auto;
  cursor: pointer;
}

.hero-control {
  /* 固定の正方形 + Flexの縮小防止（旧iOSでの楕円化対策） */
  --hero-button-size: 34px;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 var(--hero-button-size);
  width: var(--hero-button-size);
  height: var(--hero-button-size);
  min-width: var(--hero-button-size);
  min-height: var(--hero-button-size);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: white;
  background: rgba(0,0,0,.12);
  font-size: 1.6rem;
  line-height: 1;
}

/* ドットと再生ボタンを中央でひとまとまりにする */
.hero-center-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* 矢印と同じ丸ボタン。装飾はアイコン画像を使わずCSSだけで生成。 */
.hero-play-toggle::before {
  content: "";
  display: block;
  width: 12px;
  height: 13px;
  background: linear-gradient(to right, #fff 0 36%, transparent 36% 64%, #fff 64% 100%);
}

/* ユーザーが停止したときは再生（三角）アイコンに切り替える */
.hero-play-toggle.is-paused::before {
  width: 0;
  height: 0;
  background: none;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  transform: translateX(2px);
}

.quick-area {
  grid-area: quick;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, .95fr);
  min-width: 0;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--line);
  min-height: 0;
  height: auto;
  overflow: hidden;
  /* カレンダーの内容高を基準に、左右の列を同じ高さへ */
  align-items: stretch;
}

.news-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  padding: 10px 5px 10px clamp(16px, 3vw, 42px);
  border-right: 2px solid var(--nav-gray);
  min-height: 0;
  overflow: hidden;
  /* ニュース本文の総行数がquick-area全体を押し広げないようにする */
  contain: size;
}

.news-title-row {
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.news-title-row h2 {
  margin: 0;
  padding-top: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
}

.news-arrow {
  font-size: 1.7rem;
}

.news-scroll {
  min-width: 0;
  max-height: none;
  overflow-y: auto;
  padding: 6px 0;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  height: 100%;
  overscroll-behavior: contain;
}

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

.news-list li {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: .92rem;
}

.news-list time {
  flex: 0 0 auto;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.news-list a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* ==========================================
   新着情報：短いお知らせを表示するモーダル
   HTML標準の <dialog> を使い、古い環境ではリンクへフォールバック
   ========================================== */
.news-dialog {
  width: min(92vw, 600px);
  max-width: calc(100vw - 24px);
  max-height: min(82vh, 680px);
  max-height: min(82dvh, 680px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 52px rgba(0, 0, 0, .28);
  overflow: hidden;
}

/* <dialog> 非対応ブラウザーでも初期状態では画面に表示しない */
.news-dialog:not([open]) { display: none; }
.news-dialog[open] { display: flex; flex-direction: column; }
.news-dialog::backdrop { background: rgba(0, 0, 0, .55); }

.news-dialog-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--line);
}

.news-dialog-heading { min-width: 0; }
.news-dialog-date {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.news-dialog-heading h2 {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.news-dialog-heading h2:focus { outline: none; }
.news-dialog-close-form { flex: 0 0 auto; margin: 0; }
.news-dialog-close {
  min-height: 40px;
  padding: 7px 12px;
  border: 2px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.news-dialog-close:hover { filter: brightness(1.08); }
.news-dialog-close:focus-visible { outline: 3px solid #333; outline-offset: 3px; }

.news-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(16px, 3vw, 24px);
  line-height: 1.75;
  font-size: clamp(.9rem, 2.4vw, 1rem);
  overflow-wrap: anywhere;
}
.news-dialog-body > :first-child { margin-top: 0; }
.news-dialog-body > :last-child { margin-bottom: 0; }


.news-modal-txt {
  white-space: pre-line;
}

.news-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  writing-mode: vertical-rl;
  font-size: .9rem;
  letter-spacing: .04em;
}

.news-hint span {
  font-size: 1.4rem;
}

.calendar-panel {
  min-width: 0;
  padding: clamp(4px, 0.8vw, 11px);
  background: var(--mint);
  overflow: scroll;
  box-sizing: border-box;
}

.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2px, .5vw, 8px);
  min-width: 0;
}

.calendar-heading h2 {
  margin: 0;
  font-size: clamp(.72rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.1;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
}

.calendar-nav button {
  width: 25px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 5px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}

#calendar-month {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0px, .2vw, 3px);
  margin-top: clamp(2px, .5vw, 8px);
  text-align: center;
  font-size: clamp(.8rem, 1.2vw, 1rem);
  min-width: 0;
}

.calendar-cell {
  min-width: 0;
  padding: clamp(0px, .15vw, 2px);
  border-radius: 4px;
  min-height: 0;
  line-height: 1;
  position: relative;
  box-sizing: border-box;
}

.calendar-cell.weekday {
  font-weight: 800;
  color: #444;
}

.calendar-cell.is-sunday {
  color: #b51b2a;
}

.calendar-cell.is-saturday {
  color: #225eb4;
}

.calendar-note {
  margin: 6px 0 0;
  text-align: right;
  font-size: .9rem;
  color: #366d65;
}

.new-content-section {
  grid-area: new;
  min-width: 0;
  padding: 10px clamp(18px, 3.5vw, 42px) 34px;
  border-bottom: 2px dotted #aaa;
  background: #fff;
}

.new-content-section .section-heading {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

#new-content-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.content-carousel {
  display: flex;
  align-items: center;
  gap: clamp(56px, 8vw, 102px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 20px;
  -webkit-overflow-scrolling: touch;
}

.new-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(145px, 15.5vw, 198px);
  min-width: 0;
  scroll-snap-align: start;
}

/* カード一覧の末尾に置く「もっと見る」リンク */
.new-carousel-more {
  flex: 0 0 clamp(110px, 12vw, 160px);
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 80px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  scroll-snap-align: end;
}

.new-carousel-more-en {
  color: var(--red);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
}

.new-carousel-more-ja {
  font-size: clamp(.75rem, 1.3vw, 1rem);
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.new-carousel-more:hover { opacity: .8; }
.new-carousel-more:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.new-card:first-child {
  position: relative;
}

.new-card:first-child::after {
  content: "❯❯❯";
  position: absolute;
  left: calc(100% + clamp(56px, 8vw, 102px) / 2);
  top: 45%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.card-update {
  min-height: 1.5em;
  margin: 6px 0 0;
  color: #666;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.thumbnail-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 198 / 242;
  box-sizing: border-box;
  overflow: hidden;
  border: 3px solid #a8a8a8;
  border-radius: 35px 0 0 0;
  background-color: #fff;
  background-image: var(--thumb-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  color: #fff;
}

.thumbnail-title {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
  box-sizing: border-box;
  padding: 0;
  background: none;
  color: #303030;
  -webkit-text-stroke: 10px #fff;
  paint-order: stroke fill;
  border-radius: 0;
  text-align: center;
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

.thumbnail-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 5px 8px;
  background: var(
    --caption-bg,
    rgba(255, 255, 255, 0.48)
  );
  border-radius: 0;
  color: var(--caption-color, #fff);
  text-align: center;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  min-height: clamp(38px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.thumbnail-frame:hover {
  filter: brightness(1.08);
}

.thumbnail-frame:focus-visible {
  outline: 3px solid #333;
  outline-offset: 3px;
}

.site-footer { grid-area: footer; background: #fff; }

/* カレンダー：休業日と祝日を独立して表現（同一日への併用可） */
.calendar-cell.event-closed {
  background-color: #faba9e;
}

/* 今日の日付の背景色は、休業日と重なっても黄色を優先 */
.calendar-cell.is-today {
  color: #444;
  background-color: #fff0bd;
  font-weight: 800;
  outline: 1px solid #3e3e3e;
  outline-offset: -1px;
}

/* 今日が休業日なら休業日色を保ち、黄色の内枠で今日を示す */
.calendar-cell.is-today.event-closed {
  background-color: #faba9e;
  box-shadow: inset 0 0 0 2px #fff0bd;
}

.calendar-cell.event-holiday {
  color: #ff0000;
  font-weight: 700;
}

/* 特別イベント */
.calendar-cell.event-special {
  outline: 2px solid #9c27b0;
  outline-offset: -2px;
}


.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-panel,
.calendar-panel {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.news-scroll,
.content-carousel {
  --scroll-thumb: #ed1c2a;
  --scroll-track: #e5e5e5;
  --scroll-size: 8px;
}

/* ======================================================
   ネットでご注文：新コンテンツと主要コンテンツの間
   ====================================================== */
.order-section {
  grid-area: order;
  min-width: 0;
  padding: clamp(24px, 4vw, 46px) clamp(18px, 3.5vw, 42px)
           clamp(24px, 3vw, 40px);
  background: #fff;
}

.order-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
}

/* 画像だけを表示し、サンプル画像の文字・黒枠は作らない */
.order-banner {
  display: block;
  width: 100%;
  border-top: 2px solid #8d8d8d;
  border-bottom: 2px solid #8d8d8d;
  aspect-ratio: 7 / 1;
  --order-banner-image: url('images_top/order-banner_pc.png');
  background-image: var(--order-banner-image, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
}

.order-banner:hover { filter: brightness(1.07); }
.order-banner:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.order-info {
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
  gap: clamp(16px, 3.5vw, 44px);
  max-width: 980px;
  margin: clamp(18px, 2.6vw, 28px) auto 0;
}

.order-sales {
  min-width: 0;
  padding: 4px clamp(12px, 2vw, 24px) 4px 4px;
  border-right: 2px dotted #777;
}

.order-sales h3,
.order-sales p,
.order-message h3,
.order-message p { margin: 0; }

.order-sales h3 {
  font-size: clamp(.85rem, 1.6vw, 1.16rem);
  line-height: 1.5;
  font-weight: 700;
}

.order-sales p {
  margin-top: 6px;
  font-size: clamp(.8rem, 1.5vw, 1.05rem);
  line-height: 1.55;
}

.order-message {
  min-width: 0;
  text-align: center;
}

.order-message h3 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 28px);
  color: #ed1c2a;
  font-size: clamp(1rem, 2.15vw, 1.7rem);
  font-weight: 750;
  line-height: 1.4;
}

.order-message h3::before,
.order-message h3::after {
  font-size: .95em;
  font-weight: 400;
}
.order-message h3::before { content: "＼"; }
.order-message h3::after { content: "／"; }

.order-message p {
  margin-top: 14px;
  font-size: clamp(.84rem, 1.6vw, 1.18rem);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ======================================================
   主要コンテンツ：1枚画像＋更新日帯＋左端のアクセントライン
   更新日・アクセント色・背景画像はarticle単位で変更可能
   ====================================================== */
.main-content-section {
  grid-area: maincontent;
  min-width: 0;
  padding: 3.5rem clamp(18px, 4vw, 48px) 36px;
  background: var(--content-bg);
}

.main-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px) clamp(20px, 5vw, 70px);
  max-width: 1040px;
  margin-inline: auto;
}

.main-card {
  --card-accent: #ed1c2a;
  --strip-width: 1.7%;
  --badge-height: 20%;
  --badge-width: 27.7%;
  position: relative;
  container-type: inline-size;
  min-width: 0;
  width: 100%;
  aspect-ratio: 2.70 / 1;
  margin-bottom: 3rem;
}

.main-card-featured {
  --card-image: url('images_top/mvs-products_heder_pc.png');
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 680px);
  aspect-ratio: 3.7 / 1;
  margin-bottom: calc(3rem + 2px);
}

.main-card-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 一本の直線として描く */
.main-card-link::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block: 0;
  left: 0;
  width: var(--strip-width);
  background-color: var(--card-accent);
}

/* 更新日の四角：カードに対する幅・高さを割合で維持 */
.main-card-date {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--badge-width);
  height: var(--badge-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1%;
  white-space: nowrap;
  overflow: hidden;
  color: var(--card-date-color, #fff);
  background: var(--card-accent);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;

  /* 指定がないカードは従来の文字サイズ。個別に --card-date-font-size を設定可能。 */
  font-size: var(--card-date-font-size, clamp(.56rem, 1.8vw, 2.56rem)); /* 旧環境向け */
  font-size: var(--card-date-font-size, clamp(.56rem, 3cqw, 2.56rem));
}

/* 枠を描かず、画像を1枚の横長サムネイルとして表示 */
.main-card-thumbnail {
  position: absolute;
  display: block;
  left: var(--strip-width);
  right: 0;
  top: var(--badge-height);
  bottom: 0;
  background-image: var(--card-image, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter .2s ease;
}

.main-card-link:hover .main-card-thumbnail,
.main-card-link:focus-visible .main-card-thumbnail {
  filter: brightness(1.14);
}
.main-card-link:focus-visible { outline: 3px solid #333; outline-offset: 3px; }

@media (max-width: 760px) {
/* ページ外側の左右余白だけをなくす */
.site-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.site-nav {
  grid-template-columns: minmax(118px, 28%) minmax(0, 1fr);
}

.nav-links a {
  min-width: 0;
  padding-inline: clamp(2px, 1vw, 16px);
}

.hero {
  max-height: none;
  aspect-ratio: 2.4 / 1;
}

.quick-area {
  grid-template-columns: minmax(0, 1.6fr) minmax(225px, 1fr);
  height: auto;
  aspect-ratio: auto;
}

.news-panel {
  padding-inline: 16px;
  grid-template-columns: minmax(0, 1fr);
  padding: 8px 10px;
}

.news-list li {
  display: block;
  padding-block: 2px;
  font-size: clamp(.65rem, 1.8vw, .78rem);
}

.news-list time {
  display: block;
  font-size: .78rem;
}

.calendar-heading {
  align-items: flex-start;
  flex-direction: column;
}

.calendar-grid {
  font-size: clamp(.55rem, 1.8vw, .7rem);
}

.new-card {
  flex-basis: clamp(132px, 22vw, 170px);
}

.thumbnail-title {
  font-size: 1.45rem;
}

.thumbnail-caption {
  min-height: 48px;
  font-size: 1rem;
}

.news-title-row h2 {
  font-size: clamp(.9rem, 2.6vw, 1.1rem);
}

.news-scroll {
  max-height: none;
  padding-block: 2px;
}

.calendar-panel {
  overflow: hidden;
}

.calendar-note {
  display: block;
  margin: 0;
  font-size: clamp(.55rem, 1.55vw, .72rem);
  white-space: nowrap;
}

.news-scroll,
  .content-carousel {
  --scroll-size: 5px;
}

.order-banner {
  aspect-ratio: 3.5 / 1;
  --order-banner-image: url('images_top/order-banner_sp.png');
}

/* 760px以下は主要コンテンツを1列に。見た目と比率は以前の値を維持 */
.main-content-section { padding: 24px 14px 28px; }
.main-content-grid { grid-template-columns: minmax(0, 1fr); max-width: 380px; row-gap: clamp(44px, 8vw, 66px); }
.main-card { --badge-width: 27.9%; --strip-width: 2%; grid-column: auto; width: 100%; aspect-ratio: 2.7 / 1; margin-bottom: 0; }
.main-card-featured { --card-image: url('images_top/mvs-products_heder_sp.png'); aspect-ratio: 2.7 / 1; margin-bottom: 14px; }

}

@media (max-width: 520px) {
.site-nav {
  min-height: 0;
  height: auto;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.headline-label {
  display: none;
}

.nav-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  height: auto;
  display: grid;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.nav-links a {
  min-height: 0;
  padding: 10px 2px;
  font-size: clamp(0.65rem, 2.8vw, 0.92rem);
  line-height: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.hero-slide {
  padding: 34px 18px 60px;
}

.hero-slide h1,
  .hero-slide h2 {
  font-size: clamp(1rem, 4vw, 1.5rem);
}

.hero-slide p {
  font-size: clamp(0.7rem, 2.8vw, 0.9rem);
  max-width: 30em;
}

.site-logo {
  min-height: 25px;
}

.site-header {
  width: auto;
  height: clamp(25px, 1rem, 30px);
}

.site-header a {
  margin: 0;
  padding: 0 0 0 0.3rem;
}

.site-header a img {
  margin: 0;
  padding: 0;
  width: auto;
  height: clamp(20px, 0.8rem, 28px);
}

/* スマホではスライドショーをやや縦長にする */
.hero {
  min-height: 0;
  aspect-ratio: 1.8 / 1;
}

/* 画像ごとに .hero-slide の --mobile-fit を contain / cover から選ぶ */
.hero-slide img {
  object-fit: var(--mobile-fit, contain);
  object-position: var(--mobile-position, center);
}

/* 矢印は上下中央、ドットは最下部に別配置 */
.hero-controls {
  inset: 0;
  height: 100%;
  display: block;
}
.hero-control {
  --hero-button-size: clamp(22px, 6vw, 28px);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
}
.hero-control[data-slide="prev"] {
  left: clamp(4px, 1.5vw, 8px);
}
.hero-control[data-slide="next"] {
  right: clamp(4px, 1.5vw, 8px);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(3px, 1vw, 6px);
  transform: translateX(-50%);
  gap: clamp(3px, .9vw, 5px);
}
.hero-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
}

/* ドットの右に停止・再生。矢印の中央位置は変えない */
.hero-center-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(3px, 1vw, 6px);
  transform: translateX(-50%);
  gap: clamp(6px, 1.5vw, 9px);
}
.hero-center-controls .hero-dots {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
}
.hero-play-toggle {
  position: static;
  top: auto;
  transform: none;
}
.hero-play-toggle::before { width: 8px; height: 9px; }
.hero-play-toggle.is-paused::before {
  width: 0;
  height: 0;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 8px;
}

.quick-area {
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
}

.news-panel {
  padding: 12px 9px;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 8px;
}

.news-title-row {
  gap: 8px;
}

.news-title-row h2 {
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
}

.news-arrow {
  font-size: 1.2rem;
}

.news-list li {
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.news-hint {
  font-size: 0.62rem;
}

.calendar-panel {
  padding: 10px 7px;
  padding-block: 6px;
}

.calendar-heading h2 {
  font-size: clamp(0.85rem, 3vw, 1rem);
}

.calendar-nav {
  width: 100%;
  justify-content: space-between;
  gap: 1px;
  font-size: .72rem;
}

.calendar-nav button {
  width: 22px;
  height: 24px;
}

#calendar-month {
  font-size: .7rem;
}

.calendar-grid {
  gap: 0;
  margin-top: 3px;
  font-size: clamp(0.58rem, 2.4vw, 0.68rem);
}

.calendar-cell {
  padding: 3px 0;
  padding-block: 1px;
}

.calendar-panel { display: flex; flex-direction: column; overflow-y: auto; }
.calendar-heading { display: contents; }
.calendar-nav { order: 0; }
.calendar-grid { order: 1; }
.calendar-note { order: 2; align-self: flex-end; display: block; font-size: .58rem; margin: 5px 0 0; white-space: normal; }

.new-content-section {
  padding: 12px 14px 20px;
}

.new-content-section .section-heading {
  align-items: flex-start;
  margin-bottom: 10px;
}

#new-content-title {
  font-size: 1rem;
}

.content-carousel {
  padding-bottom: 16px;
}

.new-card {
  flex-basis: clamp(112px, 28vw, 132px);
}

.thumbnail-frame {
  border-width: 3px;
  border-radius: 22px 0 0 0;
}

.thumbnail-title {
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
}

.thumbnail-caption {
  min-height: 36px;
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  padding: 4px 5px;
}


.news-panel,
  .calendar-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


/* 520px以下：ネットでご注文 */

.order-section {
  padding: 20px 14px 28px;
}

.order-banner {
  aspect-ratio: 3.3 / 1;
}

/* 見出し2行＋本文2列のレイアウト */
.order-info {
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
  grid-template-areas:
    "headline headline"
    "sales-title sales-title"
    "sales-copy message-copy";

  column-gap: clamp(12px, 3vw, 20px);
  row-gap: 8px;
  align-items: start;
  margin-top: 16px;
}

/* 子要素を直接Gridに配置できるようにする */
.order-sales,
.order-message {
  display: contents;
}

/* 発売開始の見出し：中央 */
.order-message h3 {
  grid-area: headline;
  text-align: center;
  font-size: clamp(.92rem, 3.6vw, 1.2rem);
  line-height: 1.35;
  gap: 6px;
}

/* 割引・セール情報の見出し：左寄せ */
.order-sales h3 {
  grid-area: sales-title;
  text-align: left;
  font-size: clamp(.85rem, 3.3vw, 1rem);
  line-height: 1.3;
}

/* 左側の本文 */
.order-sales p {
  grid-area: sales-copy;
  margin: 0;
  font-size: clamp(.72rem, 2.6vw, .9rem);
  line-height: 1.45;
}

/* 右側の本文 */
.order-message p {
  grid-area: message-copy;
  margin: 0;
  font-size: clamp(.76rem, 2.75vw, .98rem);
  line-height: 1.45;
}

}

@media (prefers-reduced-motion: reduce) {
html {
  scroll-behavior: auto;
}

*, *::before, *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
}

@keyframes fade-in { from { opacity: .45; } to { opacity: 1; } }

@supports (scrollbar-color: red blue) {
  .news-scroll,
  .content-carousel {
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
    scrollbar-width: thin;
  }
}

@supports selector(::-webkit-scrollbar) {
  .news-scroll::-webkit-scrollbar,
  .content-carousel::-webkit-scrollbar {
    width: var(--scroll-size);
    height: var(--scroll-size);
  }

  .news-scroll::-webkit-scrollbar-thumb,
  .content-carousel::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 6px;
  }

  .news-scroll::-webkit-scrollbar-track,
  .content-carousel::-webkit-scrollbar-track {
    background-color: var(--scroll-track);
  }
}


/* 関連動画・画像とバナー */
.related-media-section {
  grid-area: related;
  padding: clamp(36px, 5vw, 70px) clamp(18px, 4vw, 48px) clamp(36px, 5vw, 60px);
  background: #fff;
}
.related-media-layout {
  width: min(100%, 560px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.7fr);
  gap: clamp(14px, 2.5vw, 30px);
  align-items: start;
}
.related-image-group, .related-video-group { min-width: 0; }
.related-image-link { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.related-image-link img { display: block; width: 100%; max-width: 250px; height: 100%; object-fit: contain; }
.related-image-text { margin: 8px 0 0; font-size: clamp(.7rem, 1.25vw, .9rem); line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.related-video-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #151515; }
.related-banner { display: block; width: min(100%, 260px); margin: clamp(36px, 5vw, 62px) auto 0; }
.related-banner img { display: block; width: 100%; height: auto; }

/* サイトマップ・ページトップ */
.footer-sitemap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--content-bg);
  /* 左右対称の余白で、ボタンの有無に関係なくサイトマップを中央へ */
  padding: clamp(25px, 4vw, 45px) clamp(18px, 4vw, 48px) clamp(28px, 4vw, 45px);
  min-height: 175px;
}
.sitemap-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: clamp(28px, 4.5vw, 64px);
  row-gap: 22px;
  max-width: 720px;
  margin-inline: auto;
}
.sitemap-group { min-width: 0; display: flex; flex-direction: column; padding-left: 9px; border-left: 3px solid #fff; }
.sitemap-group h2 { margin: 0 0 6px; font-size: clamp(.95rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.3; }
.sitemap-group a { text-decoration: none; font-size: clamp(.85rem, 1.55vw, 1.1rem); line-height: 1.6; }
.sitemap-group a:hover { text-decoration: underline; }
.back-to-top { position: absolute; right: clamp(6px, 1.25vw, 14px); bottom: clamp(6px, 1vw, 10px); display: flex; flex-direction: column; align-items: center; text-decoration: none; font-size: clamp(.55rem, 1vw, .72rem); line-height: 1.2; }
.back-to-top-triangle { width: 0; height: 0; border-left: clamp(10px, 1.75vw, 20px) solid transparent; border-right: clamp(10px, 1.75vw, 20px) solid transparent; border-bottom: clamp(17px, 3vw, 34px) solid #444; }
.back-to-top:hover { opacity: .75; }
.copyright { padding: 12px; text-align: center; font-size: clamp(.8rem, 1.5vw, 1rem); color: #555; background: #fff; }
@media (max-width: 760px) {
  .related-media-layout { width: min(100%, 520px); }
}
@media (max-width: 520px) {
  .related-media-section { padding-inline: 14px; }
  /* 動画 → 関連画像 → 説明テキスト */
  .related-media-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 390px);
    row-gap: 20px;
  }
  .related-video-group { order: 0; }
  .related-image-group { order: 1; }
  .related-image-link { width: min(100%, 150px); margin-inline: auto; }
  .related-image-text { font-size: .75rem; }
  .footer-sitemap { padding: 25px 14px 48px; }
  .sitemap-groups { width: fit-content; flex-direction: column; flex-wrap: nowrap; gap: 24px; }
  .sitemap-group h2 { font-size: 1rem; }
  .sitemap-group a { font-size: .9rem; }
}
