html, body {
  overflow-x: hidden;
  width: 100%;
}
body {
    font-feature-settings: "palt";
    line-height: 1.8;
    font-size: 20px;
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}
.cta-glow {
    box-shadow: 0 12px 30px -10px rgba(6, 199, 85, 0.5);
}
.soft-shadow {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
}
.text-gradient {
    background: linear-gradient(135deg, #006e2b 0%, #06c755 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-subtle-pattern {
    background-image: radial-gradient(#006e2b11 1px, transparent 1px);
    background-size: 20px 20px;
}
.curve-separator {
    aspect-ratio: 900/100;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.animate-pop-burst {
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popIn {
    0% { transform: scale(0.8) translateY(10px); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.bar-grow {
    height: 0;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-grow.animate {
    height: var(--bar-height);
}
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}



#hero-character-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.9);
    opacity: 0;
    height: 140px;
    width: 140px;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
    z-index: 20;
    pointer-events: none;
    transform-origin: bottom center;
}
#hero-character-container.show {
    transform: translate(-50%, 23px) scale(1);
    opacity: 1;
}

@media (min-width: 768px) {
    #hero-character-container {
        height: 280px;
        width: 280px;
        bottom: 110px;
    }
    #hero-character-container.show {
        transform: translate(-50%, 45px) scale(1);
    }
}

#point-counter {
    font-family: 'Montserrat', sans-serif;
}

/* === シミュレーター関連スタイル === */

/* カードの器 */
.simulator.card {
  background: #fff;
  border: 3px solid #151e15;
  border-radius: 32px;
  box-shadow: 0 8px 0 #151e15;
  padding: 24px 30px;
  margin: 0 auto;
}
.sim-ttl {
  margin: 0 0 20px;
  font-weight: 900;
  color: #151e15;
  font-size: 1.4rem;
  text-align: center;
}

/* 入力レイアウト */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
}
.sim-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sim-label {
  font-weight: 900;
  color: #006e2b;
  font-size: 0.95rem;
  line-height: 1.3;
}
.sim-label-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  display: inline-block;
  white-space: nowrap;
}
.sim-input-wrap {
  position: relative;
  width: 100%;
}
.sim-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #151e15;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  color: #151e15;
  outline: none;
  box-shadow: 3px 3px 0 #151e15;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* type="number" のデフォルトのスピンボタンを非表示にする */
.sim-input[type="number"]::-webkit-outer-spin-button,
.sim-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sim-input[type="number"] {
  -moz-appearance: textfield;
}
.sim-input:focus {
  border-color: #006e2b;
  box-shadow: 0 0 0 3px rgba(0, 110, 43, 0.15), 3px 3px 0 #151e15;
}
.sim-input--num {
  padding-right: 48px;
}
.sim-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #151e15;
  font-weight: 900;
  pointer-events: none;
}
.sim-input--select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.sim-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-color: #151e15;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

/* ボタン */
.sim-btn {
  grid-column: span 1;
  padding: 12px 16px;
  border: 3px solid #151e15;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  background: #006e2b;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #151e15;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.sim-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #151e15;
}
.sim-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #151e15;
}

/* 結果表示 */
.sim-result {
  margin-top: 24px;
}
.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.result-card {
  background: #fff;
  border: 2px solid #151e15;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 0 #151e15;
}
.result-card--coop {
  background: #ecf9f0;
  border-color: #151e15;
}
.rcap {
  display: inline-block;
  font-weight: 900;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.rcap--green {
  color: #006e2b;
}
.rnum {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
  white-space: nowrap;
}
.rnum #nowPrice, .rnum #coopPrice {
  font-size: 2rem;
  font-weight: 900;
  color: #151e15;
  font-family: 'Montserrat', sans-serif;
}
.runit {
  color: #151e15;
  font-weight: 900;
  font-size: 1rem;
}

/* おトク表示 */
.save-brief {
  margin: 20px 0 0;
  text-align: center;
  background: #f3fcee;
  border: 2px dashed #006e2b;
  border-radius: 12px;
  padding: 12px;
}
.save-brief__month {
  margin: 0;
  font-weight: 900;
  font-size: 1.3rem;
  color: #151e15;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.save-brief__month b {
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
}
.save-brief .unit {
  color: #151e15;
  font-weight: 900;
}
.save-brief .label {
  color: #006e2b;
  font-weight: 900;
}
.save-brief .save-percent {
  color: #666;
  font-weight: 700;
}
.save-brief__year {
  margin: 4px 0 0;
  color: #151e15;
  font-weight: 900;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* インパクト帯（3Dフラット調へ） */
.save-impact {
  margin-top: 20px;
}
.impact-hero {
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  color: #151e15;
  background: #f9ab00;
  border: 3px solid #151e15;
  box-shadow: 0 8px 0 #151e15;
  position: relative;
  overflow: hidden;
}
.impact-cap {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #151e15;
  color: #151e15;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 0 #151e15;
}
.impact-amt {
  margin: 12px 0 4px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.impact-num {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  color: #151e15;
}
.impact-unit {
  color: #151e15;
  font-weight: 900;
  font-size: 1.2rem;
}
.impact-yr {
  margin: 10px 0 0;
  color: #151e15;
  font-weight: 900;
  font-size: 1.3rem;
  white-space: nowrap;
}
.impact-yr b {
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
}

/* 例え文 */
.impact-compare {
  margin: 12px 0 0;
  text-align: center;
  color: #151e15;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
}
.impact-compare b {
  color: #006e2b;
  font-size: 1.2rem;
  font-weight: 900;
}

/* 割引率チップ */
.impact-chip {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
  background: #006e2b;
  color: #fff;
  font-size: 0.95rem;
  border: 2px solid #151e15;
  box-shadow: 0 2px 0 #151e15;
}

/* 紙吹雪 */
.impact-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.confetti {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-10px) rotate(0deg);
  animation: confDrop 900ms ease-out forwards;
}
@keyframes confDrop {
  0%   { opacity: 0; transform: translateY(-10px) rotate(0deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(80px) rotate(240deg); }
}

/* レスポンシブ */
@media (max-width: 960px) {
  .sim-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sim-btn {
    grid-column: span 1;
  }
}
@media (max-width: 767px) {
  .simulator.card {
    padding: 20px 16px;
    border-radius: 24px;
  }
  .sim-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sim-btn {
    grid-column: span 1;
    margin-top: 8px;
  }
  .result-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== 共通フッターデザイン ===== */
:root {
  --footer-bg: #0F2B1E;
  --footer-text: #EAF7EE;
  --footer-dim: #CDE8D6;
  --footer-link: #B7F5CB;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 24px 110px;
}

.footer-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 10px 0 32px;
}
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin: 10px 0;
}
.footer-col a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px dashed transparent;
  transition: opacity .2s ease, border-color .2s ease;
}
.footer-col a:hover {
  opacity: .9;
  border-color: rgba(183, 245, 203, .45);
}

/* 連絡先 */
.footer-col--contact .footer-tel {
  margin: 0.5rem 0 0;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.footer-col--contact .footer-tel:first-of-type {
  font-size: 0.95rem;
  color: var(--footer-dim);
  font-weight: 500;
}
.footer-col--contact .footer-hours {
  margin: 0.4rem 0 0;
  color: var(--footer-dim);
  font-size: 0.85rem;
}

/* 下段バー */
.footer-bar {
  max-width: 1120px;
  margin: 24px auto 0;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-copy {
  color: var(--footer-dim);
  font-size: 0.85rem;
}
.to-top {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: .9;
  font-weight: 700;
}
.to-top:hover {
  opacity: 1;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===== ページの先頭へ戻るフローティングボタン（tp.png） ===== */
.fixed-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 90px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fixed-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.fixed-to-top:hover {
  transform: translateY(-6px);
}
.fixed-to-top-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fixed-to-top img {
  width: 100%;
  height: auto;
}
.fixed-to-top-text {
  font-size: 11px;
  font-weight: 900;
  color: #151e15;
  background-color: #ffffff;
  border: 2px solid #151e15;
  border-radius: 9999px;
  padding: 2px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 0 #151e15;
}

@media (max-width: 768px) {
  .fixed-to-top {
    bottom: 24px;
    right: 16px;
    width: 70px;
  }
  .fixed-to-top-text {
    font-size: 9px;
    padding: 1px 6px;
  }
}

/* ===== Heroセクション：おしゃれな方眼グリッド背景 ===== */
.hero-grid-pattern {
  background-color: #ffffff;
  background-image:
    linear-gradient(to bottom, transparent 60%, #ffffff 100%),
    linear-gradient(rgba(0, 110, 43, 0.1) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 110, 43, 0.1) 1.5px, transparent 1.5px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(247, 250, 248, 0.8) 80%);
  background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%;
  background-position: center;
}

/* ===== キャッチコピー：蛍光マーカーアニメーション ===== */
.marker-yellow-anim,
.marker-green-anim {
  background-repeat: no-repeat;
  background-size: 200% 0.55em;
  background-position: 100% 85%;
  animation: drawMarker 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.marker-yellow-anim {
  background-image: linear-gradient(to right, rgba(249, 171, 0, 0.4) 50%, transparent 50%);
}

.marker-green-anim {
  background-image: linear-gradient(to right, rgba(6, 199, 85, 0.25) 50%, transparent 50%);
}

/* 遅延設定 */
.delay-500 {
  animation-delay: 0.5s;
}
.delay-1200 {
  animation-delay: 1.2s;
}
.delay-2000 {
  animation-delay: 2.0s;
}

@keyframes drawMarker {
  0% {
    background-position: 100% 85%;
  }
  100% {
    background-position: 0% 85%;
  }
}

/* ===== キャンペーンカード共通の3Dフラットスタイル ===== */
.flat-3d-card {
  background: #ffffff;
  border: 3px solid #151e15;
  border-radius: 32px;
  box-shadow: 0 8px 0 #151e15;
}

.flat-3d-button {
  border: 3px solid #151e15;
  box-shadow: 0 4px 0 #151e15;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.flat-3d-button:hover {
  transform: translateY(4px);
  box-shadow: 0 0 0 #151e15;
}

/* ===== フッタートドックのアニメーション ===== */
.anim-todock {
  animation: todock-cute 4.2s infinite ease-in-out;
  transform-origin: bottom center;
}

@keyframes todock-cute {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  20% {
    /* ゆっくり呼吸して浮く */
    transform: translateY(-4px) scale(1.02, 0.98) rotate(1deg);
  }
  40% {
    /* 跳ねる前のタメ（少し潰れる） */
    transform: translateY(2px) scale(1.06, 0.94) rotate(-1deg);
  }
  45% {
    /* ぴょこんとジャンプして少し傾く */
    transform: translateY(-18px) scale(0.94, 1.06) rotate(4deg);
  }
  50% {
    /* 着地して潰れる（ぷるん感） */
    transform: translateY(0) scale(1.08, 0.92) rotate(-2deg);
  }
  55% {
    /* 反動で少し浮いて戻る */
    transform: translateY(-2px) scale(0.98, 1.02) rotate(0deg);
  }
  60% {
    /* 静止状態に戻る */
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* ===== ポイント使い道カードのアニメーション ===== */
/* 常時浮遊アニメーション */
.anim-card-float {
  animation: card-float 3.6s infinite ease-in-out;
}
.anim-delay-1 { animation-delay: 0s; }
.anim-delay-2 { animation-delay: 0.8s; }
.anim-delay-3 { animation-delay: 1.6s; }
.anim-delay-4 { animation-delay: 2.4s; }

@keyframes card-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ホバー時の画像バウンド */
.usage-card-wrap > div {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.2s ease;
}

.usage-card-wrap:hover > div {
  transform: translateY(-12px) !important;
  box-shadow: 0 10px 0 #151e15 !important;
  border-color: #006e2b !important;
}

.usage-card-wrap:hover {
  animation-play-state: paused;
}

.usage-card-wrap:hover .usage-card-img {
  animation: img-bounce 0.6s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
}

@keyframes img-bounce {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.18) rotate(-4deg); }
  60% { transform: scale(0.92) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}



