html {
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
}

/* ── ベーステキストサイズ底上げ ── */
p,
li,
td,
th,
span {
  font-size: inherit;
}

.hero-bg {
  background:
    radial-gradient(
      ellipse 70% 60% at 80% 30%,
      rgba(244, 167, 181, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 70% at 15% 75%,
      rgba(139, 168, 136, 0.12) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, #fff9f7 0%, #fdf8f4 60%, #f5ede8 100%);
}
.hero-em {
  position: relative;
  font-style: normal;
  color: #c0607a;
}
.hero-em::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f4a7b5;
  border-radius: 2px;
}
/* .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
} */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 1s ease both;
}
.fade-up-delay {
  animation: fadeUp 1s 0.2s ease both;
}
.paw-deco {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}
.plan-header-featured {
  background: linear-gradient(135deg, #e07090, #c0607a);
}
.compare-ours {
  background: #fdf0f3;
  color: #c0607a;
  font-weight: 600;
}
.compare-head-ours {
  background: linear-gradient(135deg, #e07090, #c0607a);
  color: #fff;
}
.contact-bg {
  background: linear-gradient(135deg, #5c4a32, #3a2e22);
}

/* ── FAQアコーディオン ── */
.faq-item .faq-a {
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}
.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}
.faq-toggle {
  transition: transform 0.3s;
}

/* ── エリアアコーディオン ── */
.area-body {
  display: none;
}
.area-item.open .area-body {
  display: block;
}
.area-item.open .area-arrow {
  transform: rotate(180deg);
}
.area-arrow {
  transition: transform 0.3s;
  display: inline-block;
}

.reason-card-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f4a7b5, #8ba888);
}
.btn-gradient {
  background: linear-gradient(135deg, #e07090, #c0607a);
}
.btn-gradient:hover {
  box-shadow: 0 8px 24px rgba(192, 96, 122, 0.35);
  transform: translateY(-2px);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1.25rem));
  }
}
.animate-scroll {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
}
.animate-scroll:hover {
  animation-play-state: paused;
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* ── テキストサイズ補正 ── */
.text-readable {
  font-size: 0.9rem !important;
  line-height: 1.85 !important;
}
.text-readable-sm {
  font-size: 0.82rem !important;
  line-height: 1.8 !important;
}
.text-readable-xs {
  font-size: 0.76rem !important;
  line-height: 1.75 !important;
}
.label-tag {
  font-size: 0.72rem !important;
}

/* ── レスポンシブ強化 ── */
@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .plan-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .step-inner {
    flex-direction: column !important;
  }
  .step-img-wrap {
    width: 100% !important;
  }
  .compare-table {
    font-size: 0.75rem;
  }
  .compare-table td,
  .compare-table th {
    padding: 10px 8px !important;
  }
  .reason-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .reason-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .plan-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── コンタクト中央寄せ ── */
.contact-center {
  text-align: center;
}
.contact-card {
  max-width: 540px;
  margin: 0 auto;
}

/* --- チャット相談・ボタン --- */
#chat-circle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff8c00;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
#chat-circle .main-text {
  font-size: 16px;
  font-weight: bold;
}
#chat-circle .sub-text {
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.9;
}

/* --- ウィンドウ --- */
#chat-box {
  position: fixed;
  bottom: 95px;
  right: 20px;
  width: 340px;
  height: 520px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: sans-serif;
}
.chat-header {
  background: #ff8c00;
  color: white;
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title {
  flex: 1;
  text-align: center;
  margin-left: 24px;
}
.chat-close-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.chat-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}
.admin-msg {
  background: #f0f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.user-msg {
  background: #ff8c00;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-input-area input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.chat-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-btn {
  background: #fff;
  border: 1.5px solid #ff8c00;
  color: #ff8c00;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  flex: 1;
  min-width: 100px;
  font-weight: bold;
  text-align: center;
}
.chat-btn:hover {
  background: #ff8c00;
  color: #fff;
}

@media screen and (max-width: 480px) {
  #chat-box {
    bottom: 75px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 80%;
  }
  .chat-close-btn {
    display: flex;
  }
  #chat-circle {
    bottom: 75px;
    right: 14.5%;
  }

  /* 質問ボタンのテキストと枠線をテーマカラーの 'deep-bark' (#5C4A32) に変更して視認性を向上 */
  .chat-btn {
    color: #5c4a32;
    border-color: #5c4a32;
  }

  /* タップやホバー時の背景色も合わせる */
  .chat-btn:hover,
  .chat-btn:active {
    background: #5c4a32;
    color: #fff;
  }
}
/* ==========================================
   文字を1文字ずつ動かすための設定（ここから下を最後に配置）
   ========================================== */
.char-anim {
  display: inline-block;
  opacity: 0;
  animation: fadeUpLeft 0.8s ease-out forwards;
}

@keyframes fadeUpLeft {
  0% {
    opacity: 0;
    transform: translate(-15px, 10px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* =========================================
   料金プラン (PRICE) セクション用スタイル
   ========================================= */

/* セクション全体の余白 */
.pricing {
  padding: 4rem 1.5rem;
  background-color: #ffffff;
}
@media (min-width: 768px) {
  .pricing {
    padding: 6rem 2rem;
  }
}

/* ラベル (PRICE) */
.sec-label {
  display: table;
  margin: 0 auto 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #d97706; /* アンバー */
  border-bottom: 1px solid #fde68a;
  padding-bottom: 0.25rem;
  font-weight: 500;
}

/* タイトル (料金プラン) */
.sec-title {
  font-family: serif;
  font-size: 1.5rem;
  color: #5c4a32; /* ディープバーク */
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .sec-title {
    font-size: 1.875rem;
  }
}

/* サブタイトル */
.sec-desc {
  text-align: center;
  color: #6b5f55;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* タブ切り替えボタン全体 */
.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto;
  max-width: 600px;
}
@media (min-width: 768px) {
  .plan-tabs {
    gap: 1rem;
  }
}

/* タブボタンのデザイン */
.plan-tab {
  flex: 1;
  background-color: #fdf8f4;
  color: #8b7355;
  border: 1px solid #f5e1c0;
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.4;
}
.plan-tab:hover {
  background-color: #f5e1c0;
}

/* 選択中（アクティブ）のタブ */
.plan-tab.active {
  background-color: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

/* パネルの切り替え設定 */
.plan-panel {
  display: none; /* 基本は非表示 */
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-out;
}
.plan-panel.active {
  display: block; /* アクティブな時だけ表示 */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 料金テーブルのデザイン */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid #f5e1c0;
  border-bottom: 1px solid #f5e1c0;
}
.price-table th,
.price-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #fdf8f4;
  text-align: left;
}
.price-table th {
  background-color: #fdf8f4;
  color: #5c4a32;
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
}
.price-table td {
  color: #5c4a32;
  font-size: 0.9rem;
  vertical-align: middle;
}
.price-table td:last-child {
  font-weight: bold;
  color: #d97706;
}
.pet-eg {
  display: block;
  font-size: 0.75rem;
  color: #8b7355;
  margin-top: 0.25rem;
  font-weight: normal;
}

/* スマホ時の微調整 */
@media (max-width: 480px) {
  .price-table th,
  .price-table td {
    padding: 0.75rem 0.25rem;
    font-size: 0.8rem;
  }
  .plan-tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
}

/* プランに含まれるものリスト */
.price-includes {
  background-color: #fdf8f4;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #f5e1c0;
}
.price-includes-title {
  font-weight: bold;
  color: #d97706;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.price-includes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-includes li {
  background-color: #ffffff;
  border: 1px solid #f5e1c0;
  color: #5c4a32;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* フッター注意書き */
.pricing-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #8b7355;
  margin-top: 2rem;
  line-height: 1.6;
}
