/* ===== 制作サンプル 共通スタイル ===== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }

/* サンプルであることを示す帯 */
.sample-bar {
  padding: 10px 0;
  background: var(--sample-bg);
  color: var(--sample-ink);
  font-size: 13px;
  text-align: center;
}
.sample-bar a { text-decoration: underline; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  color: var(--btn-ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

/* ===== ヒーロー ===== */
.hero { position: relative; }
.hero__photo { width: 100%; height: 46vh; min-height: 260px; max-height: 460px; object-fit: cover; }
.hero__photo-wrap { position: relative; }
.hero__photo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-overlay);
}
.hero__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 24px 32px;
  color: var(--hero-text-color);
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 14px;
  background: var(--tint);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 6.4vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: var(--hero-text-shadow);
}
.hero__lead {
  margin-top: 12px;
  max-width: 32em;
  font-size: 15px;
  text-shadow: var(--hero-text-shadow);
}

/* ===== セクション共通 ===== */
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section__label {
  margin-bottom: 4px;
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
.section__title {
  margin-bottom: 32px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.cards { display: grid; gap: 16px; }
.card {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 8px; font-family: var(--font-head); font-size: 17px; }
.card p { color: var(--muted); font-size: 14px; }

/* ===== 写真の帯 ===== */
.photo-band { margin: 0; height: 170px; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== ストーリー ===== */
.story { text-align: center; color: var(--muted); }
.story strong { color: var(--ink); }

/* ===== CTA（なぎろぐへの導線） ===== */
.demo-cta {
  padding: 48px 0;
  text-align: center;
  background: var(--cta-bg);
  color: var(--cta-ink);
}
.demo-cta__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.demo-cta__lead {
  max-width: 32em;
  margin: 0 auto 22px;
  font-size: 14px;
  opacity: 0.9;
}

.site-footer {
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.site-footer a { color: var(--accent-ink); }

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 80px 0; }
  .section__title { margin-bottom: 44px; font-size: 28px; }
  .photo-band { height: 240px; }
  .hero__photo { height: 58vh; }
}

/* ================= テーマ：農機具（みどり農機） ================= */
body.theme-machinery {
  --ink: #1c2422;
  --muted: #56635e;
  --bg: #f4f5f2;
  --white: #ffffff;
  --tint: #e7ede6;
  --card-bg: #ffffff;
  --line: #dde3dc;
  --line-strong: #1c2422;
  --accent: #2f5233;
  --accent-ink: #2f5233;
  --btn-ink: #ffffff;
  --btn-radius: 6px;
  --radius: 8px;
  --hero-overlay: linear-gradient(0deg, rgba(15, 20, 16, 0.72), rgba(15, 20, 16, 0.08) 60%);
  --hero-text-color: #fff;
  --hero-text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  --cta-bg: #1c2422;
  --cta-ink: #fff;
  --sample-bg: #2f5233;
  --sample-ink: #fff;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
body.theme-machinery .demo-cta .btn { --accent: #c98a2c; border-color: #c98a2c; }

/* ================= テーマ：ドーナツ（まるまるドーナツ） ================= */
body.theme-donut {
  --ink: #4a2b34;
  --muted: #8d6b74;
  --bg: #fff8f9;
  --white: #ffffff;
  --tint: #ffe3ec;
  --card-bg: #ffffff;
  --line: #ffd6e2;
  --line-strong: #4a2b34;
  --accent: #ff6f91;
  --accent-ink: #d94f74;
  --btn-ink: #ffffff;
  --btn-radius: 999px;
  --radius: 22px;
  --hero-overlay: linear-gradient(0deg, rgba(74, 30, 45, 0.55), rgba(74, 30, 45, 0.05) 65%);
  --hero-text-color: #fff;
  --hero-text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  --cta-bg: #ffe3ec;
  --cta-ink: #4a2b34;
  --sample-bg: #ff6f91;
  --sample-ink: #fff;
  --font-head: "Yomogi", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

/* ================= テーマ：割烹（一灯） ================= */
body.theme-washoku {
  --ink: #efe9dd;
  --muted: #b6ac97;
  --bg: #14120f;
  --white: #1d1a15;
  --tint: #201c17;
  --card-bg: #1d1a15;
  --line: #34302a;
  --line-strong: #efe9dd;
  --accent: #c9a227;
  --accent-ink: #c9a227;
  --btn-ink: #14120f;
  --btn-radius: 2px;
  --radius: 2px;
  --hero-overlay: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0.15) 65%);
  --hero-text-color: #efe9dd;
  --hero-text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  --cta-bg: #1d1a15;
  --cta-ink: #efe9dd;
  --sample-bg: #c9a227;
  --sample-ink: #14120f;
  --font-head: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}
body.theme-washoku .card { border-color: var(--line); }
body.theme-washoku .btn--ghost { color: var(--ink); border-color: var(--line); }

/* スマホ幅でヘッダーが詰まりすぎないように */
@media (max-width: 480px) {
  .site-header__inner {
    gap: 10px;
  }
  .logo {
    font-size: 16px;
    white-space: nowrap;
  }
  .site-header .btn--ghost {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ===== MENU タイル（写真＋角のタグ＋MORE） ===== */
.menu-grid {
  display: grid;
  gap: 16px;
}
.menu-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.menu-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-tile__tag {
  position: absolute;
  top: 16px;
  left: 0;
  padding: 7px 18px;
  background: var(--menu-tag-bg, rgba(20, 18, 14, 0.82));
  color: var(--menu-tag-ink, #fff);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.menu-tile__more {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.menu-tile__more::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.85);
}

@media (min-width: 768px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 農機バナー（斜めカット＋写真） ===== */
.banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--banner-bg);
  color: var(--banner-ink);
  overflow: hidden;
}
.banner__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.banner__body {
  padding: 32px 24px 36px;
}
.banner__title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}
.banner__text {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.92;
  margin-bottom: 22px;
  max-width: 30em;
}
.banner__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  color: var(--banner-bg);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.banner__link::before { content: "▶"; font-size: 10px; }

@media (min-width: 860px) {
  .banner {
    grid-template-columns: 46% 54%;
    align-items: stretch;
    clip-path: polygon(0 0, 100% 0, 96% 100%, 0% 100%);
  }
  .banner--flip { grid-template-columns: 54% 46%; }
  .banner--flip .banner__body { order: 2; }
  .banner--flip .banner__photo-wrap { order: 1; }
  .banner__photo-wrap { position: relative; overflow: hidden; }
  .banner__photo { height: 100%; min-height: 320px; }
  .banner__body { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; }
  .banner__title { font-size: 30px; }
}

/* ===== ドーナツ 横スクロールカルーセル ===== */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.carousel__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.carousel__slide-body { padding: 14px 16px 18px; }
.carousel__slide h3 { font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.carousel__slide p { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

.carousel__nav {
  display: none;
}

@media (min-width: 768px) {
  .carousel__track {
    padding: 4px 8px 16px;
    gap: 20px;
  }
  .carousel__slide { width: 240px; }
  .carousel__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }
  .carousel__nav button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
  }
  .carousel__nav button:hover { background: var(--accent); color: var(--btn-ink); border-color: var(--accent); }
}
