/* ===========================
   ねかせ屋 - 寝かせ玄米のお店
   あたたかみのあるブランドLP
   =========================== */

:root {
  /* ロゴカラーから抽出したパレット
     茶 #2c1912 ／ さくら #df7281 ／ クリーム #e7ddd2 */
  --bg: #f5ecdb;          /* メイン背景：ロゴBGより少し明るめ */
  --bg-warm: #ece1cd;     /* ロゴBGそのまま */
  --bg-deep: #ddcfb2;     /* 深めのベージュ（セクション切替） */
  --text: #2c1912;        /* ロゴ円の濃茶＝本文のメイン */
  --text-soft: #5a3a26;   /* やわらかい茶（説明文） */
  --accent: #df7281;        /* ロゴのさくらピンク（装飾用） */
  --accent-text: #b54e60;   /* テキスト用さくらピンク（コントラスト4.5:1確保） */
  --accent-deep: #2c1912; /* CTA・ロゴ円と同じ濃茶 */
  --accent-warm: #c89860; /* 稲穂の金色アクセント */
  --sakura: #e48590;      /* さくら明 */
  --sakura-soft: #f4c5d0; /* さくら淡 */
  --line: #c9b88c;        /* 罫線・薄い区切り */
  --serif: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --hand: 'Klee One', 'Noto Serif JP', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* キーボード操作時のフォーカスリング（マウスクリック時は出さない） */
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* アニメーション・トランジションを動きを減らす設定の人には抑制 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* スクロール進入時のサブトルなフェードアップ
   モダンブラウザのみ（animation-timeline: view()対応）／reduced-motion設定時は発火しない */
@keyframes nekase-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-eyebrow,
    .section-title,
    .omoi-body,
    .omoi-image,
    .kouso-card,
    .tsukurikata-item,
    .otodoke-body,
    .order-sub,
    .cta-button {
      animation: nekase-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

/* 初期ロード時のヒーロー段階フェードイン */
@keyframes nekase-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ヒーロー画像のゆるやかな浮遊 */
@keyframes nekase-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow,
  .hero-title .line,
  .hero-sub,
  .hero-image,
  .hero-deco {
    animation: nekase-rise 1.1s ease-out both;
  }
  .hero-eyebrow             { animation-delay: 0.1s; }
  .hero-title .line:nth-of-type(1) { animation-delay: 0.3s; }
  .hero-title .line:nth-of-type(2) { animation-delay: 0.55s; }
  .hero-sub                 { animation-delay: 0.85s; }
  .hero-image               { animation-delay: 0.4s; }
  .hero-deco                { animation-delay: 1.2s; }

  .hero-image img {
    animation: nekase-float 7s ease-in-out infinite;
    animation-delay: 1.6s;
  }
}

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-warm) 60%, var(--line));
  color: transparent;
  font-size: 0;
}

/* スクリーンリーダー専用に表示 / フォーカス時のみ可視化 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent-deep);
  color: var(--bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

/* ハンバーガー用checkbox（実物は非表示） */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-burger { display: none; }

/* ===========================
   Header
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(250, 246, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  font-size: 0;
}

.logo-text { line-height: 1; }

.site-header .site-nav {
  display: flex;
  gap: 28px;
}

.site-header .site-nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.site-header .site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent-text);
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

.site-header .site-nav a:hover { color: var(--accent-text); }
.site-header .site-nav a:hover::after { width: 100%; }

.cta-mini {
  font-size: 13px;
  padding: 8px 18px;
  border: 1px solid var(--accent-deep);
  color: var(--accent-deep);
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: 0.15em;
  transition: background-color 0.2s, color 0.2s;
}
.cta-mini:hover { background: var(--accent-deep); color: var(--sakura); }

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 8% 60px;
  gap: 40px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 180, 193, 0.30) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -8%;
  left: -6%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 152, 96, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--hand);
  font-size: 15px;
  color: var(--accent-text);
  letter-spacing: 0.4em;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  color: var(--text);
}

.hero-title .line {
  display: block;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  letter-spacing: 0.15em;
  line-height: 2;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(58, 52, 43, 0.15);
}

.hero-deco {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--hand);
  color: var(--accent-warm);
  font-size: 14px;
  letter-spacing: 0.4em;
}

/* ===========================
   Sections (共通)
   =========================== */
.section {
  padding: 120px 8%;
  position: relative;
}

.section-eyebrow {
  font-family: var(--hand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 15px;
  color: var(--accent-text);
  letter-spacing: 0.4em;
  margin-bottom: 24px;
}

/* eyebrowの左右に細い罫線（章マーカー風） */
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-text);
  opacity: 0.5;
}

.section-title {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 60px;
  color: var(--text);
}

/* ===========================
   想い
   =========================== */
.omoi {
  background: var(--bg-warm);
  text-align: center;
}

.omoi-body {
  max-width: 600px;
  margin: 0 auto 64px;
  font-size: 17px;
  line-height: 2.4;
  color: var(--text-soft);
}

.omoi-body p {
  margin-bottom: 28px;
}

.omoi-body strong {
  color: var(--accent-deep);
  font-weight: 500;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 2px;
}

.omoi-image {
  display: flex;
  justify-content: center;
}

.omoi-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(58, 52, 43, 0.12);
}

/* ===========================
   寝かせ玄米とは
   =========================== */
.kouso {
  background: var(--bg);
}

.kouso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.kouso-card {
  text-align: center;
}

.kouso-img {
  overflow: hidden;
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  border-radius: 50%;
}

.kouso-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 15px 40px rgba(58, 52, 43, 0.12);
  transition: transform 0.8s ease;
}

.kouso-card:hover .kouso-img img { transform: scale(1.04); }

.kouso-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--accent-deep);
}

.kouso-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 2;
}

/* ===========================
   つくりかた
   =========================== */
.tsukurikata {
  background: var(--bg-warm);
}

.tsukurikata-list {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.tsukurikata-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.tsukurikata-item.reverse {
  grid-template-columns: 1.2fr 1fr;
  direction: rtl;
}

.tsukurikata-item.reverse > * { direction: ltr; }

.tsukurikata-img {
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
}

.tsukurikata-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(58, 52, 43, 0.12);
  transition: transform 0.8s ease;
}

.tsukurikata-item:hover .tsukurikata-img img { transform: scale(1.04); }

.tsukurikata-item h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}

.tsukurikata-item p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 2.2;
}

/* ===========================
   お届け
   =========================== */
.otodoke {
  background: var(--bg);
  text-align: center;
}

.otodoke-body {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-soft);
  line-height: 2.2;
}

.otodoke-list {
  list-style: none;
  margin-top: 40px;
  padding: 32px;
  background: var(--bg-warm);
  border-radius: 16px;
  display: inline-block;
  text-align: left;
}

.otodoke-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}

.otodoke-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent-text);
}

/* ===========================
   ご注文
   =========================== */
.order {
  background: var(--bg-deep);
  text-align: center;
  padding: 100px 8%;
}

.order-sub {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.cta-button {
  display: inline-block;
  padding: 20px 60px;
  background: var(--accent-deep);
  color: var(--sakura-soft);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.3em;
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(90, 58, 38, 0.30);
}

.cta-button:hover {
  background: #4a3020;
  color: var(--sakura);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(90, 58, 38, 0.40);
}

.order-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--text);
  color: var(--bg-warm);
  text-align: center;
  padding: 60px 20px;
}

.footer-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  background: transparent;
  font-size: 0;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  color: var(--bg-warm);
}

.footer-tagline {
  font-size: 13px;
  color: var(--bg-deep);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.footer-sns {
  margin-bottom: 32px;
}

.footer-sns a {
  font-size: 13px;
  color: var(--sakura-soft);
  text-decoration: none;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--sakura);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.footer-sns a:hover { color: var(--sakura); }

.footer-copy {
  font-size: 12px;
  color: var(--line);
  letter-spacing: 0.1em;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 880px) {
  .site-header { padding: 14px 20px; flex-wrap: wrap; }

  /* ハンバーガーボタン */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    order: 3;
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent-deep);
    margin: 0 auto;
    transition: transform 0.2s, opacity 0.2s;
  }

  /* モバイル時のナビ：閉じている状態 */
  .site-header .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    padding: 16px 0 8px;
    gap: 16px;
    border-top: 1px solid var(--line);
    margin-top: 14px;
  }
  .site-header .site-nav a {
    padding: 8px 0;
    font-size: 15px;
  }

  /* チェックON時のナビ展開 */
  .site-header .nav-toggle:checked ~ .site-nav { display: flex; }

  /* チェックON時のハンバーガー × 形状 */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .cta-mini { order: 2; }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 6% 40px;
    text-align: center;
  }
  .hero-image img { max-width: 320px; }

  .kouso-grid { grid-template-columns: 1fr; gap: 60px; }
  .kouso-img img { width: 180px; height: 180px; }

  .tsukurikata-item,
  .tsukurikata-item.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tsukurikata-list { gap: 60px; }

  .section { padding: 80px 6%; }
}

/* デスクトップ（>880px）でハンバーガー関連を非表示 */
@media (min-width: 881px) {
  .nav-burger { display: none; }
  .nav-toggle { display: none; }
}
