/* ===========================================
   まごころ墓守 — style.css
   対象: index.html（2024年版）
   =========================================== */

/* -------------------------------------------
   カラー変数
------------------------------------------- */
:root {
  --green-dark:  #2d5a3d;   /* メインの濃い緑 */
  --green-mid:   #4a7c5f;   /* 中間の緑 */
  --green-light: #c8e0d0;   /* 薄い緑（背景・ボーダー） */
  --green-pale:  #f0f7f3;   /* 極薄緑（背景） */
  --navy:        #1e3a5f;   /* 電話番号・強調に使う紺 */
  --line-green:  #06c755;   /* LINE公式グリーン */
  --line-hover:  #05a847;
  --text-main:   #2c2c2c;
  --text-sub:    #5a5a5a;
  --text-muted:  #909090;
  --bg-white:    #ffffff;
  --bg-light:    #f6f8f5;   /* セクション背景（薄グレー緑） */
  --border:      #dce8df;
  --radius-md:   12px;
  --radius-lg:   18px;
  --shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 6px 28px rgba(0, 0, 0, 0.14);
}

/* -------------------------------------------
   リセット・基本
------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* 高齢者向けにやや大きめ基準 */
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP',
               'Meiryo', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.85;
  padding-bottom: 80px; /* フローティングボタンの高さ分 */
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* -------------------------------------------
   レイアウト共通
------------------------------------------- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.bg-light {
  background: var(--bg-light);
}

.sp-only {
  display: none;
}

/* -------------------------------------------
   見出し・リード文
------------------------------------------- */
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 14px;
}

.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--green-mid);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.95;
  margin-bottom: 48px;
}

/* -------------------------------------------
   ボタン
------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(45, 90, 61, 0.32);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--green-mid);
  box-shadow: 0 6px 20px rgba(45, 90, 61, 0.42);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  text-decoration: none;
  padding: 13px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--green-pale);
}

/* -------------------------------------------
   プレースホルダー画像（写真差し替え前）
------------------------------------------- */
.placeholder-img {
  background: var(--green-pale);
  border: 2px dashed var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
}

.placeholder-img.large {
  width: 100%;
  height: 260px;
}

.placeholder-img.small {
  width: 100%;
  height: 150px;
  margin-bottom: 16px;
}

.placeholder-img.map {
  width: 100%;
  height: 220px;
  margin-top: 32px;
}

/* report-img: サービス写真エリア（説明型） */
.report-img {
  flex-direction: column;
  gap: 6px;
}

.report-img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.report-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
}

.report-note {
  font-size: 0.75rem;
  color: var(--green-mid);
}

/* -------------------------------------------
   ヘッダー
------------------------------------------- */
.site-header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--green-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.05em;
}

.header-sub {
  font-size: 0.76rem;
  color: var(--text-sub);
}

/* -------------------------------------------
   ファーストビュー（hero）
------------------------------------------- */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 68px;
  background: linear-gradient(155deg, var(--green-pale) 0%, var(--bg-white) 55%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-catch-small {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.6;
}

.hero-desc {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 2;
}

.hero-img-area {
  width: 100%;
}

/* -------------------------------------------
   選ばれる理由
------------------------------------------- */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reason-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

.reason-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.reason-icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
  line-height: 1;
}

.reason-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.reason-card p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* -------------------------------------------
   サービス内容
------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.service-item h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* -------------------------------------------
   料金表
------------------------------------------- */
.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--green-mid);
  border-radius: 20px;
  padding: 48px 36px 36px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 22px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.plan-price {
  margin-bottom: 26px;
  line-height: 1;
}

.price-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

.price-unit {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-left: 4px;
}

.plan-includes {
  text-align: left;
  margin: 0 auto 24px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-includes li {
  font-size: 0.93rem;
  color: var(--text-main);
}

.plan-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.85;
  text-align: left;
  margin-bottom: 26px;
}

.pricing-custom {
  margin-top: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pricing-custom p {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* -------------------------------------------
   対応地域
------------------------------------------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.area-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.area-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  line-height: 1;
}

.area-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}

.area-note {
  font-size: 0.82rem;
  color: var(--text-sub);
  text-align: center;
}

/* -------------------------------------------
   ご依頼の流れ
------------------------------------------- */
.flow-steps {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.flow-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--green-mid);
  padding: 6px 0;
}

.step-num {
  background: var(--green-dark);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* -------------------------------------------
   よくある質問
------------------------------------------- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.faq-q {
  display: block;
  padding: 18px 48px 18px 18px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.15s;
  line-height: 1.6;
}

/* WebKit のデフォルト三角を消す */
.faq-q::-webkit-details-marker { display: none; }

/* Q バッジ */
.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 開閉アイコン */
.faq-q::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green-mid);
  line-height: 1;
  transition: transform 0.2s;
}

details[open] .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-q:hover {
  background: var(--green-pale);
}

.faq-a {
  border-top: 1px solid var(--border);
  padding: 14px 18px 18px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.9;
}

/* -------------------------------------------
   お問い合わせ
------------------------------------------- */
.contact-wrapper {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* カード共通 */
.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* LINEカード（最強調） */
.contact-card--line {
  border: 2px solid var(--line-green);
  background: #f2fff7;
}

/* メールカード */
.contact-card--main {
  border: 1px solid var(--border);
}

/* おすすめバッジ */
.contact-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 20px;
  letter-spacing: 0.07em;
}

.line-badge {
  background: var(--line-green);
  color: #fff;
}

/* アイコン */
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.line-icon-block {
  background: var(--line-green);
  color: #fff;
}

.mail-icon-block {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 1.35rem;
}

.contact-method-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-method-desc {
  font-size: 0.87rem;
  color: var(--text-sub);
  line-height: 1.85;
}

/* LINEボタン画像 */
.contact-card--line a img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s, transform 0.15s;
}

.contact-card--line a img:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

/* 受付時間タグ（LINEカード内） */
.contact-hours-inline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
  background: rgba(6, 199, 85, 0.09);
  border-radius: 6px;
  padding: 4px 14px;
}

/* メールボタン */
.btn-mail {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--border);
  word-break: break-all;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-mail:hover {
  background: var(--green-light);
  box-shadow: 0 3px 12px rgba(45, 90, 61, 0.15);
}

/* 電話カード（補助） */
.contact-card--sub {
  border: 1px solid var(--border);
  background: var(--bg-light);
  padding: 20px 28px;
}

.contact-phone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

.contact-phone-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.phone-sup-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
}

.phone-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

.phone-number:hover {
  text-decoration: underline;
}

.phone-hours {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.phone-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* -------------------------------------------
   フッター
------------------------------------------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 24px 32px;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 28px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.72rem;
  opacity: 0.55;
}

/* -------------------------------------------
   フローティングLINEボタン
------------------------------------------- */
.float-line-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: var(--line-green);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.5);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.float-line-btn:hover {
  background: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(6, 199, 85, 0.6);
}

.float-line-icon {
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.float-line-text {
  font-size: 0.88rem;
}

/* ===========================================
   レスポンシブ — タブレット（〜720px）
=========================================== */
@media (max-width: 720px) {
  html { font-size: 17px; }

  .sp-only { display: block; }

  .section { padding: 56px 0; }

  .section-title { font-size: 1.35rem; }

  .hero { padding: 48px 20px 56px; }
  .hero-title { font-size: 1.5rem; }

  .reasons-grid { grid-template-columns: 1fr; gap: 16px; }

  .services-grid { grid-template-columns: 1fr; gap: 20px; }

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

  .pricing-card { padding: 42px 24px 32px; }
  .price-num { font-size: 2.5rem; }

  .contact-card { padding: 26px 22px 22px; }
  .contact-card--sub { padding: 18px 22px; }
}

/* ===========================================
   レスポンシブ — スマホ（〜480px）
=========================================== */
@media (max-width: 480px) {
  html { font-size: 16px; }

  .container { padding: 0 16px; }

  .section { padding: 48px 0; }

  .section-title { font-size: 1.25rem; }

  .section-lead { font-size: 0.9rem; margin-bottom: 36px; }

  /* hero */
  .hero { padding: 40px 16px 48px; }
  .hero-title { font-size: 1.35rem; }
  .hero-desc { font-size: 0.88rem; }

  /* ボタン */
  .btn-primary {
    display: block;
    text-align: center;
    padding: 16px 20px;
  }

  /* 選ばれる理由 */
  .reasons-grid { grid-template-columns: 1fr; gap: 14px; }
  .reason-card { padding: 20px 16px; }

  /* サービス */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-item { padding: 18px 16px; }

  /* 地域 */
  .area-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .area-item { padding: 14px 8px; }

  /* 料金 */
  .pricing-card { padding: 36px 16px 28px; }
  .price-num { font-size: 2.2rem; }
  .plan-includes { max-width: 100%; }

  /* 流れ */
  .flow-step { padding: 16px 14px; gap: 12px; }
  .step-num { min-width: 38px; height: 38px; font-size: 1rem; }

  /* FAQ */
  .faq-q { padding: 14px 44px 14px 14px; font-size: 0.88rem; }
  .faq-a { padding: 12px 14px 16px; }

  /* お問い合わせ */
  .contact-card { padding: 22px 16px 18px; }
  .contact-card--sub { padding: 16px; }
  .btn-mail {
    display: block;
    text-align: center;
    padding: 13px 16px;
    font-size: 0.85rem;
  }
  .phone-number { font-size: 1.4rem; }

  /* フローティング */
  .float-line-btn { bottom: 16px; right: 16px; padding: 11px 18px; }
  .float-line-text { font-size: 0.82rem; }

  /* フッター */
  .footer-nav { gap: 6px 14px; }
}
