/* ========================================
   リセット＆ベース設定
======================================== */
:root {
  --primary-color: #1A1A2E;
  --secondary-color: #16213E;
  --accent-color: #0F3460;
  --highlight-color: #E94560;
  --light-gray: #f5f5f5;
  --text-color: #333;
  --bg-color: #fff;
  --font-base: "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

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

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  text-decoration: underline;
  color: var(--highlight-color);
}

/* ========================================
   レイアウトユーティリティ
======================================== */
.container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
}

.btn-contact {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--highlight-color);
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}
.btn-contact:hover {
  background-color: #c7344d;
}

/* ========================================
   共通セクションスタイル
======================================== */
.hero, .problems, .overview, .features,
.case-study, .flow, .pricing, .faq, .company, .contact {
  padding: 60px 0;
}

.problems, .features, .pricing, .faq {
  background-color: #fff;
}

.overview, .case-study, .flow, .company {
  background-color: var(--light-gray);
}

.highlight {
  color: var(--highlight-color);
  font-weight: bold;
}

/* ========================================
   レスポンシブ対応（モバイルファースト）
======================================== */
@media (min-width: 768px) {
  .problems-grid {
    display: flex;
    gap: 2rem;
  }
  .problem-item {
    flex: 1;
  }

  .feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .feature-item {
    width: calc(33.333% - 1.33rem);
  }

  .flow-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .pricing-table {
    width: 100%;
    border-collapse: collapse;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
  }

  .faq-list dt {
    font-weight: bold;
    margin-top: 1.5rem;
  }
  .faq-list dd {
    margin-bottom: 1rem;
    padding-left: 1rem;
  }
}

/* ========================================
   セクションごと追加
======================================== */

/* heroセクション*/

.hero {
  background-color: #0099CC;
  padding: 60px 0;
  text-align: center;
}

.hero-title-image {
  position: relative;
  display: inline-block;
  text-align: center;
}

.hero-title-image picture img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* スマホ初期状態：画像の下に中央配置 */
.hero-button-link {
  display: block;
  margin-top: 1rem;
}

.hero-button-link img {
  width: 160px;
  height: auto;
  margin: 0 auto;
}

/* PC表示：画像に重ねる（左下） */
@media (min-width: 768px) {
  .hero-title-image {
    position: relative;
    /* display: inline-block; ← 上で定義済みなので不要 */
  }

  .hero-button-link {
    position: absolute;
    bottom: 80px;
    left: 120px;
    margin-top: 0;
  }

  .hero-button-link img {
    width: 160px;
  }
}

/* problemセクション */

.problems {
  background-color: #f0f0f0;
}

.problems-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.problem-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  background-color: transparent;
}

.problem-heading {
  background-color: #cc0000;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
}

.problem-content {
  background-color: #ffffff;
  padding: 1.5rem;
  border: 2px solid #000000;
  border-radius: 12px;
  margin: 1rem;
  text-align: center;
}

.problem-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-content li {
  margin-bottom: 0.75rem;
}

.problems-title-image {
  text-align: center;
  margin-bottom: 2rem;
}

.problems-title-image picture img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .problems-grid {
    flex-direction: row;
  }
}

/* overviewセクション */

.overview {
  background-color: #ffffff;
  text-align: center;
  padding: 60px 0;
}

.overview-title-image {
  text-align: center;
  margin-bottom: 2rem;
}

.overview-title-image picture img {
  max-width: 100%;
  height: auto;
}

.overview-lead {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #333;
}

.overview-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1440px; /* ← 拡大！ */
  margin: 0 auto;
}

.benefit-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: none; /* 枠線のように見える影を除去 */
  padding: 2rem 1.5rem;
  text-align: center;
  width: 340px; /* ← サイズアップ！ */
}

.benefit-item2 {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: none; /* 枠線のように見える影を除去 */
  padding: 2rem 1.5rem;
  text-align: center;
  width: 450px; /* ← サイズアップ！ */
}

.benefit-image img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.benefit-image2 img {
  width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.benefit-text {
  font-size: 1rem;
  color: #333;
}

.overview-effect-title {
  font-size: 1.4rem;
  font-weight: bold;
  border: 2px solid #0099CC; /* 任意の色に調整可 */
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 2rem;
  color: #0099CC; /* テキスト色も合わせるなら */
}

/* 単独表示用に調整（上3つと同じ枠） */
.single-benefit {
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.single-benefit img {
  display: block;
  margin: 1rem auto 0;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .overview-benefits {
    flex-direction: row;
    justify-content: center;
  }

  .benefit-item {
    max-width: 300px;
  }

    .benefit-item2 {
    max-width: 400px;
  }

  .overview-benefits:last-of-type {
    justify-content: center;
  }
}

/* featuresセクション */

.features {
  background-color: #f7f7f7;
  padding: 60px 0;
}

.features-title-image {
  text-align: center;
  margin-bottom: 3rem;
}

.features-title-image picture img {
  max-width: 100%;
  height: auto;
}

.feature-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  gap: 2rem;
}

.feature-image img {
  width: 240px;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-text {
  max-width: 600px;
  text-align: left;
}

.feature-heading {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.feature-lead {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007acc;
  margin-bottom: 1rem;
}

/* PC用：横並び */
@media (min-width: 768px) {
  .feature-block {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .feature-image {
    flex: 1;
    text-align: center;
    display: flex;              /* ← 中央配置用に追加 */
    justify-content: center;    /* 左右中央 */
  }

  .feature-text {
    flex: 1;
    padding-left: 2rem;
  }

  .feature-block.reverse {
    flex-direction: row-reverse;
  }

  .feature-block.reverse .feature-text {
    padding-left: 0;
    padding-right: 2rem;
  }
}

/* 機能まとめ：全体 */
.features-summary {
  margin-top: 0px;
  text-align: center;
}

/* タイトル */
.features-summary .summary-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d60000; /* お好みで */
  margin-bottom: 0.5em;
}

/* 説明文 */
.features-summary .summary-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2em;
}

/* 画像グループ全体 */
.features-summary .summary-images {
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: center;
}

/* 1行ずつの4列 */
.features-summary .summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

/* 各画像アイテム */
.features-summary .summary-item {
  width: 250px;
  text-align: center;
}

/* 画像 */
.features-summary .summary-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ラベル（項目名） */
.features-summary .summary-label {
  margin-top: 0.5em;
  font-weight: bold;
  font-size: 1rem;
  color: #b70000; /* お好みで調整 */
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
  .features-summary .summary-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
  }

  .features-summary .summary-item {
    width: 43%;
  }

  .features-summary .summary-title {
    font-size: 1.5rem;
  }

  .features-summary .summary-description {
    font-size: 0.95rem;
  }
}

/* case-studyセクション */

/* セクション全体 */
.case-study {
  background-color: #fff;
  padding: 60px 20px;
}

/* タイトル画像中央寄せ */
.case-title-image {
  text-align: center;
  margin-bottom: 40px;
}

.case-title-image img {
  max-width: 100%;
  height: auto;
}

/* 画像3枚横並び */
.case-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.case-images img {
  width: 250px;
  height: auto;
  border-radius: 8px;
}

/* 備考 */
.case-note {
  text-align: right;
  font-size: 12px;
  color: #666;
}

/* レスポンシブ：スマホ表示 */
@media screen and (max-width: 767px) {
  .case-images {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .case-images img {
    width: 90%;
  }

  .case-note {
    text-align: center;
    font-size: 11px;
    margin-top: 10px;
  }
}

/* flowセクション */

.flow {
  background-color: #f7f7f7;
  padding: 60px 20px;
}

.flow-title-image{
  text-align: center;
  margin-bottom: 40px;
}

.flow-image {
  text-align: center;
  margin-bottom: 40px;
  width: 1200px;
  margin: 0 auto;
}

.flow-title-image img{
  max-width: 100%;
  height: auto;
}
.flow-image img {
  max-width: 100%;
  height: auto;
  width: 1200px;
}

/* ← スマホ用の上書きCSSを追加 */
@media (max-width: 767px) {
  .flow-image {
    width: 100%;
    padding: 0 1rem;
  }

  .flow-image img {
    width: 100%;
  }
}

/* pricingセクション */

.pricing {
  background-color: #ffffff;
  padding: 60px 20px;
}

.pricing-title-image {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-title-image img {
  max-width: 100%;
  height: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1rem; /* 全体文字サイズを少し大きく */
}

.pricing-table thead {
  background-color: #0099cc;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

.pricing-table th,
.pricing-table td {
  padding: 1.2rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.pricing-table td {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* プラン名と金額列を太字に */
.pricing-table td:first-child,
.pricing-table td:nth-child(2) {
  font-weight: bold;
}

/* 最後の行の下線を非表示 */
.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-detail-link {
  text-align: right;
  margin-top: 1rem;
}

.pricing-detail-link a {
  font-size: 0.95rem; /* ← この値を変更すれば文字サイズが変わります */
  color: #0077cc;
  text-decoration: underline;
}

.pricing-detail-link a:hover {
  color: #005fa3;
}

/* 横スクロール対応 */
.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  min-width: 650px;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .pricing-table {
    font-size: 0.95rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 1rem 0.6rem;
  }

  .pricing-table thead {
    font-size: 1rem;
  }

  .pricing-table td {
    font-size: 0.95rem;
  }

    .pricing-detail-link a {
    font-size: 0.85rem;
  }
}

/* faqセクション */

.faq {
  background-color: #f7f7f7;
  padding: 60px 20px;
}

.faq-title-image {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-title-image img {
  max-width: 100%;
  height: auto;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-size: 1.2rem; /* ← スマホでも大きめに */
  font-weight: bold;
  border: none;
  background-color: #ffffff; /* ← 背景白に明示 */
  color: #333333; /* ← 青字を黒に上書き */
  border-radius: 0; /* ← 角丸など勝手に付いてる場合に無効化 */
  appearance: none; /* ← ブラウザ独自スタイル除去 */
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  cursor: pointer;
}

.faq-question::before {
  content: "Q";
  color: #007bff;
  font-weight: bold;
  margin-right: 0.5rem;
}

.faq-question::after {
  content: "▼";
  position: absolute;
  right: 1.5rem;
  transition: transform 0.3s;
  font-size: 0.9rem;
  color: #007bff;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer::before {
  content: "A";
  color: #e53935;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* contactセクション */

.contact {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.contact-title-image {
  margin-bottom: 40px;
}

.contact-title-image img {
  max-width: 100%;
  height: auto;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.btn-contact {
  display: inline-block;
  background-color: #0099cc;
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.btn-contact:hover {
  background-color: #007faa;
}

.contact-tel {
  font-size: 0.95rem;
  color: #666;
}
