/* ==========================================================
   自家焙煎珈琲 ねすと — 共通スタイル
   テーマ：木のぬくもり × 暖色（オレンジ・黄色・茶色）
   ========================================================== */

/* ---------- 変数（ここを変えれば全体の色味が変わります） ---------- */
:root {
  /* 文字 */
  --color-text: #4a3324;          /* こげ茶 */
  --color-text-sub: #7a5c45;

  /* 背景 */
  --color-bg: #fff9ef;            /* クリーム */
  --color-sub-bg: #f7ecda;        /* ベージュ */
  --color-card: #fffdf8;

  /* 木の色 */
  --color-wood-light: #e6cba0;    /* 明るい木（パイン・オーク系） */
  --color-wood: #b98856;
  --color-wood-dark: #5e3b22;     /* 濃い木（ウォルナット系） */

  /* アクセント */
  --color-yellow: #fbd98b;        /* キャラクターの黄色 */
  --color-orange: #e8872e;
  --color-orange-deep: #b5561a;   /* 白文字を載せるボタン用 */

  --color-border: #e6d3b5;

  --font-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --container-width: 1080px;
  --header-height: 72px;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(94, 59, 34, 0.12);

  /* 木目テクスチャ（細かい木目：写真枠など／板張り：大きな背景） */
  --wood-grain: url("../images/wood-grain.svg?v=3075f453");
  --wood-planks: url("../images/wood-hero.svg?v=c3324d1e");
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: inherit;
}

a:hover {
  color: var(--color-orange-deep);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* 板張りの木の壁（ファーストビュー・各ページ見出し・フッターで共通） */
.hero,
.page-header {
  background: var(--color-wood) var(--wood-planks) center / cover no-repeat;
}

/* フッターは同じ板張りを暗く落として、床・カウンターのような重みを出す */
.site-footer {
  background:
    linear-gradient(rgba(38, 21, 9, 0.72), rgba(38, 21, 9, 0.72)),
    var(--color-wood-dark) var(--wood-planks) center / cover no-repeat;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  box-shadow: 0 2px 10px rgba(94, 59, 34, 0.1);
}

/* ヘッダー下の木の帯 */
.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--color-wood) var(--wood-planks) center / 1600px auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.site-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  width: auto;
  height: 48px;
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 20px;
}

.global-nav a {
  position: relative;
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
  text-decoration: none;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.global-nav a[aria-current="page"] {
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

/* ---------- メインビジュアル（ホーム） ---------- */
.hero {
  padding: 72px 0;
  text-align: center;
}

/* 木の壁に掛けた看板のようなパネル */
.hero-board {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 48px;
  border: 6px solid var(--color-wood);
  border-radius: 24px;
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 12px 30px rgba(94, 59, 34, 0.25);
}

.hero-character {
  display: block;
  width: 140px;
  margin: 0 auto 8px;
  animation: hero-bob 3.5s ease-in-out infinite;
}

@keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-character {
    animation: none;
  }
}

.hero-lead {
  display: inline-block;
  margin: 0;
  padding: 2px 18px;
  border-radius: 999px;
  background: var(--color-yellow);
  font-weight: 700;
}

.hero-logo {
  max-width: 440px;
  margin: 24px auto;
  line-height: 0;
}

.hero-logo img {
  display: block;
  width: 100%;
}

.hero-text {
  margin: 0;
  color: var(--color-text-sub);
  text-wrap: balance;
}

/* ---------- こだわり（アイコン付きのポイント） ---------- */
.point-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.point {
  flex: 1 1 260px;
  max-width: 310px;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
  text-align: center;
}

.point-icon {
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 50%;
  background: var(--color-yellow);
  fill: none;
  stroke: var(--color-wood-dark);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.point h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.point p {
  margin: 0;
  color: var(--color-text-sub);
  font-size: 0.92rem;
  text-align: left;
}

.point a {
  color: var(--color-orange-deep);
  font-weight: 700;
}

/* ---------- 下層ページ見出し ---------- */
.page-header {
  position: relative;
  padding: 56px 0;
  text-align: center;
}

.page-header .container {
  position: relative;
  display: inline-block;
  padding: 20px 48px 20px 120px;
  border: 4px solid var(--color-wood);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 8px 20px rgba(94, 59, 34, 0.2);
}

/* 見出しの左にキャラクター */
.page-header .container::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 76px;
  height: 60px;
  transform: translateY(-50%);
  background: url("../images/character.png?v=db1d9ec5") center / contain no-repeat;
}

.page-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.page-header-en {
  margin: 0;
  color: var(--color-orange-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 72px 0;
}

.section:nth-of-type(even) {
  background: var(--color-sub-bg);
}

.section h2 {
  margin: 0 0 32px;
  font-size: 1.6rem;
  text-align: center;
}

/* 見出し下のオレンジのライン */
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--color-orange);
}

.more-link {
  font-weight: 700;
  color: var(--color-orange-deep);
  text-decoration: none;
}

.more-link::after {
  content: " →";
}

.more-link:hover {
  text-decoration: underline;
}

/* ---------- お知らせ ---------- */
.news-list {
  max-width: 760px;
  margin: 0 auto 24px;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 4px;
  border-bottom: 1px dashed var(--color-wood);
}

.news-list time {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.news-list a {
  text-decoration: none;
}

.news-list a:hover {
  text-decoration: underline;
}

.section .news-list + p {
  max-width: 760px;
  margin: 0 auto;
  text-align: right;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.category-filter button {
  padding: 6px 20px;
  border: 2px solid var(--color-wood);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.category-filter button:hover {
  border-color: var(--color-orange);
}

.category-filter button.is-active {
  border-color: var(--color-orange-deep);
  background: var(--color-orange-deep);
  color: #fff;
}

.news-item {
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.news-item time {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.news-item h2 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  text-align: left;
}

.news-item h2::after {
  display: none;
}

.news-item header {
  margin-bottom: 12px;
}

.news-item p {
  margin: 0 0 12px;
}

.news-item p:last-child {
  margin-bottom: 0;
}

.news-item strong {
  background: linear-gradient(transparent 60%, var(--color-yellow) 60%);
}

/* microCMS のリッチエディタで書いた本文 */
.news-body > :first-child {
  margin-top: 0;
}

.news-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: calc(var(--radius) - 4px);
}

.news-body ul,
.news-body ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.news-body ul li {
  list-style: disc;
}

.news-body ol li {
  list-style: decimal;
}

.news-body a {
  color: var(--color-orange-deep);
}

.news-body h3,
.news-body h4 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

.news-empty {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-sub);
}

/* 記事内の要点（日付・時間など） */
.news-detail {
  display: grid;
  grid-template-columns: 7em 1fr;
  margin: 16px 0;
  padding: 12px 20px;
  border-radius: calc(var(--radius) - 4px);
  background: var(--color-sub-bg);
}

.news-detail dt {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.news-detail dd {
  margin: 0;
}

.news-category {
  display: inline-block;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-yellow);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 28px;
}

.card {
  padding: 16px 16px 20px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-text-sub);
}

.card-image,
.profile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 6px);
  background-color: var(--color-wood-light);
  background-image: var(--wood-grain);
  background-size: 800px 400px;
  color: var(--color-wood-dark);
  font-size: 0.9rem;
}

.card-image {
  aspect-ratio: 4 / 3;
}

/* 豆のカード */
.bean-card {
  display: flex;
  flex-direction: column;
}

.card .bean-origin {
  align-self: flex-start;
  margin: 14px 0 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-wood-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.bean-card h3 {
  margin: 6px 0 4px;
}

.bean-taste {
  flex: 1;
  font-size: 0.92rem;
}

.card .bean-price {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
  color: var(--color-orange-deep);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.bean-unit {
  margin-right: 8px;
  color: var(--color-text-sub);
  font-size: 0.85rem;
}

.bean-yen {
  margin-left: 2px;
  font-size: 0.9rem;
}

.section-lead {
  margin: -20px 0 32px;
  color: var(--color-orange-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- メニュー表（取扱コーヒー豆一覧） ---------- */

/* 分類へのジャンプ（固定表示ぶん、移動先の見出しが隠れないよう余白を足す） */
html:has(.menu-jump) {
  scroll-padding-top: calc(var(--header-height) + 72px);
}

.menu-jump {
  position: sticky;
  top: calc(var(--header-height) + 6px);
  z-index: 50;
  padding: 10px 0;
  background: rgba(255, 249, 239, 0.95);
  box-shadow: 0 2px 8px rgba(94, 59, 34, 0.08);
}

.menu-jump ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-jump ul::-webkit-scrollbar {
  display: none;
}

.menu-jump a {
  display: block;
  padding: 4px 16px;
  border: 2px solid var(--color-wood);
  border-radius: 999px;
  background: var(--color-card);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.menu-jump a:hover {
  border-color: var(--color-orange-deep);
  background: var(--color-orange-deep);
  color: #fff;
}

/* 固定バー内の注文ボタン（常に見える導線） */
.menu-jump-order {
  margin-left: 8px;
}

.menu-jump .menu-jump-order a {
  border-color: var(--color-orange-deep);
  background: var(--color-orange-deep);
  color: #fff;
}

.menu-jump .menu-jump-order a:hover {
  border-color: var(--color-wood-dark);
  background: var(--color-wood-dark);
}

/* 注文への案内バナー */
.order-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: var(--color-yellow);
  box-shadow: var(--shadow);
}

.section > .container > .order-cta:only-child {
  margin-bottom: 0;
}

.order-cta-text p {
  margin: 0;
  color: var(--color-wood-dark);
}

.order-cta-text .order-cta-title {
  margin-bottom: 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.order-cta-text strong {
  color: var(--color-orange-deep);
}

.order-cta-btn {
  flex-shrink: 0;
  min-width: 220px;
}

/* 木枠で囲んだメニューボード */
.menu-board {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 36px;
  border: 6px solid var(--color-wood);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

/* メニュー表の上の「価格は100gあたり」 */
.menu-board-note {
  margin: 8px 0 0;
  color: var(--color-text-sub);
  font-size: 0.85rem;
  text-align: right;
}

.menu-board-note strong {
  color: var(--color-orange-deep);
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.menu-item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--color-border);
}

/* 1品だけの分類（ドリップバッグ）は1列で中央に */
.menu-item:only-child {
  grid-column: 1 / -1;
  border-bottom: none;
}

.menu-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-name {
  margin: 0;
  font-size: 1.1rem;
  /* 折り返すときは単語の途中ではなく、スペースの位置で改行する */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 商品名と価格をつなぐ点線 */
.menu-leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--color-wood);
  transform: translateY(-4px);
}

.menu-price {
  margin: 0;
  color: var(--color-orange-deep);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.menu-unit {
  margin-right: 6px;
  color: var(--color-text-sub);
  font-size: 0.8rem;
}

.menu-yen {
  margin-left: 1px;
  font-size: 0.85rem;
}

.menu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 6px 0 0;
}

.menu-origin,
.menu-tag {
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-origin {
  background: var(--color-yellow);
  color: var(--color-wood-dark);
}

.menu-tag {
  border: 1px solid var(--color-orange-deep);
  color: var(--color-orange-deep);
}

.menu-desc {
  margin: 6px 0 0;
  color: var(--color-text-sub);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* 季節限定の札 */
.menu-tag-winter {
  border-color: #4f6f8f;
  color: #4f6f8f;
}

.menu-tag-summer {
  border-color: var(--color-orange-deep);
  background: var(--color-orange-deep);
  color: #fff;
}

/* HOT / ICED などの補足 */
.menu-variant {
  margin-left: 8px;
  color: var(--color-text-sub);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---------- あさねすとのメニュー ---------- */
.asa-set {
  max-width: 960px;
  margin: 0 auto 28px;
  padding: 22px 32px;
  border-radius: var(--radius);
  background: var(--color-yellow);
  box-shadow: var(--shadow);
}

.asa-set-label,
.asa-group-title {
  margin: 0 0 6px;
  color: var(--color-orange-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.asa-set .menu-name {
  font-size: 1.4rem;
}

.asa-set .menu-price {
  font-size: 1.6rem;
}

.asa-set .menu-leader {
  border-color: var(--color-wood-dark);
}

.asa-set .menu-desc {
  color: var(--color-wood-dark);
}

.asa-board {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  padding: 24px 36px;
}

.asa-list {
  grid-template-columns: 1fr;
}

.asa-list .menu-item:last-child {
  border-bottom: none;
}

.asa-list .menu-name {
  font-size: 1.05rem;
}

.asa-pickup-title {
  margin: 56px 0 24px;
  font-size: 1.2rem;
  text-align: center;
}

/* カード内の写真 */
.card-image:has(img) {
  overflow: hidden;
  background: none;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .menu-meta {
  margin-top: 12px;
}

.card .menu-meta + h3 {
  margin-top: 6px;
}

.beans-intro {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.beans-intro a {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.bean-spec {
  display: grid;
  grid-template-columns: 5em 1fr;
  margin: 0;
  font-size: 0.95rem;
}

.bean-spec dt {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.bean-spec dd {
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--color-border);
}

/* ---------- カルーセル（ホーム：おすすめのコーヒー豆） ---------- */
.carousel {
  --carousel-gap: 28px;
  --carousel-per-view: 3;
  position: relative;
  padding: 0 56px;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  /* カードの影が切れないよう上下に余白を確保 */
  margin: -12px 0;
  padding: 12px 0 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc((100% - var(--carousel-gap) * (var(--carousel-per-view) - 1)) / var(--carousel-per-view));
  scroll-snap-align: start;
}

.carousel-item .card {
  height: 100%;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-orange-deep);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-wood-dark);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-wood-light);
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: var(--color-orange);
}

/* カード内の写真カルーセル（1枚ずつ。ボタンと点は写真の上に重ねる） */
.card-image.carousel-photo {
  --carousel-gap: 0px;
  --carousel-per-view: 1;
  display: block;
  padding: 0;
  overflow: hidden;
  background: none;
}

.carousel-photo .carousel-track {
  height: 100%;
  margin: 0;
  padding: 0;
}

.carousel-photo .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-photo .carousel-btn {
  top: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  background: rgba(181, 86, 26, 0.85);
}

.carousel-photo .carousel-prev {
  left: 8px;
}

.carousel-photo .carousel-next {
  right: 8px;
}

.carousel-photo .carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-photo .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0;
}

.carousel-photo .carousel-dots button {
  width: 9px;
  height: 9px;
  background: rgba(255, 249, 239, 0.7);
  box-shadow: 0 0 0 1px rgba(94, 59, 34, 0.25);
}

.carousel-photo .carousel-dots button[aria-current="true"] {
  background: var(--color-orange-deep);
}

/* ---------- ボタン ---------- */
.btn-area {
  margin-top: 40px;
  text-align: center;
}

.btn {
  display: inline-block;
  min-width: 260px;
  padding: 14px 40px;
  border: 2px solid var(--color-orange-deep);
  border-radius: 999px;
  background: var(--color-orange-deep);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--color-wood-dark);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn::after {
  content: " →";
}

.btn:hover {
  color: #fff;
  background: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-wood-dark);
}

/* ---------- Instagram ---------- */
.sns-icon {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 16px;
  border: 1px solid rgba(251, 239, 217, 0.6);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.sns-link:hover {
  border-color: var(--color-yellow);
}

.sns-banner {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 32px 24px;
  border: 3px dashed var(--color-wood);
  border-radius: var(--radius);
  text-align: center;
}

.sns-banner p {
  margin: 0 0 16px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-instagram::after {
  content: none;
}

/* 価格の注記（税込など） */
.price-note {
  margin: 12px auto 0;
  color: var(--color-text-sub);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- 規約ページ（特定商取引法・プライバシーポリシー） ---------- */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 44px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.legal-doc h2 {
  margin: 36px 0 12px;
  font-size: 1.15rem;
  text-align: left;
}

.legal-doc h2::after {
  display: none;
}

.legal-doc h2:first-of-type {
  margin-top: 24px;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.legal-doc li {
  list-style: disc;
}

.legal-doc a {
  color: var(--color-orange-deep);
}

.legal-doc .info-list {
  margin: 0;
  padding: 8px 0;
  box-shadow: none;
}

.legal-date {
  margin: 32px 0 0;
  color: var(--color-text-sub);
  font-size: 0.85rem;
  text-align: right;
}

/* ---------- 404（ページが見つかりません） ---------- */
.not-found {
  text-align: center;
}

.not-found-character {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 20px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.not-found-links li:first-child {
  flex-basis: 100%;
  margin-bottom: 8px;
}

.not-found-links a:not(.btn) {
  color: var(--color-orange-deep);
  font-weight: 700;
}

/* ---------- 宅配のご注文 ---------- */
.order-lead {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

/* 注文の流れ（4ステップ） */
.order-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.order-step {
  position: relative;
  padding: 32px 18px 20px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
  text-align: center;
}

/* ステップ間の矢印 */
.order-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--color-orange);
  border-right: 3px solid var(--color-orange);
  transform: translateY(-50%) rotate(45deg);
}

.order-step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-orange-deep);
  color: #fff;
  font-weight: 700;
  transform: translateX(-50%);
}

.order-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.order-step p {
  margin: 0;
  color: var(--color-text-sub);
  font-size: 0.9rem;
  text-align: left;
}

/* 記入内容とメールアドレス */
.order-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 36px;
  border: 6px solid var(--color-wood);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.order-board h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

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

.order-checklist li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--color-border);
}

.order-checklist li:last-child {
  border-bottom: none;
}

/* チェックマーク */
.order-checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 14px;
  border-right: 3px solid var(--color-orange);
  border-bottom: 3px solid var(--color-orange);
  transform: translateY(-65%) rotate(45deg);
}

.order-contact {
  padding: 24px 20px;
  border-radius: calc(var(--radius) - 4px);
  background: var(--color-sub-bg);
  text-align: center;
}

.order-mail-label {
  margin: 0;
  color: var(--color-orange-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.order-mail {
  margin: 4px 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.order-contact .btn {
  min-width: 0;
  width: 100%;
  max-width: 280px;
}

.order-mail-note {
  margin: 14px 0 0;
  color: var(--color-text-sub);
  font-size: 0.8rem;
}

.order-notes {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 0 0 0 1.2em;
  font-size: 0.9rem;
}

.order-notes li {
  margin-bottom: 6px;
  list-style: disc;
}

.order-notes strong {
  background: linear-gradient(transparent 60%, var(--color-yellow) 60%);
}

.order-notes a {
  color: var(--color-orange-deep);
  font-weight: 700;
}

/* ---------- 画像＋テキストの2カラム（自動販売機など） ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: 40px;
}

.feature-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--color-wood);
  border-radius: var(--radius);
  background-color: var(--color-wood-light);
  background-image: var(--wood-grain);
  background-size: 800px 400px;
  color: var(--color-wood-dark);
  font-size: 0.9rem;
}

/* 縦長の写真（自動販売機など） */
img.feature-image {
  display: block;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

img.feature-image-portrait {
  aspect-ratio: auto;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

.feature-body > p {
  margin-top: 0;
}

.feature .info-list {
  max-width: none;
}

/* ---------- 情報リスト・テーブル ---------- */
.info-list {
  display: grid;
  grid-template-columns: 8em 1fr;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.info-list dt,
.info-list dd {
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
}

.info-list dt:last-of-type,
.info-list dd:last-of-type {
  border-bottom: none;
}

.info-list dt {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

/* ---------- 地図（Googleマップ埋め込み） ---------- */
.map {
  height: 380px;
  margin-top: 32px;
  overflow: hidden;
  border: 6px solid var(--color-wood);
  border-radius: var(--radius);
  background: var(--color-sub-bg);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin: 10px 0 0;
  text-align: right;
}

.map-link a {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.company-table {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px dashed var(--color-border);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 10em;
  background: var(--color-sub-bg);
  color: var(--color-wood-dark);
}

.company-table a {
  color: var(--color-orange-deep);
}

/* ---------- 店主紹介 ---------- */
.profile {
  display: flex;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.profile-image {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

/* 写真の場合：丸く切り抜き、木の枠で囲む */
img.profile-image {
  display: block;
  object-fit: cover;
  border: 6px solid var(--color-wood);
  box-shadow: var(--shadow);
}

/* 焙煎の様子まで見せる、角丸の正方形の写真 */
img.profile-image-square {
  width: 280px;
  height: 280px;
  border-radius: var(--radius);
}

.profile-body {
  flex: 1;
  min-width: 0;
}

.profile-role {
  display: inline-block;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--color-yellow);
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-name {
  margin: 4px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-message {
  margin: 16px 0 24px;
  padding: 12px 20px;
  border-left: 4px solid var(--color-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-card);
  color: var(--color-wood-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-heading {
  margin: 40px 0 16px;
  font-size: 1.2rem;
}

.profile-heading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* 経歴（縦のタイムライン） */
.history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history li {
  position: relative;
  padding: 0 0 20px 28px;
}

/* 縦線 */
.history li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: -10px;
  width: 2px;
  background: var(--color-wood-light);
}

.history li:last-child::before {
  display: none;
}

/* 丸印 */
.history li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--color-orange);
  border-radius: 50%;
  background: var(--color-bg);
}

.history-label {
  color: var(--color-orange-deep);
  font-weight: 700;
}

.history p {
  margin: 0;
}

.profile-media {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.profile-media a {
  color: var(--color-orange-deep);
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 56px 0 24px;
  color: #fbefd9;
}

.site-footer a:hover {
  color: var(--color-yellow);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-character {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  padding: 2px;
  border-radius: 50%;
  background: var(--color-bg);
}

.footer-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-info {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-nav {
  padding-top: 24px;
  border-top: 1px solid rgba(251, 239, 217, 0.25);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 32px 0 0;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.8;
}

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

/* ナビが折り返す中間幅ではロゴを少し小さく */
@media (max-width: 1080px) {
  .site-logo img {
    height: 40px;
  }

  .global-nav ul {
    gap: 2px 16px;
  }

  .global-nav a {
    font-size: 0.88rem;
  }
}

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

  .site-logo img {
    height: 38px;
  }

  .nav-toggle {
    display: block;
    padding: 6px 16px;
    border: 2px solid var(--color-wood);
    border-radius: 999px;
    background: var(--color-card);
    color: var(--color-text);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    box-shadow: 0 8px 16px rgba(94, 59, 34, 0.15);
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .global-nav li + li {
    border-top: 1px dashed var(--color-border);
  }

  .global-nav li a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav a[aria-current="page"] {
    color: var(--color-orange-deep);
  }

  .hero {
    padding: 40px 0;
  }

  .hero-board {
    padding: 28px 16px 32px;
    border-width: 5px;
  }

  .hero-character {
    width: 110px;
  }

  .hero-lead {
    padding: 2px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-text {
    font-size: 0.92rem;
  }

  /* 狭い画面では固定の改行を外し、行の長さを自動でそろえる */
  .hero-text br {
    display: none;
  }

  .page-header {
    padding: 36px 16px;
  }

  .page-header .container {
    display: block;
    padding: 76px 20px 18px;
  }

  .page-header .container::before {
    left: 50%;
    top: 14px;
    width: 64px;
    height: 52px;
    transform: translateX(-50%);
  }

  .page-header h1 {
    font-size: 1.45rem;
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 1.35rem;
  }

  .carousel {
    --carousel-per-view: 1;
    padding: 0 44px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
  }

  img.profile-image-square {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .order-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* 縦並びでは矢印を下向きに */
  .order-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .order-board {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 18px;
    border-width: 5px;
  }

  .menu-jump {
    top: calc(var(--header-height) + 6px);
  }

  .menu-jump ul {
    justify-content: flex-start;
  }

  /* 横スクロールしても注文ボタンは右端に固定して常に見せる */
  .menu-jump-order {
    position: sticky;
    right: 0;
    margin-left: auto;
    padding-left: 16px;
    background: linear-gradient(to right, rgba(255, 249, 239, 0), var(--color-bg) 14px);
  }

  .menu-board {
    padding: 4px 18px;
    border-width: 5px;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }

  .legal-doc {
    padding: 24px 20px;
  }

  .order-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .order-cta-btn {
    min-width: 0;
    max-width: none;
  }

  .asa-set {
    padding: 18px 20px;
  }

  .asa-set .menu-name {
    font-size: 1.2rem;
  }

  .asa-board {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 18px;
  }

  /* 長い商品名は折り返し、価格は右端にそろえる */
  .asa-list .menu-head {
    flex-wrap: wrap;
  }

  .asa-list .menu-price {
    margin-left: auto;
  }

  .menu-item:last-child {
    border-bottom: none;
  }

  .info-list {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }

  .info-list dt {
    padding-bottom: 0;
    border-bottom: none;
  }

  .info-list dd {
    padding-top: 2px;
  }

  .map {
    height: 300px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding: 10px 20px;
    border-bottom: none;
  }

  .company-table td {
    padding: 12px 20px 16px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-character {
    width: 68px;
    height: 68px;
  }
}
