/*
Theme Name: 1004.rakuda Illustration Theme
Theme URI: https://rakuda-shindan.com/
Author: Antigravity
Author URI: https://antigravity.ai
Description: らくだ診断舎の公式ウェブサイトを、温かみのある手書きイラスト風（絵本タッチ）に刷新するWordPressオリジナルカスタムテーマです。
Version: 1.0.0
Text Domain: rakuda-illustration
*/

/* ==========================================================================
   らくだ診断舎 イラスト風デザインシステム
   ========================================================================== */

/* 1. Global Variables & Reset */
:root {
  /* Color Tokens */
  --color-orange-camel: #f47e38;      /* Softer, extremely cute, warm apricot-camel orange */
  --color-orange-dark: #e06d28;       /* Softer warm dark orange for hover state */
  --color-cream-light: #fffcf5;       /* Warm, creamy off-white background (very cozy) */
  --color-cream-medium: #fff5db;      /* Softer, cute pastel cream-yellow */
  --color-cream-dark: #ffebb3;        /* Cute warm pastel yellow */
  --color-green-nature: #59ba79;      /* Refreshing, extremely cute clover green */
  --color-green-dark: #419b60;        /* Softer warm deep clover green */
  --color-green-line: #06c755;        /* Keep standard LINE green for brand consistency */
  --color-dark-charcoal: #3c3833;     /* Warm outline charcoal (soft like a colored pencil sketch) */
  --color-sky-blue: #a2dcfc;          /* Dreamy, cute pastel sky blue */
  --color-terracotta: #f2725c;        /* Cute, highly visible warm terracotta red */
  --color-white: #ffffff;
  
  /* Fonts */
  --font-header: 'Kiwi Maru', 'Zen Maru Gothic', serif;
  --font-body: 'Zen Maru Gothic', sans-serif;
  --font-english: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sketch: 4px 4px 0px var(--color-dark-charcoal);
  --shadow-sketch-hover: 6px 6px 0px var(--color-dark-charcoal);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream-light);
  color: var(--color-dark-charcoal);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-orange-camel);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-orange-dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.bg-white {
  background-color: var(--color-white) !important;
}

/* 2. Common Hand-drawn UI Elements */

/* Hand-drawn Sketch Card */
.sketch-card {
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: var(--shadow-sketch);
  background-color: var(--color-white);
  padding: 32px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  position: relative;
}

.sketch-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sketch-hover);
}

/* Hand-drawn Hr Divider */
.handdrawn-hr {
  border: none;
  height: 3px;
  background-color: var(--color-dark-charcoal);
  margin: 24px 0;
  border-radius: 50% 20% 40% 10% / 40% 10% 50% 20%;
}

/* Hand-drawn Text Underline */
.highlight-underline {
  background: linear-gradient(transparent 60%, rgba(254, 169, 14, 0.4) 0);
  display: inline-block;
  padding: 0 4px;
  font-weight: bold;
}

/* Handdrawn Badge */
.handdrawn-badge {
  display: inline-block;
  background-color: var(--color-sky-blue);
  color: var(--color-dark-charcoal);
  font-weight: bold;
  padding: 6px 16px;
  border: 2px solid var(--color-dark-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
  font-size: 14px;
}

/* Common Section Styles */
section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-orange-camel);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-title .en-sub {
  display: block;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-green-nature);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 17px;
  max-width: 780px;
  margin: 0 auto 48px auto;
  line-height: 1.8;
}

/* Wave Separator SVG classes */
.wave-separator {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 10;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-separator.separator-bottom {
  bottom: 0;
}

.wave-separator.separator-top {
  top: 0;
}

/* 3. Button Styles */
.btn-large {
  padding: 16px 36px;
  font-size: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-orange-camel);
  color: var(--color-white);
  font-weight: bold;
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: var(--shadow-sketch);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s, background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  color: var(--color-white);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sketch-hover);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-green-line);
  color: var(--color-white);
  font-weight: bold;
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: var(--shadow-sketch);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s, background-color 0.2s;
}

.btn-line:hover {
  background-color: #05b04b;
  color: var(--color-white);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sketch-hover);
}

/* 4. Header & Navigation */
.header {
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-dark-charcoal);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  display: block;
  width: 120px;
  max-width: 100%;
  transition: transform 0.2s ease;
}

.logo-wrapper:hover {
  transform: scale(1.05);
}

.header-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-orange-camel);
  line-height: 1.1;
}

.site-tagline {
  font-size: 11px;
  color: var(--color-dark-charcoal);
  opacity: 0.8;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

@media (max-width: 1200px) {
  .nav-list {
    gap: 12px;
  }
}

.nav-link {
  font-weight: bold;
  color: var(--color-dark-charcoal);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .nav-link {
    font-size: 13.5px;
    padding: 6px 8px;
  }
}

.nav-link:hover {
  color: var(--color-orange-camel);
  background-color: var(--color-cream-light);
}

.nav-btn-contact {
  display: inline-block;
  background-color: var(--color-green-nature);
  color: var(--color-white);
  font-weight: bold;
  padding: 8px 20px;
  border: 2px solid var(--color-dark-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .nav-btn-contact {
    font-size: 13px;
    padding: 6px 14px;
  }
}

.nav-btn-contact:hover {
  background-color: var(--color-green-dark);
  color: var(--color-white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--color-dark-charcoal);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-dark-charcoal);
  transition: all 0.3s ease-in-out;
}

/* 5. Hero Section */
.hero-section {
  background: radial-gradient(circle at 10% 20%, #fffbf2 0%, #fff7e4 90%);
  padding-bottom: 120px; /* Space for wave divider */
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-family: var(--font-header);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark-charcoal);
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.8;
  color: #4a453f;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-alert-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-cream-medium);
  border-left: 5px solid var(--color-orange-camel);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
}

.alert-pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--color-orange-camel);
  border-radius: 50%;
  flex-shrink: 0;
  animation: heartBeat 1.5s infinite;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.watercolor-bg-blob {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,242,204,1) 0%, rgba(255,251,235,0) 70%);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  border: 4px solid var(--color-dark-charcoal);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow-sketch);
  background-color: var(--color-white);
}

/* 6. LINE Explainer Section */
.line-explainer-section {
  background-color: var(--color-cream-light);
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.step-card {
  text-align: center;
  background-color: var(--color-white);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-orange-camel);
  color: var(--color-white);
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 50%;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
}

.step-icon {
  font-size: 36px;
  color: var(--color-green-nature);
  margin-top: 12px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.line-action-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.line-action-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.line-qr-area {
  flex-shrink: 0;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border: 2px dashed var(--color-dark-charcoal);
  border-radius: 12px;
  background-color: #fafafa;
  gap: 8px;
}

.qr-icon {
  font-size: 48px;
  color: var(--color-dark-charcoal);
  opacity: 0.6;
}

.qr-placeholder span {
  font-size: 12px;
  font-weight: bold;
  opacity: 0.7;
}

.line-text-area h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-green-dark);
}

.line-text-area p {
  font-size: 15px;
  margin-bottom: 24px;
}

/* 7. Quiz Section */
.quiz-section {
  background-color: var(--color-cream-medium);
  padding-top: 120px;
  padding-bottom: 100px;
}

.quiz-container-box {
  background-color: var(--color-white);
  padding: 40px;
}

.quiz-header {
  margin-bottom: 32px;
}

.quiz-progress-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#quizStepText {
  font-weight: bold;
  font-size: 15px;
}

.quiz-progress-bar {
  height: 16px;
  background-color: #eee;
  border: 2px solid var(--color-dark-charcoal);
  border-radius: 10px;
  position: relative;
}

.quiz-progress-fill {
  height: 100%;
  background-color: var(--color-orange-camel);
  border-radius: 6px;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-camel {
  position: absolute;
  top: -24px;
  font-size: 24px;
  color: var(--color-orange-camel);
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-left: -12px;
}

.question-slide h3 {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 28px;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.choice-btn {
  background-color: #fffbf2;
  border: 2px solid var(--color-dark-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
}

.choice-btn:hover {
  background-color: var(--color-cream-medium);
  transform: translateY(-1px);
}

.choice-btn:active {
  transform: translateY(1px);
}

.quiz-footer {
  margin-top: 32px;
  font-size: 13px;
  color: #666;
}

/* Quiz Diagnostic Results */
.result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 20px 0;
}

.result-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 20px;
  color: var(--color-white);
  font-weight: bold;
  font-size: 20px;
}

.badge-safe { background-color: var(--color-green-nature); }
.badge-warning { background-color: #e6b800; color: var(--color-dark-charcoal) !important;}
.badge-danger { background-color: #d94b36; }

.result-score {
  font-size: 16px;
  font-weight: bold;
  color: #777;
}

.result-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-dark-charcoal);
}

.result-description {
  font-size: 16px;
  line-height: 1.8;
  max-width: 600px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.result-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-sky-blue);
  color: var(--color-dark-charcoal);
  font-weight: bold;
  border: 2px solid var(--color-dark-charcoal);
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
}

.result-btn-copy:hover {
  background-color: #7cc0eb;
}

.copied-toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-dark-charcoal);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  z-index: 2000;
  display: none;
  animation: fadeInUp 0.3s ease;
}

/* 8. Shiroari Kyosai Section */
.kyosai-section {
  background-color: var(--color-white);
}

.kyosai-intro-visual {
  margin-bottom: 60px;
}

.kyosai-main-img {
  max-width: 540px;
  width: 100%;
  border: 4px solid var(--color-dark-charcoal);
  border-radius: 30px;
  box-shadow: var(--shadow-sketch);
}

.assurances-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.assurance-card {
  background-color: var(--color-cream-light);
}

.assurance-num {
  font-family: var(--font-english);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-orange-camel);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.8;
}

.assurance-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.assurance-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* Comparison Table */
.comparison-box {
  margin-bottom: 64px;
}

.comparison-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 32px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th, 
.comparison-table td {
  padding: 20px 16px;
  border-bottom: 2px solid #eee;
  text-align: left;
}

.comparison-table th {
  font-weight: bold;
  background-color: #fcfcfc;
  border-bottom: 3px solid var(--color-dark-charcoal);
}

.comparison-table td strong {
  color: var(--color-orange-camel);
}

.comparison-table .highlight-col {
  background-color: var(--color-cream-light);
  border-left: 2px solid var(--color-dark-charcoal);
  border-right: 2px solid var(--color-dark-charcoal);
  font-weight: 500;
}

.comparison-table thead th.highlight-col {
  border-top: 3px solid var(--color-dark-charcoal);
}

.comparison-table tbody tr:last-child td.highlight-col {
  border-bottom: 3px solid var(--color-dark-charcoal);
}

.desc-sub {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: normal;
  margin-top: 4px;
}

.highlight-price {
  font-size: 18px;
  color: var(--color-green-dark);
  font-weight: bold;
}

/* Pricing Grid */
.pricing-box {
  background-color: var(--color-cream-light);
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 24px;
  padding: 48px;
}

.pricing-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.pricing-sub {
  color: #666;
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: var(--color-white);
  align-items: center;
}

.price-badge {
  background-color: var(--color-sky-blue);
  color: var(--color-dark-charcoal);
  font-weight: bold;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.price-badge-popular {
  background-color: var(--color-orange-camel);
  color: var(--color-white);
  font-weight: bold;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  animation: flash 2s infinite;
}

.price-card h4 {
  font-size: 22px;
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--font-english);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-dark-charcoal);
  margin-bottom: 24px;
}

.price-amount .yen {
  font-size: 20px;
  margin-right: 4px;
}

.price-amount .tax {
  font-size: 14px;
  font-weight: normal;
  font-family: var(--font-body);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.price-features li {
  font-size: 14px;
}

.price-features i {
  color: var(--color-green-nature);
  margin-right: 8px;
}

.highlight-price-card {
  border: 3px solid var(--color-orange-camel);
}

.pricing-discounts {
  background-color: var(--color-white);
  border: 2px dashed var(--color-orange-camel);
  padding: 24px;
  margin-bottom: 32px;
}

.public-adoption h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-orange-camel);
}

.public-adoption p {
  font-size: 14px;
  margin-bottom: 16px;
}

.adoption-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adoption-tags span {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-dark-charcoal);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
}

/* 9. Yobou Section */
.yobou-section {
  background-color: var(--color-cream-medium);
  padding-top: 120px;
}

.yobou-pricing-card {
  padding: 48px;
  background-color: var(--color-white);
}

.yobou-price-head h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.yobou-price-head .price {
  font-size: 18px;
  font-weight: bold;
}

.yobou-price-head .price span {
  font-size: 28px;
  color: var(--color-orange-camel);
  font-family: var(--font-english);
}

.example-box {
  background-color: var(--color-cream-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.example-box span {
  font-size: 22px;
  color: var(--color-green-dark);
  font-weight: bold;
}

.yobou-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yobou-features i {
  color: var(--color-orange-camel);
  margin-right: 8px;
}

/* 10. Pest Section */
.gaichu-section {
  background-color: var(--color-white);
}

.pest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.pest-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pest-icon-circle {
  width: 72px;
  height: 72px;
  background-color: var(--color-cream-medium);
  border-radius: 50%;
  border: 2px solid var(--color-dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-orange-camel);
  margin-bottom: 20px;
  position: relative;
}

.rat-custom-icon {
  position: absolute;
  font-size: 20px;
  right: -4px;
  bottom: -4px;
}

.pest-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.pest-card p {
  font-size: 14px;
  color: #555;
}

/* 11. Omoi Section */
.omoi-section {
  background-color: var(--color-cream-light);
  padding-top: 120px;
}

.story-theater {
  padding: 48px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.story-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.story-item.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.story-item.reverse .story-img-area {
  order: 2;
}

.story-img-area {
  display: flex;
  justify-content: center;
}

.story-img {
  width: 100%;
  max-width: 280px;
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--color-dark-charcoal);
}

.cute-termite-inline {
  max-width: 180px !important;
}

.paper-photo-frame {
  width: 100%;
  max-width: 320px;
  border: 3px solid var(--color-dark-charcoal);
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  box-shadow: 3px 3px 0 var(--color-dark-charcoal);
  position: relative;
}

.paper-photo-frame::before {
  display: none;
}

.paper-photo-frame .newspaper-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border: 2px solid var(--color-dark-charcoal);
  margin-bottom: 6px;
}

.paper-photo-frame .caption {
  font-size: 11px;
  text-align: center;
  font-weight: bold;
}

.story-text-area h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-orange-camel);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.story-text-area h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-cream-dark);
  z-index: -1;
}

.story-text-area p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a453f;
}

/* 12. News Section */
.news-section {
  background-color: var(--color-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.news-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-card h3 {
  transition: color 0.2s ease;
}

.news-card:hover h3 {
  color: var(--color-orange-camel);
}

.news-img-box {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 3px solid var(--color-dark-charcoal);
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--color-white);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-dark-charcoal);
}

.badge-blue { background-color: var(--color-sky-blue); color: var(--color-dark-charcoal) !important;}
.badge-yellow { background-color: #eeee22; color: var(--color-dark-charcoal) !important;}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-date {
  font-family: var(--font-english);
  font-size: 13px;
  color: #777;
}

.news-content h3 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: var(--color-dark-charcoal);
}

.news-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* 13. FAQ Section */
.faq-section {
  background-color: var(--color-cream-light);
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.q-icon {
  font-family: var(--font-english);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-orange-camel);
  line-height: 1;
}

.faq-trigger h3 {
  font-size: 16px;
  font-weight: bold;
  flex-grow: 1;
}

.faq-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-content {
  padding: 0 32px 24px 76px;
  display: none;
}

.faq-content p {
  font-size: 14px;
  color: #555;
}

/* FAQ Active state */
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* 14. Footer Section */
.footer-section {
  background-color: var(--color-orange-camel);
  color: var(--color-white);
  padding-top: 120px;
  padding-bottom: 24px;
  border-top: 3px solid var(--color-dark-charcoal);
}

.footer-headline {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 12px;
}

.logo-emoji-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--color-cream-light);
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--color-dark-charcoal);
}

.footer-camel {
  font-size: 40px;
  color: var(--color-orange-camel);
}

.footer-camel-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-subline {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 48px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 64px auto;
}

.contact-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-dark-charcoal);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 16px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
}

.card-icon {
  font-size: 48px;
}

.line-card .card-icon {
  color: var(--color-green-line);
}

.phone-card .card-icon {
  color: var(--color-orange-camel);
}

.btn-line-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-green-line);
  color: var(--color-white);
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid var(--color-dark-charcoal);
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
  font-size: 15px;
}

.btn-line-white:hover {
  background-color: #05b04b;
  color: var(--color-white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--color-dark-charcoal);
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-orange-camel);
  color: var(--color-white);
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid var(--color-dark-charcoal);
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
  font-size: 20px;
}

.btn-phone:hover {
  background-color: var(--color-orange-dark);
  color: var(--color-white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--color-dark-charcoal);
}

.time-note {
  font-size: 11px;
  color: #777;
  margin-top: 12px;
}

.footer-hr {
  border: none;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: bold;
}

.footer-info p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 12px;
  opacity: 0.8;
}

/* 15. Floating Line CTA Widget */
.floating-line-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-icon-circle {
  width: 64px;
  height: 64px;
  background-color: var(--color-green-line);
  color: var(--color-white);
  border: 3px solid var(--color-dark-charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--shadow-sketch);
  cursor: pointer;
  position: relative;
}

.cta-camel-balloon {
  background-color: var(--color-white);
  color: var(--color-dark-charcoal);
  border: 2px solid var(--color-dark-charcoal);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 2px 2px 0 var(--color-dark-charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
}

.cta-camel-balloon::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
  border-right: 2px solid var(--color-dark-charcoal);
  border-top: 2px solid var(--color-dark-charcoal);
}

.cta-termite-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* 16. Keyframe Animations */

/* Gentle Floating */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Soft conversion pulsing */
@keyframes bounce-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.bounce-effect:hover {
  animation: bounce-pulse 0.8s ease-in-out infinite;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

@keyframes flash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.8; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 17. Responsive Media Queries */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 360px;
  }
  
  .step-cards {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
    margin: 0 auto 48px auto;
  }
  
  .assurances-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto 48px auto;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 32px auto;
  }
  
  .pest-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .story-item {
    grid-template-columns: 1fr !important;
    gap: 20px;
    text-align: center;
  }
  
  .story-item.reverse .story-img-area {
    order: 0;
  }
  
  .story-text-area h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 48px auto 0 auto;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  
  .floating-line-cta {
    bottom: 24px;
    right: 24px;
  }
  
  .cta-camel-balloon {
    display: none; /* Hide speech balloon on mobile to save space */
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtext {
    font-size: 16px;
  }
  
  .header {
    padding: 8px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 75px;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
    height: calc(100vh - 75px);
    border-top: 3px solid var(--color-dark-charcoal);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
    overflow-y: auto;
    padding: 32px 0;
    align-items: center;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
  }
  
  .nav-link {
    font-size: 18px;
  }
  
  .line-action-flex {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .line-text-area {
    text-align: center;
  }
  
  .quiz-container-box {
    padding: 24px;
  }
  
  .question-slide h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .pricing-box {
    padding: 24px;
  }
  
  .comparison-table th, 
  .comparison-table td {
    padding: 8px 4px;
    font-size: 11.5px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  
  .comparison-table td strong {
    white-space: nowrap;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}

/* --- Mobile Fit and Word-Break Optimizations (Smartphone Compatibility) --- */
@media (max-width: 768px) {
  /* PC用の改行を非表示、スマホ用の改行を有効に */
  .pc-br {
    display: none !important;
  }
  .sp-br {
    display: block !important;
  }

  /* 日本語テキストの折り返し最適化 */
  p, span, li, td, h1, h2, h3, h4 {
    word-break: normal;
    overflow-wrap: break-word;
    text-align: justify;
  }

  /* 中央寄せのタイトル等は justify にせず center に */
  .text-center, .section-title, .hero-title, .hero-subtext, .section-lead {
    text-align: center !important;
  }

  /* インラインブロックのユーティリティで単語の泣き別れを防ぐ */
  .nowrap, .inline-word {
    display: inline-block !important;
    white-space: nowrap !important;
  }

  /* クイズ結果画面のボタン幅 */
  .result-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  
  .result-actions button,
  .result-actions a {
    width: 100% !important;
    max-width: 320px !important;
    text-align: center;
    box-sizing: border-box;
  }

  /* 問い合わせ電話番号ボタンの最適化 */
  .btn-phone {
    font-size: 20px !important;
    padding: 12px 16px !important;
    width: 100%;
    max-width: 300px;
    margin: 12px auto;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 22px !important;
  }
  
  .hero-title {
    font-size: 26px !important;
    line-height: 1.4 !important;
  }

  .hero-subtext {
    font-size: 14px !important;
  }

  .quiz-container-box {
    padding: 16px !important;
  }

  .choice-btn {
    font-size: 14px !important;
    padding: 12px 14px !important;
  }
}
