/* ===================================
   ベース設定
=================================== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロール抑止 */
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #F9F7ED;
  color: #2B5339;
  line-height: 1.8;
}

/* ===================================
   見出し・セクション共通
=================================== */
h1, h2, h3 {
  text-align: center;
  font-weight: 600;
}

.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bg-light {
  background: #fffef9;
}

/* ===================================
   Heroセクション（動画背景）
=================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh; /* ← 安全策 */
  overflow: hidden;
  color: #fff;
  text-align: center;
}

/* 🎥 Hero動画：Safari横画面対応 */
.hero video.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  z-index: 0;
	/*filter: brightness(0.65) blur(1px);*/
	filter: brightness(0.65) blur(0px);
}

/* 💬 Hero内テキスト */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.hero-inner h1 {
  font-size: 2rem;
  margin-bottom: 1.2em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-inner p {
  line-height: 1.6;
  margin-bottom: 1.5em;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero .btn {
  background: #EFCB3E;
  color: #2B5339;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: 0.25s;
}

.hero .btn:hover {
  background: #2B5339;
  color: #fff;
}

/* Safariなど古い環境のフォールバック */
@supports not (height: 100dvh) {
  .hero {
    height: 100vh;
  }
}

/* スマホ用微補正 */
@media (max-width: 768px) {
  .hero video.hero-video {
    object-position: 48% center;
  }
  .hero-inner {
    padding: 2.5rem 1.5rem 3rem;
  }
  .hero-inner p {
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 1.2em;
  }
  .hero .btn {
    display: inline-block;
    font-size: 0.95rem;
    padding: 0.7em 1.8em;
    margin-top: 0.5em;
  }
}

/* ===================================
   3つの入口セクション
=================================== */
/*.choices {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 10px;
}*/



.choices {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  flex-wrap: wrap; /* ← wrapに戻す */
  margin-top: 10px;
}




.choice {
  background: #fff;
  border: 2px solid #2B5339;
  border-radius: 15px;
  padding: 20px;
  flex: 1 1 250px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* ===================================
   フローセクション
=================================== */
.flows {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.flow {
  flex: 1 1 250px;
}

/* 吹き出し */
.bubble {
  background: #fff;
  border: 2px solid #2B5339;
  border-radius: 15px;
  padding: 10px 15px;
  margin: 10px 0;
  position: relative;
}

.bubble.small {
  font-size: 0.9em;
  margin-left: 15px;
}

/* 吹き出し色分け */
.bubble.yes {
  background: #E8F5E9;
  border-color: #4CAF50;
  color: #2B5339;
}

.bubble.no {
  /*background: #FFF3E0;
	border-color: #E94E3D;*/
	background: #E8F5E9;
  border-color: #4CAF50;
  color: #2B5339;
}

.bubble.yes::before {
  content: "👍";
  color: #4CAF50;
  font-weight: bold;
  margin-right: 6px;
}

.bubble.no::before {
	content: "👍";
	color: #E94E3D;
  font-weight: bold;
  margin-right: 6px;
}

/* ===================================
   details / summary
=================================== */
details {
  margin: 15px 0;
  padding: 10px 15px;
  border: 2px solid #2B5339;
  border-radius: 10px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* ===================================
   YES / NO ボタン
=================================== */
.choices button {
  border: 2px solid #2B5339;
  border-radius: 20px;
  background: #fff;
  color: #2B5339;
  padding: 8px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  touch-action: manipulation;
}

/* 押した瞬間の沈み込み */
.choices button:active {
  transform: scale(0.93) translateY(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25) inset;
  transition: transform 0.05s ease-out;
}

/* Hover時 */
@media (hover: hover) {
  .choices button:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 5px 8px rgba(0,0,0,0.18);
  }
}

/* 選択中ボタン */
.choices button.selected {
  background: #E8F5E9;
  border-color: #4CAF50; /* 明るい緑でフチを維持 */
  box-shadow: 0 0 6px rgba(76,175,80,0.25); /* やわらかい外光 */
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}




/* グレーアウト */
.choices button.disabled {
  opacity: 0.5;
  border-color: #999;
  color: #999;
  cursor: default;
}

/* 統一カラー */
.choices button,
.choices button.yes,
.choices button.no {
  border-color: #2B5339 !important;
  color: #2B5339 !important;
}

/* === 光のニュアンス（温もりhover） === */
@media (hover: hover) {
  .choices button:hover:not(.disabled) {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    box-shadow: 0 5px 10px rgba(43,83,57,0.15);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* ハイライト反射 */
@keyframes buttonHighlight {
  0% {
    box-shadow: 0 2px 4px rgba(0,0,0,0.25) inset;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
  }
  50% {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,255,250,0.95));
    box-shadow: 0 0 10px rgba(255,255,255,0.7);
  }
  100% {
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,250,245,0.9));
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  }
}

.choices button.highlighted {
  animation: buttonHighlight 0.6s ease-out;
}

/* ===================================
   フロー分岐制御
=================================== */
.yes-branch,
.no-branch {
  display: none;
}

.yes-branch.show,
.no-branch.show {
  display: block;
}

.result {
  margin-top: 10px;
  display: none;
}

.result.show {
  display: block;
}

/* ===================================
   フッター・その他
=================================== */
.outro {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-form button {
  background: #2B5339;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.contact-form button:hover {
  background: #E94E3D;
}

.footer {
  background: #2B5339;
  color: #fff;
  text-align: center;
  padding: 40px 10px;
  font-size: 0.9em;
}

/* ===================================
   レスポンシブ対応
=================================== */

@media (max-width: 768px) {
  .flows {
    flex-direction: column;
    align-items: center;
	}
	/* ← .choices は除外（横並び維持） */
  #choices .choices {
    flex-direction: column; /* ← スマホで縦並び */
    align-items: center;
  }
}







/* 横向き時（スマホ限定） */
@media screen and (orientation: landscape) and (max-width: 1024px) {
  .hero-inner {
    padding: 1.2rem 0;                /* ← 少しだけ上下を詰めて中央寄せ */
    transform: scale(0.8);
    transform-origin: center center;
  }

  .hero-inner h1 {
    font-size: 1.5rem;                /* ← ほんの少し小さくして見切れ防止 */
    margin-bottom: 0.6em;
    line-height: 1.4;
    padding: 0;
    letter-spacing: 0.02em;           /* ← 横向きだと文字間が広がるのを軽減 */
  }

  .hero-inner p {
    font-size: 0.85rem;               /* ← 可読性とバランスの間 */
    line-height: 1.45;
    margin-bottom: 1em;
    text-wrap: balance;               /* ← iOS 16+ Safari対応、折返し最適化 */
  }

  .hero .btn {
    font-size: 0.9rem;
    padding: 0.5em 1.4em;
    margin-top: 0.3em;
  }
}






/* ===================================
   Flowセクション ふわっと自然アニメ版
=================================== */

/* YES/NOボタン：選択時 */
.choices button.selected {
  background: #E8F5E9;
  border-color: #4CAF50; /* 明るい緑でフチを維持 */
  box-shadow: 0 0 6px rgba(76,175,80,0.25); /* やわらかい外光 */
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


/* 分岐のふわっとフェードイン（葉の揺れ感） */
.yes-branch.show,
.no-branch.show {
  display: block;
  animation: fadeInBranch 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInBranch {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  50% {
    opacity: 0.8;
    transform: translateY(2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 結果吹き出しも同じくふんわり */
.result.show {
  display: block;
  animation: fadeInResult 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInResult {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  60% {
    opacity: 0.85;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ボタン押下時の光のゆらぎ */
.choices button:active {
  box-shadow: 0 0 10px rgba(76,175,80,0.25);
  transform: scale(0.97);
  transition: transform 0.08s ease;
}


/* ===================================
   質問 summary：開いているときだけ淡い緑
=================================== */

details[open] summary {
  background: #E8F5E9;
  border-color: #4CAF50;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* hoverしたときも軽く明るく */
summary:hover {
  background: #F8FBF8;
  transition: background 0.3s ease;
}



.flow-choices {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-top: 0.8em;
  margin-bottom: 1.4em;
}

@media (max-width: 768px) {
  .flow-choices {
    flex-wrap: nowrap; /* スマホでも横並び */
  }
}

