/* ==========================================================
   Sumika hair（架空の美容室）サンプルHP
   決まりは design.md に書いてある。数字を変えるときは先にそちらを直す
   スマホを土台に書き、768px以上でパソコン用に上書きする
   ========================================================== */

:root {
  /* 色 */
  --c-base: #ffffff;
  --c-sub: #f6f6f6;
  --c-gray: #e8e8e8;
  --c-warm: #f1eedd;
  --c-dark: #3a3a3a;
  --c-darker: #2a2c29;
  --c-accent: #a38c15;
  --c-text: #000000;
  --c-line: #8b8b8b;

  /* 書体 */
  --ff-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-en: "Jost", "Zen Kaku Gothic New", sans-serif;

  /* 文字の大きさ（スマホ） */
  --fs-h-en: 1.75rem;   /* 28px */
  --fs-h-ja: 1.625rem;  /* 26px */
  --fs-lead: 1.0625rem; /* 17px */
  --fs-body: 0.875rem;  /* 14px */
  --fs-label: 0.875rem; /* 14px */
  --fs-btn: 0.8125rem;  /* 13px */

  /* 余白 */
  --inner: 1000px;
  --gutter: 20px;
  --sec: 56px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --fs-h-en: 2.375rem;  /* 38px */
    --fs-h-ja: 2.375rem;  /* 38px */
    --fs-lead: 1.25rem;   /* 20px */
    --fs-body: 0.9375rem; /* 15px */
    --fs-label: 0.9375rem;
    --sec: 80px;
    --header-h: 102px;
  }
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--ff-ja);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.5px;
  color: var(--c-text);
  background: var(--c-base);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ---------- 共通の入れ物 ---------- */
.l-inner {
  width: 100%;
  max-width: calc(var(--inner) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.l-section { padding-block: var(--sec); }
.l-section--sub { background: var(--c-sub); }
.l-section--warm { background: var(--c-warm); }

/* ---------- ヘッダー ---------- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-base);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.l-header__logo {
  font-family: var(--ff-en);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.2;
}
.l-header__logo small {
  display: block;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 3px;
}
.l-header__toggle {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.l-header__toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--c-text);
  transition: transform 0.3s, opacity 0.3s;
}
.l-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.l-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.l-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.l-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: none;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--c-base);
}
.l-nav.is-open { display: block; }
.l-nav__item a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-gray);
  font-family: var(--ff-en);
  font-size: 0.9375rem;
  letter-spacing: 2px;
}
.l-nav__item small {
  display: block;
  font-family: var(--ff-ja);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: #666666;
}

@media (min-width: 768px) {
  .l-header__logo { font-size: 1.75rem; }
  .l-header__toggle { display: none; }
  .l-nav {
    position: static;
    display: block;
    padding: 0;
    overflow: visible;
  }
  .l-nav__list { display: flex; gap: 36px; }
  .l-nav__item a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 0.84375rem; /* 13.5px */
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.5;
  }
  .l-nav__item a:hover { color: var(--c-accent); }
}

/* ---------- 右端の予約タブ（パソコンだけ） ---------- */
.c-reserve-tab { display: none; }
@media (min-width: 768px) {
  .c-reserve-tab {
    position: fixed;
    top: 40%;
    right: 0;
    z-index: 15;
    display: grid;
    place-items: center;
    width: 50px;
    height: 180px;
    border-radius: 5px 0 0 5px;
    background: var(--c-accent);
    color: #ffffff;
    font-size: 0.875rem;
    letter-spacing: 4px;
    writing-mode: vertical-rl;
    transition: opacity 0.3s;
  }
  .c-reserve-tab:hover { opacity: 0.8; }
}

/* ---------- 見出し・ボタン ---------- */
.c-heading-en {
  font-family: var(--ff-en);
  font-size: var(--fs-h-en);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}
.c-heading-en small {
  display: block;
  margin-top: 4px;
  font-family: var(--ff-ja);
  font-size: var(--fs-body);
  letter-spacing: 1px;
}
.c-heading-ja {
  font-size: var(--fs-h-ja);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 3px;
}
.c-lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 2px;
}
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 41px;
  padding: 8px 32px;
  border: 1px solid var(--c-accent);
  background: var(--c-base);
  color: var(--c-text);
  font-family: inherit;
  font-size: var(--fs-btn);
  letter-spacing: 2px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.c-btn:hover { background: var(--c-accent); color: #ffffff; }
.c-btn--fill { background: var(--c-accent); color: #ffffff; }
.c-btn--fill:hover { background: var(--c-base); color: var(--c-text); }
.c-btn-wrap { margin-top: 40px; text-align: center; }

/* ---------- TOP：一番上の写真 ---------- */
.p-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 70svh;
  background: var(--c-gray);
  color: #ffffff;
}
.p-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0) 55%);
}
.p-hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 var(--gutter) 40px;
}
.p-hero__copy {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 4px;
}
.p-hero__sub {
  margin-top: 8px;
  font-family: var(--ff-en);
  font-size: 0.8125rem;
  letter-spacing: 3px;
}
@media (min-width: 768px) {
  .p-hero { min-height: 750px; }
  .p-hero__body { padding-bottom: 72px; }
  .p-hero__copy { font-size: 2.375rem; letter-spacing: 6px; }
  .p-hero__sub { font-size: 1rem; }
}

/* ---------- TOP：写真＋文章のジグザグ ---------- */
.p-feature + .p-feature { margin-top: 56px; }
.p-feature__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.p-feature__body { margin-top: 24px; }
.p-feature__body .c-lead { margin-top: 12px; }
.p-feature__text { margin-top: 16px; }
.p-feature__btn { margin-top: 28px; }
@media (min-width: 768px) {
  .p-feature {
    display: grid;
    grid-template-columns: 424fr 476fr;
    align-items: center;
    column-gap: 10%;
  }
  .p-feature + .p-feature { margin-top: 80px; }
  .p-feature--reverse { grid-template-columns: 476fr 424fr; }
  .p-feature--reverse .p-feature__img { order: 2; }
  .p-feature__body { margin-top: 0; }
}

/* ---------- TOP：メニュー帯 ---------- */
.p-menu-band {
  position: relative;
  background: var(--c-gray);
}
.p-menu-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.p-menu-band__body {
  position: relative;
  padding-block: var(--sec);
}
.p-menu-band__text { max-width: 560px; margin-top: 20px; }
.p-menu-band__btn { margin-top: 28px; }

/* ---------- お知らせ・記事の一覧 ---------- */
.p-news__list { margin-top: 32px; }
.p-news__item { border-bottom: 1px solid rgb(0 0 0 / 0.15); }
.p-news__item:first-child { border-top: 1px solid rgb(0 0 0 / 0.15); }
.p-news__link {
  display: block;
  padding: 20px 4px;
  transition: opacity 0.3s;
}
.p-news__link:hover { opacity: 0.6; }
.p-news__meta {
  color: var(--c-accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.6;
}
.p-news__meta span { margin-left: 12px; }
.p-news__title { margin-top: 4px; }

.p-archive { display: grid; gap: 48px; margin-top: 40px; }
.p-archive__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.p-archive__meta { margin-top: 16px; }
.p-archive__title { margin-top: 4px; font-size: var(--fs-lead); font-weight: 500; letter-spacing: 1px; line-height: 1.6; }
.p-archive__text { margin-top: 8px; }
.p-archive__link:hover .p-archive__img { opacity: 0.8; }
@media (min-width: 768px) {
  .p-archive { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- 予約の案内 ---------- */
.p-cta { text-align: center; }
.p-cta__text { margin-top: 16px; }
.p-cta__tel {
  margin-top: 24px;
  font-family: var(--ff-en);
  font-size: 2rem;
  letter-spacing: 3px;
  line-height: 1.3;
}
.p-cta__hours { font-size: 0.8125rem; }
.p-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- 下の階層：ページの題 ---------- */
.p-page-head {
  padding-block: 48px;
  background: var(--c-sub);
}
.p-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #666666;
}
.p-breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.p-breadcrumb a:hover { color: var(--c-accent); }
@media (min-width: 768px) {
  .p-page-head { padding-block: 72px; }
}

/* ---------- 表（会社概要・メニュー） ---------- */
.c-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  border-top: 1px solid var(--c-line);
}
.c-table th,
.c-table td {
  display: block;
  padding-inline: 4px;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.c-table th { padding-top: 16px; font-weight: 500; letter-spacing: 1px; }
.c-table td { padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .c-table th,
  .c-table td {
    display: table-cell;
    padding: 22px 8px;
    border-bottom: 1px solid var(--c-line);
  }
  .c-table th { width: 220px; }
}

.p-about__lead { margin-top: 24px; }
.p-about__text { margin-top: 16px; max-width: 720px; }
.p-about__sign { margin-top: 24px; font-weight: 500; letter-spacing: 2px; }
.p-about__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 40px; }
.p-about__block + .p-about__block { margin-top: var(--sec); }

/* メニュー表 */
.p-menu__note { margin-top: 20px; }
.p-menu__group { margin-top: 56px; }
.p-menu__list { margin-top: 20px; border-top: 1px solid var(--c-line); }
.p-menu__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--c-line);
}
.p-menu__name { font-weight: 500; letter-spacing: 1px; }
.p-menu__name small { display: block; font-size: 0.8125rem; font-weight: 400; color: #666666; letter-spacing: 0.5px; }
.p-menu__price {
  font-family: var(--ff-en);
  font-size: 1.125rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.p-menu__price small { font-family: var(--ff-ja); font-size: 0.75rem; }

/* ---------- 記事の本文 ---------- */
.p-article { max-width: 760px; margin-inline: auto; }
.p-article__title {
  margin-top: 8px;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 2px;
}
.p-article__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 32px; }
.p-article__body { margin-top: 40px; }
.p-article__body h2 {
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-accent);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.6;
}
.p-article__body p { margin-top: 20px; }
.p-article__body ul { margin-top: 20px; padding-left: 1.4em; list-style: disc; }
.p-article__body li + li { margin-top: 6px; }
@media (min-width: 768px) {
  .p-article__title { font-size: 1.75rem; }
}

/* ---------- お問い合わせフォーム ---------- */
.p-form { max-width: 720px; margin: 40px auto 0; }
.p-form__row + .p-form__row { margin-top: 28px; }
.p-form__label { display: block; font-weight: 500; letter-spacing: 1px; }
.p-form__req {
  margin-left: 10px;
  color: var(--c-accent);
  font-size: 0.75rem;
  font-weight: 400;
}
.p-form__input,
.p-form__select,
.p-form__textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 0;
  background: var(--c-sub);
  color: var(--c-text);
  font-family: inherit;
  font-size: 1rem; /* 16px未満だとiPhoneで画面が拡大される */
  line-height: 1.6;
}
.p-form__textarea { min-height: 180px; resize: vertical; }
.p-form__check { display: flex; align-items: flex-start; gap: 10px; }
.p-form__check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--c-accent); }
.p-form__notice {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--c-warm);
  font-size: 0.8125rem;
}

/* ---------- フッター ---------- */
.l-footer { background: var(--c-dark); color: #ffffff; }
.l-footer__inner {
  display: grid;
  gap: 40px;
  max-width: 1240px;
  margin-inline: auto;
  padding: 56px var(--gutter);
}
.l-footer__logo {
  font-family: var(--ff-en);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.2;
}
.l-footer__info { margin-top: 16px; font-size: 0.8125rem; }
.l-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  font-family: var(--ff-en);
  font-size: 0.84375rem;
  letter-spacing: 0.5px;
}
.l-footer__nav a:hover { color: #d9cf9a; }
.l-footer__copy {
  padding: 16px var(--gutter);
  background: var(--c-darker);
  font-family: var(--ff-en);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  text-align: center;
}
@media (min-width: 768px) {
  .l-footer__inner {
    grid-template-columns: 1fr auto;
    padding-block: 72px;
  }
  .l-footer__nav { grid-template-columns: repeat(3, auto); gap: 16px 56px; }
}

/* 動きを減らす設定の人には、動きをつけない */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; } /* 理由：全部品の動きを一度に止めるため */
}
