/* ===========================
   リセット・ベース
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #3d2b1f;
  background: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===========================
   ヘッダー
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.35s ease, box-shadow 0.3s ease;
}

.header.header-hidden {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}

/* PC/スマホ限定改行 */
.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  height: 76px;
  box-sizing: border-box;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* パターン2：白テキストロゴ用 */
.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 1;
  white-space: nowrap;
}

.nav a:hover {
  color: #e8613a;
}

.header-cta {
  background: #e8613a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.header-cta:hover {
  background: #c94f2c;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover,
.hamburger:active {
  background: #fef3ec;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 3px;
  background: #3d2b1f;
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.sp-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #f0e8e0;
  padding: 16px 24px;
  gap: 16px;
}

.sp-nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid #f5ede5;
}

.sp-nav-cta {
  background: #e8613a;
  color: #fff !important;
  padding: 14px 20px !important;
  border-radius: 12px;
  text-align: center;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-bottom: none !important;
  margin-top: 8px;
  display: block;
}

.sp-nav-cta:hover {
  background: #c94f2c;
}

.sp-nav.open {
  display: flex;
}

/* ===========================
   ヒーロー
=========================== */
.hero {
  position: relative;
  padding: 156px 0 0; /* 80px コンテンツ余白 + 76px ヘッダー高さ */
  overflow: hidden;
}

/* スライドショー背景 */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* テキスト可読性オーバーレイ（温かみのある半透明グラデーション） */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
    rgba(254,243,236,0.78) 0%,
    rgba(253,232,216,0.72) 40%,
    rgba(255,228,181,0.70) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 120px;
}

.hero-sub {
  display: inline-block;
  background: #e8613a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.4;
  color: #2d1a0e;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1rem;
  color: #5a3e2b;
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


.sp-br { display: none; }
.pc-br { display: inline; }

/* ===========================
   ボタン共通
=========================== */
.btn-primary {
  display: inline-block;
  background: #e8613a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(232,97,58,0.35);
}

.btn-primary:hover {
  background: #c94f2c;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: #e8613a;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  border: 2px solid #e8613a;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: #fef3ec;
}

/* ===========================
   セクション共通
=========================== */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8613a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #2d1a0e;
}

.section-desc {
  text-align: center;
  color: #5a3e2b;
  font-size: 0.97rem;
  margin-bottom: 48px;
  line-height: 1.9;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   課題提起
=========================== */
.problem {
  padding: 128px 0;
  background: #fff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.problem-card {
  background: #fef8f4;
  border: 2px solid #f5e0d0;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.problem-card:hover {
  box-shadow: 0 4px 20px rgba(232,97,58,0.12);
}

.problem-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.92rem;
  font-weight: 500;
  color: #3d2b1f;
  text-align: center;
  line-height: 1.6;
}

/* ===========================
   サービス一覧
=========================== */
.services {
  padding: 128px 0;
  background: linear-gradient(180deg, #fef8f4 0%, #fff8f0 100%);
}

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

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.service-card.featured {
  border: 2px solid #e8613a;
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: #e8613a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #2d1a0e;
  margin-bottom: 8px;
  line-height: 1.4;
}

.service-tag {
  font-size: 0.78rem;
  color: #e8613a;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.88rem;
  color: #5a3e2b;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 24px;
}

.btn-service {
  display: inline-block;
  background: #fef3ec;
  color: #e8613a;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1.5px solid #e8613a;
  text-align: center;
  transition: background 0.2s;
}

.btn-service:hover {
  background: #e8613a;
  color: #fff;
}

/* ===========================
   サポート内容
=========================== */
.features {
  padding: 128px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid #f0e0d0;
  border-radius: 20px;
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid #f0e0d0;
  transition: background 0.2s;
}

.feature-item:nth-child(odd) {
  border-right: 1px solid #f0e0d0;
}

/* 11個で奇数なので最後の1つは2カラムに展開 */
.feature-item:last-child {
  grid-column: span 2;
  border-right: none;
  border-bottom: none;
}

.feature-item:hover {
  background: #fef8f4;
}

.feature-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f5c9b0;
  line-height: 1;
  min-width: 40px;
  padding-top: 2px;
}

.feature-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2d1a0e;
  margin-bottom: 6px;
}

.feature-body p {
  font-size: 0.85rem;
  color: #5a3e2b;
  line-height: 1.8;
}

/* ===========================
   料金
=========================== */
.price {
  padding: 128px 0;
  background: linear-gradient(180deg, #fef8f4 0%, #fff8f0 100%);
}

.price-tables {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

.price-block {
  background: transparent;
  border-radius: 20px;
}

.price-block-title {
  background: #e8613a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 28px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  background: #fef3ec;
  color: #5a3e2b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f0e0d0;
}

.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f5ede5;
  font-size: 0.92rem;
  color: #3d2b1f;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: #e8613a;
}

.price-popular td {
  background: #fffaf7;
}

.popular-badge {
  display: inline-block;
  background: #e8613a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-left: 8px;
  vertical-align: middle;
}

.price-note {
  text-align: center;
  font-size: 0.83rem;
  color: #7a5a47;
  margin-top: 24px;
  line-height: 1.8;
}

.price-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===========================
   ご利用の流れ
=========================== */
.flow {
  padding: 128px 0;
  background: #fff;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.flow-step {
  background: #fef8f4;
  border: 2px solid #f5e0d0;
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  width: 100%;
  position: relative;
}

.flow-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8613a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  margin-top: 4px;
}

.flow-step h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d1a0e;
  margin-bottom: 8px;
  line-height: 1.5;
}

.flow-step p {
  font-size: 0.8rem;
  color: #5a3e2b;
  line-height: 1.7;
}

.flow-arrow {
  font-size: 1.6rem;
  color: #e8c0a8;
  text-align: center;
  padding: 4px 0;
}

/* ===========================
   対象エリア
=========================== */
.area {
  padding: 128px 0;
  background: linear-gradient(180deg, #fef8f4 0%, #fff8f0 100%);
}

.area-box {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 2px solid #f5e0d0;
  border-radius: 20px;
  padding: 36px 48px;
  max-width: 600px;
  margin: 40px auto 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.area-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.area-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #e8613a;
  margin-bottom: 12px;
}

.area-note {
  font-size: 0.82rem;
  color: #7a5a47;
  line-height: 1.8;
}

/* ===========================
   FAQ
=========================== */
.faq {
  padding: 128px 0;
  background: #fff;
}

.faq-list {
  max-width: 740px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid #f5e0d0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: #e8613a;
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 700;
  color: #2d1a0e;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fef8f4;
  transition: background 0.2s;
}

.faq-q::before {
  content: 'Q';
  background: #e8613a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q::marker,
.faq-q::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-q {
  background: #fff3ed;
}

.faq-a {
  padding: 16px 24px 20px 64px;
  font-size: 0.9rem;
  color: #5a3e2b;
  line-height: 1.85;
  background: #fff;
  border-top: 1px solid #f5e0d0;
}

/* ===========================
   お問い合わせ
=========================== */
.contact {
  padding: 128px 0;
  background: #fff;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fef8f4;
  border: 2px solid #f5e0d0;
  border-radius: 16px;
  padding: 24px 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.contact-card:hover {
  border-color: #e8613a;
  box-shadow: 0 4px 20px rgba(232,97,58,0.14);
}

.contact-icon {
  font-size: 2.2rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a5a47;
  margin-bottom: 4px;
}

.contact-info {
  font-size: 1.2rem;
  font-weight: 900;
  color: #e8613a;
  margin-bottom: 4px;
}

.contact-hours {
  font-size: 0.75rem;
  color: #7a5a47;
}

/* フォーム */
.contact-form {
  background: #fef8f4;
  border-radius: 20px;
  padding: 44px 48px;
  max-width: 700px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d1a0e;
  margin-bottom: 32px;
  text-align: center;
}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 8px;
}

.required {
  display: inline-block;
  background: #e8613a;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #f0e0d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #3d2b1f;
  transition: border-color 0.2s;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #e8613a;
}

.form-row textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: #e8613a;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(232,97,58,0.35);
  font-family: inherit;
}

.btn-submit:hover {
  background: #c94f2c;
  transform: translateY(-2px);
}

/* ===========================
   フッター
=========================== */
.footer {
  background: #2d1a0e;
  color: #f5ede5;
  padding: 52px 0 28px;
}

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

.footer .logo-text {
  color: #f5c9b0;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #c4a090;
  margin-top: 8px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: #c4a090;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: #7a5a47;
  border-top: 1px solid #3d2b1f;
  padding-top: 24px;
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta { display: none !important; }
  .hamburger { display: flex; }
  .header-inner {
    padding: 0 15px;
    height: 64px;
    justify-content: space-between;
  }
  .logo-img { height: 44px; }

  .hero { padding: 124px 0 0; } /* 60px + 64px ヘッダー高さ */
  .hero-inner { padding-bottom: 60px; }
  .sp-br { display: inline; }
  .pc-br { display: none; }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(odd) {
    border-right: none;
  }

  .feature-item:last-child {
    grid-column: span 1;
    border-bottom: none;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .flow-step {
    padding: 24px 20px;
  }

  .area-box {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .faq-a {
    padding-left: 24px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .price-table th, .price-table td {
    padding: 12px 12px;
    font-size: 0.82rem;
  }

  .container {
    padding: 0 20px;
  }

  /* はみ出し防止 */
  section, div, header, footer, nav {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tbody {
    padding: 14px 14px 2px;
    display: block;
  }

  .price-table tr {
    background: #fef8f4;
    border: 2px solid #f5e0d0;
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 16px;
    overflow: visible;
  }

  .price-table tr.price-popular {
    background: #fff8f4;
    border: 2.5px solid #e8613a;
  }

  .price-table td {
    border: none;
    padding: 4px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .price-table td::before {
    content: attr(data-label) "：";
    font-size: 0.72rem;
    color: #7a5a47;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .price-table td.price-amount {
    font-size: 1.3rem;
    font-weight: 900;
    color: #e8613a;
  }

  .price-block-title {
    font-size: 0.9rem;
    padding: 14px 20px;
  }

  .popular-badge {
    margin-left: 6px;
  }

  .price-amount {
    font-size: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 8px;
  }
}
