/* まちかど珈琲 ひより — HP・LP 共通 */
:root {
  --cream: #f5f0e4;
  --paper: #fcfaf3;
  --sand: #ebe0cf;
  --coffee: #31201d;
  --coffee-2: #6b5546;
  --terra: #9f4717;
  --terra-dark: #7e3711;
  --leaf: #5f6f52;
  --line: #e4cebb;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --wrap: 1080px;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--coffee);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

/* 架空のサンプルの表示（必須・LR-04） */
.sample-bar {
  background: var(--coffee);
  color: var(--cream);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.08em;
}
.sample-bar a {
  color: #f3c9a6;
}

/* ロゴ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.logo-text {
  display: grid;
  line-height: 1.2;
}
.logo-text small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--coffee-2);
}
.logo-text b {
  font-family: var(--mincho);
  font-size: 19px;
  letter-spacing: 0.12em;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-main {
  background: var(--terra);
  color: #fff;
  
}
.btn-main:hover {
  background: var(--terra-dark);
}
.btn-line {
  border: 1.5px solid var(--coffee);
  color: var(--coffee);
}
.btn-line:hover {
  background: var(--coffee);
  color: var(--cream);
}

/* 画像の差し替え枠（data-label に内容、data-prompt に AI 画像生成のプロンプト） */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25% 20%, rgb(255 255 255 / 0.55), transparent 45%),
    linear-gradient(140deg, #e9d6bd, #c99c74 55%, #8a5f43);
  aspect-ratio: var(--ratio, 4 / 3);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(59 42 32 / 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 250 243 / 0.85);
  color: var(--coffee-2);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.ph.is-green {
  background:
    radial-gradient(circle at 70% 25%, rgb(255 255 255 / 0.5), transparent 45%),
    linear-gradient(140deg, #dfe3cf, #9aa883 55%, #5f6f52);
}
.ph.is-dark {
  background:
    radial-gradient(circle at 30% 30%, rgb(255 220 180 / 0.35), transparent 50%),
    linear-gradient(140deg, #6b4a36, #3b2a20 60%, #24180f);
}

/* 見出しの飾り */
.eyebrow {
  display: inline-block;
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--terra);
  margin-bottom: 10px;
}

/* 出てくる動き（動きを減らす設定の人には出さない） */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

/* 写真（読み込めないときは .ph の仮の枠が見える） */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ph:has(> img)::after {
  z-index: 2;
}
.ph:has(> img)::after {
  display: none;
}

/* 縦書き */
.tate {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
