/* ==========================================================
   共通：色・フォント・余白は :root で一括管理
   架空サイト「珈琲焙煎所 灯」：メインカラーは焙煎豆のブラウン。
      各所では必ず var(--変数名) で読み込む（カラーコードの直書き禁止）。
   ========================================================== */
:root {
  /* ブランド */
  --color-brand: #8a4b24;          /* ★メインカラー */
  --color-brand-soft: #b8793f;     /* サブ（明るい側） */
  --color-brand-dark: #5e3016;     /* ボタンのグラデーション下側など（暗い側） */
  --color-brand-pale: #f6ece0;     /* 淡い背景 */

  /* ベース */
  --color-base: #fbf7f1;           /* 生成りなど、ページの地色 */
  --color-white: #ffffff;
  --color-dark: #2b1a10;           /* フッター・TOPのヒーロー背景 */
  --color-text: #33261c;
  --color-text-sub: #76675a;
  --color-line: #e8ddd0;
  --color-card-shadow: rgba(60, 30, 10, 0.1);
  --color-overlay-white: rgba(255, 255, 255, 0.55);   /* 見出し写真の上に重ねる白のベール */
  --color-overlay-modal: rgba(20, 20, 20, 0.6);       /* 詳細ウィンドウ（モーダル）の背景 */
  --color-required: #db3025;                         /* フォーム：必須バッジ・エラー文 */
  --color-optional: #777777;                         /* フォーム：任意バッジ */

  /* フォント（functions.php の Google Fonts と合わせる） */
  --font-mincho: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* 余白 */
  --gutter: clamp(16px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Lenis（スクロールの慣性）の推奨CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================
   共通パーツ（common__）
   ========================================================== */
.common__inner {
  width: min(1920px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.common__section {
  padding-block: 120px;
}
@media (max-width: 767px) {
  .common__section {
    padding-block: 72px;
  }
}

/* 見出し：英字ラベル＋明朝の日本語 */
.common__heading {
  text-align: center;
  margin: 0 0 56px;
}
@media (max-width: 767px) {
  .common__heading {
    margin-bottom: 36px;
  }
}

.common__heading--left {
  text-align: start;
}

.common__heading-en {
  display: block;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--color-brand);
  margin-bottom: 14px;
}
@media (max-width: 767px) {
  .common__heading-en {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

.common__heading-ja {
  display: block;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .common__heading-ja {
    font-size: 24px;
  }
}

.common__lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 2.1;
  color: var(--color-text-sub);
  text-align: center;
}
@media (max-width: 767px) {
  .common__lead {
    font-size: 14px;
    line-height: 1.95;
    text-align: left;
  }
}

/* ボタン */
.common__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 280px;
  padding: 18px 32px;
  border: 1px solid var(--color-brand);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-brand);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.common__btn:hover {
  background: var(--color-brand);
  color: var(--color-white);
}
@media (max-width: 767px) {
  .common__btn {
    min-width: 0;
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
  }
}

.common__btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.common__btn-wrap {
  margin-top: 56px;
  text-align: center;
}
@media (max-width: 767px) {
  .common__btn-wrap {
    margin-top: 36px;
  }
}

/* PC / SP の出し分け */
.common__sp {
  display: none;
}
@media (max-width: 767px) {
  .common__sp {
    display: inline;
  }
}

@media (max-width: 767px) {
  .common__pc {
    display: none;
  }
}

/* スクロールで現れる */
.common__fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.common__fade.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .common__fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
