/*
Theme Name: くらしデジタル
Theme URI: https://kurashi-degital.com
Description: 神奈川県央エリア専門・高齢者向け訪問デジタルサポートサービスの公式テーマ
Version: 1.0.0
Author: くらしデジタル
Author URI: https://kurashi-degital.com
Text Domain: kurashi-degital
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #2D3748;
  line-height: 1.8;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== COLOR VARIABLES ===== */
:root {
  --primary: #2B6CB0;
  --primary-dark: #1A365D;
  --primary-light: #EBF8FF;
  --accent: #38A169;
  --accent-light: #F0FFF4;
  --warm: #ED8936;
  --text: #2D3748;
  --text-light: #718096;
  --bg-light: #F7FAFC;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== UTILITIES ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 48px;
}
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(56,161,105,0.3);
}
.btn-primary:hover {
  background: #2F855A;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56,161,105,0.4);
}
.btn-phone {
  background: var(--warm);
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(237,137,54,0.3);
}
.btn-phone:hover {
  background: #DD6B20;
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}
.logo span { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--warm);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}
.header-phone svg { width: 18px; height: 18px; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFFFFF 50%, var(--accent-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 80px 0 60px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(56,161,105,0.2);
  border-radius: 4px;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 2;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  padding-bottom: 60px;
  text-align: center;
}
.page-hero-inner { padding: 60px 0 0; }
.page-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== TROUBLE CARDS ===== */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.trouble-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s;
}
.trouble-card:hover { transform: translateY(-4px); }
.trouble-icon { font-size: 2rem; margin-bottom: 12px; }
.trouble-text { font-size: 1rem; font-weight: 500; line-height: 1.6; }

/* ===== REASON CARDS ===== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.reason-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.reason-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.reason-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--primary-dark); }
.reason-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* ===== FLOW STEPS ===== */
.flow-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.flow-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  box-shadow: var(--shadow);
  position: relative;
}
.flow-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid var(--primary);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.flow-step:last-child::after { display: none; }
.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 12px;
}
.flow-step-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.flow-step-desc { font-size: 0.85rem; color: var(--text-light); }

/* ===== PRICING ===== */
.pricing-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pricing-header {
  background: linear-gradient(135deg, var(--primary), #2C5282);
  color: var(--white);
  padding: 32px;
  text-align: center;
}
.pricing-price { font-size: 3rem; font-weight: 900; }
.pricing-price small { font-size: 1rem; font-weight: 500; }
.pricing-badge {
  display: inline-block;
  background: var(--warm);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 12px;
}
.pricing-features { padding: 32px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EDF2F7;
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.testimonial-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-meta { font-size: 0.8rem; color: var(--text-light); }
.testimonial-text { font-size: 0.95rem; line-height: 1.8; color: #4A5568; }
.testimonial-stars { color: #ECC94B; font-size: 1.1rem; margin-bottom: 8px; }

/* ===== AREA CARDS ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.area-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s;
}
.area-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.area-card-free { background: var(--accent-light); border: 2px solid var(--accent); }
.area-card-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.area-card-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-question:hover { background: var(--bg-light); }
.faq-q-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.faq-toggle { margin-left: auto; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px 68px; color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.form-label .required {
  background: #E53E3E;
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-textarea { min-height: 150px; resize: vertical; }

/* ===== SERVICE CARDS ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.service-card-price { font-size: 0.9rem; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.service-card-list { list-style: none; }
.service-card-list li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  padding-left: 20px;
}
.service-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-section { background: var(--accent-light); text-align: center; }
.cta-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}
.cta-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.cta-desc { color: var(--text-light); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 0.8rem; color: var(--text-light); margin-top: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-heading { font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: 0.9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  font-size: 0.95rem;
}
.floating-btn:hover { transform: scale(1.05); }
.floating-btn-phone { background: var(--warm); color: var(--white); }
.floating-btn-contact { background: var(--accent); color: var(--white); }

/* ===== FAMILY BANNER ===== */
.family-banner {
  background: linear-gradient(135deg, #2C5282, var(--primary));
  color: var(--white);
  text-align: center;
}
.family-banner .section-title { color: var(--white); }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image {
  height: 200px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.blog-card-body { padding: 24px; }
.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.blog-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.blog-card-date { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-inner { flex-direction: column; padding: 40px 0; gap: 32px; }
  .hero-title { font-size: 1.75rem; }
  .hero-stats { gap: 20px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-step::after { display: none; }
  .flow-step { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.4rem; }
  .pricing-price { font-size: 2.25rem; }
  .cta-box { padding: 32px 20px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
