/*
Theme Name: AdMarket Theme
Author: Your Name
Description: A custom theme for AdMarket website.
Version: 1.0
*/

/* --------------------------------------------------
 *  Basic & Common Styles
 * -------------------------------------------------- */
body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  background-color: #fff;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #e60012;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0 0 1em;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child {
  margin-bottom: 0;
}

/* 共通セクション設定 */
.site-main > section {
  padding: 80px 0;
}

/* 共通コンテナ */
.fp-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

/* 共通セクションタイトル */
.fp-section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}
.fp-section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #e60012;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* --------------------------------------------------
 *  Front Page Styles (front-page.php)
 * -------------------------------------------------- */

/* -- 1. FV Section (修正箇所) -- */
.fp-fv {
  padding: 0;
  position: relative; /* オーバーレイ(::before)の基準点 */
  height: 650px;
  color: #fff;
  display: flex;
  align-items: center;

  /* background-imageで背景を設定 */
  background-image: url("asset/images/FV_backgroundImage.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.fp-fv::before {
  /* 背景画像を少し暗くするためのオーバーレイ */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1; /* コンテンツより下、背景画像より上に配置 */
}

.fp-fv-container {
  /* コンテンツをオーバーレイより手前に表示 */
  position: relative;
  z-index: 2;
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
  margin-left: 0;
  margin-right: auto;
}

.fp-fv-text-content {
  flex-basis: 55%;
}
.fp-fv-catchphrase-sub {
  font-size: 24px;
}
.fp-fv-catchphrase-main {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.4;
  margin: 10px 0 20px;
}
.fp-fv-catchphrase-main span {
  display: inline-block;
  background-color: #e60012;
  padding: 5px 15px;
  margin-right: 10px;
  border-radius: 5px;
}
.fp-fv-logo img {
  width: 300px;
}
.fp-fv-graphic-content {
  flex-basis: 45%;
}

/* -- 2. Reason Section -- */
.fp-reason {
  background-color: #fff;
}
.fp-reason .fp-container {
  max-width: 1120px;
}
.fp-reason-title-area {
  text-align: center;
  margin-bottom: 50px;
}
.fp-reason-title-area h2 {
  font-size: 32px;
  line-height: 1.5;
}
.fp-reason-title-area h2 span {
  color: #e60012;
}
.fp-reason-title-area p {
  margin-top: 20px;
}
.fp-reason-content-box {
  display: flex;
  background-color: #e60012;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
}
.fp-reason-text {
  /* flex-basis: 55%; */
  padding: 50px;
  position: relative;
}
.fp-reason-number {
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 40px;
  left: 40px;
  line-height: 1;
}
.fp-reason-number span {
  font-size: 100px;
  margin-right: -10px;
}
.fp-reason-text h3 {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}
.fp-reason-text h3::before {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  background-color: #fff;
  position: absolute;
  left: 0;
  top: 0;
}
.fp-reason-text p {
  font-size: 16px;
  line-height: 1.8;
}
.fp-reason-text img {
  width: 100%;
  margin-top: 10px;
}
.fp-reason-image {
  flex-basis: 45%;
  min-width: 0;
}
.fp-reason-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -- 3. Service Section -- */
.fp-service {
  background-color: #fff;
}

/* -- 3. Service Section -- */
.fp-service {
  background-color: #fff;
}

/* メインタイトル (SERVICE) の下線の色 */
.fp-service .fp-section-title::after {
  background-color: #e60012; /* 赤色に戻す */
}

/* サブタイトル (弊社業務内容) */
.fp-service-subtitle {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* メインコピー (これらのサービス...) */
.fp-service-main-copy {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* 新しいタブナビゲーションのスタイル */
.fp-new-service-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.fp-new-service-tab-item {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  background-color: #fff;
  border-bottom: none;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Font Awesomeなどのアイコンライブラリを想定 */
.fp-new-service-tab-item::after {
  content: "\f078"; /* caret-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: transform 0.3s ease;
}

/* 非アクティブなタブのスタイル */
.fp-new-service-tab-item {
  color: #333;
  border-color: #66d9e8;
}

/* アクティブなタブのスタイル */
.fp-new-service-tab-item.active {
  color: #fff;
  background-color: #3a5baa;
  border-color: #3a5baa;
}
.fp-new-service-tab-item.active::after {
  transform: rotate(180deg);
}

/* タブコンテンツのラッパースタイル */
.fp-new-service-content-wrapper {
  background-color: #3a5baa;
  border: 2px solid #3a5baa;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

/* タブコンテンツパネルのスタイル */
.fp-new-service-tab-content {
  display: none;
}
.fp-new-service-tab-content.active {
  display: block;
}

/* カードグリッドのスタイル */
.fp-new-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* カードのスタイル */
.fp-new-service-card {
  background-color: #f0f4fa;
  border: 2px solid #dbe2ef;
  border-radius: 12px;
  padding: 25px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fp-new-service-card h4 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0; /* 説明文との間隔を確保 */
  padding-left: 1.2em;
  position: relative;
}

.fp-new-service-card h4::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: #3a5baa;
}

.fp-new-service-card p {
  font-size: 15px;
  color: #555; /* 少し薄い文字色 */
  line-height: 1.6;
  margin: 0; /* 下の余白をなくす */
}

/* -- 4. Simulation CTA Section -- */
.fp-cta-simulation {
  background-color: #f7f7f7;
}
.fp-cta-simulation-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  background-color: #e60012;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.fp-cta-simulation-left {
  flex-basis: 50%;
  color: #fff;
  padding: 50px;
  position: relative;
}
.fp-cta-simulation-badge {
  position: absolute;
  top: -20px;
  left: 40px;
  background-color: #fff;
  color: #333;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.fp-cta-simulation-left h3 {
  font-size: 28px;
  line-height: 1.6;
}
.fp-cta-simulation-right {
  flex-basis: 50%;
  background-color: #fff;
  border-radius: 0 20px 20px 0;
  padding: 40px;
}
.fp-cta-tel-block {
  margin-bottom: 25px;
}
.fp-cta-tel-block p {
  font-size: 20px;
  font-weight: bold;
  color: #555;
}
.fp-cta-tel-number {
  font-size: 36px;
  font-weight: bold;
  color: #e60012;
  margin-top: 5px;
}
.fp-cta-tel-label {
  display: inline-block;
  font-size: 14px;
  font-weight: normal;
  background-color: #eee;
  padding: 3px 10px;
  border-radius: 4px;
  color: #333;
  margin-right: 10px;
  vertical-align: middle;
}
.fp-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.fp-cta-button {
  display: block;
  padding: 15px;
  border-radius: 30px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}
.fp-cta-button.primary {
  background-color: #e60012;
}
.fp-cta-button.secondary {
  background-color: #2c333f;
}

/* -- 5. Creative Section -- */
.fp-creative {
  background-color: #f0f5f2; /* 薄い緑 */
}
.fp-creative-header {
  background-color: #43a047; /* 緑 */
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}
.fp-creative-header h3 {
  font-size: 28px;
  font-weight: bold;
}
.fp-creative-header p {
  max-width: 800px;
  margin: 20px auto 0;
  line-height: 1.8;
}
.fp-creative-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* -- 6. Price Section -- */
.fp-price {
  background-color: #fff;
}
.fp-price > .fp-container > p {
  text-align: center;
  margin-bottom: 40px;
}
.fp-price-table-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
}
.fp-price-table {
  width: 100%;
  border-collapse: collapse;
}
.fp-price-table th,
.fp-price-table td {
  padding: 20px;
  text-align: center;
  border: 1px solid #ddd;
}
.fp-price-table thead th {
  background-color: #e60012;
  color: #fff;
  font-weight: bold;
  border-color: #e60012;
}
.fp-price-table tbody tr:nth-child(even) td {
  background-color: #fff5f5;
}
.fp-price-table td:first-child {
  font-weight: bold;
}
.fp-price-note {
  text-align: right;
  font-size: 13px;
  color: #777;
  padding: 10px 20px;
  background-color: #f9f9f9;
}
.fp-price-includes {
  max-width: 1100px;
  margin: 40px auto 0;
  background-color: #f7f7f7;
  padding: 40px;
  border-radius: 20px;
}
.fp-price-includes h4 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #e60012;
  margin-bottom: 30px;
}
.fp-price-includes-lists {
  display: flex;
  justify-content: space-around;
  gap: 40px;
}
.fp-price-includes-lists ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.fp-price-includes-lists li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
}
.fp-price-includes-lists li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #e60012;
  font-size: 12px;
}

/* -- 7. Flow Section -- */
.fp-flow {
  background-color: #f7f7f7;
}
.fp-flow > .fp-container > p {
  text-align: center;
  margin-bottom: 50px;
}
.fp-flow-steps {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.fp-flow-steps::before {
  /* 縦の点線 */
  content: "";
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background-image: linear-gradient(to bottom, #d4af37 50%, transparent 50%);
  background-size: 2px 10px;
}
.fp-flow-step-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  margin-bottom: 40px;
}
.fp-flow-step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #d4af37; /* 金色 */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 1;
}
.fp-flow-step-image {
  width: 200px;
  flex-shrink: 0;
}
.fp-flow-step-image img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.fp-flow-step-text {
  flex-grow: 1;
}
.fp-flow-step-text h4 {
  font-size: 22px;
  font-weight: bold;
  color: #d4af37;
}
.fp-flow-step-text p {
  margin-top: 10px;
  color: #555;
}

/* -- 8. FAQ Section -- */
.fp-faq {
  background-color: #f8f9fa; /* 薄い背景色 */
}

/* FAQ用タブナビゲーションのスタイル */
.fp-faq-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.fp-faq-tab-item {
  padding: 12px 40px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #ccc;
  border-radius: 30px;
  cursor: pointer;
  background-color: #fff;
  color: #555;
  transition: all 0.3s ease;
}

.fp-faq-tab-item.active {
  background-color: #e60012;
  color: #fff;
  border-color: #e60012;
}

/* FAQタブコンテンツ */
.fp-faq-tab-content {
  display: none;
}
.fp-faq-tab-content.active {
  display: block;
}

/* FAQリスト全体のコンテナ */
.fp-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* 各Q&Aアイテム */
.fp-faq-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 質問部分 */
.fp-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 30px;
  cursor: pointer;
  position: relative;
}
/* アコーディオン開閉用の矢印アイコン */
.fp-faq-question::after {
  content: "\f078"; /* FontAwesomeの矢印(下) */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  transition: transform 0.3s ease;
}
.fp-faq-item.open .fp-faq-question::after {
  transform: translateY(-50%) rotate(180deg); /* 開いたときに上向きに */
}

.fp-faq-q-icon {
  color: #e60012;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.5;
}

.fp-faq-question p {
  flex-grow: 1;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  padding-right: 30px; /* 矢印アイコンと重ならないように */
}

/* 回答部分 */
.fp-faq-answer {
  display: none; /* JSで開閉 */
  padding: 0 30px 25px;
  border-top: 1px solid #eee;
  margin: 0 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.fp-faq-a-icon {
  color: #555;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.7;
}

.fp-faq-answer p {
  color: #555;
  line-height: 1.7;
}

/* ==========================================================================
   9. Blog Card & Archive Styles (front-page.php, home.php)
   ========================================================================== */

/* --- トップページのブログセクション --- */
.fp-blog {
  background-color: #f8f9fa;
}
.fp-blog > .fp-container > p {
  text-align: center;
  margin-bottom: 50px;
}

/* --- ブログ一覧ページのレイアウト --- */
.column-page {
  background-color: #f8f9fa;
  padding: 60px 0;
}
.column-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.archive-header {
  text-align: center;
  margin-bottom: 60px;
}
.archive-title {
  font-size: 42px;
  font-weight: 900;
  color: #333;
  margin: 0;
}

/* --- 記事一覧グリッド (共通) --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

/* --- カードのスタイル (共通) --- */
.blog-card {
  /* このコンテナ自体はスタイルを持たない */
}
.blog-card a {
  display: flex; /* flexboxで中身を制御 */
  flex-direction: column;
  height: 100%; /* 親のグリッドの高さに合わせる */
  text-decoration: none;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.blog-card a:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* --- アイキャッチ画像 (共通) --- */
.blog-card__thumbnail {
  position: relative;
  overflow: hidden;
}
.blog-card__thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  z-index: 1;
}
.blog-card__thumbnail img {
  width: 100%;
  height: auto; /* 修正：高さを自動にして全体表示 */
  display: block;
  transition: transform 0.2s ease;
}
.blog-card a:hover .blog-card__thumbnail img {
  transform: scale(1.05);
}

/* --- 画像上のテキスト (共通) --- */
.blog-card__overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.blog-card__overlay-catch-bg {
  display: inline;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  background-color: #333;
  padding: 2px 8px;
  margin-right: 5px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.blog-card__overlay-catch {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}
.blog-card__overlay-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 10px;
}

/* --- カード下部のコンテンツ (共通) --- */
.blog-card__content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* 高さを揃えるためのキー */
}

.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  margin: 0 0 20px 0;
  min-height: 3.2em; /* 2行分の高さを確保 */
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card__category {
  background-color: #5d9ab2;
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.blog-card__date {
  font-size: 14px;
  color: #888;
}

/* --- 抜粋文 (home.phpのみ) --- */
.blog-card__excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-top: 15px;
  flex-grow: 1; /* 残りのスペースを埋める */
}
.blog-card__excerpt p {
  margin: 0;
}

/* --- トップページの「一覧を見る」ボタン --- */
.fp-blog-view-all {
  text-align: center;
  margin-top: 60px;
}
.fp-view-all-button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 15px 50px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.fp-view-all-button:hover {
  background-color: #000;
}

/* --- ページネーション (home.phpのみ) --- */
.navigation.pagination {
  margin-top: 60px;
  text-align: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #555;
  background-color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.1s ease;
}
.pagination .page-numbers:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}
.pagination .page-numbers.current {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  cursor: default;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  border: none;
  background: none;
  font-size: 14px;
}

/* -- 10. Final CTA Section -- */
.fp-final-cta {
  background-color: #e60012;
  color: #fff;
}
.fp-final-cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.fp-final-cta .fp-section-title {
  color: #fff;
}
.fp-final-cta .fp-section-title::after {
  background-color: #fff;
}
.fp-final-cta > .fp-container > p {
  margin-bottom: 40px;
  line-height: 1.8;
}
.fp-final-cta-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 20px;
}
.fp-final-cta-item {
  flex: 1;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fp-final-cta-item.red {
  background-color: #e60012;
}
.fp-final-cta-item.navy {
  background-color: #2c333f;
}
.fp-final-cta-item::after {
  font-family: "Font Awesome 5 Free"; /* Font Awesomeなどアイコンフォントを想定 */
  font-weight: 900;
  font-size: 150px;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  bottom: -20px;
  right: -20px;
  line-height: 1;
  z-index: 1;
}
.fp-final-cta-item.red::after {
  content: "\f086";
} /* comments icon */
.fp-final-cta-item.navy::after {
  content: "\f0e0";
} /* envelope icon */

.fp-final-cta-item span,
.fp-final-cta-item h4 {
  position: relative;
  z-index: 2;
}

.fp-final-cta-item span {
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}
.fp-final-cta-item h4 {
  font-size: 28px;
  font-weight: bold;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* -- Tablet & Small Desktop (max-width: 1024px) -- */
@media (max-width: 1024px) {
  /* 共通セクション設定 */
  .site-main > section {
    padding: 60px 0;
  }

  /* 共通コンテナ */
  .fp-container {
    padding: 0 30px;
  }

  /* -- 1. FV Section -- */
  .fp-fv-container {
    justify-content: center; /* コンテンツを中央に配置 */
    text-align: center;
  }
  .fp-fv-text-content {
    flex-basis: 80%;
  }
  .fp-fv-graphic-content {
    display: none; /* タブレットではグラフィックを非表示 */
  }
  .fp-fv-catchphrase-main {
    font-size: 40px;
  }

  /* -- 2. Reason Section -- */
  .fp-reason-content-box {
    flex-direction: column;
  }
  .fp-reason-image {
    flex-basis: auto;
    height: 350px; /* 画像の高さを指定 */
  }

  /* -- 4. Simulation CTA Section -- */
  .fp-cta-simulation-container {
    flex-direction: column;
  }
  .fp-cta-simulation-right {
    border-radius: 0 0 20px 20px;
  }

  /* -- 5. Creative Section -- */
  .fp-creative-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* -- 6. Price Section -- */
  .fp-price-includes-lists {
    flex-direction: column;
    gap: 0;
  }
  .fp-price-includes-lists ul:not(:last-child) {
    margin-bottom: 20px;
  }

  /* -- 7. Flow Section -- */
  .fp-flow-step-item {
    gap: 20px;
  }

  /* -- 9. Blog Card -- */
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }

  /* -- 10. Final CTA Section -- */
  .fp-final-cta-box {
    flex-direction: column;
  }
}

/* -- Mobile (max-width: 767px) -- */
@media (max-width: 767px) {
  /* --------------------------------------------------
   *  Basic & Common Styles for Mobile
   * -------------------------------------------------- */
  body {
    font-size: 15px;
  }

  .site-main > section {
    padding: 50px 0;
  }

  .fp-container {
    padding: 0 20px;
  }

  .fp-section-title {
    font-size: 26px;
    padding-bottom: 15px;
  }
  .fp-section-title::after {
    width: 40px;
    height: 2px;
  }

  /* --------------------------------------------------
   *  Front Page Styles for Mobile
   * -------------------------------------------------- */

  /* -- 1. FV Section -- */
  .fp-fv {
    height: auto;
    min-height: 90vh; /* 画面の高さいっぱいに近くする */
    padding: 60px 0;
    text-align: left; /* テキストは左寄せに戻す */
  }
  .fp-fv-container {
    text-align: left;
  }
  .fp-fv-catchphrase-sub {
    font-size: 15px; /* メインキャッチとの階層をつけ、可読性を向上 */
  }
  .fp-fv-catchphrase-main {
    font-size: 20px; /* スマホでの視認性を考慮し、テキストサイズを最適化 */
    line-height: 1.5; /* 複数行になった際の可読性を高めるため行間を追加 */
  }
  .fp-fv-catchphrase-main span {
    padding: 6px 12px; /* テキストと背景の間の余白を調整 */
  }
  .fp-fv-logo img {
    width: 240px;
  }

  /* -- 2. Reason Section -- */
  .fp-reason-title-area h2 {
    font-size: 22px;
  }
  .fp-reason-text {
    padding: 30px 25px;
  }
  .fp-reason-number {
    font-size: 60px;
    top: 25px;
    left: 20px;
  }
  .fp-reason-number span {
    font-size: 70px;
  }
  .fp-reason-text h3 {
    font-size: 22px;
  }
  .fp-reason-image {
    height: 250px;
  }

  /* -- 3. Service Section -- */
  .fp-service-main-copy {
    font-size: 20px;
  }
  .fp-new-service-tabs {
    flex-direction: column;
    gap: 0;
  }
  .fp-new-service-tab-item {
    border-radius: 10px;
    margin-bottom: 5px;
    border-bottom: 2px solid;
  }
  .fp-new-service-tab-item.active {
    border-radius: 10px;
  }
  .fp-new-service-tab-item.active + .fp-new-service-content-wrapper {
    margin-top: -10px; /* タブとコンテンツの隙間を調整 */
  }
  .fp-new-service-content-wrapper {
    padding: 40px 20px 20px;
  }
  .fp-new-service-grid {
    grid-template-columns: 1fr;
  }

  /* -- 4. Simulation CTA Section -- */
  .fp-cta-simulation-left,
  .fp-cta-simulation-right {
    padding: 40px 20px;
    text-align: left;
  }
  .fp-cta-simulation-left h3 {
    font-size: 20px;
  }
  .fp-cta-tel-block p {
    font-size: 18px;
  }
  .fp-cta-tel-number {
    font-size: 30px;
  }

  /* -- 5. Creative Section -- */
  .fp-creative-header {
    padding: 30px 20px;
  }
  .fp-creative-header h3 {
    font-size: 22px;
  }

  /* -- 6. Price Section -- */
  .fp-price-table-wrapper {
    border-radius: 10px;
    overflow-x: auto; /* テーブルがはみ出す場合に横スクロールを有効化 */
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロールを有効化 */
  }
  .fp-price-table th,
  .fp-price-table td {
    padding: 15px 10px;
    white-space: nowrap; /* セル内のテキストが改行しないように */
  }
  .fp-price-includes {
    padding: 30px 20px;
  }

  /* -- 7. Flow Section -- */
  .fp-flow-steps::before {
    display: none; /* モバイルでは縦の点線を非表示に */
  }
  .fp-flow-step-item {
    flex-direction: column;
    align-items: flex-start; /* 左揃えに */
    gap: 15px;
  }
  .fp-flow-step-image {
    width: 100%; /* 画像をコンテナ幅に合わせる */
  }

  /* -- 8. FAQ Section -- */
  .fp-faq-tabs {
    flex-direction: column;
    gap: 10px;
    align-items: stretch; /* ボタンの幅を揃える */
  }
  .fp-faq-question {
    padding: 20px 20px 20px 15px;
    gap: 10px;
  }
  .fp-faq-question p {
    font-size: 16px;
  }
  .fp-faq-answer {
    padding: 0 20px 20px;
    margin: 0 15px;
    gap: 10px;
    flex-direction: column;
    border-top: none; /* 線を消してAアイコンで区切る */
  }
  .fp-faq-q-icon,
  .fp-faq-a-icon {
    font-size: 20px;
    line-height: 1.6;
  }
  .fp-faq-a-icon {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
  }
  .fp-faq-answer p {
    padding-left: 30px; /* アイコン分のインデント */
    margin-top: -38px; /* アイコンの横にテキストを配置 */
  }

  /* -- 9. Blog Card & Archive Styles -- */
  .column-container {
    padding: 0 20px;
  }
  .archive-title {
    font-size: 28px;
  }
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  /* -- 10. Final CTA Section -- */
  .fp-final-cta-item {
    padding: 30px 20px;
  }
  .fp-final-cta-item h4 {
    font-size: 20px;
  }
}
