html {
  scroll-behavior: smooth; /* スムーススクロールを有効にする */
}
body {
  padding-right: 0;
  background-color: #FFF;
}

h3{
  font-size: 24px;
  font-weight: bold;
}

em{
  font-weight: bold;
  font-style: normal;
  background: linear-gradient(transparent 80%, rgba(245, 227, 82, 0.7) 80%);
}

@media not all and (max-width: 1329px) {
  .header {
    width: calc(100% - 60px);
  }
}
@media (max-width: 1329px) {
  .header__inner {
    width: 100%;
  }
}

@media (max-width: 1329px) {
  .nav {
    width: 100%;
  }
}
@media not all and (max-width: 1329px) {
  .nav__item:last-child .nav__overlay {
    left: auto;
    right: 0;
  }
}

@media (max-width: 767px) {
  .footer__cr {
    padding-bottom: 8px;
  }
  .h2--small{
    font-size: 26px;
  }
}

.aligned-item {
    display: flex; /* Flexboxレイアウトを有効にする */
    align-items: center; /* 子要素を交差軸（デフォルトでは垂直方向）の中央に揃える */
}
/* 元のコードにあった文字部分のパディングを保持するため、imgタグを囲んでいるspanにもCSSを追加 */
.aligned-item > span:first-child {
    padding: 0 10px 0 0; /* 右側の余白を確保 */
    /* Flexboxの子要素になったことで、paddingを適用したい要素を特定しています */
}

/* Main Container with Gradient Background */
.main-support {
  padding-bottom: 80px;
}

.contents-gradient {
  padding: 60px 0;
  min-height: 100vh;
}

.contents {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .contents {
    padding: 0 15px;
  }
}

/* Quick Navigation Buttons */
.quick-nav {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}
.bg-white {
  background-color: #FFF;
  padding: 40px;
  margin: 40px;
  border-radius: 20px;
}
.quick-nav__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #2C2C2C;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 330px;
  width: 100%;
}
.btn{
  margin: 0 auto;
  position: relative;
}

.quick-nav__btn:hover {
  opacity: 0.8;
}

.quick-nav__txt {
  font-size: 18px;
  font-weight: 500;
}

.quick-nav__icon {
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  right: 8px;
}


@media (max-width: 768px) {
  .quick-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}
/* Section Styles */
.content-section {
  margin-bottom: 50px;
  position: relative;
  background-color: #E8FAFF;
  display: flex;
  flex-direction: column;
  padding: 50px 40px;
  border-radius: 20px;
}
.content-section img.area{
  max-width: 500px;
  width: 100%;
}

/* 光コラボレーションとはセクション専用スタイル */

.hikari-collab-section {
  background-color: #FFF;
  border: 5px solid #047AD0;
}

.hikari-collab-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ▼ 新しく追加するスタイル ▼ */
.hikari-collab-left-wrapper {
  flex: 1;
}

.hikari-collab-left-wrapper .h2--small {
  margin-bottom: 20px; /* 見出しと本文の間の余白 */
}
/* ▲ 新しく追加するスタイル ▲ */



.hikari-collab-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.hikari-collab-image {
  flex: 1;
  max-width: 50%;
}
.hikari-collab-image img{
  display: block; 
  margin: 0 auto;
}

@media (max-width: 767px) {
  .hikari-collab-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .hikari-collab-image {
    max-width: 100%;
  }
  .hikari-collab-image img{
    max-width: 250px;
  }

  /* ▼ スマホ用にもマージン調整を追加 ▼ */
  .hikari-collab-left-wrapper .h2--small {
     margin-bottom: 15px; /* スマホ用の余白 */
  }
}

/* 新規契約セクションのスタイル */
.content-section .h2--small {
  position: relative;
  padding-left: 24px;
}

/* .content-section .h2--small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: auto;
  height: 1em;
  width: 4px;
  background-color: #047AD0;
} */

.h2-subtitle {
  font-size: 18px;
  font-weight: 400;
  /* display: block; */
  margin-top: 8px;
  padding-left: 30px;
}

@media (max-width: 767px) {
  .content-section .h2--small::before {
    display: none;
  }
  
  .content-section .h2--small {
    padding-left: 18px;
    font-size: 26px;
  }
  
  .h2-subtitle {
    padding-left: 0;
    display: block;
  }
}

.target-audience {
  display: flex;
  align-items: stretch;
  margin: 0;
  border-radius: 15px;
  overflow: hidden;
}

.target-audience-button {
  background-color: #047AD0;
  color: #FFF;
  font-size: 18px;
  font-weight: bold;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 200px;
  border-radius: 13px 0 0 13px;
  flex-shrink: 0;
}

.target-audience-list {
  background-color: #FFF;
  flex: 1;
  padding: 28px;
  border-radius: 0 13px 13px 0;
}

.target-audience-list ul {
  font-weight: bold;
  font-size: 20px;
  color: #E91E63;
  list-style: none;
  padding: 0;
  margin: 0;
}

.target-audience-list li {
  font-weight: bold;
  font-size: 20px;
  color: #E91E63;
  padding: 0;
  position: relative;
  padding-left: 20px;
}

.target-audience-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #E91E63;
}

@media (max-width: 767px) {
  .target-audience {
    flex-direction: column;
  }
  
  .target-audience-button {
    border-radius: 13px 13px 0 0;
    min-width: auto;
    width: 100%;
    padding: 17px;
  }
  
  .target-audience-list {
    border-radius: 0 0 13px 13px;
    padding: 17px;
  }
}

/* 光回線のメリットとチェック項目セクション専用スタイル */
.benefits-check-section {
  background-color: #047AD0;
  color: #FFF;
}

.benefits-check-section .h2--small {
  color: #FFF;
  position: relative;
  padding-left: 24px;
}

.benefits-check-section .h2--small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #FFF;
}

.benefits-check-section .subsection {
  color: #FFF;
}

.benefits-check-section .subsection p {
  color: #FFF;
  font-size: 18px;
  line-height: 1.8;
}

/* メリットパネル */
.benefits-panels {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0;
}

.benefit-panel {
  background-color: #FFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benefit-panel__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.benefit-panel__icon {
  position: relative;
  flex-shrink: 0;
}

.benefit-panel__icon img {
  width: 60px;
  height: auto;
  display: block;
}

.benefit-panel__title {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0;
}

.benefit-panel__text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

@media (max-width: 767px) {
  .benefits-panels {
    gap: 20px;
    margin: 30px 0;
  }
  
  .benefit-panel {
    padding: 25px 20px;
  }
  
  .benefit-panel__header {
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .benefit-panel__icon img {
    width: 50px;
  }
  
  .benefit-panel__title {
    font-size: 18px;
  }
  
  .benefit-panel__text {
    font-size: 14px;
  }
}

/* チェックリストパネル */
.checklist-panel {
  background-color: #FFF;
  border-radius: 12px;
  padding: 40px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #1a1a1a;
}

.checklist-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .checklist-panel {
    padding: 25px 20px;
    margin-top: 20px;
  }
  
  .checklist-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .checklist-item {
    font-size: 14px;
    gap: 10px;
  }
  
  .checklist-icon {
    width: 18px;
    height: 18px;
  }
}

/* FAQ Section Styles */
.faq-section {
  background-color: #E8FAFF;
}

.faq-section .h2--small {
  position: relative;
  padding-left: 24px;
  color: #1a1a1a;
}

.faq-section .h2--small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #047AD0;
}

.faq-list {
  margin-top: 30px;
}

.faq-item {
  background-color: #F5F5F5;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  gap: 15px;
}

.faq-q,
.faq-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #047AD0;
  color: #FFF;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.faq-question-text {
  flex: 1;
  font-weight: bold;
  font-size: 18px;
  color: #1a1a1a;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #666;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 2px;
  background-color: #FFF;
}

.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 16px;
  height: 2px;
  background-color: #FFF;
  transition: transform 0.3s ease;
}

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

.faq-item.active .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px 20px;
  align-items: flex-start;
  gap: 15px;
}

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

.faq-answer-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.faq-answer-text p {
  margin: 0 0 12px 0;
}

.faq-answer-text p:last-child {
  margin-bottom: 0;
}

.faq-answer-text strong {
  font-weight: bold;
}

@media (max-width: 767px) {
  .faq-question {
    padding: 15px;
    gap: 10px;
  }
  
  .faq-q,
  .faq-a {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  
  .faq-toggle {
    width: 28px;
    height: 28px;
  }
  
  .faq-question-text {
    font-size: 14px;
  }
  
  .faq-answer {
    padding: 0 15px 15px 15px;
  }
  
  .faq-answer-text {
    font-size: 14px;
  }
}

.section-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #00A0E9;
}

.section-title {
  padding-left: 24px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a1a1a;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 20px;
  }
}

.section-desc {
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* Subsection Styles */
.subsection {
  padding-left: 24px;
margin: 0;
}

.subsection-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.square-bullet {
  width: 8px;
  height: 8px;
  background-color: #1a1a1a;
  margin-right: 12px;
  flex-shrink: 0;
}

.subsection-text {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
}

.subsection-desc {
  margin: 10px 0 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* Special Box (Yellow-Green Box) */
.special-box {
  margin: 40px 0 30px;
  padding: 30px;
  background: linear-gradient(135deg, #A4D65E 0%, #8BC34A 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.special-box__img {
  flex-shrink: 0;
}

.special-box__img img {
  width: 80px;
  height: auto;
}

.special-box__content {
  flex: 1;
}

.special-box__text1 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.special-box__text2 {
  font-size: 18px;
  color: #333;
}

/* Article Title */
.section-article-title {
  padding-left: 24px;
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 30px;
  color: #1a1a1a;
}

/* Article Cards */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .article-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card__content {
  padding: 20px;
}

.article-card__text {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Buttons - 他のCSSファイルで定義されているため削除 */

/* ボタンの中央寄せ */
.bg-white .btn {
  margin: 20px auto;
  text-align: center;
}

.bg-white .btn-secondary {
  margin: 20px auto;
  text-align: center;
}

/* Text Links */
.txtLink {
  color: #00A0E9;
  text-decoration: underline;
}

.txtLink:hover {
  text-decoration: none;
}

/* Feature List */
.feature-list {
  padding-left: 24px;
  margin: 20px 0 30px;
  list-style: none;
}

.feature-list li {
  padding: 10px 0;
  font-size: 18px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  background-color: #2C2C2C;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 100;
}

.scroll-to-top:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .scroll-to-top {
    right: 15px;
    bottom: 80px;
    width: 44px;
    height: 44px;
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .contents-gradient {
    padding: 40px 0;
  }

  .content-section {
    margin-bottom: 40px;
    padding: 40px 10px 10px 10px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .special-box {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .special-box__img {
    margin-bottom: 10px;
  }

  .subsection {
    padding-left: 16px;
  }

  .section-desc,
  .subsection-desc {
    font-size: 14px;
  }

  .btn {
    padding: 14px 30px;
    font-size: 14px;
  }
}
/* city-area */
.city-area{
    display: flex;
    border-radius: 15px;
}
.city-area-title{
    font-size: 18px;
    color: #f5f5f5;
    font-weight: bold;
    background-color: #047AD0;
    text-align: center;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
    border-radius: 13px 0 0 13px;
}
.city-area-list{
    background-color: #F5F5F5;
    width: 70%;
    font-size: 18px;
    padding: 28px;
    box-sizing: border-box;
    border-radius: 0 13px 13px 0;
}
@media (max-width: 767px) {
  .city-area{
    flex-direction: column;
  }
  .city-area-title{
    width: 100%;
    border-radius: 13px 13px 0 0;
  }
  .city-area-list{
    width: 100%;
    border-radius: 0 0 13px 13px;
  }
}

.guideList{
    display: flex;
    justify-content: center;
    gap: 40px;
}
.guideList li{
    margin: 0;
}
.guideCard{
  max-width: 267px;
  width: 100%;
}
@media (max-width: 767px) {
  .guideList{
    flex-direction: column;
    align-items: center;
  }
  .guideList li{
    width: 100%;
    max-width: 267px;
  }
}

/* 便利なサービスエリアのpタグスタイル */
.bg-white p {
    font-size: 18px;
    line-height: 1.8;
    margin: 16px 0;
    color: #333;
    padding: 0 24px;
}

@media (max-width: 767px) {
    .bg-white{
      padding: 10px;
      margin: 10px;
    }
    .bg-white p {
        font-size: 14px;
        line-height: 1.7;
        margin: 14px 0;
        padding: 0 16px;
    }
}

/* ----------------------------------
 * QAセクション (画面幅いっぱい)
 * ---------------------------------- */
.qa {
  background-color: #F5F5F5; /* ご希望の背景色 */
  padding: 60px 0; /* 上下の余白（他のセクションと合わせる） */
}

/* QAセクションのインナー（幅制限） */
.qa__inner {
  max-width: 1200px; /* .contents と同じ幅 */
  margin: 0 auto;
  padding: 0 20px; /* .contents と同じ左右パディング */
}

/* * .qa 内の h2--small にもスタイルを適用
 * (提供されたCSS内の .faq-section .h2--small のスタイルを参考にしています)
 */
.qa .h2--small {
  position: relative;
  padding-left: 24px;
  color: #1a1a1a;
  margin-bottom: 30px; /* 見出しの下に余白を追加 */
}

.qa .h2--small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #047AD0; /* .faq-section と同じラインの色 */
}

/* ----------------------------------
 * レスポンシブ対応 (767px以下)
 * ---------------------------------- */
@media (max-width: 767px) {
  .qa {
    padding: 40px 0; /* スマホ用の上下余白 */
  }

  .qa__inner {
    padding: 0 15px; /* .contents のスマホ用パディングに合わせる */
  }

  .qa .h2--small {
    font-size: 26px; /* スマホ用のフォントサイズ */
  }
}

