/* ==========================================================================
   Hair Salon サイト スタイルシート
   目次
   1. 共通設定（リセット・変数・基本スタイル）
   2. 共通パーツ（見出し・ボタン・余白など）
   3. ヘッダー／ナビゲーション
   4. 01 HERO
   5. 02 CONCEPT
   6. 03 OUR PROMISE
   7. 04 STYLE（スタイルギャラリー）
   8. 05 SALON
   9. 06 STYLIST
   10. 07 MENU
   11. 08 ACCESS
   12. 09 FAQ
   13. FOOTER
   14. ページトップボタン
   15. レスポンシブ（スマホ対応）
   ========================================================================== */

/* -----------------------------------------
   1. 共通設定
----------------------------------------- */

/* 色や余白などをまとめて管理する変数（好みに合わせて色を変更できます） */
:root {
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-dark: #1f1f1f;
  --color-gray: #f7f5f3;
  --color-border: #e2ddd7;
  --color-accent: #8a7763; /* サロンらしい落ち着いたブラウン系のアクセントカラー */

  --font-serif: 'Shippori Mincho', serif;   /* 見出し用 */
  --font-sans: 'Noto Sans JP', sans-serif;  /* 本文用 */

  --header-height: 90px;
  --inner-width: 1100px;
}

/* ブラウザ標準の余白をリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* アンカーリンクをなめらかにスクロール */
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  padding-top: var(--header-height); /* 固定ヘッダー分の余白 */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

/* キーボード操作時にフォーカスが見えるようにする（アクセシビリティ対応） */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 目には見えないがスクリーンリーダーには読み上げられるテキスト用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* -----------------------------------------
   2. 共通パーツ
----------------------------------------- */

.inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 48px;
}

.align-center {
  text-align: center;
  margin-top: 40px;
}

/* 各セクション見出しの下に添えるリード文（地域名・サービス内容を自然に補足するための共通パーツ） */
.lead-text {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ボタン共通スタイル */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn--dark {
  background-color: var(--color-dark);
  color: #ffffff;
}
.btn--dark:hover {
  opacity: 0.8;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--outline:hover {
  background-color: var(--color-dark);
  color: #ffffff;
  border-color: var(--color-dark);
}

.btn--line {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn--line:hover {
  background-color: #ffffff;
  color: var(--color-dark);
}


/* -----------------------------------------
   3. ヘッダー／ナビゲーション
----------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header__inner {
  max-width: var(--inner-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.gnav__list {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.gnav__list a {
  position: relative;
  padding-bottom: 4px;
}

.gnav__list a:hover {
  color: var(--color-accent);
}

.header__cta {
  flex-shrink: 0;
  background-color: var(--color-dark);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  padding: 10px 18px;
  border-radius: 2px;
}
.header__cta:hover {
  opacity: 0.8;
}

/* ハンバーガーボタン（スマホ時のみ表示） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ハンバーガーを開いたときに×印にする */
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* -----------------------------------------
   4. 01 HERO
----------------------------------------- */

.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像の上に薄い黒を重ねて文字を読みやすくする */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 0 24px;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__text {
  font-size: 15px;
  margin-bottom: 36px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}


/* -----------------------------------------
   5. 02 CONCEPT
----------------------------------------- */

.concept__row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.concept__text {
  flex: 1;
}

.concept__text p {
  margin-bottom: 20px;
}

.concept__text .btn {
  margin-top: 12px;
}

.concept__img {
  flex: 1;
}


/* -----------------------------------------
   6. 03 OUR PROMISE
----------------------------------------- */

.promise {
  background-color: var(--color-gray);
}

.promise__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.promise__item {
  text-align: center;
  background-color: #ffffff;
  padding: 32px 16px;
  border-radius: 4px;
}

.promise__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
  border-radius: 50%;
  background-color: var(--color-gray);
  margin-bottom: 16px;
}

.promise__item h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.promise__item p {
  font-size: 13px;
  color: #666666;
}


/* -----------------------------------------
   7. 04 STYLE（スタイルギャラリー）
----------------------------------------- */

.style__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.style__gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}


/* -----------------------------------------
   8. 05 SALON
----------------------------------------- */

.salon__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.salon__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}


/* -----------------------------------------
   9. 06 STYLIST
----------------------------------------- */

.stylist {
  background-color: var(--color-gray);
}

.stylist__row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.stylist__photo {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
}

.stylist__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%; /* 横長写真のため被写体が上寄りに来るよう調整 */
}

.stylist__text p {
  margin-bottom: 20px;
}

.stylist__quote {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--color-accent);
}


/* -----------------------------------------
   10. 07 MENU
----------------------------------------- */

.menu__table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
}

.menu__table th,
.menu__table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-weight: 400;
}

.menu__table thead th {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-dark);
}

.menu__table td {
  text-align: right;
}


/* -----------------------------------------
   11. 08 ACCESS
----------------------------------------- */

.access__row {
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.access__map {
  flex: 1.2;
  min-height: 320px;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 4px;
}

.access__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access__info-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.access__info-row dt {
  flex-shrink: 0;
  width: 80px;
  color: var(--color-accent);
  font-weight: 700;
}

.access__info .btn {
  margin-top: 32px;
  align-self: flex-start;
}


/* -----------------------------------------
   12. 09 FAQ
----------------------------------------- */

.faq {
  background-color: var(--color-gray);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

/* 見出し(h3)自体は余白ゼロにして、中のbuttonで見た目を作る */
.faq__question {
  margin: 0;
}

.faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
}

/* 開閉状態を示す「＋」アイコン。開いているときは「－」に回転する */
.faq__toggle::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq__toggle[aria-expanded="true"]::after {
  transform: rotate(135deg);
}

.faq__answer {
  padding: 0 8px 22px;
  font-size: 14px;
  color: #555555;
}


/* -----------------------------------------
   13. FOOTER
----------------------------------------- */

.footer {
  background-color: var(--color-dark);
  color: #ffffff;
  text-align: center;
}

.footer__cta {
  padding: 80px 24px;
}

.footer__cta h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 16px;
}

.footer__cta p {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 32px;
}

.footer__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 12px;
  color: #999999;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/* -----------------------------------------
   14. ページトップボタン
----------------------------------------- */

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-dark);
  color: #ffffff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 900;
}

/* JS側で .is-visible を付け外しして表示・非表示を切り替える */
.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  opacity: 0.8;
}


/* -----------------------------------------
   15. レスポンシブ（スマホ・タブレット対応）
----------------------------------------- */

/* タブレットサイズ以下 */
@media (max-width: 900px) {
  .promise__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .concept__row,
  .stylist__row {
    flex-direction: column;
  }

  .access__row {
    flex-direction: column;
  }
}

/* スマホサイズ以下：ナビゲーションをハンバーガーメニューに切り替え */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .header__cta {
    display: none; /* スマホ表示ではメニュー内に案内するため非表示 */
  }

  .hamburger {
    display: flex;
  }

  /* PCナビをスマホ用ドロワーメニューに変更 */
  .gnav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .gnav.is-open {
    transform: translateX(0);
  }

  .gnav__list {
    flex-direction: column;
    gap: 0;
    padding: 24px;
  }

  .gnav__list a {
    display: block;
    padding: 18px 8px;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__text {
    font-size: 14px;
  }

  .concept__row,
  .stylist__row {
    gap: 32px;
  }

  .promise__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .style__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .salon__gallery {
    grid-template-columns: 1fr;
  }

  .stylist__photo {
    width: 180px;
    height: 180px;
  }

  .footer__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}
