body {
  font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #f5f3ef;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.site-header {
  position: fixed;
  /* 固定ヘッダーにしたい場合 */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* .main {
  background-image: url(../image/bg_.jpg);
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: contain;
  min-width: 980px;
  min-height: 600px;
}

.main .content_ttl {
  text-align: center;
} */

.fv {
  position: relative;
  display: grid;
  /* セクションを最低でも1画面ぶん確保（URLバーの影響が少ない100svh推奨） */
  min-height: 100svh;
  /* 背景を下に敷くための積層コンテキスト */
  isolation: isolate;
}

.fv>* {
  grid-area: 1 / 1;
}

/* 背景レイヤー */
.fv-bg {
  position: sticky;
  top: 0;
  height: 100svh;
  /* 1画面ぶんで固定表示 */
  width: 100%;
  z-index: -1;
  /* 中身より背面へ */
  background: url(../image/bg_.jpg) center / cover no-repeat;
  /* 背景だけに若干の暗幕を入れたい場合 */
  filter: brightness(0.95);
}

/* 中身 */
.fv-inner {
  position: relative;
  z-index: 0;
  /* 最低1画面は確保。中身が増えればいくらでも伸びてOK */
  min-height: 100svh;
  /* 余白など適宜 */
  padding: clamp(16px, 20vw, 100px) 14px;
}

.ttltxt {
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(4px 6px 8px #ffff);
}

.ttltxt img {
  width: 320px;
  margin-left: 10px;
}

.sub_ttltxt {
  font-weight: 700;
  font-size: 20px;
  font-family: 'HPR-NSJ-Bold', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  text-shadow: 0 0 5px #fff, 3px 3px 5px #fff, -3px -3px 5px #fff, -3px 3px 5px #fff, 3px -3px 5px #fff;
  line-height: 1.4;
}

/* スマホの時だけ改行させるクラス */
.br-sp {
    display: none;
}

@media (max-width: 600px) {
    .br-sp {
        display: block;
    }
}

@media screen and (max-width: 600px) {
  .ttltxt {
    flex-direction: column;
    text-align: center;
  }

  .ttltxt img {
    width: 350px;
    margin-top: 10px;
  }

  .sub_ttltxt {
    font-size: 5vw;
  }
}
.big-number {
  font-size: 1.5em; /* お好みで調整 */
  font-weight: bold;
  color: #0b6f1c;
}
.chat-container {
  max-width: 800px;
  margin: 25px auto;
  background: #fffefc;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* border-top: 8px solid #375b72; */
}

.simulator-title {
  text-align: center;
  background-color: #e8e1d1;
  padding: 16px 12px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 2px solid #375b72;
  margin: -20px -20px 20px -20px;
}

.simulator-title h1 {
  margin: 0;
  font-size: 1.4em;
  color: #375b72;
  font-weight: bold;
}

/* .progress-container {
  position: relative;
  height: 50px;
  margin-bottom: 4px;
} */
 .progress-container {
  position: relative;
  width: 100%;
  height: 40px;
  margin-top: 25px;
}

/* .progress-road {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 10px;
  background: #c0c0c0;
  border-radius: 5px;
  transform: translateY(-50%);
} */
 .progress-road {
  position: relative;
  background-color: #ddd;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  --progress: 0%;
}

/* 擬似要素で伸びるバー */
.progress-road::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress); /* ← ここにCSS変数を使用 */
  background-color: #4caf50;
  transition: width 0.4s ease;
}

.walker-icon {
  position: absolute;
  top: -1em;
  left: 0%;
  transition: left 0.5s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 24px;
}

.speech-bubble {
  background: #fff;
  border: 1px solid #999;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
  position: relative;
  white-space: nowrap;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -5px;
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.house-icon {
  position: absolute;
  top: -1em;
  right: -4px;
  font-size: 24px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.house-icon.active {
  opacity: 1;
  animation: sway 1.2s ease-in-out infinite;
}

@keyframes sway {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.progress-text {
  text-align: right;
  font-size: 0.9em;
  color: #444;
  font-weight: bold;
  margin-top: 4px;
}

#chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  font-size: 1.5em;
  text-align: center;
  background-color: #edffe8;
  border: 1px solid #94e2a1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: bold;
  color: #0b6f1c;
  margin-bottom: 10px;
  max-width: 100%;
  animation: fadeSlideIn 0.3s ease both;
}

.image-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.image-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 7.5px;
  background: #fcfbf9;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, transform 0.08s;
  min-width: 130px;
  max-width: 100%;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  text-decoration: none;
}


@media screen and (min-width: 600px) {
  .image-option:hover {
    background: #dcffdc;
    border: 1px solid #226b22;
    color: #226b22;
    background-position: right center;
    background-size: 200% auto;
    -webkit-animation: pulse 2s infinite;
    animation: ripple 1.5s infinite;
  }
}
@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 #43ca36;
  }

  70% {
    box-shadow: 0 0 0 10px rgb(27 133 251 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(27 133 251 / 0%);
  }
}

.image-option:active {
  transform: scale(0.98);
}

.image-option img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.image-option span {
  font-size: 0.95em;
}

.image-options.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  column-gap: 12px;
  row-gap: 12px;
  justify-content: center;
  justify-items: center;
}

.image-option.selected {
  border: 2px solid #2ec198;
  background-color: #e7f9f3;
  box-shadow: 0 0 0 2px rgba(46, 193, 152, 0.1) inset;
}

.select-box {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 8px;
  background: #fffefc;
}

.back-button {
  margin: 0 auto;
  padding: 8px 16px;
  background: #15803d;
  color: #fff;
  font-size: 0.9em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cta-button {
  margin-top: 20px;
  text-align: center;
}

.cta-button a {
  background: #375b72;
  color: #fff;
  padding: 14px 28px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.result-box {
  background: #f2f8f7;
  border: 1px solid #c2d5d6;
  border-radius: 10px;
  padding: 20px;
  font-size: 1em;
  color: #333;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 10px;
}

.result-box a {
  color: #0b3e6f;
  text-decoration: underline;
  word-break: break-all;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-message {
  font-size: 1.2em;
  text-align: center;
  color: #0b3e6f;
  font-weight: bold;
  background-color: #e6f4fa;
  border: 2px solid #90c4e4;
  padding: 16px;
  border-radius: 10px;
  line-height: 1.8;
}

.highlight-amount {
  font-size: 1.8em;
  color: #d33c3c;
  display: inline;
  margin-left: 4px;
}

.annotation {
  font-size: 0.165em;
  color: #bbb;
  margin-top: 8px;
  text-align: left;
  line-height: 1.4;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@media screen and (max-width: 600px){
  .annotation{
    font-size: 0.5em;
  }
}
.cta-image {
  animation: pulse 1.8s ease-in-out infinite;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.input-wrap {
  display: grid;
  gap: 8px;
}

.input-label {
  text-align: left;
  font-weight: bold;
  color: #375b72;
}

.input-box {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fffefc;
  box-sizing: border-box;
}

.zip-help {
  font-size: 0.9em;
  color: #666;
  text-align: left;
}

.zip-fallback {
  font-size: 0.9em;
  text-align: left;
}

.zip-fallback a {
  color: #0b3e6f;
  text-decoration: underline;
}

.zip-status {
  font-size: 0.95em;
  text-align: left;
}

.zip-status.ok {
  color: #15803d;
}

.zip-status.err {
  color: #b91c1c;
}

.next-btn {
  padding: 10px 16px;
  background: #375b72;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

.selection-status {
  text-align: left;
  font-size: 0.95em;
  color: #15803d;
  font-weight: bold;
  margin: 6px 0 10px;
}

.section-gap-lg {
  margin-top: 28px;
}

@media screen and (max-width: 600px) {
  .chat-container {
    margin: 20px 10px;
    padding: 16px;
  }

  .image-option {
    width: 130px;
  }

  .image-option img {
    width: 60px;
    height: 60px;
  }

  .message {
    display: block;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    position: relative;
  }

  .highlight-message {
    font-size: 1em;
    padding: 12px;
    line-height: 1.6;
  }

  .highlight-amount {
    font-size: 1.5em;
  }

  .green-cta {
    font-size: 1em;
    padding: 12px 16px;
  }

  .select-box,
  .input-box {
    font-size: 0.95em;
    padding: 10px;
  }

  .result-box {
    padding: 16px;
    font-size: 0.95em;
  }

  .speech-bubble {
    font-size: 11px;
    padding: 2px 6px;
  }

  .back-button {
    font-size: 0.85em;
    padding: 6px 12px;
  }

  .progress-text {
    font-size: 0.8em;
  }

  .message,
  .result-box,
  .image-option span {
    font-size: clamp(0.85em, 3.5vw, 1em);
    word-wrap: break-word;
    white-space: normal;
  }

  .image-option span {
    font-size: clamp(0.8em, 3.5vw, 0.95em);
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
  }

  .image-option {
    min-width: auto;
    max-width: 100%;
    padding: 10px 7.5px;
  }

  .message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    /* 高さを確保して中央揃えを感じやすくする */
    text-align: center;
  }
}


.annotation_txt {
  max-width: 800px;
  margin: 25px auto;
  font-size: 15px;
  font-family: 'HPR-NSJ-Bold', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  text-shadow: 0 0 10px #fff, 3px 3px 10px #fff, -3px -3px 10px #fff, -3px 3px 10px #fff, 3px -3px 10px #fff;
  line-height: 1.4;
}

.annotation_txt p {
  text-indent: -1em;
  /* 1文字分ぶら下げ */
  padding-left: 1em;
  /* 全体を1文字右にずらす */
}

footer a {
  text-decoration: none;
}

.footer_inner {
  display: flex;
  justify-content: space-around;
  max-width: 550px;
  margin: 0 auto;
  padding: 30px 0;
}

.footer_link:hover{
 color: #ff7c07;
}