@charset "utf-8";

/* =========================================================
   THE CUT & SHAVE CO. / Common (style.css)
   目的：全ページ共通の「土台」だけを定義して崩れを防ぐ
   - Tokens（色/角丸/影）
   - Layout（container / section padding）
   - Header + Nav（.nav 前提 / TB,SPはハンバーガー）
   - Buttons（予約系が“通常時白背景”にならない）
   - Section Divider（斜めの帯 + 赤ライン発光）
   ========================================================= */

/* =========================================================
   Design Tokens
========================================================= */
:root{
  /* colors */
  --bg: #0b0c0f;
  --bg-2: #0e1016;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.14);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted-2: rgba(255,255,255,.56);

  --accent: #ff3c3c;
  --accent-2: #c82828;

  /* readability */
  --text-soft: rgba(245,245,245,.88);      /* 本文用：眩しさを減らす白 */
  --heading: rgba(255,255,255,.92);        /* 見出し：今の強さを維持 */
  --heading-accent: rgba(255,60,60,.85);   /* 見出しアクセント：赤は“添える” */

  /* radius */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* shadow */
  --shadow: 0 18px 44px rgba(0,0,0,.55);
  --shadow-soft: 0 14px 36px rgba(0,0,0,.42);

  /* layout */
  --container: 1120px;
  --gutter: 24px;

  /* header */
  --header-h: 74px;

  /* focus */
  --focus: 0 0 0 3px rgba(255,60,60,.25);

  /* token bridge（ページCSSの混在を吸収） */
  --radius-lg: var(--r-lg);
  --radius-md: var(--r-md);
  --shadow-hard: var(--shadow);
  --gold: rgba(255,255,255,.70); /* kicker用（必要なら） */

  /* News bridge */
  --r-card: var(--r-lg);
  --shadow-1: var(--shadow-soft);
}


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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  padding-top: calc(var(--header-h) + 10px);
  background:
    radial-gradient(1200px 600px at 25% 5%, rgba(255,60,60,.10), transparent 60%),
    radial-gradient(900px 540px at 70% 10%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
  color: var(--text-soft);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

/* 画像のはみ出し・隙間対策 */
img{ max-width: 100%; height: auto; display: block; }

/* リンク共通（“display:block” みたいな危険な全体指定はしない） */
a{
  color: inherit;
  text-decoration: none;
}

/* フォーカスが見えるように */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* base readability */
h1,h2,h3{ color: var(--heading); }
p, li{ color: var(--text-soft); }
small, .note{ color: rgba(245,245,245,.70); }


/* =========================================================
   Layout / Utilities
========================================================= */
.container{
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section{ padding: 60px 0; }
@media (max-width: 900px){
  .section{ padding: 48px 0; }
}
@media (max-width: 520px){
  .section{ padding: 38px 0; }
}

/* 背景を交互にしたい時（ユーザーが style.css に移したやつ） */
.section--bg  { background: var(--bg); }
.section--bg2 { background: var(--bg-2); }

/* 固定ヘッダーのアンカーずれ対策（必要なら各 section に class を付与してもOK） */
[id]{ scroll-margin-top: calc(var(--header-h) + 18px); }


/* =========================================================
   Grid Utilities（PC=3 / TB=2 / SP=1）
========================================================= */
.grid-3{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  align-items: stretch;
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .grid-3{ grid-template-columns: 1fr; }
}


/* =========================================================
   Buttons
========================================================= */
/* 重要：予約系ボタンが“通常時に白背景”にならないよう、デフォルトは透明系に統一 */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;              /* ←白化防止の本体 */
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  user-select: none;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: var(--border-2);
  background: rgba(255,255,255,.06);
}
.btn:active{ transform: translateY(0); }

/* 赤塗り（予約/重要導線） */
.btn--primary{
  border-color: rgba(255,60,60,.55);
  background: radial-gradient(120% 140% at 30% 20%, rgba(255,60,60,.95), rgba(200,40,40,.75));
  box-shadow: 0 10px 26px rgba(255,60,60,.16);
}
.btn--primary:hover{
  box-shadow: 0 0 10px rgba(255,60,60,.28), 0 0 22px rgba(255,60,60,.18);
}

/* btn補強：ghostが未定義なのでここで確定（白背景化防止） */
.btn--ghost{
  background: transparent;
  border-color: var(--border);
}

/* 文字だけ赤（メニュー系リンク） */
.link--accent{
  color: rgba(255,60,60,.92);
}
.link--accent:hover{
  color: rgba(255,60,60,1);
  text-decoration: underline;
  text-underline-offset: 6px;
}


/* =========================================================
   Header（header.html に合わせて .site-header）
========================================================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    rgba(40,10,10,.85),
    rgba(10,10,10,.90)
  );
  backdrop-filter: blur(6px);
}

/* navをabsoluteで落とすので基準を作る */
.site-header .header__inner{
  position: relative;
  min-height: var(--header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.header__logo img{
  display: block;
  height: 36px;
}

/* actions (右の Menu/予約) */
.header__actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* nav（PC） */
.nav{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.nav__list{
  margin: 0;                     /* ←ulのデフォを殺す（・と余白） */
  padding: 0;
  list-style: none;
  display: flex;                 /* ←横並び確定 */
  align-items: center;
  gap: 20px;
}

.nav__list a{
  display: inline-flex;          /* ←縦並び化を防ぐ */
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.nav__list a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

/* 今いるページ（aに is-active を付ける運用） */
.nav__list a.is-active{
  color: var(--text);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.10);
}

/* hamburger button */
.nav-toggle{
  display: none;                 /* PCでは隠す */
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.nav-toggle:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

/* 3本線（header.htmlは nav-toggle__line が3つ） */
.nav-toggle__line{
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.85);
  transform: translateX(-50%);
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}
.nav-toggle__line:nth-child(1){ top: 15px; }
.nav-toggle__line:nth-child(2){ top: 21px; } /* 真ん中 */
.nav-toggle__line:nth-child(3){ top: 27px; }

/* 開いたらX（JSで .is-open を nav-toggle に付ける想定） */
.nav-toggle.is-open{
  box-shadow: 0 0 10px rgba(255,60,60,.22);
  border-color: rgba(255,60,60,.35);
}
.nav-toggle.is-open .nav-toggle__line:nth-child(1){
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__line:nth-child(2){
  opacity: 0;                    /* ←真ん中は消す（ここ重要） */
}
.nav-toggle.is-open .nav-toggle__line:nth-child(3){
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* TB/SP：navをドロップダウン化 */
@media (max-width: 900px){
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav{
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;               /* 閉じてる時は消す */
    padding: 10px 16px 14px;
    background: rgba(12, 12, 14, .96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.10);
  }
  .nav.is-open{ display: block; }  /* ←nav.jsはここをトグル */

  .nav__list{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list a{
    position: relative;
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    outline: none;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  }

  /* 左側の“光る帯” */
  .nav__list a::before{
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: rgba(255, 215, 120, .0); /* 通常は透明 */
    box-shadow: 0 0 0 rgba(255, 215, 120, 0);
    transition: background-color .15s ease, box-shadow .15s ease;
  }

  /* Hover/Focusで視認性をはっきり */
  .nav__list a:hover,
  .nav__list a:focus-visible{
    background: rgba(255,255,255,.16);               /* 0.10→0.16くらいが“同程度” */
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    transform: translateX(4px);
  }

  .nav__list a:hover::before,
  .nav__list a:focus-visible::before{
    background: rgba(255, 215, 120, .85);
    box-shadow: 0 0 16px rgba(255, 215, 120, .35);
  }

  /* タッチ端末で hover が暴れないように（あると安定） */
  @media (hover: none){
    .nav__list a:hover{ transform: none; }
  }

  body.is-nav-open .nav-backdrop{
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
  }
}


/* =========================================================
   Section Divider (Diagonal)
========================================================= */
/* 斜めの帯は hover で赤ラインが発光。after はクリックを邪魔しない */
.section-divider{
  position: relative;
  z-index: 2;
  height: 90px;
  margin-top: -16px;       /* 食い込み（大きすぎるとページ見出しが切れる） */
  margin-bottom: 22px;
  overflow: visible;
  isolation: isolate;
}
.section-divider::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(175deg,
    rgba(255,255,255,.06) 0%,
    rgba(255,255,255,.03) 35%,
    rgba(0,0,0,.28) 100%);
  clip-path: polygon(0 20%, 100% 0, 100% 85%, 0 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  pointer-events: none;    /* ←hoverが死ぬ原因の定番：これで防ぐ */
}
.section-divider::before{
  content:"";
  position:absolute;
  left: 4vw;
  right: 4vw;
  top: 34px;
  height: 1px;
  background: rgba(255, 60, 60, .28);
  opacity: .55;
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity .25s ease, box-shadow .25s ease;
}
.section-divider:hover::before{
  opacity: 1;
  box-shadow:
    0 0 6px rgba(200, 40, 40, .7),
    0 0 14px rgba(200, 40, 40, .4);
}


/* =========================================================
   Cards（Common Surface）
========================================================= */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px;
}

.card__title{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: .02em;
}

.card__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ちょい小さめカード */
.card--sm{ border-radius: var(--r-md); }

/* menu側の運用メモ（card側に統一） */
.menu-card__body{ padding: 0; }


/* =========================================================
   Page Header spacing safety
========================================================= */
/* 「Contact の下の文が切れる」系は、上の margin-top が強すぎる時に起きる */
.page-header{
  position: relative;
  z-index: 1;
  padding: 72px 0 46px;
}
@media (max-width: 900px){
  .page-header{ padding: 62px 0 40px; }
}


/* =========================================================
   Section Head (shared)
========================================================= */
.section__head{ margin-bottom: 22px; }

.section__head--row{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section__title,
.section-title{
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: .06em;

  /* section title accent */
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section__title::after,
.section-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--heading-accent);
  opacity: .55;
}

.section__sub{
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
}

/* optional: micro contrast */
.section__sub,
.news-card__excerpt,
.note{
  color: rgba(245,245,245,.74);
}

/* News側の “過去のお知らせ” リンクもトーン統一 */
.link-under,
.text-link{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 2px;
}
.link-under:hover,
.text-link:hover{
  color: var(--text);
  border-bottom-color: rgba(255,255,255,.42);
}