/* ==========================================
    八景苑 (hakkeien.org) ブランドカラー＆基本設定
    ========================================== */
:root {
  --primary-color: #2b5d3f;     /* 八景苑メイングリーン（深緑） */
  --primary-hover: #1e442d;
  --primary-light: #f2f7f4;     /* 和モダン薄緑背景 */
  --accent-color: #b58d3d;        /* 和の気品を感じるゴールド */
  --accent-hover: #96722d;
  --cta-color: #B9EDC3;          /* メインCTA（お問合せ）カラー */
  --cta-hover: #a2e0ae;
  --cta-text: #1a3e29;
  --sub-cta-color: #ffffff;      /* サブCTA（資料請求）カラー */
  --sub-cta-border: #b58d3d;
  --text-main: #2b2b2b;          /* 読みやすい濃いグレー */
  --text-sub: #555555;
  --bg-gray: #f9f8f6;            /* 生成り感のある薄グレー */
  --border-color: #dcd8cf;

  /* 本文は視認性の高いゴシック、見出し等は明朝体のフォントスタック */
  --font-family: "游ゴシック", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  --font-serif: "BIZ UDPMincho", "Ryumin", "HiraMinPro-W3", "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  line-height: 1.8;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  font-size: 16px;
}

h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif);
}

/* ルビ（ふりがな）のスタイル調整 */
ruby {
  ruby-align: center;
}
rt {
  font-size: 0.45em;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: #e2f0e6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-radius: 6px;
}

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

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  text-align: center;
  border: none;
  gap: 6px;
  width: 100%;
  max-width: 400px;
}

/* メインCTA：お問合せ（背景：明るい緑） */
.btn-cta {
  background-color: var(--cta-color);
  color: var(--cta-text);
  border: 1px solid #9adba6;
  gap: 7px;
}

.btn-cta:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* サブCTA：資料請求・閲覧（背景：白＋ゴールド枠） */
.btn-sub-cta {
  background-color: var(--sub-cta-color);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-sub-cta:hover {
  background-color: #fffdf8;
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* CTAグループ */
.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 35px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

section:nth-child(even) {
  background-color: var(--primary-light);
}

/* インライン用ブロック切り替え制御 */
.sp-block {
  display: inline;
}

/* ==========================================
    ヘッダー
    ========================================== */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo a {
  display: flex;
  flex-direction: column;
  color: var(--primary-color);
  transition: opacity 0.2s ease;
  line-height: 1.2;
}

.header-logo a:hover {
  opacity: 0.8;
}

.header-logo .sub-name {
  font-size: 0.75rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  margin-bottom: 2px;
  margin-left: 36px;
}

.header-logo .main-name {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}

.main-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-logo-icon {
  width: 30px;
  height: auto;
  border-radius: 0;
}

.btn-icon {
  width: 1.1em;
  height: auto;
  border-radius: 0;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  font-size: 0.85rem;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.header-btn-sub {
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  background: #ffffff;
}

.header-btn-sub:hover {
  background: #fffdf8;
}

.header-btn-main {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: var(--primary-light);
  gap: 5px;
}

.header-btn-main:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* ==========================================
    ① ファーストビュー
    ========================================== */
.hero {
  position: relative;
  color: #ffffff;
  padding: 60px 20px 40px;
  text-align: center;
  overflow: hidden;
  background-color: #1e3223;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subhead {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #e2f0e6;
  font-weight: bold;
}

.hero h1 {
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-catch {
  font-size: 1.3rem;
  color: #f7e8c3;
  font-weight: bold;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 1.05rem;
  margin-bottom: 25px;
  opacity: 0.95;
  font-weight: bold;
}

.hero-desc-box {
  max-width: 750px;
  margin: 0 auto 35px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 20px 25px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero-nav-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: max-content;
  margin: 0 auto;
}

.hero-nav a {
  background-color: #ffffff;
  color: var(--primary-color);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.hero-nav a:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.hero-nav a.highlight {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.hero-nav a.highlight:hover {
  background-color: var(--accent-hover);
}

/* ==========================================
    ② 八景苑を知る
    ========================================== */
.about-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 5px solid var(--primary-color);
}

.about-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
  font-size: 0.95rem;
}

.about-spec-item {
  display: flex;
  background: var(--primary-light);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #d0e2d5;
}

.about-spec-dt {
  width: 35%;
  font-weight: bold;
  color: var(--primary-color);
}

.about-spec-dd {
  width: 65%;
  color: var(--text-main);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.facility-card {
  background: var(--bg-gray);
  padding: 20px;
  border-radius: 6px;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.facility-card h4 {
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.facility-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================
    ③ 現地をイメージ（写真ギャラリー）
    ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ==========================================
    ④ 合縁墓を知る
    ========================================== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.feature-card {
  background: #ffffff;
  padding: 20px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card.highlight-feature {
  border: 2px solid var(--primary-color);
  background-color: var(--primary-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================
    ⑤ 自分に合うか判断
    ========================================== */
.fit-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.check-list {
  list-style: none;
  margin-bottom: 25px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.compare-note {
  background: var(--bg-gray);
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-left: 3px solid var(--accent-color);
}

/* ==========================================
    ⑥ 使用期間
    ========================================== */
.period-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.period-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.period-card h4 {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.period-card .model-case-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #d0e2d5;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-step {
  background: var(--primary-light);
  padding: 12px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-main);
  border: 1px solid #e0ebe3;
}

.flow-step.highlight-step {
  background: #fff8e6;
  color: #b58d3d;
  border: 2px solid var(--accent-color);
  font-size: 1rem;
  line-height: 1.6;
}

.flow-step.final-step {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-hover);
}

.flow-arrow {
  text-align: center;
  color: var(--accent-color);
  font-size: 1rem;
  line-height: 1;
}

/* ==========================================
    ⑦ 費用
    ========================================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.price-table th, .price-table td {
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  text-align: left;
}

.price-table th {
  background-color: var(--primary-light);
  color: var(--primary-color);
  width: 45%;
  font-weight: bold;
}

.price-table tr.highlight-row th,
.price-table tr.highlight-row td {
  background-color: #eaf3ec;
  border: 2px solid var(--primary-color);
  position: relative;
}

.price-table tr.highlight-row td {
  color: var(--primary-color);
  font-size: 1.15rem;
}

.price-summary {
  background-color: #fff9ed;
  border: 2px solid var(--accent-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.price-summary p {
  font-size: 1.25rem;
  font-weight: bold;
  color: #c0392b;
}

.google-map-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.google-map-container iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ==========================================
    ⑧ 来苑案内（見出しの●）
    ========================================== */
.visit-note-title::before {
  content: "●";
  color: var(--accent-color);
  margin-right: 0.4em;
}

/* ==========================================
    ⑩ ルート案内
    ========================================== */
.route-map-main {
  margin-bottom: 30px;
  text-align: center;
}

.route-map-main img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.route-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.route-card-body {
  padding: 15px;
}

.route-step-badge {
  background: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: bold;
}

/* ==========================================
    ⑪ FAQ
    ========================================== */
.faq-wrapper {
  max-width: 850px;
  margin: 0 auto;
}

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

.faq-q {
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  font-size: 1.05rem;
}

.faq-q::after {
  content: "＋";
  color: var(--primary-color);
  font-size: 1.3rem;
}

.faq-item.open .faq-q::after {
  content: "－";
}

.faq-a {
  display: none;
  padding: 16px 20px;
  background: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  font-size: 0.98rem;
  line-height: 1.8;
}

.faq-item.open .faq-a {
  display: block;
}

/* ==========================================
    固定フッターCTA
    ========================================== */
.sticky-footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  display: flex;
  gap: 8px;
  z-index: 999;
}

.sticky-footer-cta .btn {
  flex: 1;
  padding: 12px 4px;
  font-size: 0.85rem;
  box-shadow: none;
  border-radius: 25px;
  max-width: none;
  white-space: nowrap;
}

@media (min-width: 751px) {
  .sticky-footer-cta {
    display: none;
  }
}

footer {
  background: #222222;
  color: #aaaaaa;
  text-align: center;
  padding: 30px 20px 90px;
  font-size: 0.85rem;
}

@media (min-width: 751px) {
  footer {
    padding-bottom: 30px;
  }
}

/* ==========================================
    📱 スマホ表示用（max-width: 750px以下）
    ========================================== */
@media (max-width: 750px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  section {
    padding: 35px 0;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.45rem;
    margin-bottom: 6px;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 22px;
  }

  /* スマホ表示時の個別改行設定 */
  .sp-block {
    display: block;
    margin-bottom: 2px;
  }

  /* ヘッダー：スマホ時ボタン非表示 */
  .header-actions {
    display: none;
  }

  .header-inner {
    justify-content: center;
    padding: 4px 0;
  }

  .header-logo .sub-name {
    font-size: 0.7rem;
  }

  .header-logo .main-name {
    font-size: 1.15rem;
  }

  /* ファーストビュー */
  .hero {
    padding: 35px 15px 25px;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }

  .hero-subhead {
    font-size: 0.95rem;
  }

  .hero-catch {
    font-size: 1.05rem;
  }

  .hero-note {
    font-size: 0.9rem;
    padding: 5px 14px !important;
  }

  .hero-desc-box {
    padding: 14px;
    font-size: 0.88rem;
    margin-bottom: 25px;
  }

  .hero-nav a {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* 各種グリッドレイアウト調整 */
  .about-card, .fit-box {
    padding: 18px 14px;
  }

  .about-card p {
    font-size: 0.92rem;
  }

  .about-specs {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.88rem;
  }

  .facility-grid,
  .gallery-grid,
  .period-diagram,
  .route-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .facility-card h4, .period-card h4 {
    font-size: 1rem;
  }

  .facility-card p, .period-card p {
    font-size: 0.88rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.88rem;
  }

  .check-list li {
    font-size: 0.92rem;
    padding-left: 26px;
    margin-bottom: 10px;
  }

  .check-list li::before {
    font-size: 1rem;
  }

  .flow-step {
    font-size: 0.88rem;
    padding: 10px;
  }

  .price-table th, .price-table td {
    padding: 10px;
    font-size: 0.88rem;
  }

  .price-table th {
    width: 50%;
  }

  .price-table tr.highlight-row td {
    font-size: 1rem;
  }

  .price-summary p {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .faq-q {
    font-size: 0.92rem;
    padding: 12px 14px;
  }

  .faq-a {
    font-size: 0.88rem;
    padding: 12px 14px;
  }

  .btn {
    font-size: 0.95rem;
    padding: 14px 18px;
  }
}
