/* ==========================================================================
   LP テンプレート — main.css スターター
   --------------------------------------------------------------------------
   新案件の Stage 5（フロント実装）開始時に、最低限の可読性・アクセシビリティ
   ルールを最初から組み込んだ状態でスタートできるようにするための雛形。

   このスターターには以下が含まれる：
     - CSS Custom Properties の最小セット（カラー・タイポ・余白）
     - 日本語可読性のためのグローバル設定（自然な折り返し / overflow-wrap）
     - .nowrap / .text-chunk ユーティリティクラス（短い重要語句・文末保護用）
     - .copy-fit / .sp-copy-fit ユーティリティ（長文本文のスマホ見切れ防止）
     - .hero / .section__title / .cta の初期スターター（新規作成直後の崩れ防止）
     - skip-link / :focus-visible のアクセシビリティ最低限
     - prefers-reduced-motion 対応
     - JS 有効時のみ動く .fade-in / .section__title の初期アニメーション

   実装時の注意：
     1. デザイン仕様書 §1〜2 のカラーパレットとフォントを反映
     2. 短い重要フレーズだけ <span class="nowrap"> で保護
     3. 本文は句点・意味単位で <br> や短い段落に分ける
     4. 長い本文・商品名列挙・注記は .copy-fit または .sp-copy-fit で見切れを防ぐ
     5. body に word-break: keep-all を強くかけない。必要な箇所だけ局所保護する
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties（デザイン仕様書 §1〜4 で上書き）
   -------------------------------------------------------------------------- */
:root {
  /* Colors（プレースホルダ：デザイン仕様で確定） */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F5F5F5;
  --color-text-primary: #2A2724;
  --color-text-secondary: #6E6660;
  --color-border: #DDDDDD;
  --color-accent-primary: #B07A6E;
  --color-accent-primary-hover: #9F6A5E;
  --color-focus: rgba(176, 122, 110, 0.4);

  /* Hero media readability: photo visibility and copy readability are tuned together. */
  --hero-image-opacity: 0.82;
  --hero-mist-opacity: 0.42;
  --hero-text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  --image-contain-bg: color-mix(in srgb, var(--color-bg-secondary) 84%, #FFFFFF);
  --section-bg-fade-color: var(--color-bg-primary);
  --section-bg-fade-size: 88px;
  --opening-screen-bg:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-primary-hover) 100%);
  --opening-screen-color: #FFFFFF;
  --opening-screen-fade-in: 500ms;
  --opening-screen-hold: 2000ms;
  --opening-screen-fade-out: 2000ms;
  --opening-screen-fade: var(--opening-screen-fade-out);
  --opening-screen-z: 9999;

  /* Typography */
  --font-jp: 'Hiragino Sans', 'Yu Gothic', 'YuGothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: Georgia, 'Times New Roman', serif;
  --font-micro: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;

  --fs-display: 40px;
  --fs-h1: 32px;
  --fs-h2: 24px;
  --fs-h3: 19px;
  --fs-body: 16px;
  --fs-caption: 14px;

  --lh-body: 1.95;
  --lh-heading: 1.55;
  --ls-body: 0;
  --ls-heading: 0;

  /* Spacing */
  --space-section-pc: 120px;
  --space-section-sp: 72px;
  --container-max: 1080px;
  --side-padding-pc: 60px;
  --side-padding-sp: 24px;

  /* Easings */
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quick: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Header */
  --header-h-pc: 80px;
  --header-h-sp: 60px;
}

@media (max-width: 767px) {
  :root {
    --fs-display: 30px;
    --fs-h1: 25px;
    --fs-h2: 21px;
    --fs-h3: 17px;
    --fs-body: 15px;
    --fs-caption: 13px;
    --lh-heading: 1.5;
    --space-section-sp: 64px;
    --side-padding-sp: 20px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  overflow-x: hidden;

  /* ------------------------------------------------------------------------
     日本語本文は自然な折り返しを基本にする。
     ------------------------------------------------------------------------
     body 全体へ word-break: keep-all をかけると、句点後の文や長い本文が
     スマホ幅で詰まり、文字レンジの見切れや読みにくい改行を起こしやすい。
     固有名詞・短いラベル・CTAなど分割したくない語句だけ .nowrap / .text-chunk
     で局所的に保護する。
     ------------------------------------------------------------------------ */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

body.has-opening-screen,
body.is-opening-active {
  background: var(--opening-screen-bg);
}

img, picture, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease-out-quick); }
h1, h2, h3, h4, h5, h6, p, dl, dt, dd { margin: 0; }

main, header, footer, section {
  max-width: 100%;
}

main {
  overflow-x: clip;
}

/*
  Grid / flex の子要素は、初期値 min-width:auto により長い日本語本文や画像が
  親幅を押し広げることがある。カード、パネル、__body 系の内側は最初から
  縮められるようにして、スマホでの視覚的な見切れを防ぐ。
*/
:where(
  .container,
  [class*="__inner"],
  [class*="__body"],
  [class*="__content"],
  [class*="card"],
  [class*="panel"],
  [class*="grid"],
  [class*="list"]
) {
  min-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: var(--color-accent-primary);
  color: #FFFFFF;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--color-text-primary);
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 1000;
  font-size: 14px;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. 重要フレーズ保護ユーティリティ（必須・Pole Pole 反省 #18）
   --------------------------------------------------------------------------
   使い方：意味のまとまり（屋号・カタカナ複合語・商品カテゴリ・地名+助詞など）を
           <span class="nowrap"> で囲む。inline-block により単語途中で改行されない。

   保護すべき代表例：
     - 屋号：「Pole Pole（ポレポレ）」「ELLIE clothes」
     - カタカナ複合語：ハンドメイド雑貨／インテリア雑貨／ギフトラッピング
     - 商品カテゴリ：焼き菓子／一点もの／季節のおすすめ
     - 地名+助詞：上越市の／新潟県上越市・高田駅近くの
     - 営業情報：11:00〜16:00／火・水・木曜日／駐車場 2 台
     - 連絡手段：Instagram DM／@handmadeshop_polepole
   -------------------------------------------------------------------------- */
.nowrap {
  display: inline-block;
  white-space: nowrap;
}

/*
  短文カード・理由説明・CTA 周辺で、文末の「。」だけが行頭に落ちるのを防ぐ。
  1 chunk は 8〜14 文字程度に分け、長すぎる chunk で横はみ出しを作らない。
  長い本文全体には使わない。
*/
.text-chunk {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

/*
  長い本文・商品名列挙・体験名列挙・注記用。
  本文は body の自然改行を基本にしつつ、長い日本語+カタカナ+記号の
  組み合わせではスマホで文字だけが右に見切れることがある。
  そのような本文には .copy-fit を付ける。スマホだけ明示的に緩めたい場合は .sp-copy-fit。
*/
.copy-fit {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: auto;
}

@media (max-width: 767px) {
  .sp-copy-fit {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: auto;
  }
}

/* --------------------------------------------------------------------------
   4. レスポンシブ改行ユーティリティ
   --------------------------------------------------------------------------
   .br-sp ── PC では非表示、スマホ（767px以下）でのみ改行する
   .br-pc ── PC では改行、スマホ（767px以下）では非表示
   -------------------------------------------------------------------------- */
.br-sp { display: none; }
.br-pc { display: inline; }
@media (max-width: 767px) {
  .br-sp { display: inline; }
  .br-pc { display: none; }
}

/*
  元画像の構図を見せる必要がある素材用。人物、風景、店内、神社・建物などは
  cover crop より contain を優先した方がクライアント確認で戻りが少ない。
*/
.image-fit-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--image-contain-bg);
}

.image-fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
  モバイル2段ヘッダー用の安全なgridパターン。
  ロゴ、言語切替、セクションナビを同時に出す場合、gridの自動配置だけに任せると
  ボタンがナビ下へ落ちやすい。使う場合は以下のクラス名か同等の指定で、
  brand / actions / nav の row と column を明示する。
*/
.mobile-two-row-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: center;
  gap: 10px 14px;
}

.mobile-two-row-header__brand { grid-area: brand; min-width: 0; }
.mobile-two-row-header__actions { grid-area: actions; justify-self: end; }
.mobile-two-row-header__nav {
  grid-area: nav;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/*
  FVで「写真を見せたい」と「文字を読ませたい」が衝突する場合の調整セット。
  opacity、ミスト、文字シャドウを個別に場当たり調整せず、この3点を一緒に見る。
*/
.hero-media-readable {
  position: relative;
  isolation: isolate;
}

.hero-media-readable img,
.hero-media-readable picture {
  opacity: var(--hero-image-opacity);
}

.hero-media-readable::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, var(--hero-mist-opacity)), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, calc(var(--hero-mist-opacity) * 0.72)));
}

.hero-copy-readable {
  text-shadow: var(--hero-text-shadow);
}

/*
  背景画像を敷くセクションの上下境界をなじませるための薄いフェード。
  画像背景が前後セクションと急に切れる場合、画像加工に入る前の候補として使う。
*/
.section-bg-fade {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-bg-fade::before,
.section-bg-fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--section-bg-fade-size);
  pointer-events: none;
  z-index: 1;
}

.section-bg-fade::before {
  top: 0;
  background: linear-gradient(180deg, var(--section-bg-fade-color), transparent);
}

.section-bg-fade::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--section-bg-fade-color), transparent);
}

/*
  任意の初期画面パターン。使う場合だけHTML冒頭に
  <div class="opening-screen" data-opening-screen>...</div> を置く。
  FVが一瞬見えてから初期画面に切り替わらないよう、初期画面はJSで後挿入せず
  first paintからCSSだけで表示できる状態にする。
  初期画面はブランド名・短いタグライン程度に留め、CTAや本文導線はFVへ渡す。
  自動QAでは .is-automated-preview で外し、FV本文とCTAを検証できるようにする。
*/
.opening-screen {
  position: fixed;
  inset: 0;
  z-index: var(--opening-screen-z);
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--side-padding-sp);
  background: var(--opening-screen-bg);
  color: var(--opening-screen-color);
  pointer-events: auto;
  animation: lp-opening-screen-hide var(--opening-screen-fade-out) ease calc(var(--opening-screen-fade-in) + var(--opening-screen-hold)) forwards;
}

.is-opening-active {
  overflow: hidden;
}

.is-automated-preview .opening-screen {
  display: none !important;
}

.opening-screen.is-complete {
  visibility: hidden;
  pointer-events: none;
}

.opening-screen__inner {
  display: grid;
  gap: 12px;
  max-width: min(88vw, 720px);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: lp-opening-copy-in var(--opening-screen-fade-in) var(--ease-out-soft) 40ms forwards;
}

.opening-screen__name {
  font-size: 58px;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.opening-screen__tagline {
  font-size: 22px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .opening-screen__name {
    font-size: 38px;
  }

  .opening-screen__tagline {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .opening-screen__name {
    font-size: 34px;
  }
}

@keyframes lp-opening-copy-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lp-opening-screen-hide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* --------------------------------------------------------------------------
   5. Container / Section（デザイン仕様書で必要に応じて上書き）
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--side-padding-pc) * 2);
  margin: 0 auto;
  padding-left: var(--side-padding-sp);
  padding-right: var(--side-padding-sp);
}
@media (min-width: 1024px) {
  .container { padding-left: var(--side-padding-pc); padding-right: var(--side-padding-pc); }
}

.section {
  padding-top: var(--space-section-sp);
  padding-bottom: var(--space-section-sp);
}
@media (min-width: 1024px) {
  .section { padding-top: var(--space-section-pc); padding-bottom: var(--space-section-pc); }
}

.section-lead {
  color: var(--color-accent-primary);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.7;
}

.section__title {
  max-width: 100%;
  color: var(--color-text-primary);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

h1.section__title {
  max-width: 14em;
  font-size: var(--fs-h1);
}

.hero {
  display: grid;
  align-items: center;
  min-height: 88svh;
  padding-top: 96px;
  padding-bottom: 72px;
}

.hero .container {
  display: grid;
  gap: 36px;
}

.hero__copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
  min-width: 0;
}

.hero__copy p {
  max-width: 38em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--color-accent-primary);
  color: #FFFFFF;
  font-weight: 760;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 28px rgba(42, 39, 36, 0.16);
}

.cta:hover {
  background: var(--color-accent-primary-hover);
}

@media (max-width: 767px) {
  .section__title {
    font-size: var(--fs-h2);
  }

  h1.section__title {
    max-width: 100%;
    font-size: var(--fs-h1);
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .hero__copy {
    gap: 14px;
  }

  .cta {
    width: 100%;
    padding-inline: 18px;
  }
}

/* --------------------------------------------------------------------------
   6. Motion starter（IntersectionObserver と連携）
   --------------------------------------------------------------------------
   - JS が html.motion-ready を付けた場合だけアニメーション化する
   - JS 無効時、または prefers-reduced-motion 時は常時表示のまま
   - ELLIE 反省 #3 により、観測は .section__title を含め rootMargin -25% を使う
   -------------------------------------------------------------------------- */
.fade-in,
.section__title,
.section-lead {
  opacity: 1;
  transform: none;
}

.motion-ready .fade-in,
.motion-ready .section__title,
.motion-ready .section-lead {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  transition:
    opacity 0.72s var(--ease-out-soft),
    filter 0.72s var(--ease-out-soft),
    transform 0.72s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.motion-ready .section__title {
  transform: translateY(18px);
}

.motion-ready .fade-in.is-visible,
.motion-ready .section__title.is-visible,
.motion-ready .section-lead.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.motion-ready .hero__copy > *,
.motion-ready .hero__art img {
  animation: lp-hero-rise 0.84s var(--ease-out-soft) both;
}

.motion-ready .hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.motion-ready .hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.motion-ready .hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.motion-ready .hero__art img { animation: lp-hero-image 1.3s var(--ease-out-soft) both; }

.hover-lift {
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring), border-color 0.28s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

@keyframes lp-hero-rise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes lp-hero-image {
  from {
    opacity: 0;
    filter: saturate(0.82) blur(6px);
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    filter: saturate(1) blur(0);
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   7. Reduced motion（必須・アクセシビリティ）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in,
  .section__title,
  .section-lead,
  .motion-ready .fade-in,
  .motion-ready .section__title,
  .motion-ready .section-lead {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .hover-lift:hover { transform: none; }
  .opening-screen {
    animation: lp-opening-screen-hide 0.01ms ease 0.01ms forwards !important;
  }
}

/* --------------------------------------------------------------------------
   ここから下：案件固有のスタイルを追加
   --------------------------------------------------------------------------
   以下のセクションを必要に応じて実装：
     8. Header / Mobile menu
     9. FV / HERO
    10. 各セクション（CONCEPT / WORKS / PRODUCTS / VOICE / SHOP 等）
    11. Footer
    12. Sticky CTA
   -------------------------------------------------------------------------- */

:root {
  --color-bg-primary: #fffbf5;
  --color-bg-secondary: #fff3e6;
  --color-text-primary: #4b3528;
  --color-text-secondary: #7a6659;
  --color-border: rgba(152, 113, 82, 0.16);
  --color-accent-primary: #d9798f;
  --color-accent-primary-hover: #c86b80;
  --color-focus: rgba(217, 121, 143, 0.42);
  --container-max: 1160px;
  --side-padding-pc: 48px;
  --side-padding-sp: 20px;
  --space-section-pc: 104px;
  --space-section-sp: 70px;
  --fs-h1: 52px;
  --fs-h2: 26px;
  --fs-h3: 17px;
  --fs-body: 15px;
  --lh-body: 1.9;
  --opening-screen-bg:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.75), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(255, 232, 215, 0.9), transparent 30%),
    linear-gradient(135deg, #ffe6df 0%, #fff7e8 54%, #e9f3db 100%);
  --opening-screen-color: #5b3d2d;
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 42px;
    --fs-h2: 22px;
    --fs-h3: 16px;
    --fs-body: 14px;
    --side-padding-sp: 18px;
    --space-section-sp: 62px;
  }
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 217, 224, 0.5), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(231, 244, 215, 0.62), transparent 25%),
    var(--color-bg-primary);
}

.text-line {
  display: block;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 42px);
  color: #4b3527;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: url("../images/brand/nijigokoro-logo.jpg") center / cover no-repeat;
  box-shadow: 0 10px 26px rgba(105, 70, 40, 0.13);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(75, 53, 39, 0.76);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px rgba(105, 70, 40, 0.1);
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #5f4230;
}

.hero {
  position: relative;
  min-height: min(840px, 100svh);
  padding-top: 118px;
  padding-bottom: 76px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(255, 246, 236, 0.96)),
    radial-gradient(circle at 18% 28%, rgba(241, 190, 187, 0.34), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(215, 232, 190, 0.5), transparent 30%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0), #fffbf5 78%);
  pointer-events: none;
}

.hero::after {
  content: "想いを、やさしく筆に";
  position: absolute;
  right: max(18px, 5vw);
  bottom: 56px;
  color: rgba(118, 83, 55, 0.12);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 28px;
  line-height: 1;
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
}

.hero__copy {
  max-width: 420px;
  gap: 18px;
  padding-top: 12px;
}

.hero .section-lead {
  color: #8b6a51;
  font-weight: 680;
}

.hero h1.section__title {
  max-width: 5em;
  color: #4e3524;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 500;
  line-height: 1.24;
  text-shadow: 0 4px 22px rgba(255, 255, 255, 0.92);
}

.hero__summary {
  color: #665044;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
}

.hero__area {
  color: #80614d;
  font-size: 14px;
  font-weight: 680;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 8px;
}

.hero__visual {
  position: relative;
  display: grid;
  min-height: 510px;
  align-items: center;
}

.hero__art {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 70px rgba(105, 70, 40, 0.14);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.03) saturate(1.04);
}

.hero__art--main {
  width: min(100%, 620px);
  aspect-ratio: 1 / 0.86;
  justify-self: end;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
}

.hero__art--sub {
  position: absolute;
  left: 0;
  bottom: -18px;
  width: min(43%, 260px);
  aspect-ratio: 1.35 / 1;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
}

.line-badge {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #45b549;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.cta {
  min-height: 54px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e97796, #df8aa0);
  box-shadow: 0 16px 34px rgba(203, 102, 130, 0.25);
}

.cta--line {
  gap: 10px;
}

.cta--large {
  min-width: min(100%, 420px);
  min-height: 62px;
  font-size: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6a4d39;
  font-size: 14px;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.text-link::after {
  content: ">";
  text-decoration: none;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 34px;
  text-align: center;
}

.section-title--decorated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #674830;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 650;
}

.section-title--decorated::before,
.section-title--decorated::after {
  content: "";
  width: 42px;
  height: 14px;
  border-radius: 999px 999px 2px 999px;
  background: linear-gradient(135deg, #91b968, #cbdc91);
  opacity: 0.8;
}

.section-title--decorated::after {
  transform: scaleX(-1);
}

.gallery-section--first {
  padding-top: 40px;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.78fr) minmax(0, 0.78fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(160, 116, 82, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(105, 70, 40, 0.09);
}

.gallery-card--featured {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.03) saturate(1.04);
}

.gallery-more {
  margin-top: 28px;
  text-align: center;
}

.values {
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0), rgba(255, 244, 232, 0.68)),
    radial-gradient(circle at 9% 38%, rgba(244, 186, 197, 0.2), transparent 28%),
    radial-gradient(circle at 88% 26%, rgba(222, 237, 199, 0.5), transparent 30%);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.value-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 8px 22px 10px;
  text-align: center;
}

.value-card + .value-card {
  border-left: 1px solid rgba(145, 101, 70, 0.16);
}

.value-card span {
  color: rgba(217, 121, 143, 0.54);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 28px;
  line-height: 1;
}

.value-card h3 {
  color: #60432f;
  font-size: 18px;
  line-height: 1.65;
}

.value-card p {
  color: #725d51;
  font-size: 14px;
  line-height: 1.9;
}

.services {
  padding-top: 62px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 15px;
  min-height: 100%;
  padding: 14px 14px 22px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 42px rgba(110, 76, 48, 0.08);
  text-align: center;
}

.service-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: #fff4e9;
}

.service-card h3 {
  color: #6a4b35;
  font-size: var(--fs-h3);
  line-height: 1.55;
}

.service-card p {
  color: #725b4c;
  font-size: 14px;
  line-height: 1.75;
}

.flow {
  background: rgba(255, 246, 235, 0.72);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow-steps li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 24px 16px;
  border: 1px solid rgba(152, 113, 82, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.flow-steps span {
  color: rgba(217, 121, 143, 0.78);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.flow-steps h3 {
  color: #60432f;
  font-size: 17px;
}

.flow-steps p {
  color: #725d51;
  font-size: 13px;
  line-height: 1.75;
}

.contact {
  position: relative;
  overflow: hidden;
  padding-top: 54px;
  padding-bottom: 58px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 246, 234, 0.96) 18%, #fff1df 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.contact__image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(110, 76, 48, 0.12);
}

.contact__copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.contact__copy .section-lead {
  color: #74533b;
}

.contact__copy .section__title {
  font-size: 30px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 650;
}

.contact__note {
  color: #755a48;
  font-size: 14px;
  font-weight: 700;
}

footer.section {
  padding-top: 28px;
  padding-bottom: 30px;
  background: #fff1df;
  color: #765946;
  text-align: center;
}

.footer-brand {
  margin-bottom: 8px;
  font-weight: 760;
}

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero__copy {
    justify-items: start;
    max-width: 430px;
    padding-top: 0;
  }

  .hero__visual {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero__art--main {
    width: min(100%, 560px);
    justify-self: center;
  }

  .hero__art--sub {
    left: 7%;
    bottom: -10px;
    width: min(38%, 220px);
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .gallery-card--featured {
    grid-row: span 2;
  }

  .value-list,
  .flow-steps,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .value-card,
  .value-card + .value-card {
    border-left: 0;
    border-top: 1px solid rgba(145, 101, 70, 0.16);
  }

  .value-card:first-child {
    border-top: 0;
  }

  .contact__image {
    max-width: 360px;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-mark {
    gap: 9px;
    font-size: 14px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .hero {
    padding-top: 86px;
    padding-bottom: 58px;
  }

  .hero::after {
    right: 12px;
    bottom: 34px;
    font-size: 19px;
  }

  .hero__copy {
    gap: 12px;
  }

  .hero h1.section__title {
    font-size: 40px;
    line-height: 1.22;
  }

  .hero__summary {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero__area {
    font-size: 13px;
  }

  .hero__actions {
    width: 100%;
    gap: 12px 16px;
  }

  .hero__actions .cta {
    width: min(100%, 286px);
  }

  .hero__visual {
    padding-bottom: 34px;
  }

  .hero__art--main {
    border-width: 7px;
    border-radius: 8px;
    aspect-ratio: 1 / 0.92;
  }

  .hero__art--sub {
    left: 4px;
    bottom: -6px;
    width: 42%;
    border-width: 6px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-title--decorated {
    gap: 9px;
  }

  .section-title--decorated::before,
  .section-title--decorated::after {
    width: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 14px 14px 18px;
  }

  .service-card h3 {
    font-size: 15px;
  }

  .service-card p {
    font-size: 13px;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .gallery-card,
  .gallery-card--featured {
    grid-row: auto;
    aspect-ratio: 1.12 / 1;
  }

  .gallery-card--featured {
    aspect-ratio: 1 / 0.9;
  }

  .value-list {
    gap: 0;
  }

  .value-card {
    padding: 22px 4px 24px;
  }

  .contact {
    padding-top: 42px;
  }

  .contact__inner {
    gap: 24px;
  }

  .contact__copy .section__title {
    font-size: 24px;
  }

  .contact__lead {
    font-size: 14px;
  }

  .cta--large {
    min-height: 58px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .hero h1.section__title {
    font-size: 37px;
  }

  .hero__summary {
    font-size: 14px;
  }
}
