/* ==========================================================================
   base.css
   共通骨格スタイル(全パターン共通・全ページ共通)

   ルール:
   - 色・フォント・角丸・余白単位・影・画像フィルターは一切ここに書かない。
     必ず theme-〇〇.css 側で定義した CSS変数(--color-bg 等)を参照する。
   - ここを変えると5パターン全部に影響するので、レイアウト構造の修正のみ行うこと。
   - デザイン(配色・雰囲気)を変えたいときは theme-simple.css 等を編集する。
   ========================================================================== */

/* ---------- リセット & 基本設定 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.4; }
p { margin: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 1.5);
}

.section {
  padding: calc(var(--spacing-unit) * 6) 0;
}

.section__head {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section__lead {
  margin-top: 0.8rem;
  color: var(--color-text-sub);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  font-weight: bold;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn--primary:hover {
  box-shadow: var(--shadow-style);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn--line {
  background: #06C755; /* LINE公式カラーは固定。テーマ変更の対象外 */
  color: #fff;
}

/* ==========================================================================
   ヘッダー(全ページ共通)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  transition: box-shadow .3s ease, padding .3s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem calc(var(--spacing-unit) * 1.5);
  max-width: 1120px;
  margin: 0 auto;
  transition: padding .3s ease;
}
/* JS: main.js がスクロール量に応じて .is-scrolled を付与し、縮小+影を付ける */
.site-header.is-scrolled .site-header__inner {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-style);
}

.site-header__logo {
  /* ---------------------------------------------------------------
     [写真配置] ロゴ画像
     推奨: 横長 or 正方形、透過PNG、高さ40〜60px程度で収まるもの
     差し込み先: img.site-header__logo-img の src
     --------------------------------------------------------------- */
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.site-header__logo-img {
  height: 44px;
  width: auto;
}

.site-header__nav {
  display: flex;
  gap: 2rem;
}
.site-header__nav a {
  font-size: 0.92rem;
  position: relative;
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.site-header__nav a:hover::after { transform: scaleX(1); }

.site-header__right { display: flex; align-items: center; gap: 1.2rem; }

.site-header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.site-header__menu-btn span {
  width: 22px; height: 2px;
  background: var(--color-text);
}

@media (max-width: 860px) {
  .site-header__menu-btn { display: flex; z-index: 101; }

  /* ハンバーガーボタン押下時、JS(main.js)が .site-header__nav に
     .is-open を付け外しする。デフォルトは非表示、.is-open時のみ
     ドロップダウン表示にする */
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-style);
    padding: 0.5rem calc(var(--spacing-unit) * 1.5) 1.2rem;
  }
  .site-header__nav.is-open {
    display: flex;
  }
  .site-header__nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   ファーストビュー(Home専用だが構造は共通化)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  /* ---------------------------------------------------------------
     [写真 or 動画配置] ファーストビューのメインビジュアル
     推奨: 1920x1080以上、横長、店舗外観 or 看板商品 or 施術風景
     動画にする場合は <video> に差し替え、hero__media の子要素として同サイズで配置
     --------------------------------------------------------------- */
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--image-filter);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 1.5);
  color: var(--color-hero-text);
}
.hero__catch {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: bold;
  margin-bottom: 1rem;
}
.hero__sub {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   選ばれる理由(3点・アイコン+テキスト)
   ========================================================================== */
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}
.reasons__item {
  text-align: center;
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.reasons__icon {
  /* ---------------------------------------------------------------
     [アイコン/写真配置] 選ばれる理由アイコン(3点分)
     推奨: シンプルな線画アイコン or 正方形写真、64x64〜120x120程度
     --------------------------------------------------------------- */
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--color-accent);
}
.reasons__title { font-size: 1.05rem; margin-bottom: 0.6rem; }
.reasons__text { font-size: 0.9rem; color: var(--color-text-sub); }

@media (max-width: 760px) {
  .reasons__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   新着・お知らせ(更新代行オプションと接続する箇所)
   ========================================================================== */
.news__list {
  border-top: 1px solid var(--color-border);
}
.news__item {
  display: flex;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
  flex-wrap: wrap;
}
.news__date { font-size: 0.85rem; color: var(--color-text-sub); min-width: 6.5em; }
.news__tag {
  font-size: 0.72rem;
  padding: 0.2em 0.8em;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 999px;
}
.news__title { flex: 1; min-width: 200px; }
/* 更新代行オプション:ここに保守契約の運用で店舗側の代わりに更新するお知らせを追記していく想定 */

/* ==========================================================================
   ギャラリー(Home:抜粋 / About:フル)
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--spacing-unit) * 1);
}
.gallery__item {
  /* ---------------------------------------------------------------
     [写真配置] ギャラリー画像
     推奨: 正方形 or 4:3、店内・商品・施術・スタッフなど複数枚
     Home抜粋は4〜8枚、Aboutフルギャラリーは12枚以上を想定
     --------------------------------------------------------------- */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--image-filter);
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.03); }

@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Googleレビュー [オプション: MEO]
   ========================================================================== */
.reviews {
  background: var(--color-surface);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 1.5);
}
.reviews__card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 1.5);
  box-shadow: var(--shadow-style);
}
.reviews__stars { color: #F5A623; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.reviews__body { font-size: 0.88rem; color: var(--color-text-sub); margin-bottom: 0.8rem; }
.reviews__author { font-size: 0.8rem; font-weight: bold; }
/* MEOオプション:store情報が変わったらGoogleビジネスプロフィールのAPI/埋め込みタグに差し替え可能な構造にしてある */

@media (max-width: 760px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SNSフィード埋め込み [オプション: SNS自動連携]
   ========================================================================== */
.sns-feed__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--spacing-unit) * 1);
}
.sns-feed__item {
  /* ---------------------------------------------------------------
     [写真配置] SNS投稿サムネイル(Instagram等)
     本番では自動連携ウィジェット/APIに差し替え。ここはダミー枠
     --------------------------------------------------------------- */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.sns-feed__item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .sns-feed__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   予約/問い合わせCTA [オプション: 予約フォーム/LINE公式連携]
   ========================================================================== */
.cta-block {
  text-align: center;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
}
.cta-block__title { font-size: 1.6rem; margin-bottom: 0.8rem; }
.cta-block__text { margin-bottom: 2rem; opacity: 0.9; }
.cta-block__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-block .btn--outline { border-color: var(--color-bg); color: var(--color-bg); }
.cta-block .btn--outline:hover { background: var(--color-bg); color: var(--color-primary); }

/* ==========================================================================
   フッター(全ページ共通)
   ========================================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 4);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.site-footer__map {
  /* ---------------------------------------------------------------
     [地図配置] Googleマップ埋め込み(ミニ版)
     iframeのsrcを店舗の実際のGoogleマップ埋め込みURLに差し替える
     --------------------------------------------------------------- */
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 160px;
}
.site-footer__map iframe { width: 100%; height: 160px; border: 0; filter: var(--image-filter); }
.site-footer__heading { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.7; }
.site-footer__hours dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; font-size: 0.88rem; }
.site-footer__sns { display: flex; gap: 1rem; }
.site-footer__sns a {
  width: 38px; height: 38px;
  border: 1px solid var(--color-footer-text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85;
  transition: opacity .2s ease, background-color .2s ease;
}
.site-footer__sns a:hover { opacity: 1; background: rgba(255,255,255,0.08); }

.site-footer__lang {
  /* [オプション: 多言語] 言語切替スイッチャー */
  display: flex;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.site-footer__lang button {
  background: none;
  border: 1px solid var(--color-footer-text);
  color: var(--color-footer-text);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  cursor: pointer;
  opacity: 0.75;
}
.site-footer__lang button[aria-current="true"] { opacity: 1; font-weight: bold; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.4rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About: 店主紹介
   ========================================================================== */
.profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: calc(var(--spacing-unit) * 3);
  align-items: center;
}
.profile__photo {
  /* ---------------------------------------------------------------
     [写真配置] 店主・スタッフの人物写真
     推奨: 縦長 or 正方形、自然光、笑顔がわかるもの
     --------------------------------------------------------------- */
  border-radius: var(--radius);
  overflow: hidden;
}
.profile__photo img { width: 100%; filter: var(--image-filter); }
.profile__name { font-size: 1.3rem; margin-bottom: 1rem; }
.profile__story { color: var(--color-text-sub); }

@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About: こだわりポイント(3〜4点)
   ========================================================================== */
.commitment__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}
.commitment__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.commitment__photo {
  /* [写真配置] こだわりポイントごとの写真(96x96程度の正方形推奨) */
  width: 96px; height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
}
.commitment__photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--image-filter); }
.commitment__title { margin-bottom: 0.4rem; }
.commitment__text { font-size: 0.9rem; color: var(--color-text-sub); }

@media (max-width: 760px) {
  .commitment__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About: 沿革・受賞歴ブロック(任意)
   ========================================================================== */
.history__list { border-left: 2px solid var(--color-border); }
.history__item { position: relative; padding: 0 0 calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2); }
.history__item::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}
.history__year { font-size: 0.85rem; color: var(--color-accent); margin-bottom: 0.3rem; }
.history__text { font-size: 0.92rem; }

/* ==========================================================================
   Menu/Service: カテゴリ + メニューカード
   ========================================================================== */
.menu-category { margin-bottom: calc(var(--spacing-unit) * 4); }
.menu-category__title {
  font-size: 1.2rem;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.menu-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 1.5);
}
.menu-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-style);
}
.menu-card__photo {
  /* ---------------------------------------------------------------
     [写真配置] メニュー写真
     推奨: 4:3、明るい自然光、商品が主役になる構図
     --------------------------------------------------------------- */
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.menu-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; filter: var(--image-filter); }
.menu-card:hover .menu-card__photo img { transform: scale(1.03); }
.menu-card__body { padding: 1.2rem; }
.menu-card__name { font-size: 1rem; margin-bottom: 0.4rem; }
.menu-card__desc { font-size: 0.85rem; color: var(--color-text-sub); margin-bottom: 0.8rem; }
.menu-card__price { font-weight: bold; color: var(--color-accent); }

@media (max-width: 860px) {
  .menu-card__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .menu-card__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Menu: ネットショップ導線カード [オプション: ネットショップ機能]
   ========================================================================== */
.shop-link-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.shop-link-card__icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  color: var(--color-accent);
}
.shop-link-card__title { margin-bottom: 0.3rem; }
.shop-link-card__text { font-size: 0.85rem; color: var(--color-text-sub); margin-bottom: 1rem; }

/* ==========================================================================
   多言語切替(ページ内) [オプション: 多言語]
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.lang-switch button {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35em 1em;
  font-size: 0.8rem;
  cursor: pointer;
}
.lang-switch button[aria-current="true"] {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Access/Contact
   ========================================================================== */
.map-embed {
  /* [地図配置] Googleマップ埋め込み(本体・大きめ) */
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; filter: var(--image-filter); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 3);
}
.info-block__title { font-size: 1rem; margin-bottom: 1rem; }
.info-block dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; font-size: 0.92rem; }
.info-block dt { color: var(--color-text-sub); }

@media (max-width: 760px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- 予約フォーム本体 [オプション: 予約フォーム/予約システム連携] ---------- */
.reservation-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 3);
}
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.form-row--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* 予約システム連携オプション:本番では action属性を外部予約システム(STORES予約等)のendpoint、
   もしくは埋め込みiframeへ差し替え */

@media (max-width: 560px) {
  .form-row--grid { grid-template-columns: 1fr; }
}

/* ---------- LINE公式CTA [オプション: LINE公式連携] ---------- */
.line-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #EAFBF1;
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 2);
}
.line-cta__icon {
  /* [画像配置] LINE公式アイコン or QRコード用の枠 */
  width: 64px; height: 64px;
}

/* ---------- SNSリンク一覧 ---------- */
.sns-list { display: flex; gap: 1rem; flex-wrap: wrap; }
.sns-list a {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-size: 0.85rem;
}

/* ---------- Googleレビュー全体埋め込み [オプション: MEO] ---------- */
.reviews-full {
  /* 本番ではGoogleビジネスプロフィールの口コミウィジェット/APIに差し替え可能な枠 */
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 2);
}

/* ==========================================================================
   アニメーション用ユーティリティ(JS: main.js が制御)
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
