:root {
  --primary-color: #1b3c87;
  --secondary-color: #4a90e2;
  --accent-color: #d8192c;
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --dark-bg: #e9ecef;
  --white: #ffffff;
  --section-bg-1: #bbe2f1;
  --section-bg-2: #bbe2f1; /* #e7e7e7から#bbe2f1に変更して水色に統一 */
  --heading-color: #1b3c87;
}

* {
  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(--text-color);
  overflow-x: hidden;
  position: relative; /* Add this */
}

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

@media (min-width: 787px) {
  .container {
    max-width: 2000px;
  }

  /* Center all sections */
  .section,
  .section-alt {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
  }

  /* Center the content within sections */
  .problems-list,
  .features,
  .services-grid,
  .case-studies-grid,
  .faq-list,
  .contact-content,
  .flow-list,
  .contact-section-middle {
    max-width: 2000px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem calc((100% - 1800px) / 2); /* Add horizontal padding to maintain content width */
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 0;
  background-color: var(--section-bg-1);
  text-align: center;
  width: 100%;
  height: 100vh;
  max-height: 946px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/mainvisualpc.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 2338px; /* Changed from 800px to 2338px */
  margin: 0 auto;
}

@media (min-width: 787px) {
  .hero {
    width: 2000px; /* Changed from 100% to fixed 2000px */
    max-width: none; /* Remove max-width constraint */
    height: 800px;
    margin: 0 auto;
  }

  .hero::before {
    width: 2000px; /* Changed from max-width to fixed width */
    max-width: none; /* Remove max-width constraint */
    left: 50%;
    transform: translateX(-50%);
    background-size: 2000px auto; /* Add this line to set exact width */
  }
  .hero .container {
    width: 2000px; /* Set fixed width */
    max-width: none; /* Remove max-width constraint */
  }
}

/* Section Styles */
.section {
  padding: 2rem 0 3rem; /* 上側のパディングを2remに減らし、下側は3remのまま */
  background-color: var(--section-bg-2);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/bg1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transform: scaleY(-1);
  z-index: 1;
}

.section > * {
  position: relative;
  z-index: 2;
}

.section-alt {
  padding: 2rem 0 3rem; /* 上側のパディングを2remに減らし、下側は3remのまま */
  background-color: var(--section-bg-1);
  position: relative;
  overflow: hidden;
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/bg1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.section-alt > * {
  position: relative;
  z-index: 2;
}

/* Enhanced Section Title */
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--heading-color);
  position: relative;
  padding: 2.5rem 3rem;
  display: block;
  background: linear-gradient(135deg, rgba(27, 60, 135, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(27, 60, 135, 0.1);
  animation: titleFadeIn 0.8s ease-out forwards;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  line-height: 1.3;
  font-family: "Noto Sans JP", sans-serif;
}

/* 装飾なしのセクションタイトル */
.section-title.no-decoration {
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2rem;
  animation: none;
  font-weight: 900; /* より太く */
  font-size: 3.5rem; /* フォントサイズを大きく */
  font-family: "Noto Sans JP", "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; /* Noto Sans JPを追加 */
  text-shadow: -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff, -3px 0 0
    #fff, 3px 0 0 #fff; /* 白の縁取りを太く */
  line-height: 1.2; /* 行間を少し詰める */
}

.section-title.no-decoration::before,
.section-title.no-decoration::after {
  display: none;
}

/* PCでの改行制御 - sp-onlyクラスを追加 */
@media (min-width: 787px) {
  .sp-only {
    display: none;
  }
  .pc-only {
    display: inline;
  }
}

/* モバイルでの改行制御 */
@media (max-width: 786px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* PCでの改行制御 */
@media (min-width: 787px) {
  .section-title br {
    display: none;
  }
  .section-title br.pc-only {
    display: block;
  }
}

/* モバイル表示時のお問い合わせタイトルの改行を非表示 */
@media (max-width: 786px) {
  #contact .section-title.no-decoration br {
    display: none;
  }

  /* インターディペンデンスで安心できる3つの理由の改行を非表示 */
  #why-choose .section-title.no-decoration br {
    display: none;
  }
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border: 5px solid var(--primary-color);
  opacity: 0;
  animation: cornerFade 0.8s ease-out 0.3s forwards;
}

.section-title::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.section-title::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cornerFade {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.container h2.section-title {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.arrow-image {
  width: 300px; /* 400pxからさらに100px小さくして300pxに変更 */
  height: auto;
  margin: 0 auto;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.section-arrow {
  text-align: center;
  margin: 3rem 0;
}

.arrow-image {
  width: 300px;
  height: auto;
  margin: 0 auto;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.effect-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--heading-color);
  text-align: center;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(27, 60, 135, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(27, 60, 135, 0.1);
  max-width: 800px;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
  position: relative;
  z-index: 2;
}

.cta-container {
  text-align: center;
  margin: 2rem 0 3rem;
}

/* Problems Section */
.problems-list {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem;
  display: grid;
  gap: 2rem;
}

.problem-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.problem-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  align-self: center;
}

.problem-content {
  flex: 1;
}

.problem-content h3 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 1.6rem; /* 1.2remから1.6remに拡大 */
  font-weight: 900; /* フォントの太さも調整 */
}

.problem-content p {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem;
}

.feature-card {
  width: 100%;
  max-width: 100%; /* 600pxから100%に変更して「検索型広告でお困りではありませんか」セクションと合わせる */
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 「インターディペンデンスで安心できる3つの理由」セクションの数字スタイルを「配信までの流れ」と合わせる */
.feature-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-right: 1.5rem;
}

/* レスポンシブ対応 - スマホ表示時の数字スタイル */
@media (max-width: 786px) {
  .feature-number {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    margin-right: 10px;
    margin-top: -5px;
  }

  /* スマホ表示時のカードタイトルレイアウト調整 */
  .feature-card-title {
    justify-content: flex-start;
    text-align: left;
  }
}

.feature-title-text {
  color: var(--heading-color);
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.4;
  font-family: "Noto Sans JP", sans-serif;
}

.feature-title-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.feature-icon {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem; /* 3remから3rem 2.5remに変更して「配信までの流れ」と合わせる */
}

/* PC版でサービス内容のカードを縦1列に変更 */
@media (min-width: 787px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 800px; /* 600pxから800pxに変更して「配信までの流れ」と合わせる */
    padding: 3rem 2.5rem; /* paddingを「配信までの流れ」と合わせる */
  }

  .service-card {
    max-width: 100%;
    padding: 2rem; /* 1.5remから2remに変更して「配信までの流れ」と合わせる */
  }
}

.service-card {
  padding: 2rem; /* 1.5remから2remに変更して「配信までの流れ」と合わせる */
  background-color: var(--white);
  border-radius: 8px;
  transition: transform 0.3s;
  font-size: 0.9rem; /* 0.95remから0.9remに減らす */
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 180px; /* 200pxから180pxに減らす */
  justify-content: center; /* flex-startからcenterに変更して縦方向中央揃え */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.service-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-title-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0;
}

/* Services内の特定画像の調整 */
.service-card img[src*="h3title6"],
.service-card img[src*="h3title7"] {
  display: block;
  margin: 0 auto 0.5rem;
}

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem; /* 2remから2.5remに変更 */
}

.case-study-card {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.case-study-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.case-study-card h3 {
  color: var(--heading-color);
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem; /* 2remから2.5remに変更 */
  display: grid;
  gap: 2rem;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.faq-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.faq-content {
  flex: 1;
}

.faq-content h3 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.faq-content p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.faq-item:last-child .faq-image img {
  width: 64px;
  height: auto;
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem;
  color: var(--white);
}

.contact-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-weight: bold; /* 太字に設定 */
}

/* PC版でのフォントサイズを大きくする */
@media (min-width: 787px) {
  .contact-phone {
    font-size: 2.64rem; /* 2.2remから20%増加 */
  }
}

.contact-content p:first-of-type {
  margin-bottom: 2rem;
}

/* 新しく追加したメッセージのスタイルを定義します。 */
.contact-message {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* レスポンシブ対応 */
@media (max-width: 786px) {
  .contact-message {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

/* 新しく追加した中央のお問い合わせセクションのスタイル */
.contact-section-middle {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f58220;
  border-radius: 8px;
  text-align: center;
}

/* PC版での幅を他のセクションに合わせる */
@media (min-width: 787px) {
  .contact-section-middle {
    max-width: 800px;
  }

  /* PC版でのメッセージフォントサイズを大きくする */
  .contact-message {
    font-size: 1.4rem;
  }

  /* PC版で改行を非表示にする */
  .contact-message br {
    display: none;
  }

  /* PC版でボタンの幅を大きくする */
  .contact-button {
    max-width: 350px;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 900;
    transition: all 0.3s ease;
    white-space: nowrap; /* テキストの折り返しを防止 */
  }

  /* ボタンのホバー効果を強調 */
  .contact-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }

  /* ボタンコンテナの間隔を広げる */
  .contact-buttons {
    gap: 2rem;
  }
}

.contact-phone {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.1;
}

/* 中央のお問い合わせセクションの営業時間の上マージンを変更して行間を開ける */
.contact-hours {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px; /* -4pxから8pxに変更して行間を開ける */
  margin-bottom: 1.5rem;
  line-height: 1;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  color: #f58220;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 200px;
}

.contact-button:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.contact-button .icon {
  width: 1.2em;
  height: 1.2em;
  stroke: #f58220;
}

/* レスポンシブ対応 */
@media (max-width: 786px) {
  .contact-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .contact-phone {
    font-size: 1.8rem;
  }
}

/* PC版での電話番号フォントサイズを大きくする */
@media (min-width: 787px) {
  .contact-section-middle .contact-phone {
    font-size: 2.64rem; /* 2.2remから20%増加 */
  }
}

.cta-button {
  display: inline-block;
  padding: 1.1rem 3.3rem;
  margin-top: 2rem;
  background-color: #f58220;
  background-image: linear-gradient(to bottom, #ff9642, #f58220);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: 6px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(0);
  animation: heartbeat 1.5s ease-in-out infinite; /* yaji1.pngと同じアニメーションを追加 */
}

.cta-button:hover {
  background-color: #d66d15;
  background-image: linear-gradient(to bottom, #f58220, #d66d15);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 3px 2px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(to top, #ff9642, #f58220);
}

/* PC用サイドメニュー */
.pc-side-menu {
  position: fixed;
  bottom: 20px; /* 右下に配置するよう変更 */
  right: 0;
  z-index: 1000;
  display: none;
}

@media (min-width: 787px) {
  .pc-side-menu {
    display: block;
  }
}

.pc-side-menu-content {
  background-color: #f58220;
  padding: 1.5rem;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  width: 280px;
  position: relative;
}

.pc-side-menu-phone {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.1;
  position: relative; /* 位置指定のため追加 */
  z-index: 2; /* キャラクターより前に表示 */
}

/* PC用サイドメニューの営業時間を下げる */
.pc-side-menu-hours {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 4px; /* -4pxから4pxに変更して下に移動 */
  margin-bottom: 1rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.pc-side-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative; /* 位置指定のため追加 */
  z-index: 2; /* キャラクターより前に表示 */
}

.pc-side-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--white);
  color: #f58220;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pc-side-menu-button:hover {
  background-color: #f8f9fa;
}

.pc-side-menu-button .icon {
  width: 1.2em;
  height: 1.2em;
  stroke: #f58220;
}

/* PC用サイドメニューのキャラクター */
.pc-side-character {
  position: absolute;
  right: -15px;
  top: -50px;
  height: 156px;
  width: auto;
  z-index: 1; /* z-indexを1に変更 */
}

/* Footer */
.footer {
  background-color: #f8f9fa; /* #f58220から薄いグレー(--light-bg)に変更 */
  color: var(--text-color); /* 白から通常のテキスト色に変更 */
  padding: 1.5rem 0;
}

.footer-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.footer-logo {
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer h2 {
  margin-bottom: 0.75rem;
  font-size: 0.9rem; /* 1.1remから0.9remに小さく変更 */
  font-weight: 500;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 300;
  opacity: 0.9;
}

/* Mobile Footer  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 300;
  opacity: 0.9;
}

/* Mobile Footer Menu */
.mobile-footer-menu {
  display: none; /* デフォルトで非表示に設定 */
}

/* モバイル時のみ表示 */
@media (max-width: 786px) {
  .mobile-footer-menu {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f58220;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    z-index: 1000;
  }
}

.mobile-footer-text {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}

/* mobile-footer-phoneのスタイルを追加 */
.mobile-footer-phone {
  text-align: left;
  font-size: 1.8rem; /* 2.6remから2.1remに約20%小さく変更, さらに小さく変更 */
  font-weight: 700;
  margin-bottom: 0;
  color: var(--white);
  position: relative;
  z-index: 2;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  padding-left: 0.5rem;
  line-height: 1.1;
}

/* モバイル用フッターメニューの営業時間を下げる */
.mobile-footer-hours {
  text-align: left;
  font-size: 0.85rem; /* 0.9remから0.85remに変更 */
  font-weight: 700;
  margin-top: 2px; /* 4pxから2pxに変更 */
  margin-bottom: 0.4rem; /* 0.5remから0.4remに変更 */
  color: var(--white);
  position: relative;
  z-index: 2;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  padding-left: 0.5rem;
  line-height: 1;
}

.mobile-footer-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  position: relative;
  z-index: 10; /* ボタンコンテナのz-indexを上げる */
}

.mobile-footer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem; /* 0.5rem 1remから0.4rem 0.75remに変更 */
  background-color: var(--white);
  color: #f58220;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem; /* 0.9remから0.85remに変更 */
  font-weight: bold;
  transition: background-color 0.3s;
  flex: 1;
  max-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10; /* ボタン自体のz-indexも上げる */
}

.mobile-footer-button:hover {
  background-color: #f8f9fa;
}

.mobile-footer-button .icon {
  width: 1.2em;
  height: 1.2em;
  stroke: #f58220;
}

/* フッターキャラクター */
.footer-character {
  position: absolute;
  right: 0;
  bottom: -10px; /* -15pxから-10pxに変更 */
  height: 180px; /* 240pxから180pxに変更 */
  width: auto;
  z-index: 1;
}

/* 配信までの流れ セクション */
.flow-list {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(113, 155, 173, 0.7);
  padding: 3rem 2.5rem;
  display: grid;
  gap: 2rem;
}

.flow-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  left: 2.5rem;
  width: 2px;
  height: 2rem;
  background-color: var(--primary-color);
}

.flow-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  align-self: center; /* Add this line to center vertically */
}

.flow-content {
  flex: 1;
}

.flow-content h3 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.flow-content p {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* レスポンシブ対応 */
@media (max-width: 786px) {
  .flow-number {
    width: 60px;
    height: 60px;
    font-size: 2.4rem;
  }

  .flow-item {
    padding: 1.5rem;
    gap: 1rem;
  }

  .flow-item:not(:last-child)::after {
    left: 1.5rem;
    height: 1.5rem;
    bottom: -1.5rem;
  }

  .flow-list {
    margin: 0 -15px;
    padding: 2rem;
    gap: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero::before {
    width: 100%;
    max-width: 1000px;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列を維持 */
  }
}

@media (min-width: 787px) {
  .hero img[src*="chara"],
  img[src*="chara"]:not(.pc-side-character),
  .hero-character {
    display: none;
  }
}

@media (max-width: 786px) {
  .mobile-footer-menu {
    display: block;
  }

  .hero {
    position: relative;
    width: 100%;
    height: 600px; /* 500px から 600px に増加 */
    min-height: auto;
    padding-top: 0 !important; /* Change from 40px to 0 */
    margin: 0;
    overflow: visible;
    background-color: var(--section-bg-1);
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0; /* Change from 40px to 0 */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 500px;
    height: 600px; /* 500px から 600px に増加 */
    background-image: url("images/mainvisualsp.png");
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
    z-index: 1;
  }

  #why-choose {
    position: relative;
    margin-top: -40px; /* Change from 0 to -40px to reduce gap */
    width: 100%;
    padding: 2rem 15px;
    background-color: var(--section-bg-1);
    z-index: 2;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title.no-decoration {
    font-size: 2.5rem; /* モバイル表示時は少し小さく */
  }

  .arrow-image {
    width: 80%;
    max-width: 300px; /* 400pxから300pxに変更 */
  }

  .section-arrow {
    margin: 2rem 0;
  }

  .effect-title {
    font-size: 1.8rem;
    padding: 0.75rem 1rem;
  }

  .container {
    width: 100%;
    padding: 0 15px;
    margin: 0;
  }

  .section,
  .section-alt {
    padding: 2rem 15px;
    margin: 0;
  }

  .section::before,
  .section-alt::before,
  .hero::after {
    background-size: 200% auto;
  }

  /* モバイル表示時のカードスタイルを統一 */
  .features,
  .services-grid,
  .case-studies-grid,
  .faq-list,
  .problems-list,
  .contact-content {
    margin: 0 -15px;
    padding: 2rem;
    gap: 0.75rem; /* 2remから0.75remに変更してカード間のスペースを詰める */
  }

  .feature-card,
  .service-card,
  .problem-card {
    padding: 1.5rem; /* 統一したパディング */
    min-height: auto; /* モバイルでは最小高さを解除 */
  }

  /* モバイル版のサービスカードを中央揃え */
  .services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 100%;
    justify-content: center; /* 縦方向の中央揃え */
  }

  .faq-item,
  .problem-card {
    padding: 1.5rem;
    gap: 1rem;
  }

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

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    flex-direction: row;
    text-align: left;
    padding: 1.5rem;
    gap: 1rem;
    align-items: flex-start;
  }

  .problem-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .problem-number {
    width: 60px;
    height: 60px;
    font-size: 2.4rem;
  }

  .faq-image {
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .faq-content {
    flex: 1;
  }

  .faq-content h3 {
    font-size: 1rem;
    margin-top: 0.25rem;
  }

  .faq-item:last-child .faq-image img {
    width: 36px;
  }

  .footer {
    margin-bottom: 0;
  }

  .mobile-footer-menu {
    display: block;
  }
  /* 削除 */

  .footer-character {
    height: 180px; /* レスポンシブ対応も調整 */
    bottom: -10px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
    padding: 1rem 1.5rem; /* モバイル表示時は少し小さく */
  }

  .section-title.no-decoration {
    font-size: 2rem; /* さらに小さい画面ではさらに小さく */
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    line-height: 1.5;
  }

  .section-title::before,
  .section-title::after {
    width: 30px;
    height: 30px;
    border-width: 3px;
  }

  .footer-character {
    height: 210px; /* 小さい画面でも調整 */
    bottom: -10px;
  }
}

@media (max-width: 786px) {
  .feature-title-text {
    font-size: 1.3rem;
  }
}

/* Update the mobile styles for problem cards to position numbers next to titles */
@media (max-width: 786px) {
  .problem-card {
    padding: 1.5rem;
    text-align: left;
  }

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

/* Update the mobile styles for flow items to position numbers next to titles */
@media (max-width: 786px) {
  .flow-item {
    display: block;
    padding: 1.5rem;
  }

  .flow-number {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    margin-right: 10px;
    float: left;
    margin-top: -5px;
  }

  .flow-content h3 {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .flow-content p {
    clear: both;
    padding-top: 0.5rem;
  }

  .flow-item:not(:last-child)::after {
    left: 20px;
  }
}

.service-title-text {
  color: var(--heading-color);
  font-size: 1.6rem; /* 1.8remから1.6remに縮小 */
  font-weight: 900; /* 700から900に変更して太字に */
  margin: 0;
  line-height: 1.4;
  font-family: "Noto Sans JP", sans-serif;
}

/* Update the mobile hero section to remove the top gap */
@media (max-width: 786px) {
  .hero {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: auto;
    padding-top: 0 !important; /* Change from 40px to 0 */
    margin: 0;
    overflow: visible;
    background-color: var(--section-bg-1);
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0; /* Change from 40px to 0 */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 500px;
    height: 600px;
    background-image: url("images/mainvisualsp.png");
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
    z-index: 1;
  }
}

@media (min-width: 787px) {
  .problem-card p,
  .feature-card p,
  .service-card p,
  .flow-item p {
    font-size: 1.1rem;
  }
}

@media (min-width: 787px) {
  .contact-content p {
    font-size: 1.4rem;
    line-height: 1.8;
  }
}

@media (min-width: 787px) {
  .desktop-break {
    display: block;
  }
}

@media (max-width: 786px) {
  .desktop-break {
    display: none;
  }
}

/* 金額表示用のスタイルを追加 */
.price-highlight {
  font-size: 2.8rem;
  color: #f58220;
  font-weight: 900;
  margin: 0 0.2rem;
}

/* スマホ表示時は少し小さく */
@media (max-width: 786px) {
  .price-highlight {
    font-size: 2.2rem;
  }
}

