/* ==========================================================================
   MIRUKA | fairy fee合同会社 公式サイト共通スタイル
   構成（Ctrl+Fで見出しにジャンプ可能）:
   1. Reset / Base
   2. Design Tokens（配色・フォント・余白）
   3. Typography
   4. Layout / Container
   5. Header & Navigation
   6. Buttons
   7. Section 共通（ラベル・タイトル・リード文）
   8. Image Placeholder
   9. Cards（サービスカード / 強みカード / 実績カード）
   10. Hero（トップ用ファーストビュー）
   11. Timeline（Mirukaについて用）
   12. Form（お問い合わせ）
   13. Notice / Disclaimer Box（医療行為ではない旨などの注意書き）
   14. Legal Page（特商法・プライバシー・利用規約・キャンセルポリシー用の文章整形）
   15. Footer
   16. Utilities
   17. Responsive（スマホ対応）
   ========================================================================== */

/* 1. Reset / Base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* 2. Design Tokens
   ------------------------------------------------------------------------ */
:root {
  /* Colors（承認済みデザイン仕様） */
  --color-bg: #F7F3EE;          /* アイボリーホワイト（背景） */
  --color-text: #2B2723;        /* ウォームチャコール（本文） */
  --color-accent: #6E2E37;      /* ディープボルドー（CTA・強調） */
  --color-accent-dark: #551F26; /* ボルドー ホバー用の濃色 */
  --color-gold: #B99762;        /* シャンパンゴールド（罫線・小物） */
  --color-alt-bg: #EDE5DA;      /* くすみベージュ（セクション区切り背景） */
  --color-white: #FFFFFF;
  --color-border: rgba(43, 39, 35, 0.12);

  /* Fonts */
  --font-heading: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-label: 'Cormorant Garamond', serif;

  /* Spacing（余白設計） */
  --section-padding-pc: 140px;
  --section-padding-sp: 72px;
  --content-max-width: 680px;
  --page-max-width: 1120px;
}

/* 3. Typography
   ------------------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.02em; }
h1 { font-size: 40px; line-height: 1.6; }
h2 { font-size: 30px; line-height: 1.7; }
h3 { font-size: 19px; line-height: 1.7; }
p { font-size: 16px; }

.section-label {
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 16px;
}
.section-title { font-size: 30px; margin: 0 0 20px; }
.section-lead { max-width: var(--content-max-width); color: var(--color-text); opacity: 0.85; }

/* 4. Layout / Container
   ------------------------------------------------------------------------ */
.section-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 40px;
}
main section { padding: var(--section-padding-pc) 0; }
.bg-alt { background: var(--color-alt-bg); }

/* 5. Header & Navigation
   ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-label);
  font-size: 24px;
  letter-spacing: 0.15em;
  color: var(--color-text);
}
.logo span { color: var(--color-accent); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--color-gold);
  color: var(--color-accent);
}

/* 6. Buttons
   ------------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--color-accent);
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-white); }
.btn-block { display: block; text-align: center; }

/* 7. Section 共通は「3. Typography」内の .section-label / .section-title / .section-lead を使用 */

/* 8. Image Placeholder（画像は後から差し替え。aspect-ratioでレイアウトシフトを防止） */
.img-placeholder {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-alt-bg);
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* 9. Cards
   ------------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.card h3 { margin-bottom: 16px; }
.card p { font-size: 14px; opacity: 0.85; }

.entry-card {
  display: block;
  padding: 48px 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.entry-card:hover { border-color: var(--color-accent); transform: translateY(-4px); }
.entry-card .section-label { margin-bottom: 12px; }
.entry-card h3 { font-size: 22px; margin-bottom: 16px; }
.entry-card p { font-size: 14px; opacity: 0.8; margin-bottom: 24px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }

/* 10. Hero（トップ用ファーストビュー）
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 96px;
}
.hero .img-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 0;
  z-index: 0;
}
.hero .img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,39,35,0) 30%, rgba(43,39,35,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--page-max-width); margin: 0 auto; padding: 0 40px; color: var(--color-white); }
.hero-eyebrow { font-family: var(--font-label); letter-spacing: 0.3em; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; color: var(--color-gold); }
.hero h1 { color: var(--color-white); font-size: 44px; margin-bottom: 28px; }
.hero p { color: rgba(255,255,255,0.9); max-width: var(--content-max-width); margin-bottom: 32px; }

/* ページ内下部ヒーロー（サービスページ等の簡易ヒーロー） */
.page-hero { padding: 72px 0 0; }
.page-hero .section-title { font-size: 34px; }

/* 11. Timeline（Mirukaについて用）
   ------------------------------------------------------------------------ */
.timeline { margin-top: 56px; border-left: 1px solid var(--color-border); padding-left: 32px; }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline-year { font-family: var(--font-label); color: var(--color-accent); font-size: 18px; margin-bottom: 8px; }

/* 12. Form（お問い合わせ）
   ------------------------------------------------------------------------ */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 8px; }
.form-group .required { color: var(--color-accent); font-size: 12px; margin-left: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-radio-group { display: flex; gap: 24px; }
.form-radio-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-radio-group input { width: auto; }
.contact-form { max-width: 640px; }

/* 13. Notice / Disclaimer Box
   ------------------------------------------------------------------------ */
.notice-box {
  background: var(--color-alt-bg);
  border-left: 3px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.9;
}
.notice-box p + p { margin-top: 8px; }

/* 14. Legal Page（特商法・プライバシー・利用規約・キャンセルポリシー）
   ------------------------------------------------------------------------ */
.legal-page main { padding: 64px 0 var(--section-padding-pc); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 20px;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 15px;
}
.legal-table th { width: 30%; font-weight: 500; color: var(--color-accent); }
.legal-section { margin-top: 56px; }
.legal-section h2 { font-size: 22px; margin-bottom: 16px; }
.legal-section h3 { font-size: 16px; margin: 24px 0 8px; }
.legal-section p, .legal-section li { font-size: 15px; opacity: 0.9; }
.legal-section ol, .legal-section ul { padding-left: 1.4em; list-style: decimal; }
.legal-section ul { list-style: disc; }
.legal-section li + li { margin-top: 8px; }
.legal-updated { margin-top: 64px; font-size: 13px; opacity: 0.6; text-align: right; }

/* 15. Footer
   ------------------------------------------------------------------------ */
.site-footer { background: var(--color-text); color: rgba(255,255,255,0.75); padding: 72px 0 32px; }
.footer-inner { max-width: var(--page-max-width); margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .logo { color: var(--color-white); margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 13px; line-height: 1.9; opacity: 0.7; max-width: 320px; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-nav h4 { font-size: 13px; letter-spacing: 0.1em; color: var(--color-gold); margin-bottom: 16px; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { font-size: 13px; opacity: 0.8; }
.footer-nav a:hover { opacity: 1; color: var(--color-gold); }
.footer-company { font-size: 12px; line-height: 2; opacity: 0.6; }
.footer-bottom {
  max-width: var(--page-max-width);
  margin: 48px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  opacity: 0.5;
  text-align: center;
}

/* 16. Utilities
   ------------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.is-hidden { display: none !important; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* 17. Responsive（スマホ対応）
   ------------------------------------------------------------------------ */
@media (max-width: 860px) {
  main section { padding: var(--section-padding-sp) 0; }
  .section-inner { padding: 0 24px; }
  h1 { font-size: 30px; }
  h2, .section-title { font-size: 24px; }
  .hero { min-height: 100vh; padding-bottom: 64px; }
  .hero h1 { font-size: 32px; }
  .header-inner { padding: 16px 24px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 40px 24px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 24px; }
  .main-nav a { font-size: 18px; }

  .entry-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 32px; }
  .btn { width: 100%; text-align: center; }
}
