/* ==========================================================
   朝日鍼灸院 スタイルシート
   色や文字の大きさは、この上のほうにまとめてあります。
   直したいときは、まず「色の設定」のところを触ってください。
   ========================================================== */

/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }

/* ----------------------------------------------------------
   色の設定（ここを変えるとサイト全体の色が変わります）
   ---------------------------------------------------------- */
:root {
  --bg: #fdfaf6;          /* ページの背景色（やわらかいクリーム色） */
  --bg-soft: #f5ece1;     /* 少し濃い背景色（セクションの区切りに使用） */
  --white: #ffffff;
  --text: #3a332e;        /* 本文の文字色 */
  --text-soft: #6b6058;   /* 補足の文字色 */
  --accent: #a8562c;      /* ボタンや見出しのアクセント色（あたたかい茶色） */
  --accent-dark: #8c4522; /* ボタンを押したときの色 */
  --accent-pale: #ecdccf; /* アクセント色のうすい版（線や背景） */
  --border: #e2d7ca;      /* 枠線の色 */
  --radius: 12px;         /* 角の丸み */
  --shadow: 0 2px 12px rgba(90, 60, 40, 0.08);
}

/* ----------------------------------------------------------
   全体の土台
   ---------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: 62px; /* 上に固定したヘッダーの高さ分 */
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent); }

/* 中身の横幅をそろえる箱 */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* キーボード操作の人にも、今どこを選んでいるかわかるようにする */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   アイコン（SVG）の大きさ
   ---------------------------------------------------------- */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon-lg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

/* ----------------------------------------------------------
   ヘッダー（画面の一番上に固定）
   ---------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(253, 250, 246, 0.96);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  margin: 0;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.3;
}
.logo-sub {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: var(--text-soft);
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   ボタン
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
}

/* 主なボタン（電話） */
.btn-main {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-main:hover { background: var(--accent-dark); }
.btn-main:active { transform: translateY(1px); }

/* 補助のボタン（LINEなど） */
.btn-sub {
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-sub:hover { background: var(--accent-pale); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn-row-center { justify-content: center; }

/* ----------------------------------------------------------
   セクション1 ヒーロー（最初に見える場所）
   ---------------------------------------------------------- */
.hero {
  background: var(--bg-soft);
  padding: 48px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: bold;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0;
  color: var(--text-soft);
}

.hero-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--text-soft);
}

.hero-photo img {
  width: 100%;
  max-height: 380px;      /* 縦に間延びしないように高さの上限を決める */
  object-fit: cover;      /* はみ出した部分は切り取って表示する */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----------------------------------------------------------
   セクション共通
   ---------------------------------------------------------- */
.section { padding: 60px 0; }

.section-worry { background: var(--white); }
.section-price { background: var(--bg-soft); }

.section h2 {
  margin: 0 0 32px;
  font-size: 27px;
  line-height: 1.5;
  text-align: center;
}

/* 見出しの下に短い線を引く */
.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   セクション2 こんなお悩みありませんか
   ---------------------------------------------------------- */
.worry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}
.card .icon-lg { margin-bottom: 12px; }

.worry-close {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  font-weight: bold;
}

/* ----------------------------------------------------------
   セクション3 施術内容と特長
   ---------------------------------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-body { padding: 22px 20px 26px; }
.service-body .icon-lg { margin-bottom: 10px; }
.service-body p {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}

/* ----------------------------------------------------------
   セクション4 料金と対応エリア
   ---------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.price-card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}

/* 料金を目立たせるほうの箱 */
.price-card-main {
  border: 2px solid var(--accent);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-amount {
  margin: 6px 0 8px !important;
  color: var(--text) !important;
  font-size: 20px;
}
.price-amount strong {
  font-size: 46px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.price-unit { margin-right: 10px; }
.price-yen { margin-left: 4px; }
.price-note { font-size: 15px !important; }

.area {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.area p { margin: 0; }
.area-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin-bottom: 6px !important;
  color: var(--accent);
}

/* ----------------------------------------------------------
   セクション5 よくある質問
   ---------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}
/* Safariで出る三角の印を消す */
.faq-item summary::-webkit-details-marker { display: none; }

.faq-mark {
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] .faq-mark { transform: rotate(180deg); }

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 16px;
  color: var(--text-soft);
}

/* ----------------------------------------------------------
   お問い合わせの箱
   ---------------------------------------------------------- */
.contact-box {
  max-width: 780px;
  margin: 48px auto 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px 24px 36px;
  text-align: center;
}

.contact-title {
  margin: 0 0 14px !important;
  font-size: 24px !important;
}
.contact-title::after { display: none; } /* この見出しには下線を付けない */

.contact-lead {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 16px;
}

.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 38px;
  font-weight: bold;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.contact-hours {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* ----------------------------------------------------------
   フッター
   ---------------------------------------------------------- */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 36px 0 40px;
  text-align: center;
  font-size: 15px;
}
.footer p { margin: 0 0 4px; }
.footer a { color: var(--bg); }
.footer-name {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 10px !important;
}
.copyright {
  margin-top: 18px !important;
  font-size: 13px;
  opacity: 0.75;
}

/* ----------------------------------------------------------
   スマートフォンで画面下に固定する電話ボタン
   （パソコンでは表示しない）
   ---------------------------------------------------------- */
.fixed-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 250, 246, 0.96);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.fixed-cta .btn { width: 100%; }

/* ==========================================================
   タブレット（横幅900px以下）
   ========================================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr; /* 写真を文章の下に回す */
  }
  .hero h1 { font-size: 29px; }

  .worry-list,
  .service-list,
  .price-grid {
    grid-template-columns: 1fr; /* 横並びをやめて縦に積む */
  }

  .service-item img { height: 220px; }
}

/* ==========================================================
   スマートフォン（横幅600px以下）
   ========================================================== */
@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding-bottom: 82px; /* 下に固定したボタンと文章が重ならないようにする */
  }

  .logo { font-size: 17px; }

  /* ヘッダーの電話番号は数字を隠してアイコンだけにする（幅が狭いため） */
  .header-tel span { display: none; }
  .header-tel .icon { width: 26px; height: 26px; }

  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 25px; }
  .hero-photo img { max-height: 240px; }

  .btn { width: 100%; }

  .section { padding: 44px 0; }
  .section h2 { font-size: 23px; }

  .contact-box { padding: 32px 18px; }
  .contact-tel { font-size: 30px; }

  /* 下の固定ボタンを表示する */
  .fixed-cta { display: block; }
}
