/* ナチュラル系初期CSS（レスポンシブ修正版＋動画テキスト自動調整） */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  margin: 0;
  padding: 0;
  background-color: #f5f2e9;
  color: #3e3a39;
  line-height: 1.7;
  box-sizing: border-box;
}

header {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

video#bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-below-video {
  text-align: center;
  color: #a68b42;
  font-size: clamp(1.2rem, 4vw, 2rem);
  padding: 1rem;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 400;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre;
}

.message-below-video small {
  color: #3e3a39;
}

.message-below-video {
  background-image: url('images/pattern.jpg'); /* 画像のパスを指定 */
  background-size: cover; /* 画像をdivのサイズに合わせて拡大・縮小 */
  background-position: center; /* 画像の中心をdivの中心に配置 */
  background-repeat: no-repeat; /* 画像を繰り返さない */
  overflow: hidden; /* はみ出した部分を見切れるようにする */
}

.video-controls-wrapper .video-note1 {
  color: white;
}

.container {
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gray-button {
  background-color: #999999;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 50px;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.gray-button:hover {
  background-color: #666666;
  transform: scale(1.05);
}

.section {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.name-heading {
  color: #333;
  font-size: 1.3rem;
  font-weight: normal;
  margin: 0.5em 0;
  line-height: 0.1;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.memorial-section {
  position: relative;
  text-align: center;
  color: #333;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(1.2rem, 4vw, 2rem);
  white-space: pre;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.memorial-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/whiteflower.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;  /* ← お好みで調整 */
  z-index: 0;
}

.memorial-section {
  position: relative;
  z-index: 1;
}

.memorial-section > * {
  position: relative;
  z-index: 1;
}


.memorial-section .text-overlay,
.memorial-section .box {
  position: relative;
  z-index: 1;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  line-height: 0.1;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  white-space: nowrap;
  margin: 0 auto;
  text-align: center;
}

.incense .box p {
  /* お好みの大きさに調整してください */
  font-size: 1.0rem;
  line-height: 1.5; /* 読みやすさ向上のため行間も少し広げると◎ */
  text-align: center; /* 中央揃えにしたいなら追加 */
}


.section.schedule {
  background-color: #e4dce9;
  padding: 2em;
}

.incense {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.message-section {
  position: relative;
  max-width: 700px;
  margin: 2em auto 2em auto;
  padding: 3em 2em;
  background-color: #fdfcfb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  line-height: 1.7;
}

.message-box {
  position: relative;
  z-index: 2;
}


.corner {
  position: absolute;
  width: 120px;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none; /* クリックを邪魔しない */
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}


h1, h2, h3, h4 {
  color: #a68b42;
  margin-bottom: 0.5em;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  text-align: center;
}

.purple-heading {
  color: #a688b1 !important;
}


p {
  margin: 0.5em 0;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

img.portrait {
  display: inline-block;
  vertical-align: bottom;
  margin: 1em auto 1em auto;
  max-width: 85%;
  height: auto;
  border-radius: 8px;
   display: inline-block;
   padding: 10px;
   background-color: white;
   border: 5px solid #3e3a39;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gallery img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  object-fit: contain;
}

.gallery {
  display: flex;               /* 子要素（img）を横並びにする */
  flex-wrap: wrap;             /* はみ出す画像は自動で次の行へ折り返す */
  justify-content: center;     /* 画像を中央寄せにする */
  gap: 1rem;                   /* 画像同士のすき間を1rem（16px程度）にする */
  padding: 1rem;               /* ギャラリー全体に内側の余白を追加（上下左右） */
}

button, .button {
  background-color: #a688b1;
  color: white;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 0.7em 0;
  transition: all 0.2s ease;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 1.05rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* ← ふんわり影！ */
  box-sizing: border-box;
}

button:hover, .button:hover {
  background-color: #633c5b;
  transform: scale(1.03); /* ← クリック前のアニメ感！ */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* ← ホバー時影アップ */
}


.button-group {
  text-align: center;
  margin: 2em 0;
}

.button-group2 {
  text-align: center;
  margin: 0 0 5em 0;
}

.button-group .button {
  margin-bottom: 0.5em;
}

.button-group p {
  margin: 0.6em auto 1.5em auto;
  font-size: 0.95rem;
  color: #444;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.boxed-heading {
  background-color: #633c5b;
  color: #fff;
  width: 100%;                /* ← 横幅いっぱい！ */
  padding: 0.1em 1em;
  border-radius: 0;           /* ← 丸みをなくす（必要に応じて） */
  font-size: 1.2rem;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  margin: 2.5em 0 0 0;
  text-align: center;         /* ← 文字だけ中央に */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* ───────────────────────────────────
   送金／贈答方法セクション
─────────────────────────────────── */
/* guided-section 内の h3・h4.purple-heading を methods-section と同じゴールドに */
.guided-section .purple-heading {
  color: #a68b42 !important;
}

/* guided-section のみ、h2 と h4 の間隔を狭く */
.guided-section h2.purple-heading {
  margin-bottom:0;  /* お好みで数値を調整 */
}

/* guided-section のみ、h4 と p の間隔を広く */
.guided-section h4.purple-heading {
  margin-top: 0;     /* h3 との間隔調整（上マージン） */
  margin-bottom: 2em;  /* p との間隔調整（下マージン） */
}

.methods-section h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.methods-section h4 {
  margin-top: 0;
}

/* グリッドレイアウトで横並び＋レスポンシブ対応 */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0 1rem;
}

/* 各カード */
.method-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* カード内タイトル */
.method-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #333;
  width: 100%;
}

/* 説明文 */
.method-card p {
  flex: 1; /* ボタンを下寄せしたいときに便利 */
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #555;
}

/* 詳しく見るボタン */
.method-button {
  display: inline-block;
  padding: 0.5em 1.2em;
  font-size: 0.9rem;
  color: #333;
  border: 1px solid #333;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.method-button:hover {
  background: #333;
  color: #fff;
}

.faq-section {
  background-color: #f9f7fa;
  padding: 2em 1.5em;
  border-radius: 8px;
  margin: 2em 0;
  box-sizing: border-box;
}

.faq-section {
  background-image: url('images/pattern.jpg'); /* 画像のパスを指定 */
  background-size: cover; /* 画像をdivのサイズに合わせて拡大・縮小 */
  background-position: center; /* 画像の中心をdivの中心に配置 */
  background-repeat: no-repeat; /* 画像を繰り返さない */
  overflow: hidden; /* はみ出した部分を見切れるようにする */
}

.faq-section h4 {
  text-align: left;
  margin-top: 1.5em;
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff;
}

/* 回答は初期非表示 */
.faq-answer {
  display: none;
  padding: 0 1em 1em;
  line-height: 1.6;
  border-bottom: 1px solid #ddd;
}

/* 質問見出しのスタイル */
.faq-question {
  position: relative;
  display: block;             /* ブロック要素として幅いっぱいに広げる */
  width: 100%;                /* ボックスを親幅いっぱいに */
  box-sizing: border-box;     /* padding を幅に含める */
  padding: 0.75em 2.5em 0.75em 1em;  /* 上右下左 の順。右側に2.5em確保 */
  background: #a68b42;           /* 白背景 */
  color: #fff;             /* ゴールド文字 */
  border-radius: 4px;
  cursor: pointer;
  text-align: left;           /* テキストを左揃え */
  transition: background 0.2s;
}

/* 質問見出しホバー */
.faq-question:hover {
  opacity: 70%;
}

/* ▼アイコン */
.faq-icon {
  position: absolute;
  top: 50%;
  right: 1em;                 /* 右端から1em */
  transform: translateY(-50%);
  font-size: 0.9em;
  transition: transform 0.2s;
  pointer-events: none;       /* アイコン自体にはクリックイベントを渡さない */
}

/* 開いたときにアイコンを回転 */
.faq-question.open .faq-icon {
  transform: translateY(-50%) rotate(180deg);
}



.left-align-links {
  text-align: left;
  padding-left: 1.5em; /* 少し内側に余白を入れて読みやすく */
}

.left-align-links h3 {
  text-align: left;
}

.left-align-links a {
  text-decoration: none;
  color: #5c4a3b;
  font-weight: 500;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.left-align-links a:hover {
  text-decoration: underline;
}


/* ——— ボタンを左下に移動 ——— */
.video-controls {
  position: absolute;
  bottom: 1rem;       /* 下から1rem */
  left: 1rem;         /* 左から1rem */
  display: flex;      /* 横並び */
  gap: 0.5rem;        /* ボタン間の隙間 */
  z-index: 2;         /* テキストより前面に */
}

/* ——— 注意書きをボタンの上に ——— */
.video-note {
  bottom: calc(1rem + 3rem + 0.5rem);
  /* ↑ ボタンの高さ＋ボタン下の1rem＋余白0.5rem */
  left: 1rem;
  font-size: 0.8rem;
  color: #fff;        /* 白抜きテキスト */
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  z-index: 2;
}

/* —— ボタン内のテキストサイズ微調整（必要なら） —— */
.video-controls .button-text {
  font-size: 0.7rem;
}

/* ラッパーを左下に固定 */
.video-controls-wrapper {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

/* ボタン群を横並びに */
.video-controls {
  display: flex;
  gap: 0.5rem;
}

/* 同じ大きさ・角丸長方形のボタン */
.video-button {
  width: 4rem;                /* 幅を固定 */
  height: 4rem;               /* 高さを固定 */
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* アイコンサイズ */
.video-button .button-icon {
  font-size: 1.25rem;
}

/* ボタン文字 */
.video-button .button-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1;
  white-space: nowrap;
}

/* 注釈は必ずボタン下に横書きで */
.video-note {
  font-size: 0.75rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: normal;
  writing-mode: horizontal-tb;
  pointer-events: none; /* タップを透過したい場合 */
}


/* ▼▼▼ ここから差し替え ▼▼▼ */

/* --- シェアセクション --- */
.share-section {
  text-align: center;
  padding: 2em 1.5em;
  margin: 2em auto;
}

.share-buttons {
  margin-top: 1em;
}

/* ボタンの基本スタイル */
.share-buttons .share-button {
  background-color: #633c5b; /* ご指定の濃い紫色 */
  color: white !important;
  padding: 0.8em 2em;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  border: none;
}

/* ホバー時のスタイル（少し暗くする） */
.share-buttons .share-button:hover {
  background-color: #502f4a; /* ホバー時に少し暗くした色 */
  transform: scale(1.05);
}
/* ▲▲▲ ここまで差し替え ▲▲▲ */


footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: #333;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

footer a {
  color: #7a5c43;  /* ← 和風でなじむ茶系（おすすめ） */
  text-decoration: none;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

footer a:hover {
  text-decoration: underline;
  color: #5f4c3d; /* ← ホバー時に少し濃くなると自然！ */
}


.subdued-heading {
  text-align: center;
}

.no-bullets {
  list-style: none;
  padding-left: 0;
  width: fit-content;       /* リストの幅を中身に合わせる */
  margin: 0 auto;           /* 中央に配置！ */
  text-align: left;         /* 中の文字は左揃え */
}

.no-bullets2 {
  list-style: none;
  margin-top: 0;
  padding-left: 0;
  width: fit-content;       /* リストの幅を中身に合わせる */
  text-align: left;         /* 中の文字は左揃え */
}

.no-bullets2 a {
  color: #7a5c43;  /* ← 好きな色に変更OK！ */
  text-decoration: underline;
  font-weight: 500;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.no-bullets2 a:hover {
  text-decoration: underline;
  color: #5f4c3d; /* ← ホバー時に少しだけ濃く */
}

.no-bullets li {
  white-space: nowrap;
}

.incense-video {
  width: 200px;
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  margin: 1em auto 0.5em auto;
  display: block;
}

.center-text {
  text-align: center;
}



@media screen and (max-width: 768px) {
  .overlay-text {
    font-size: clamp(1rem, 5vw, 1.6rem);
  }

  .container {
    padding: 1rem;
  }

  .gallery img {
    max-width: 100px;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .gallery img {
    max-width: 90%;
  }

  /* コンテナ自体を約1.5倍に */
  .message-below-video {
    /* 16px × 1.5 ≒ 24px 相当 */
    font-size: 1.5em;
  }
  /* small タグ内の文言も同じ大きさに揃える */
  .message-below-video small {
    font-size: 0.8em;
  }

  .message-below-video {
    /* 改行は保持しつつ、行末で折り返す */
    white-space: pre-wrap;
    word-break: break-word;
  }
