/* ========== Base ========== */
:root {
  --bg: #0d0f12;
  --bg-soft: #13161a;
  --fg: #e9edf2;
  --muted: #aab2bd;
  --accent: #d6b46b; /* Chicゴールド */
  --accent-2: #2b3138;
  --card: #171b20;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  color: var(--fg);
  background: var(--bg);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border: none;
  background: none;
}

/* Container */
.section {
  padding: 72px 0;
  background: var(--bg-soft);
  text-align: center;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 32px;
  color: var(--fg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}
.brand { font-weight: bold; }
.tag {
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.nav-inner a {
  color: var(--fg);
  margin-left: 18px;
  text-decoration: none;
}
.btn-nav {
  background: var(--accent);
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72vh;
  background: url("../img/salon_chic_01.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 明るく：暗幕を0.45 -> 0.28に弱め、ほんの少しだけ白で持ち上げる */
  background:
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(0,0,0,0)) ,
    rgba(0,0,0,.28);
}
.hero-inner {
  position: relative;
  text-align: center;
  padding: 40px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.hero-lead {
  opacity: 0.95;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  margin: 6px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn.primary { background: var(--accent); color: #000; }
.btn.ghost { border: 1px solid var(--fg); color: var(--fg); }
.btn:hover { opacity: 0.85; }

/* Cards */
.cards-3, .cards-2 {
  display: grid;
  gap: 24px;
  justify-content: center;
}
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.card img { width: 100%; height: auto; }

/* 画像2の白い縁を隠すためのトリミング */
.edge-trim {
  /* 画像ファイル自体に白フチが含まれていても視覚的にカット */
  clip-path: inset(8px);
  /* クリップで角が直角にならないよう、見た目を合わせる */
  border-radius: calc(var(--radius) - 2px);
}

/* メニュー文言 */
.card h3 { margin: 12px; font-size: 18px; }
.card p  { margin: 0 12px 16px; font-size: 14px; }
.price   { margin: 0 12px 8px; color: var(--accent); font-weight: bold; }

/* Access */
.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.access img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.access .map iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: var(--radius);
}

/* Gallery */
.masonry { columns: 2; column-gap: 16px; }
.masonry img {
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--bg);
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* 小さめ画面でAccessを縦並びに */
@media (max-width: 900px) {
  .access-content { grid-template-columns: 1fr; }
}
/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72vh;
  background: url("../img/salon_chic_01.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 明るさを強化：黒をさらに薄く、白を強める */
  background:
    linear-gradient(to bottom, rgba(255,255,255,.25), rgba(255,255,255,.1)),
    rgba(0,0,0,.15);
}
.hero-inner {
  position: relative;
  text-align: center;
  padding: 40px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 3px 12px rgba(0,0,0,.3);
}
.hero-lead {
  opacity: 0.98;
  margin-bottom: 24px;
}

/* メニューの白枠除去 */
.edge-trim {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 画像をトリミングして枠を消す */
  border-radius: var(--radius);
  display: block;
}

/* 念のためカードで溢れた分を隠す */
.menu-card {
  overflow: hidden;
}
/* --- ヒーローをもう一段明るく --- */
.hero::before{
  content:"";
  position:absolute; inset:0;
  /* 白の持ち上げをさらに強め、黒幕はごく薄く */
  background:
    linear-gradient(to bottom, rgba(255,255,255,.32), rgba(255,255,255,.14)),
    rgba(0,0,0,.10);
}

/* --- メニュー画像：白い縁を物理的に消す（全カード） --- */
.menu-card{ overflow:hidden; }
.menu-card > img{
  display:block;
  width:100%;
  /* 中身を拡大して“余白”を外に追い出す */
  transform: scale(1.03);           /* ←白フチが強い場合は 1.05 までOK */
  transform-origin:center;
  /* ズーム時にレイアウト崩れないように */
  aspect-ratio: 16 / 9;             /* 画像の縦横比を一定に */
  height:auto;
  object-fit: cover;                 /* 端をトリミングしてフィット */
  border-radius: var(--radius);
}

/* 特定画像だけ強めに切りたい場合（ハンド＆ネイル用） */
.menu-card img[src*="salon_chic_07.jpg"]{
  transform: scale(1.05);
}

/* --- スマホ最適化（～600px） --- */
@media (max-width: 600px){
  .site-header{ padding:10px 12px; }

  /* ナビは横スクロールで詰まり回避 */
  .nav-inner{
    display:flex; gap:12px;
    overflow-x:auto; white-space:nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .nav-inner a{ margin-left:0; }

  .section{ padding:56px 16px; }      /* 横に均等な余白を付ける */

  .hero{ min-height:60vh; }            /* 画面を圧迫しない高さ */
  .hero-title{ font-size: clamp(26px, 6vw, 36px); }
  .hero-lead{ font-size: 14px; }

  .cards-3{ grid-template-columns: 1fr; }
  .cards-2{ grid-template-columns: 1fr; }

  .masonry{ columns:1; }

  .access-content{ grid-template-columns: 1fr; gap:16px; }
  .access .map iframe{ height:260px; }

  .reserve-buttons .btn{ width:100%; max-width:320px; }
}

/* --- タブレット微調整（～900px） --- */
@media (max-width: 900px){
  .access-content{ grid-template-columns:1fr; }
  .access .map iframe{ height:300px; }
}
/* === 1) スマホのヒーロー：画角と明るさを再調整（最適トリミング） === */
.hero{
  /* PC時は被写体が中央より少し上の想定 */
  background-position: 50% 42%;
}
.hero::before{
  /* ヒーローの明るさをさらにアップ（黒をほぼ撤退、白を強め） */
  background:
    linear-gradient(to bottom, rgba(255,255,255,.36), rgba(255,255,255,.18)),
    rgba(0,0,0,.06);
}

@media (max-width: 600px){
  /* 画面幅が狭い時は“人物が切れにくい”構図へ */
  .hero{
    min-height: 68vh;                /* スクロール圧迫を抑えつつ見せ場は確保 */
    background-size: cover;          /* 横いっぱいにフィット */
    background-position: 50% 38%;    /* 被写体が中央上に来るよう焦点移動 */
  }
  .hero-inner{
    padding: 32px 18px;              /* テキストの左右余白を少し広げる */
  }
  .hero-title{ font-size: clamp(26px, 6.2vw, 36px); }
  .hero-lead { font-size: 14px; }
}

/* 念のため横スクロール事故を封じる（外部要素のはみ出し対策） */
html, body{ overflow-x: hidden; }

/* === 2) メニュー画像の白フチを“上下も”確実にカット === */
/* カードの内側ではみ出しを隠蔽 */
.menu-card{ overflow: hidden; }

/* まず全メニュー画像にトリミング前提のフィットを適用 */
.menu-card > img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 白フチが残る画像をピンポイントで上下カット（PC/スマホ共通） */
/* ハンド＆ネイル 60' の画像ファイル名に合わせて指定 */
.menu-card img[src*="salon_chic_07.jpg"]{
  /* 上下だけ刈り取る：数値は白フチ量に応じて微調整可 */
  clip-path: inset(14px 0 14px 0 round var(--radius));
  /* サブピクセルの1px線対策（環境差による髪の毛ラインを消す） */
  transform: translateZ(0);
}

/* 他の画像でも上下に白が見える場合は、個別に同ワザを追加
   例）.menu-card img[src*="salon_chic_05.jpg"]{ clip-path: inset(10px 0 10px 0 round var(--radius)); } */

/* スマホでの比率安定：画像の高さが暴れないように補助（任意） */
@media (max-width: 600px){
  .menu-card > img{
    aspect-ratio: 16 / 9; /* 端末ごとの差を吸収。必要に応じて 4/3 に変更可 */
  }
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  /* 白っぽさを抑えた自然な明るさ */
  background:
    linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,0)),
    rgba(0,0,0,.18); 
  /* → 白レイヤーは0.10に弱め、黒は0.18に調整 */
}
/* ヒーロータイトル */
.hero-title {
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 0 6px rgba(0,0,0,0.25);
}

/* サブリード（小さいテキスト） */
.hero-lead {
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ボタン文字も背景が明るいとき用に少し影を */
.hero-buttons .btn {
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
