/* Base Styles */
:root {
  --primary: #0097b2;
  --primary-dark: #007a8f;
  --primary-light: #33adbe;
  --secondary: #ff8a00;
  --secondary-light: #ffaa40;
  --light: #f5f9fa;
  --dark: #333333;
  --gray: #666666;
  --light-gray: #eeeeee;
  --white: #ffffff;
  --success: #28a745;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --section-spacing: 60px; /* Add a consistent section spacing variable */
}

section {
  padding: var(--section-spacing) 0;
}

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

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  padding-bottom: 80px; /* Ensure space for the fixed footer */
}

span {
  display: inline-block;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

section:nth-child(odd) {
  background-color: var(--white);
}

section:nth-child(even) {
  background-color: var(--light);
}

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

.rounded {
  border-radius: 50%;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background-color: var(--primary);
  color: var(--white);
}

/* モバイル用CTAボタンのアニメーション */
@keyframes float-button {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* モバイル用CTAボタン */
.mobile-cta {
  display: none; /* デフォルトでは非表示 */
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 80%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: float-button 3s ease-in-out infinite;
  /* ホバー時のアニメーション一時停止 */
  &:hover {
    animation-play-state: paused;
  }
}

/* アニメーションの最適化 */
@media (prefers-reduced-motion: reduce) {
  .mobile-cta {
    animation: none;
  }
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo-img {
  max-height: 35px;
  width: auto;
}

/* スマホ版でも表示される問い合わせボタン */
.header-cta {
  padding: 8px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Add styles for the logo image */
.logo-img {
  max-height: 35px; /* PC版は元の50pxから30%小さく */
  width: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
#hero {
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("https://via.placeholder.com/1920x1080") no-repeat center center / cover;
  color: var(--dark);
  padding: 120px 0 0; /* 下部のパディングを0に変更 */
  position: relative; /* Added to allow absolute positioning of elements if needed */
}

/* Hero Flex Layout */
.hero-flex {
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start to allow custom alignment */
  justify-content: space-between;
  gap: 40px;
  position: relative; /* Added for positioning context */
}

.hero-content {
  flex: 1;
  text-align: left;
  padding-bottom: 20px; /* var(--section-spacing)から20pxに変更 */
  position: relative; /* For stacking context */
  z-index: 2; /* Ensure content is above the image on mobile */
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Changed from center to flex-end to align to bottom */
  margin-bottom: 0; /* Ensure no margin at bottom */
}

/* SP version - position image */
.hero-image {
  position: relative; /* 絶対位置から相対位置に変更 */
  top: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  height: auto;
  z-index: 1;
  opacity: 1;
  margin-bottom: 0; /* 下部のマージンを0に */
}

.hero-img {
  max-width: 80%; /* Base size for mobile and tablet */
  height: auto;
  vertical-align: bottom; /* Ensures image aligns at the bottom */
  margin-bottom: 0; /* Ensures no margin at bottom */
}

/* PC version - make image 10% larger */
@media (min-width: 1024px) {
  .hero-img {
    max-width: 88%; /* 80% + 8% (which is 10% of 80%) */
  }
}

/* ヒーロー説明文のスタイル */
.hero-description {
  font-size: 1.5rem; /* 1.2remから1.5remに拡大 */
  margin-bottom: 30px;
  text-align: left;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8); /* テキストの可読性を確保するためのシャドウを追加 */
  font-weight: bold;
}

/* PC版のみ見出しよりオーバーしてもいいように調整 */
@media (min-width: 992px) {
  .hero-description {
    max-width: 110%; /* 見出しよりも少し広げる */
    line-height: 1.4; /* 行間を調整して2行になるようにする */
    margin-right: -10%; /* 右側にはみ出すように調整 */
    word-break: keep-all; /* 単語の途中で改行しないように設定 */
    overflow-wrap: normal; /* 単語の途中で改行しないように設定 */
  }
}

/* スマホ版のヒーロー説明文スタイル調整 */
@media (max-width: 768px) {
  .hero-description {
    font-size: 1.8rem !important; /* 強制的に適用 */
    text-align: center;
    text-shadow: none !important;
    line-height: 1.1 !important; /* 行間を詰める */
  }

  .hero-description strong {
    font-size: 1.8rem !important; /* strong タグにも同じサイズを適用 */
    font-weight: bold;
    line-height: 1.1 !important; /* 行間を詰める */
  }
}

@media (max-width: 576px) {
  .hero-description {
    font-size: 1.6rem !important; /* 強制的に適用 */
    line-height: 1.1 !important; /* 行間を詰める */
  }

  .hero-description strong {
    font-size: 1.6rem !important; /* strong タグにも同じサイズを適用 */
    line-height: 1.1 !important; /* 行間を詰める */
  }
}

/* 新しいヒーローセクションの見出しスタイル */
.hero-content h1 {
  position: relative;
  font-size: 3.2rem; /* 2.6remから3.2remに拡大 */
  font-weight: 900; /* 800から900に変更してより太く */
  color: var(--white);
  background-color: var(--secondary);
  padding: 15px 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(255, 138, 0, 0.3);
  transform: rotate(-1deg);
  text-align: center;
  line-height: 1.1; /* 1.4から1.1に変更して行間を詰める */
  letter-spacing: -0.5px; /* 0.5pxから-0.5pxに変更して文字間を詰める */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストに影を追加 */
}

/* 最後の行のテキストを小さくするためのクラス */
.hero-content h1 .smaller-text {
  font-size: 2.4rem; /* メインテキストより小さいサイズに設定 */
  display: block;
  margin-top: 5px;
}

/* 見出しの装飾要素 */
.hero-content h1::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px dashed var(--white);
  border-radius: 12px;
  z-index: -1;
  /* animation: rotate 15s linear infinite; を削除 */
}

/* 見出しの装飾要素2 */
.hero-content h1::after {
  content: "★";
  position: absolute;
  top: -15px;
  right: -5px;
  color: var(--primary);
  font-size: 2rem;
  transform: rotate(15deg);
  text-shadow: 2px 2px 0 var(--white);
}

/* パルスアニメーションを削除
@keyframes pulse {
  0% {
    transform: rotate(-1deg) scale(1);
  }
  50% {
    transform: rotate(-1deg) scale(1.02);
  }
  100% {
    transform: rotate(-1deg) scale(1);
  }
}
*/

/* 回転アニメーションを削除
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
*/

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem; /* 2.2remから2.8remに拡大 */
    padding: 12px 20px;
    line-height: 1.1; /* 行間を詰める */
    letter-spacing: -0.5px; /* 文字間を詰める */
  }

  .hero-content h1 .smaller-text {
    font-size: 2.1rem; /* メインテキストより小さいサイズに設定 */
  }

  .hero-description {
    font-size: 1.3rem;
  }

  /* 白背景に合わせてテキストシャドウを削除 */
  .hero-content h1,
  .hero-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* PC版と同じ影を適用 */
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  /* hero-description用のスタイルを個別に設定するため、pセレクタを削除 */

  .hero-content h1 {
    font-size: 2.5rem;
    padding: 10px 15px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .hero-content h1 .smaller-text {
    font-size: 1.7rem;
  }

  .hero-description {
    font-size: 1.8rem; /* 1.2remから1.8remに拡大 */
    text-align: center;
    text-shadow: none !important;
  }

  /* 白背景に合わせてテキストシャドウを削除 */
  .hero-content h1,
  .hero-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
    padding: 8px 12px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .hero-content h1 .smaller-text {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1.6rem; /* 1.1remから1.6remに拡大 */
  }
}

/* Approach Section (Problems Section) */
#problems {
  padding: var(--section-spacing) 0;
}

/* Concept Image Container */
.concept-image-container {
  text-align: center;
  margin-bottom: 0; /* 30pxから0に変更 */
}

.concept-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  /* ドロップシャドウは不要なので適用しない */
}

/* Ad Image Container */
.ad-image-container {
  text-align: center;
  margin-bottom: 40px;
}

.ad-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  /* ドロップシャドウを削除 */
}

/* グラフ見出しのスタイル */
.graph-heading {
  text-align: center;
  margin: 30px 0;
  padding: 15px;
  background-color: rgba(0, 151, 178, 0.1);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.graph-heading h3 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ソーシャルメディアロゴのスタイル */
.social-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.social-logo-container {
  width: 78px; /* 65pxから20%大きく */
  height: 78px; /* 65pxから20%大きく */
  overflow: hidden;
  border-radius: 50%; /* 丸形にする */
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* 新しい統合カードのスタイル */
.approach-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--primary);
}

.approach-card-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0; /* Remove bottom margin to make spacing consistent */
}

.approach-card-combined {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 900px;
  transition: var(--transition);
}

.approach-card-combined:hover {
  transform: translateY(-5px);
}

.approach-images {
  display: flex;
  flex-direction: column;
  gap: 0; /* 画像間の隙間をゼロに */
  width: 100%;
}

.approach-image {
  width: 100%;
  min-width: 100%;
  text-align: center;
  margin-bottom: 0; /* 画像間の隙間をゼロに */
}

/* グラフ画像のスタイル */
.approach-image img[src*="graph"] {
  max-width: 90%;
  margin: 10px auto;
}

/* グラフ画像間のスペースを調整 */
.approach-image + .approach-image {
  margin-top: 15px;
}

.approach-card-img {
  width: 90%; /* PC版で10%小さく */
  max-height: none;
  object-fit: contain;
}

/* 追加したCTAテキスト用のスタイル */
/* 余計な装飾を削除し、シンプルなスタイルに戻します */
.approach-cta {
  text-align: center;
  margin: 20px 0;
  font-weight: bold;
  color: var(--primary);
}

.approach-cta p {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* PC版のみフォントサイズを大きくする */
@media (min-width: 992px) {
  .approach-cta.pc-only p {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .approach-cta p {
    font-size: 1rem;
  }
}

/* 古いアプローチカードのスタイル（念のため残しておく） */
.approach-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.approach-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 250px;
  text-align: center;
  transition: var(--transition);
}

.approach-card:hover {
  transform: translateY(-5px);
}

.approach-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.approach-icon i {
  font-size: 2rem;
  color: var(--white);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

/* Case Studies Section */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.case-study {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.case-image {
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.case-study:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: 20px;
}

.case-result {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Case Studies Section - 新しいスタイル */
.case-studies-message {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--box-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.case-studies-message p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-buttons .btn-primary,
.contact-buttons .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.contact-buttons i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .case-studies-message {
    padding: 30px 20px;
  }

  .case-studies-message p {
    font-size: 1.1rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .contact-buttons .btn-primary,
  .contact-buttons .btn-secondary {
    width: 100%;
  }
}

.testimonial {
  display: flex;
  align-items: center;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial-image {
  flex: 0 0 100px;
  margin-right: 30px;
}

.testimonial-content {
  flex: 1;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: bold;
  text-align: right;
}

/* Strengths Section */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

@media (min-width: 992px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
  }
}

.strength-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.strength-card:hover {
  transform: translateY(-5px);
}

.strength-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
}

.strength-icon i {
  font-size: 2rem;
  color: var(--white);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .strength-icon {
    width: 70px;
    height: 70px;
  }

  .strength-icon i {
    font-size: 1.8rem;
  }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.pricing-header h3 {
  margin-bottom: 5px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

.pricing-features {
  padding: 30px;
}

.pricing-features ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.pricing-features ul li:before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.pricing-cta {
  padding: 0 30px 30px;
  text-align: center;
}

.pricing-cta-main {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: var(--white);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-toggle i {
  transition: var(--transition);
}

.faq-answer {
  background-color: var(--light);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
}

/* Contact Section */
#contact {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("https://via.placeholder.com/1920x1080")
    no-repeat center center / cover;
  color: var(--white);
  text-align: center;
}

/* 問い合わせボタンセクションのスタイル */
.contact-section {
  margin-top: 30px;
  text-align: center;
}

.contact-text {
  margin-bottom: 20px;
  font-size: 16px;
}

.contact-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 4px;
  width: 100%;
  max-width: 240px;
  font-weight: bold;
  text-decoration: none;
}

.contact-button i {
  margin-right: 8px;
}

.contact-button-primary {
  background-color: #00a0b8;
  color: white;
}

.contact-button-secondary {
  background-color: white;
  color: #00a0b8;
  border: 1px solid #00a0b8;
}

/* スマホ版のスタイル */
@media (max-width: 768px) {
  .contact-buttons-container {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
  }

  .contact-button {
    max-width: 100%;
  }

  .contact-text {
    padding: 0 15px;
  }
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  margin-bottom: 40px;
}

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

.footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* 画像を白色に変換 */
}

.footer-info h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: normal;
}

.footer-info p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.8;
}

.company-link {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.company-link:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  :root {
    --section-spacing: 50px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  #hero {
    padding: 120px 0 0; /* 下部のパディングを0に変更 */
    height: auto; /* 高さを自動に設定 */
  }

  #problems {
    padding: 20px 0 60px; /* レスポンシブ対応 */
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* Hero flex responsive */
  .hero-flex {
    flex-direction: column;
    gap: 30px;
    position: relative;
    height: auto; /* 高さを自動に設定 */
  }

  .hero-content,
  .hero-image {
    flex: none;
    width: 100%;
  }

  /* SP version - position image */
  .hero-image {
    position: relative; /* 絶対位置から相対位置に変更 */
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: 1;
    opacity: 1;
    margin-bottom: 0; /* 下部のマージンを0に */
    margin-top: -30px; /* 画像を上に移動 */
  }

  /* ヒーローコンテンツの下部パディングを減らして全体の高さを調整 */
  .hero-content {
    padding-bottom: 10px;
  }

  .hero-img {
    width: 100%; /* 画像を上に移動 */
  }

  /* ヒーローコンテンツの下部パディングを減らして全体の高さを調整 */
  .hero-content {
    padding-bottom: 10px;
  }

  .hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom; /* 画像を下部に合わせる */
    margin-bottom: 0; /* 下部のマージンを0に */
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 20px; /* コンテンツの下部パディングを調整 */
    position: relative;
    z-index: 2;
  }

  /* 白背景に合わせてテキストシャドウを削除 */
  .hero-content h1,
  .hero-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* PC版と同じ影を適用 */
  }

  /* モバイル用CTAボタンを表示 */
  .mobile-cta {
    display: inline-block;
  }

  /* グラフ見出しのレスポンシブスタイル */
  .graph-heading h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  /* Add styles for the logo image */
  .logo-img {
    max-height: 25px; /* SP版は元の50pxから50%小さく */
  }

  .header-cta {
    padding: 6px 15px;
    font-size: 0.85rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.5rem; /* 2.2remから2.5remに拡大 */
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* ソーシャルメディアロゴのレスポンシブスタイル */
  .social-logos {
    gap: 15px;
  }

  .social-logo-container {
    width: 62px; /* 52pxから20%大きく */
    height: 62px; /* 52pxから20%大きく */
  }

  /* 統合カードのレスポンシブスタイル */
  .approach-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .approach-images {
    flex-direction: column;
    align-items: center;
  }

  .approach-image {
    margin-bottom: 0; /* モバイル版でも画像間の隙間をゼロに */
  }

  /* グラフ見出しのレスポンシブスタイル */
  .graph-heading h3 {
    font-size: 1.4rem;
  }

  .testimonial {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-image {
    margin-right: 0;
    margin-bottom: 20px;
  }

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

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  /* レスポンシブ対応のために追加 */
  .approach-card-img {
    width: 100%; /* モバイル版では幅いっぱいに */
  }

  /* ヒーローセクションの高さを調整 */
  #hero {
    padding-top: 80px; /* ヘッダーの高さを考慮 */
    padding-bottom: 0; /* 下部のパディングを0に変更 */
  }

  /* 画像の下部をセクションの下部に合わせる */
  .hero-image {
    margin-bottom: 0;
  }

  .hero-img {
    margin-bottom: 0;
    border-bottom: 0; /* 下部の境界線を削除 */
  }

  /* モバイル用CTAボタンの位置調整 */
  .mobile-cta {
    bottom: 15px;
  }

  /* さらに小さい画面では上に */
  .hero-image {
    margin-top: -40px;
  }

  .arrow-down i {
    font-size: 2rem;
  }

  .arrow-text {
    font-size: 1.4rem;
  }

  /* スマホ版でのみグラフ画像を10%大きく表示 */
  .approach-image img[src*="graph"] {
    max-width: 100%; /* 90%から10%大きくして100%に */
    margin: 10px auto;
  }

  /* 白背景に合わせてテキストシャドウを削除 */
  .hero-content h1,
  .hero-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* PC版と同じ影を適用 */
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 40px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 40px 0;
  }

  #hero {
    padding: 70px 0 0; /* ヘッダーの高さを考慮して上部のパディングを調整、下部は0 */
  }

  #problems {
    padding: 15px 0 40px; /* さらに小さい画面での調整 */
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2.2rem; /* 1.8remから2.2remに拡大 */
  }

  /* グラフ見出しのレスポンシブスタイル */
  .graph-heading h3 {
    font-size: 1.2rem;
  }

  /* 小さい画面でのモバイルCTAボタンの調整 */
  .mobile-cta {
    width: 90%;
    bottom: 15px;
  }

  /* さらに小さい画面では調整 */
  .hero-image {
    margin-top: -50px;
  }

  .header-cta {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  .arrow-down i {
    font-size: 1.8rem;
  }

  .arrow-text {
    font-size: 1.1rem;
  }
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .logo-img {
    max-height: 25px;
  }

  .header-cta {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .header-cta {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

/* JavaScriptで画像の高さを取得してヒーローセクションの高さを調整するためのクラス */
.hero-height-adjusted {
  height: auto !important;
  overflow: hidden;
}

/* プロモーションテキスト用のコンテナスタイル */
.promo-text-container {
  text-align: center;
  margin: 25px 0;
  padding: 15px;
  background-color: rgba(0, 151, 178, 0.1);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 下向き矢印のスタイル */
.arrow-down {
  text-align: center;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow-down i {
  font-size: 2.5rem;
  color: var(--primary);
  animation: bounce 2s infinite;
  margin-bottom: 10px;
}

.arrow-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-dark);
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .arrow-down i {
    font-size: 2rem;
  }

  .arrow-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .arrow-down i {
    font-size: 1.8rem;
  }

  .arrow-text {
    font-size: 1.1rem;
  }
}

/* DSP広告セクションのスタイル */
#dsp-ads {
  padding: var(--section-spacing) 0;
  background-color: var(--light);
}

.dsp-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.dsp-image {
  width: 100%;
  text-align: center;
}

.dsp-img {
  max-width: 90%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.dsp-text {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.dsp-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark);
}

/* PC版のみ表示される改行 */
.pc-br {
  display: none;
}

@media (min-width: 992px) {
  .pc-br {
    display: block;
  }
}

/* レスポンシブスタイルの追加 */
@media (max-width: 768px) {
  .dsp-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .dsp-text p {
    font-size: 1rem;
  }
}

/* PC表示のみのコンテンツ用スタイル */
.pc-only {
  display: none;
}

@media (min-width: 992px) {
  .pc-only {
    display: block;
  }

  /* モバイル表示のみのコンテンツを確実に非表示にする */
  .mobile-only {
    display: none !important;
  }
}

/* モバイル表示のみのコンテンツ用スタイル */
.mobile-only {
  display: block;
}

@media (min-width: 992px) {
  .mobile-only {
    display: none;
  }
}

/* スマホ版のみ表示する改行 */
.sp-only-br {
  display: none;
}

@media (max-width: 768px) {
  .sp-only-br {
    display: inline;
  }
}

/* 配信メディアタイトルのスタイル */
.media-title {
  width: 100%;
  text-align: center;
  margin: 15px 0 5px; /* 20px 0から15px 0 5pxに変更して下部マージンを減らす */
}

.media-title h3 {
  color: var(--primary);
  font-size: 1.65rem; /* 1.5remから10%大きく */
  font-weight: bold;
  margin-bottom: 5px; /* 15pxから5pxに減らして隙間を詰める */
}

/* PC表示時のmediapc.png画像サイズ調整 */
@media (min-width: 992px) {
  .pc-only .dsp-img {
    max-width: 99%; /* 90%から10%大きく */
  }
}

/* モバイル表示のみのコンテンツ用スタイル */
.mobile-only {
  display: block;
}

@media (min-width: 992px) {
  .mobile-only {
    display: none;
  }
}

/* メディアスライダーのスタイル */
.media-slider-container {
  width: 100%;
  position: relative;
  margin: -15px 0 30px; /* 上部マージンをさらに負の値にして詰める */
  padding-top: 0; /* 上部パディングを削除 */
}

.media-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 5px; /* 下部パディングをさらに小さく */
  padding-top: 0; /* 上部パディングを削除 */
  margin-top: -10px; /* 上部マージンも負の値に */
}

.media-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.media-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin-right: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.media-slide:last-child {
  margin-right: 0;
}

.media-slide-img {
  width: 100%;
  height: auto;
  display: block;
}

/* スケジュールスライダー用の小さいサイズ（30%小さく） */
.schedule-slider .media-slide {
  flex: 0 0 70%; /* 85%から30%小さく */
  margin: 0 auto; /* 中央寄せ */
}

.schedule-slider .media-slide-img {
  width: 70%; /* 画像自体も30%小さく */
  margin: 0 auto; /* 中央寄せ */
}

/* スライダーインジケーター */
.slider-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--primary);
  font-size: 0.9rem;
}

.slider-indicator i {
  margin-left: 8px;
  animation: slide-right 1.5s infinite;
}

@keyframes slide-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

/* モバイル版のメディアタイトルスタイル */
.mobile-only .media-title {
  margin: -15px 0 -5px; /* 上部マージンはそのままに、下部マージンを-20pxから-5pxに変更 */
  padding: 0; /* パディングを削除 */
}

.mobile-only .media-title h3 {
  color: var(--primary);
  font-size: 1.2rem; /* フォントサイズをさらに小さく */
  font-weight: bold;
  margin-bottom: 2px; /* -15pxから2pxに変更して添付画像のような間隔に */
  line-height: 1.2; /* 行間を0.9から1.2に調整 */
  padding: 0; /* パディングを削除 */
}

/* スマホ版のメディアスライダーのスタイル調整 */
.media-slider-container {
  width: 100%;
  position: relative;
  margin: 0 0 30px; /* -15px 0 30pxから0 0 30pxに変更 */
  padding-top: 0; /* 上部パディングを削除 */
}

.media-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 5px; /* 下部パディングをさらに小さく */
  padding-top: 0; /* 上部パディングを削除 */
  margin-top: 0; /* -10pxから0に変更 */
}

@media (max-width: 576px) {
  .mobile-only .media-title h3 {
    font-size: 1.3rem;
    margin-bottom: 2px; /* 添付画像のような間隔に */
  }
}

/* サイネージ広告セクションのスタイル */
#signage-ads {
  padding: var(--section-spacing) 0;
  background-color: var(--white);
}

.signage-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.signage-text {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.signage-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark);
}

.signage-locations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
  max-width: 900px;
}

.location-item {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  text-align: center;
  background-color: var(--light);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.location-item:hover {
  transform: translateY(-5px);
}

.location-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
}

.location-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

.location-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* サイネージ設置箇所の地域カバレッジテキスト */
.location-coverage {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--primary-dark);
  line-height: 1.5;
  padding: 0 10px;
}

@media (max-width: 576px) {
  .location-coverage {
    font-size: 0.85rem;
    margin-top: 12px;
  }
}

/* doohtotal.png画像のスタイル */
.dooh-total-image {
  width: 100%;
  text-align: center;
  margin: 0 0 30px; /* 上部マージンを0に変更 */
}

.dooh-total-img {
  max-width: 90%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* サイネージ広告取り扱い数タイトルのスタイル */
.dooh-total-title {
  margin-bottom: 5px; /* タイトルの下部マージンを小さくする */
}

/* dooh-total-sliderのスタイル */
.dooh-total-slider .media-slide {
  flex: 0 0 90%;
  margin: 0 auto;
}

.dooh-total-slider .media-slide-img {
  width: 100%;
  margin: 0 auto;
}

/* 縦に並べる画像のスタイル */
.dooh-total-vertical {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 5px; /* 下部マージンを15pxから5pxに減らしてさらに詰める */
}

.dooh-total-item {
  width: 100%;
  text-align: center;
}

.dooh-total-vertical-img {
  width: 90%;
  max-width: 500px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* メディアコンテナとグリッドのスタイル - 直接画像を配置するスタイルに変更 */
.media-direct {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.media-direct-img {
  width: 120%; /* 20%大きく表示 */
  max-width: 1000px; /* 適切な最大幅を設定 */
  height: auto;
  border-radius: 12px; /* 角丸を強調 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 影を追加 */
  transition: var(--transition);
}

/* ホバー時の効果を追加 */
.media-direct-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* スケジュールセクションのスタイル */
#schedule {
  padding: var(--section-spacing) 0;
  background-color: var(--light);
}

.schedule-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.schedule-text {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-bottom: -10px; /* スマホ版でテキストとタイトルの間隔を詰める */
}

.schedule-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark);
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
  .schedule-text {
    margin-bottom: -15px; /* スマホ版でさらに間隔を詰める */
  }

  .schedule-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .schedule-text {
    margin-bottom: -20px; /* 小さい画面でさらに間隔を詰める */
  }

  .schedule-text p {
    font-size: 1rem;
  }
}

/* サイネージ設置箇所タイトルの上部マージンを調整 */
#signage-ads .mobile-only .media-title {
  margin: -50px 0 -20px; /* 上部マージンをさらに詰める（-30pxから-50pxに変更） */
  padding: 0;
}

/* インスタグラム投稿画像のスタイル */
.insta-posts {
  width: 100%;
  margin: 20px 0;
}

.insta-posts-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.insta-post-img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.insta-post-img:hover {
  transform: translateY(-5px);
}

/* インスタグラム投稿スライダーのスタイル */
.insta-slider-container {
  width: 100%;
  position: relative;
  margin: 20px 0;
}

.insta-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 10px;
}

.insta-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.insta-slider .media-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin-right: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.insta-slider .media-slide:last-child {
  margin-right: 0;
}

.insta-slider .media-slide-img {
  width: 90%; /* 100%から90%に変更して10%小さく */
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0 auto; /* 中央揃えにするためにマージンを追加 */
}

/* PC表示のみのコンテンツ用スタイルを確認 */
@media (min-width: 992px) {
  .pc-only {
    display: block;
  }
}

@media (max-width: 992px) {
  .pc-only {
    display: none;
  }
}

/* 画像拡大モーダルのスタイル */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  opacity: 1;
}

.modal-content {
  margin: 0;
  display: block;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
}

.modal-content.show {
  transform: translate(-50%, -50%) scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

/* スマホ版でのみグラフ画像にタップ可能なスタイルを適用 */
@media (max-width: 768px) {
  .approach-image img[src*="graph"] {
    cursor: pointer;
    position: relative;
  }

  .approach-image {
    position: relative;
  }

  .approach-image img[src*="graph"] + .zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 151, 178, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
  }

  .approach-image img[src*="graph"] + .zoom-icon i {
    font-size: 20px;
  }
}

/* PC版ではルーペアイコンを非表示にする */
@media (min-width: 769px) {
  .approach-image .zoom-icon {
    display: none;
  }
}

/* Mobile Fixed Footer Menu */
.mobile-fixed-footer {
  display: block; /* Changed from 'none' to 'block' to ensure visibility */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 15px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.mobile-fixed-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-fixed-footer-text {
  font-size: 0.9rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.mobile-fixed-footer-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}

.mobile-fixed-footer-phone i {
  margin-right: 8px;
}

/* Show only on mobile devices - removed media query to ensure visibility for testing */
/* Adjust the position of the mobile-cta button to not overlap with the fixed footer */

/* Hover effect */
.mobile-fixed-footer:hover {
  transform: translateY(-5px);
  background-color: var(--primary-dark);
}

/* 既存のスタイルの後に以下を追加 */

/* 配信実績のある国のグリッドスタイル */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 10px; /* 20pxから10pxに減らす */
  max-width: 900px;
  margin: 5px auto 5px; /* 上部マージンを15pxから5pxに減らして隙間を詰める */
}

.country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 追加: 縦方向の中央揃え */
  text-align: center;
  margin-bottom: 0; /* 15pxから0に減らす */
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 8px 5px; /* 15px 10pxから8px 5pxに減らす */
  transition: var(--transition);
  height: 100%; /* 追加: 高さを100%に設定 */
}

/* 国旗画像のスタイル調整 */
.country-flag {
  margin-bottom: 5px; /* 追加: 国旗と国名の間に少しスペースを追加 */
}

/* 国名のスタイル調整 */
.country-name {
  margin: 0; /* マージンをリセット */
}

/* スマホ版では3列×5行の固定レイアウトにする */
@media (max-width: 768px) {
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 8px; /* 15pxから8pxに減らす */
  }

  .country-item {
    padding: 6px 4px; /* 12px 8pxから6px 4pxに減らす */
  }
}

@media (max-width: 480px) {
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 5px; /* 10pxから5pxに減らす */
  }

  .country-item {
    padding: 5px 3px; /* 10px 5pxから5px 3pxに減らす */
  }
}

/* 配信実績国の注釈テキスト */
.countries-note {
  text-align: center;
  margin: 0 auto 20px; /* 上部マージンを0に変更 */
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 800px;
}

