/* ============================================================
   1ページ完結テンプレート 共通スタイル（base.css）

   - 見た目の値（配色・書体・余白・写真の見せ方）は、すべて :root の変数に置いてある
   - テーマ（themes/*.css）は :root[data-theme="…"] で変数を上書きするだけ。このファイルは触らない
   - ブロックの順番は HTML 側で固定（data-block の順。scripts/check.py で点検）
   - 変数の意味と組み合わせ方は README.md「テーマ変数の一覧」
   ============================================================ */

:root {
  /* ---------- 配色 ---------- */
  --c-bg: #ffffff;          /* ページの地 */
  --c-surface: #f4f4f2;     /* カード・枠の面 */
  --c-band: #efefec;        /* 帯（ブロックを交互に塗る色） */
  --c-text: #222222;        /* 本文 */
  --c-muted: #555555;       /* 補足の文字。地・面・帯の上で 4.5:1 以上 */
  --c-line: #d9d9d4;        /* 罫線（飾り） */
  --c-accent: #2b5a87;      /* 文字にも使う差し色。4.5:1 以上 */
  --c-accent-deco: #8fb0cf; /* 飾りだけに使う差し色（線・点・面）。文字には使わない */
  --c-accent-2: #e9c46a;    /* 調査の2色目を残しておく欄（型では使っていない） */
  --c-btn-bg: #2b5a87;      /* 1つ目の連絡ボタン（LINE） */
  --c-btn-text: #ffffff;
  --c-btn2-bg: #ffffff;     /* 2つ目の連絡ボタン（電話） */
  --c-btn2-text: #2b5a87;
  --c-btn2-border: #2b5a87;
  --c-price: #222222;
  --c-badge-bg: #2b5a87;
  --c-badge-text: #ffffff;
  --c-focus: #1a5fb4;       /* キーボード操作のときの枠。周りの色と 3:1 以上 */
  --c-ph-a: #e5e8eb;        /* 写真の仮置き枠のグラデーション */
  --c-ph-b: #d6dce1;
  --c-ph-text: #3b4148;
  --c-map-bg: #eceff2;
  --c-map-line: #d5dbe1;
  --c-map-road: #ffffff;
  --c-map-pin: #2b5a87;

  /* ブロックごとの色。未指定のブロックは共通色を使う（下の .about などを参照） */
  --hero-bg: var(--c-band);
  --hero-text: var(--c-text);
  --hero-muted: var(--c-muted);
  --hero-body-bg: transparent;
  --hero-overlay: transparent;   /* 写真に重ねる色（rgba の単色）。文字を写真に重ねる型で使う */
  --hero-ph-text: var(--c-ph-text);
  --cta-top-bg: var(--c-bg);
  --cta-top-text: var(--c-text);
  --cta-bottom-bg: var(--c-band);
  --cta-bottom-text: var(--c-text);
  --footer-bg: #222222;
  --footer-text: #f2f2f2;

  /* ---------- 書体 ---------- */
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --font-head: var(--font-body);
  --font-hero: var(--font-head);
  --font-label: var(--font-body);   /* 英字の小見出し（About など） */
  --font-num: var(--font-body);     /* 価格・日付・電話番号 */
  --fs-base: 1rem;
  --lh-body: 1.85;
  --fw-body: 400;
  --fw-head: 700;
  --fw-hero: 700;
  --fw-num: 700;                    /* 価格・強みの番号の太さ */
  --ls-body: 0.02em;
  --ls-head: 0.04em;
  --ls-hero: 0.04em;
  --hero-eyebrow-size: 0.875rem;
  --hero-title-size: clamp(2.25rem, 9vw, 4rem);
  --hero-lead-size: clamp(1rem, 3.6vw, 1.25rem);
  --h2-size: clamp(1.375rem, 5vw, 2rem);
  --h3-size: 1.125rem;
  --label-display: block;           /* none で英字の小見出しを消す */
  --label-size: 0.8125rem;
  --label-weight: 700;
  --label-ls: 0.18em;
  --label-transform: uppercase;
  --label-style: normal;
  --label-counter: "";              /* セクション番号を出すとき：counter(section, decimal-leading-zero) " / " */
  --head-align: left;
  --head-rule-w: 0px;               /* 見出しの下の短い線。0px で出さない */
  --head-rule-h: 2px;
  --head-inline: 0;                 /* 見出しの線・リード文の左右の余白。中央寄せの型では auto */

  /* ---------- 余白 ---------- */
  --container: 1080px;
  --measure: 40em;                  /* 文章の最大幅 */
  --gutter: clamp(16px, 5vw, 40px); /* 画面の左右の余白 */
  --space-section: clamp(56px, 11vw, 120px);
  --space-head: clamp(24px, 5vw, 48px);
  --gap: clamp(16px, 3vw, 28px);
  --card-pad: clamp(18px, 4vw, 28px);
  --cta-pad: clamp(28px, 6vw, 48px);

  /* ---------- 形 ---------- */
  --radius: 8px;
  --radius-img: 6px;
  --radius-btn: 999px;
  --radius-badge: 999px;
  --shadow: none;
  --btn-min-h: 52px;
  --btn-weight: 700;
  --btn-shadow: none;
  --btn-border-w: 2px;

  /* ---------- 写真の見せ方 ---------- */
  --img-filter: none;               /* 例：grayscale(1)、sepia(0.15) */

  /* ヒーロー：写真の上に文字を重ねる型は、areas を "stack"・2つの area を stack にする */
  --hero-areas: "media" "body";
  --hero-areas-lg: "media" "body";
  --hero-cols-lg: minmax(0, 1fr);
  --hero-media-area: media;
  --hero-body-area: body;
  --hero-media-ratio: 4 / 3;
  --hero-media-ratio-lg: 21 / 9;
  --hero-media-min-h: 0px;
  --hero-body-align: end;           /* 重ねる型での文字の縦位置：start / center / end */
  --hero-text-align: left;
  --hero-child-margin: 0;           /* 文字の面を中央に寄せる型では auto */
  --hero-body-max: 36rem;
  --hero-body-pad: clamp(28px, 6vw, 64px);
  --hero-card-bg: transparent;      /* 文字の下に敷く面。写真に重ねる型で、白い写真でも読めるようにする */
  --hero-card-pad: 0px;
  --hero-card-radius: 0px;
  --hero-media-radius: 0px;         /* ヒーロー写真の角丸（積む型・分割型で使う） */

  /* 何をしているのか */
  --about-media-ratio: 4 / 3;
  --about-cols-lg: minmax(0, 5fr) minmax(0, 6fr);
  --about-areas-lg: "media text";
  --points-cols-lg: repeat(3, minmax(0, 1fr));
  /* --point-bg・--point-num-text は未指定ならブロックの面・差し色（下の .point を参照） */
  --point-border-w: 0px;
  --point-align: left;
  --point-num-size: 2.75rem;
  --point-num-radius: 999px;
  --point-num-bg: transparent;
  --point-num-border-w: 1px;
  --point-num-fs: 0.9375rem;

  /* サービスと料金：list（行）・card（写真カード）・thumb（小さな写真つきの行）の3型。README 参照 */
  --menu-cols: minmax(0, 1fr);
  --menu-cols-lg: repeat(2, minmax(0, 1fr));
  --menu-gap: 0 clamp(24px, 4vw, 48px);
  --menu-item-areas: "name price" "desc desc";
  --menu-item-cols: minmax(0, 1fr) auto;
  --menu-item-areas-lg: var(--menu-item-areas);   /* PC（768px〜）だけ並びを変えるとき */
  --menu-item-cols-lg: var(--menu-item-cols);
  --menu-item-pad: 18px 0;
  --menu-item-bg: transparent;
  --menu-item-rule: 1px;
  --menu-item-radius: 0px;
  --menu-media-display: none;
  --menu-media-ratio: 4 / 3;
  --price-size: 1.25rem;
  --badge-display: inline-block;    /* 品名の上の行にラベルを出すなら block */
  --price-note-display: inline;     /* 「（税込）」を価格の下に落とすなら block（写真カード型の2列で使う） */

  /* 実績・仕事の写真 */
  --works-cols: 2;
  --works-cols-lg: 3;
  --works-ratio: 1 / 1;
  --works-gap: 8px;
  --works-caption-display: block;

  /* 地図・行き方 */
  --map-ratio: 4 / 3;
  --access-cols-lg: minmax(0, 3fr) minmax(0, 2fr);
}

/* ============ 土台 ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  line-break: strict;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* 写真の枠：縦横比は親の変数で決め、中の img・仮置き枠は枠いっぱいに広げる */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-img);
}

.media > img,
.media > .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
}

/* 写真の仮置き枠（写真が届くまでの代わり。README「生成が必要な画像の一覧」と対応） */
.ph {
  display: grid;
  place-items: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--c-ph-a), var(--c-ph-b));
  color: var(--c-ph-text);
  text-align: center;
}

.ph__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.ph__label::before {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4 7.2 6H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.2L15 4H9Zm3 4.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4 7.2 6H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.2L15 4H9Zm3 4.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============ 1. ヒーロー（写真かイラスト＋屋号・ひとこと） ============ */
.hero {
  display: grid;
  grid-template-areas: var(--hero-areas);
  grid-template-columns: minmax(0, 1fr);
  background: var(--hero-bg);
  color: var(--hero-text);
}

.hero__media {
  grid-area: var(--hero-media-area);
  aspect-ratio: var(--hero-media-ratio);
  min-height: var(--hero-media-min-h);
  border-radius: var(--hero-media-radius);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero__media > .ph {
  place-items: start end;
  padding: 16px;
  color: var(--hero-ph-text);
}

/* 仮置き枠の説明文は、重ねる色の下に沈まないよう前に出す */
.hero__media .ph__label {
  position: relative;
  z-index: 2;
}

.hero__body {
  grid-area: var(--hero-body-area);
  position: relative;
  z-index: 1;
  align-self: var(--hero-body-align);
  width: 100%;
  background: var(--hero-body-bg);
}

.hero__inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  padding-block: var(--hero-body-pad);
  text-align: var(--hero-text-align);
}

.hero__card {
  max-width: var(--hero-body-max);
  margin-inline: var(--hero-child-margin);
  padding: var(--hero-card-pad);
  border-radius: var(--hero-card-radius);
  background: var(--hero-card-bg);
}

.hero__eyebrow {
  color: var(--hero-muted);
  font-size: var(--hero-eyebrow-size);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero__title {
  margin-top: 0.3em;
  font-family: var(--font-hero);
  font-size: var(--hero-title-size);
  font-weight: var(--fw-hero);
  line-height: 1.2;
  letter-spacing: var(--ls-hero);
}

.hero__lead {
  margin-top: 0.9em;
  font-size: var(--hero-lead-size);
  line-height: 1.8;
}

/* ============ 2・9. 連絡ボタン（一番上と一番下） ============ */
.cta {
  padding: var(--cta-pad) var(--gutter);
  text-align: center;
}

.cta--top {
  background: var(--cta-top-bg);
  color: var(--cta-top-text);
}

.cta--bottom {
  background: var(--cta-bottom-bg);
  color: var(--cta-bottom-text);
  padding-block: calc(var(--cta-pad) * 1.4);
}

.cta__lead {
  font-weight: 700;
  line-height: 1.6;
}

.cta--bottom .cta__lead {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  font-weight: var(--fw-head);
}

.cta__buttons {
  display: grid;
  grid-template-columns: minmax(0, 22rem);
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cta__note {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.5em;
  min-height: var(--btn-min-h);
  padding: 0.7em 1.4em;
  border: var(--btn-border-w) solid transparent;
  border-radius: var(--radius-btn);
  box-shadow: var(--btn-shadow);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--btn-weight);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.btn--primary {
  border-color: var(--c-btn-bg);
  background: var(--c-btn-bg);
  color: var(--c-btn-text);
}

.btn--secondary {
  border-color: var(--c-btn2-border);
  background: var(--c-btn2-bg);
  color: var(--c-btn2-text);
}

.btn__icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.btn__label,
.btn__sub {
  white-space: nowrap;
}

.btn__sub {
  font-family: var(--font-num);
  font-size: 0.875em;
  font-weight: 400;
}

/* ============ 3〜8. 各ブロック共通 ============ */
.section {
  --s-bg: var(--c-bg);
  --s-text: var(--c-text);
  --s-muted: var(--c-muted);
  --s-accent: var(--c-accent);
  --s-surface: var(--c-surface);
  --s-line: var(--c-line);
  --s-deco: var(--c-accent-deco);
  counter-increment: section;
  padding-block: var(--space-section);
  background: var(--s-bg);
  color: var(--s-text);
}

/* 未指定なら、地（about・works・access）と帯（menu・news・contact）を交互に塗る */
.about {
  --s-bg: var(--about-bg, var(--c-bg));
  --s-text: var(--about-text, var(--c-text));
  --s-muted: var(--about-muted, var(--c-muted));
  --s-accent: var(--about-accent, var(--c-accent));
  --s-surface: var(--about-surface, var(--c-surface));
  --s-line: var(--about-line, var(--c-line));
  --s-deco: var(--about-deco, var(--c-accent-deco));
}

.menu {
  --s-bg: var(--menu-bg, var(--c-band));
  --s-text: var(--menu-text, var(--c-text));
  --s-muted: var(--menu-muted, var(--c-muted));
  --s-accent: var(--menu-accent, var(--c-accent));
  --s-surface: var(--menu-surface, var(--c-surface));
  --s-line: var(--menu-line, var(--c-line));
  --s-deco: var(--menu-deco, var(--c-accent-deco));
}

.works {
  --s-bg: var(--works-bg, var(--c-bg));
  --s-text: var(--works-text, var(--c-text));
  --s-muted: var(--works-muted, var(--c-muted));
  --s-accent: var(--works-accent, var(--c-accent));
  --s-surface: var(--works-surface, var(--c-surface));
  --s-line: var(--works-line, var(--c-line));
  --s-deco: var(--works-deco, var(--c-accent-deco));
}

.news {
  --s-bg: var(--news-bg, var(--c-band));
  --s-text: var(--news-text, var(--c-text));
  --s-muted: var(--news-muted, var(--c-muted));
  --s-accent: var(--news-accent, var(--c-accent));
  --s-surface: var(--news-surface, var(--c-surface));
  --s-line: var(--news-line, var(--c-line));
  --s-deco: var(--news-deco, var(--c-accent-deco));
}

.access {
  --s-bg: var(--access-bg, var(--c-bg));
  --s-text: var(--access-text, var(--c-text));
  --s-muted: var(--access-muted, var(--c-muted));
  --s-accent: var(--access-accent, var(--c-accent));
  --s-surface: var(--access-surface, var(--c-surface));
  --s-line: var(--access-line, var(--c-line));
  --s-deco: var(--access-deco, var(--c-accent-deco));
}

.contact {
  --s-bg: var(--contact-bg, var(--c-band));
  --s-text: var(--contact-text, var(--c-text));
  --s-muted: var(--contact-muted, var(--c-muted));
  --s-accent: var(--contact-accent, var(--c-accent));
  --s-surface: var(--contact-surface, var(--c-surface));
  --s-line: var(--contact-line, var(--c-line));
  --s-deco: var(--contact-deco, var(--c-accent-deco));
}

.section__head {
  margin-bottom: var(--space-head);
  text-align: var(--head-align);
}

.section__label {
  display: var(--label-display);
  margin-bottom: 0.6em;
  color: var(--label-color, var(--s-accent));
  font-family: var(--font-label);
  font-size: var(--label-size);
  font-style: var(--label-style);
  font-weight: var(--label-weight);
  line-height: 1.2;
  letter-spacing: var(--label-ls);
  text-transform: var(--label-transform);
}

.section__label::before {
  content: var(--label-counter);
}

.section__title,
.hero__eyebrow,
.hero__lead,
.cta__lead,
.point__title,
.menu-item__name,
.news-item__title,
.work figcaption,
.access__list li {
  word-break: auto-phrase;
}

.section__title {
  font-family: var(--font-head);
  font-size: var(--h2-size);
  font-weight: var(--fw-head);
  line-height: 1.5;
  letter-spacing: var(--ls-head);
}

.section__title::after {
  content: "";
  display: block;
  width: var(--head-rule-w);
  height: var(--head-rule-h);
  margin-top: 0.7em;
  margin-inline: var(--head-inline);
  background: var(--s-deco);
}

.section__lead {
  max-width: var(--measure);
  margin-top: 1em;
  margin-inline: var(--head-inline);
  color: var(--s-muted);
}

/* ============ 3. 何をしているのか（こだわり・強み・人柄） ============ */
.about__intro {
  display: grid;
  gap: var(--gap);
}

.about__media {
  aspect-ratio: var(--about-media-ratio);
}

.about__text {
  max-width: var(--measure);
}

.about__text p + p {
  margin-top: 1em;
}

.about__sign {
  margin-top: 1em;
  color: var(--s-muted);
  font-size: 0.875rem;
}

.points {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(32px, 6vw, 56px);
}

.point {
  padding: var(--card-pad);
  border: var(--point-border-w) solid var(--s-line);
  border-radius: var(--radius);
  background: var(--point-bg, var(--s-surface));
  box-shadow: var(--shadow);
  text-align: var(--point-align);
}

.point__num {
  display: inline-grid;
  place-items: center;
  min-width: var(--point-num-size);
  height: var(--point-num-size);
  padding-inline: 0.4em;
  border: var(--point-num-border-w) solid currentColor;
  border-radius: var(--point-num-radius);
  background: var(--point-num-bg);
  color: var(--point-num-text, var(--s-accent));
  font-family: var(--font-num);
  font-size: var(--point-num-fs);
  font-weight: var(--fw-num);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.04em;
}

.point__title {
  margin-top: 0.8em;
  font-family: var(--font-head);
  font-size: var(--h3-size);
  font-weight: var(--fw-head);
  line-height: 1.5;
}

.point__text {
  margin-top: 0.5em;
  color: var(--s-muted);
}

/* ============ 4. サービスと料金 ============ */
.menu__list {
  display: grid;
  grid-template-columns: var(--menu-cols);
  gap: var(--menu-gap);
}

.menu-item {
  display: grid;
  grid-template-areas: var(--menu-item-areas);
  grid-template-columns: var(--menu-item-cols);
  align-content: start;
  gap: 4px 16px;
  padding: var(--menu-item-pad);
  border-bottom: var(--menu-item-rule) solid var(--s-line);
  border-radius: var(--menu-item-radius);
  background: var(--menu-item-bg);
}

.menu-item__media {
  grid-area: media;
  display: var(--menu-media-display);
  aspect-ratio: var(--menu-media-ratio);
  margin-bottom: 6px;
}

.menu-item__name {
  grid-area: name;
  font-family: var(--font-head);
  font-size: var(--h3-size);
  font-weight: var(--fw-head);
  line-height: 1.5;
}

.menu-item__desc {
  grid-area: desc;
  color: var(--s-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.menu-item__price {
  grid-area: price;
  color: var(--menu-price, var(--c-price));
  font-family: var(--font-num);
  font-size: var(--price-size);
  font-weight: var(--fw-num);
  line-height: 1.4;
  /* 「22,000円〜」は離さず、入らないときだけ「（税込）」を次の行に落とす */
  word-break: keep-all;
}

.menu-item__price,
.news-item__date,
.info__num,
.btn__sub {
  font-variant-numeric: lining-nums tabular-nums;
}

.menu-item__price small {
  display: var(--price-note-display);
  font-size: 0.75rem;
  font-weight: 400;
}

.badge {
  display: var(--badge-display);
  width: fit-content;
  margin: 0 0.5em 0.2em 0;
  padding: 0.1em 0.65em;
  border-radius: var(--radius-badge);
  background: var(--c-badge-bg);
  color: var(--c-badge-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}

/* メニューの小さな写真枠では、仮置き枠の説明文を小さくし、アイコンを省く */
.menu-item__media > .ph {
  padding: 6px;
}

.menu-item__media .ph__label {
  font-size: 0.6875rem;
}

.menu-item__media .ph__label::before {
  display: none;
}

.menu__note {
  margin-top: 20px;
  color: var(--s-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* ============ 5. 実績・仕事の写真 ============ */
.works__grid {
  display: grid;
  grid-template-columns: repeat(var(--works-cols), minmax(0, 1fr));
  gap: var(--works-gap);
}

.work__media {
  aspect-ratio: var(--works-ratio);
}

.work figcaption {
  display: var(--works-caption-display);
  margin-top: 6px;
  color: var(--s-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ============ 6. お知らせ ============ */
.news__list {
  border-top: 1px solid var(--s-line);
}

.news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--s-line);
}

.news-item__date {
  color: var(--s-muted);
  font-family: var(--font-num);
  font-size: 0.875rem;
}

.news-item__tag {
  justify-self: start;
  padding: 0 0.7em;
  border: 1px solid currentColor;
  border-radius: var(--radius-badge);
  color: var(--s-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.8;
}

.news-item__title {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.news-item__text {
  grid-column: 1 / -1;
  color: var(--s-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============ 7. 地図・行き方 ============ */
.access__body {
  display: grid;
  gap: var(--gap);
}

/* 地図の例（実在の場所を指さない仮置き。本番は Google マップの埋め込みに差し替える） */
.map-ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--map-ratio);
  border-radius: var(--radius-img);
  background-color: var(--c-map-bg);
  background-image:
    linear-gradient(var(--c-map-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-map-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-ph__road {
  position: absolute;
  background: var(--c-map-road);
}

.map-ph__road--h {
  top: 58%;
  left: -5%;
  width: 110%;
  height: 14px;
  transform: rotate(-4deg);
}

.map-ph__road--v {
  top: -5%;
  left: 38%;
  width: 12px;
  height: 110%;
  transform: rotate(8deg);
}

.map-ph__pin {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--c-map-pin);
  transform: translate(-50%, -60%) rotate(-45deg);
}

.map-ph__pin::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--c-map-bg);
}

.map-ph__label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #333333;
  font-size: 0.75rem;
  line-height: 1.5;
}

.access__list li {
  position: relative;
  padding-left: 1.25em;
}

.access__list li + li {
  margin-top: 0.6em;
}

.access__list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--s-deco);
}

/* ============ 8. 営業時間・連絡先 ============ */
.info {
  display: grid;
  max-width: 44rem;
  margin-inline: var(--head-inline);
  border-top: 1px solid var(--s-line);
}

.info__row {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--s-line);
}

.info__row dt {
  font-weight: 700;
}

.info__num {
  font-family: var(--font-num);
}

/* ============ フッター ============ */
.site-footer {
  padding: 40px var(--gutter) 48px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.8125rem;
  line-height: 1.8;
  text-align: center;
}

.footer__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: var(--fw-head);
  letter-spacing: var(--ls-head);
}

.footer__note {
  max-width: 40em;
  margin: 12px auto 0;
}

.footer__option {
  margin-top: 8px;
}

.footer__copy {
  margin-top: 16px;
}

/* ============ 画面幅ごとの切り替え ============ */
@media (max-width: 359px) {
  .info__row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 小さな画面では、写真カードを2列にするテーマでも1列にする（価格がはみ出さないように） */
  .menu__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 560px) {
  .cta__buttons {
    grid-template-columns: repeat(2, minmax(0, 17rem));
  }
}

@media (min-width: 768px) {
  .hero {
    grid-template-areas: var(--hero-areas-lg);
    grid-template-columns: var(--hero-cols-lg);
  }

  .hero__media {
    aspect-ratio: var(--hero-media-ratio-lg);
  }

  .about__intro {
    grid-template-areas: var(--about-areas-lg);
    grid-template-columns: var(--about-cols-lg);
    align-items: center;
  }

  .about__media {
    grid-area: media;
  }

  .about__text {
    grid-area: text;
  }

  .menu__list {
    grid-template-columns: var(--menu-cols-lg);
  }

  .menu-item {
    grid-template-areas: var(--menu-item-areas-lg);
    grid-template-columns: var(--menu-item-cols-lg);
  }

  .works__grid {
    grid-template-columns: repeat(var(--works-cols-lg), minmax(0, 1fr));
  }

  .news-item {
    grid-template-columns: 7.5em 7em minmax(0, 1fr);
  }

  .news-item__title,
  .news-item__text {
    grid-column: 3;
  }

  .access__body {
    grid-template-columns: var(--access-cols-lg);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .points {
    grid-template-columns: var(--points-cols-lg);
  }
}

/* ============ 動きを減らす設定 ============ */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.15s ease, filter 0.15s ease;
  }

  .btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

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