body#grav-clean.washi_d {
  background:
    linear-gradient(to bottom, #fffdf9 0%, #f0fcfe 560px, transparent 560px),
    url('/images/bg_washi_D.jpg');
  background-repeat: repeat;
  background-size: 1000px auto;
}
/* ========== mainコンテンツ全体 ========== */
main {
  padding: 2rem 1rem;
}
/* ========== 各セクション共通タイトル（section-heading） ========== */
.section-heading {
  font-size: 2rem;
  font-weight: bold;
  color: #203744;
  margin-bottom: 2rem;
  text-align: center;
  background: url('/images/gc-001.png') no-repeat center;
  background-size: contain;
}
/* ========== section全体 ========== */
section:target::before {
  content: "";
  display: block;
  height: 80px; /* navの高さ程度 */
  margin-top: -80px;
}

.gc-section h2 {
  margin-bottom: 1rem;
}

.gc-section p {
  margin-top: 1rem;
}

/* ========== wrapper全体 ========== */
.gc-page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== ヘッダーエリア ========== */
.gc-title-header {
  padding: 0.5em 0 0.2em !important;
  margin-bottom: 0 !important;
  text-align: center;
  position: static !important;
  z-index: auto !important;
  top: 0;
}

.gc-title-header h1.gc-title-logo {
  margin-top: 0 !important;
 
  padding: 0 !important;
  line-height: 1.2 !important;
  font-size: 1.8rem;
  font-weight: bold;
  color: #203744; /* 既存トーンに合わせた濃紺 */
}

/* ========== ローカルナビゲーション ========== */
.local-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #203744; /* #5b606a; */
  z-index: 9999;
  padding: 12px 16px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  /* アニメーション制御 */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.local-nav.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- レイアウト構造 ---------- */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* 左カラム */
.nav-left {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* 左カラム：上段 */
.nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo {
  height: 26px;
  width: auto;
  transform: translateX(72%);
}

.local-nav .nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 600;
  color: #f4f4f4; /* 柔らか白系 */
  white-space: nowrap;
}

/* 左カラム：下段（ナビリンク横並び） */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.nav-list li a {
  font-size: 13px;
  padding: 2px 6px;
  color: #203744;
  text-decoration: none;
  border: 1px solid #b0c2c8;
  background-color: #e9eae3;
  border-radius: 4px;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.nav-list li a:hover {
  border: 1px solid #aab5aa;
  background-color: #dadcc8;
  color: #4a524a;
}


/* ========== ヒーローセクション ========== */
.gc-hero {
  position: relative;
  width: 100vw;
  min-height: 700px; /* 墓の頭が映るように少し引き上げる */
  
  background: url('/images/GChero-bg.webp') center center / cover no-repeat;
  /*background: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
    url('/images/GChero-bg.webp') center center / cover no-repeat;*/
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  
}
/* 背景画像幅100％用のmargin-left: calc(50% - 50vw);で横スクロールできてしまうため */
body {
  overflow-x: hidden !important;
}

.gc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7); /* 透過具合調整可 */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-inner h1 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-inner h1 span {
  display: block;
  font-size: 1.3rem;
  font-weight: normal;
  margin-top: 0.5rem;
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.hero-message {
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.hero-inner h1,
.hero-lead,
.hero-message {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-hero-contact {
  display: inline-block;
  background: #bca14b;
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-hero-contact:hover {
  background: #a48e3d;
}

.hero-note {
  font-size: 0.9rem;
  color: #444;
  margin-top: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1); /* 見えにくい場合の軽い補強 */
}

.hero-qr-pc {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  display: block; /* モバイルでは非表示 */
}

.hero-qr-pc img {
  margin-top: 0.5rem;
}

/* PC表示時のみ表示 */

/* ========== 料金・対応エリアセクション：縦並び固定版 ========== */
/* セクション全体 */
#price-area {
  padding: 3rem 1.5rem !important;}

/* セクション見出し */
#price-area .section-heading {
  text-align: center !important;
  font-size: 1.8rem !important;
  margin-bottom: 2rem !important;
}

/* wrapper を縦並びに */
.price-area-wrapper {
  display: flex !important;
  flex-direction: column !important;  /* 確実に縦並び */
  gap: 2rem !important;
  /*max-width: 600px !important;*/        /* 中央寄せ幅の目安。調整可 */
  margin: 0 auto !important;
}

/* price-box, area-box の縦積み設定 */
.price-box,
.area-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;

  background-color: #ffffff !important;
  border: 1px solid #e0d9cc;
  border-radius: 0.75rem !important;
  padding: 1.5rem 2rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;

  position: static !important;
  overflow: visible !important;
  margin: 0 !important;
}

.price-box {
	text-align: center;
	border: solid 2px #d4af37 !important;
}

/* タイトル */
.price-title,
.area-title {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #3d3d3d !important;
  margin: 0 0 0.8rem 0 !important;
  line-height: 1.4 !important;
}

/* 金額表示 */
.price-amount {
  font-size: 2rem !important;
  font-weight: bold !important;
  color: #d4af37 !important;
  margin: 0 0 1rem 0 !important;
}

/* 注意書き (.note) */
.note {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #444 !important;
  margin: 0.5rem 0 0 0 !important;
}
.note a {
  color: #c2922b !important;
  text-decoration: underline !important;
}

.price-box-inner {
  display: inline-block;      /* 中央寄せ＋ブロック表示 */
  text-align: left;           /* 内部の文字は左揃え */
  max-width: 100%;            /* 幅制限（任意） */
	padding: 0.5rem 3rem;
}

.price-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: #3d3d3d;
}

/* 対応エリア本文 (.area-text) */
.area-text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #444 !important;
  margin: 0.5rem 0 0 0 !important;
}

/* ----- 対象エリア グーグルマップ ----- */
.map-block {
  width: 100%;
  padding: 2rem 1rem 0 1rem; /* 上部に余白追加 */
  box-sizing: border-box;
}

.map-embed {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 0;
  padding-top: 56.25%; /* 16:9比率 */
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #eee;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.75rem;
}

.map-note {
  display: none;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}



/* ========== サービス内容セクション ========== */
/* ----------------------------
  サービス内容セクション
  ID: #gc-service
---------------------------- */
#gc-service {
  padding: 3rem 1.5rem;
  /*background-color: #fdfdfc;*/ /* ベースは白っぽい */
}

/* 見出し */
#gc-service .section-heading {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  color: #3d3d3d;
}

/* 共通ボックス */
.service-box {
  background-color: #ffffff;
  border: 2px solid #ccc092;
  border-radius: 0.75rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.service-box:nth-of-type(2) {
  border-color: #e4d5b7;
}

/* 共通設定 */
.service-box h3 {
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
  /*background-image: url(/images/gc-bg001.png);
  background-repeat: repeat-x;
  background-size: auto 150px;*/ /* 高さを20pxに縮小 */
  background-position: center bottom;
}

/* 各見出しの下線色を個別に指定 */
.heading-01::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #d4af37; /* 金茶：作業対象 */
}

.heading-02::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #7c3d1b; /* 茶系：作業手順 */
}

.heading-03::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #a87c2d; /* 灰系：使用道具 */
}

.heading-04::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #6a5d4d; /* 焦げ茶：含まれる内容 */
}

.heading-05::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #94784c; /* 濃灰：含まれない内容 */
}

.heading-06::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #b03a2e; /* 黒系：こんな方に選ばれています */
}


/* ラッパー：1カラム */
.service-wrapper-wide {
  max-width: 1000px;
  margin: 0 auto 2rem auto;
}

/* ラッパー：2カラム */
.service-wrapper-half {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto 2rem auto;
}

/* ボックス幅調整（2カラム用） */
.service-wrapper-half .service-box {
  flex: 1 1 400px;
}

/* 左右で色を変える（オプション） */
.service-wrapper-half .service-box:nth-of-type(2n) {
  background-color: #fdfaf4;
}

/* リスト */
.service-box ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.service-box ul li {
  margin-bottom: 0.5rem;
}

/* 補足文など */
.service-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.6;
}

.service-note01 {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.6;
	text-align: center;
	border: solid 1px #9999;
	border-radius: 50px;
	background-image: url(/images/gc-bg001.png);
	background-repeat: repeat-x; 
	background-color: #fdfaf4;
}

.service-subheading {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #3d3d3d;
}

.service-reason-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #444;
  line-height: 1.8;
  font-size: 0.95rem;
}
.service-steps {
  list-style-type: decimal; /* ①②③…風 */
  padding-left: 1.5rem;
  margin: 0;
}

.service-steps li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  color: #444;
}

.em {
  color: #a87c2d;
  font-weight: 500;
}

/* ========== ご依頼の流れセクション ========== */
#flow {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

#flow > * {
  position: relative;
  z-index: 1;
}

#flow h2.section-heading {
  font-size: 2rem;
  font-weight: bold;
  color: #203744;
  text-align: center;
  margin-bottom: 2rem;
  background: url('/images/gc-001.png') no-repeat center;
  background-size: contain;
}

/* リード文 */
#flow .flow-lead {
  color: #444;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ステップ全体（PC：横並び） */
.flow-steps {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 各ステップ */
.step-box {
  background-color: rgba(178, 163, 125, 0.2);
  padding: 24px;
  border: 2px solid #b2a37d;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  flex: 0 0 22%;
  max-width: 240px;
  flex-shrink: 0;
}

.step-box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ステップ画像とラベル */
.step-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.step-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.step-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* 説明文 */
.step-description {
  color: #555;
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.5;
  text-align: left;
}

/* イラスト画像 */
.step-illustration {
  display: flex;
  justify-content: center;        /* 水平中央揃え */
  align-items: flex-end;          /* 下揃え！ */
  min-height: 100px;              /* 高さの土台。画像が小さいときも底に揃える */
}

.step-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  border: solid 2px #ccaf51;
  display: block;
}

/* ========== 作業事例セクション ========== */
#works {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#works::before {
  content: "";
  position: absolute;
  inset: 0;
  /*backdrop-filter: blur(4px);*/ /* .blur */
  z-index: 0;
}

#works > * {
  position: relative;
  z-index: 1;
}

#works h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #203744;
  margin-bottom: 2rem;
  text-align: center;
  background: url('/images/gc-001.png') no-repeat center;
  background-size: contain;
}

/* --- 枠線と背景白 --- */
#works .gc-box-wrap {
  border: solid 2px #ccaf51;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 各事例のブロック */
.work-case {
  margin-bottom: 2.5rem;
}

/* 小見出し */
.case-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #203744;
  margin-bottom: 1rem;
  text-align: left;
}

/* 画像＋説明 */
.case-content {
  margin-bottom: 1rem;
}

/* Before→After 横並び */
#works .before-after {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* 画像の基本設定 */
#works .before-after img {
  width: 48%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
  border: 2px solid #ccaf51;
}

/* 矢印の装飾 */
#works .before-after .arrow {
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
  margin: 0 0.5rem;
  line-height: 1;
}

/* 説明文 */
.case-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* ========== よくあるご質問セクション ========== */
#faq {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

#faq > * {
  position: relative;
  z-index: 1;
}

/* 見出しデザイン（共通バナー背景） */
#faq h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #203744;
  text-align: center;
  margin-bottom: 2rem;
  background: url('/images/gc-001.png') no-repeat center;
  background-size: contain;
}

/* 全体を囲む枠（gc-box-wrap指定） */
#faq .gc-box-wrap {
  border: 2px solid #ccc;
  border-radius: 1rem;
  padding: 2rem;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 各質問のアイテム */
#faq .faq-item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 最後の質問だけ区切り線を消す */
#faq .faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 質問タイトル */
#faq .faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* 回答文 */
#faq .faq-answer {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ========== お申込み・お問い合わせセクション ========== */
#gc-contact {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center !important;
}

#gc-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  /*backdrop-filter: blur(4px);*/ /* 必要ならぼかし */
  z-index: 0;
}

#gc-contact > * {
  position: relative;
  z-index: 1;
}

/* 見出し（バナー背景あり） */
#gc-contact h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #203744;
  text-align: center;
  margin-bottom: 2rem;
  background: url('/images/gc-001.png') no-repeat center;
  background-size: contain;
}

/* 内容ブロック */
#gc-contact .contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* リード文 */
#gc-contact .contact-lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ボタン並び */
#gc-contact .contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

/* PCでは横並び */
@media screen and (min-width: 768px) {
  #gc-contact .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* 共通ボタンスタイル */
#gc-contact .contact-buttons a {
  display: inline-block;
  min-width: 240px;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
}

/* LINEボタン */
#gc-contact .btn-line {
  background-color: #22c55e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
#gc-contact .btn-line:hover {
  background-color: #16a34a;
}

/* フォームボタン */
#gc-contact .btn-form {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#gc-contact .btn-form:hover {
  background-color: #f3f4f6;
}

/* 電話番号ブロック（非表示中） */
#gc-contact .contact-phone {
  font-size: 0.9rem;
  color: #666;
}

#gc-contact .contact-phone-number {
  color: #111;
  font-weight: 500;
}

/* ========== 関連施工のご案内セクション ========== */
#gc-related {
  padding: 5rem 1.5rem 6rem;
  position: relative;
}

/* 背景短冊を右下に表示 */
#gc-related.has-bg-tanzaku::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 280px;
  height: 430px;
  background-image: url('/images/tanzaku-seijaku.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.45;
  transform: rotate(-5deg) translate(0px, 30px);
  pointer-events: none;
  z-index: 0;
}

/* 見出し */
#gc-related h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #203744;
  text-align: center;
  margin-bottom: 2rem;
  background: url('/images/gc-001.png') no-repeat center;
  background-size: contain;
}

/* 白背景の装飾ボックス */
#gc-related .gc-box-wrap {
  width: 90%;
  margin: 0 auto 2rem auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(204, 175, 81, 0.35);
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

/* テキスト本文 */
#gc-related .gc-related-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

/* CTAボタン */
#gc-related .btn-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ccaf51;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#gc-related .btn-link:hover {
  background-color: #b8993f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 中央寄せ補助 */
#gc-related .text-center {
  text-align: center !important;
  padding-top: 1rem;
}

/* =============== gravecleaning モーダル専用 CSS =============== */
  .visit-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
  }

  .visit-modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 90vh; /* ★ 画面高さの90%に制限 */
  border: 3px solid #d4af37;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f9f1e1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

  .modal-header {
    position: relative;
    height: 180px;
    background: url('/images/GChero-bg.webp') center center / cover no-repeat;
  }

  .modal-title {
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }

  .visit-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }

  .modal-body {
  padding: 1.5rem;
  font-size: 1rem;
  color: #333;
  text-align: center;
  overflow-y: auto;  /* ★ スクロール可能にする */
}


  .visit-modal-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #d4af37;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
  }

  .modal-checkbox {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
  }

  .modal-checkbox input {
    margin-right: 5px;
  }
/* ========= ボタン共通ホバー効果 ========= */
.btn-primary:hover, .btn-secondary:hover {
  filter: brightness(90%);
  cursor: pointer;
}
