/*
 * SIA TOKYO — Base Stylesheet
 * モダンリセット + 基本タイポグラフィ。
 * 色・サイズ・字送り・行間などの具体値は tokens.css の CSS カスタムプロパティを参照する。
 * このファイルに #hex や px の色指定を直書きしないこと。
 * 読み込み順: tokens.css → base.css → style.css
 */

/* ============ Modern Reset ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  line-height: var(--lh-body);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============ Base Typography ============ */
html,
body {
  font-family: var(--font-jp-sans);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-jp-heading);
}

/* 英字見出し・数字（料金表示など）に付与するユーティリティクラス */
.font-en,
.en-heading,
.price {
  font-family: var(--font-en-serif);
  letter-spacing: var(--ls-en-heading);
}

p {
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

small,
.text-small {
  font-size: var(--fs-small);
  color: var(--color-text-dim);
}

.label,
.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* ============ Selection ============ */
::selection {
  background-color: var(--color-selection-bg);
  color: var(--color-selection-text);
}

/* ============ Scrollbar ============ */
html {
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-scrollbar-track);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb);
  border: 2px solid var(--color-scrollbar-track);
}

/* ============ Focus ============ */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 日本語の折り返し制御 ============ */
/* word-break: auto-phrase は日本語を文節単位で折り返す。文の途中や助詞の直後で切れるのを防ぐ。
   未対応ブラウザ（Safari 等）では無視されるだけで害はない。 */
p,
li,
dd,
figcaption,
.menu-row-name,
.access-table td {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
}

/* 見出し・短いリード文は行のバランスを取る（1行目が長く2行目が1単語だけ、を防ぐ） */
h1, h2, h3,
.section-head .jp,
.hero-tagline-jp,
.hero-tagline-en {
  text-wrap: balance;
}

/* 3〜4行で収まる短い紹介文。カラム幅が狭いので行長を均等化した方が読みやすい */
.shs-desc,
.stylist-desc,
.salon-note,
.gallery-sns-lead {
  text-wrap: balance;
}

/* 途中で改行させたくない語句 */
.nobr {
  white-space: nowrap;
}
