body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* ロゴ */
.logo {
  height: 50px;
  width: auto;
}

/* 右側アイテムのラッパー */
.right-items {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* テルボックス */
.custom-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  background-color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon,
.header-info-btn {
  height: 40px;
  width: auto;
}


/* 共通アイコン */
.icon {
  height: 30px;
  width: auto;
}


.main-visual {
  position: relative;
  width: 100vw; /* 端末の横幅にフィット */
  overflow: hidden;
}

.main-img {
  width: 100%;
  height: auto;
  display: block;
}

.top-text {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 80%;
  z-index: 2;
}


/* 下中央に重ねるロゴ画像 */
.bottom-logo {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 60%;
  z-index: 2;
}


/*Main1*/
.main1-section {
  width: 100vw;
  overflow: hidden;
}

.infobox {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 25px; /* ← これを追加！ */
}

/* 背景を一番背面に */
.infobox-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

/* No1 テキスト画像 */
.no1-text {
  position: relative;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
  z-index: 2;
}

/* 見積もりブロック */
.mitumori-box {
  position: relative;
  width: calc(100% - 30px); /* 左右25pxの余白 */
  margin: 10px auto 0;
  z-index: 2;
}

.mitumori-bg {
  width: 100%;
  display: block;
}

.mitumori-text {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;           /* ボックス内に収まる範囲で大きめに */
  max-width: 600px;     /* 最大サイズ制限（お好みで調整） */
}


/* ボタンを中央に横並び */
.info-buttons {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.info-buttons img {
  height: 40px;
  width: auto;
}

/* 電話ボックス */
.tel-box {
  position: relative;
  width: calc(100% - 30px);
  margin: 0 auto;
  z-index: 2;
}

.tel-bg {
  width: 100%;
  display: block;
}

.tel-content {
  position: relative; /* ← absoluteをやめて通常フローに */
  width: 100%;
  padding: 20px 25px 30px;
  box-sizing: border-box;
  z-index: 3;
  color: #000;
}

/* 電話番号まわり */
.tel-content .row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.free-logo {
  height: 30px;
  flex-shrink: 0;
}

.tel-number {
  font-size: 24px;
  font-weight: bold;
}

/* 営業時間まわり */
.eigyotime {
  position: relative;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-bg {
  height: 30px;
  width: auto;
}

.time-text {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}


.topics-section {
  background-color: #fff;
  padding: none;
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 0;
  margin-bottom: 0;
}

.topics-title {
  font-size: 36px;
  font-weight: bold;
  color: #1b5ea3;
  text-align: center;
  top:0px;
  margin-bottom: 30px;
  font-family: "YuGothic", sans-serif;
}

.topics-box {
  position: relative;
}

/* トピック1つずつ */
.topic-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
}

.topic-date {
  font-size: 24px;
  font-weight: bold;
  font-family: "YuGothic", sans-serif;
  color: #000;
  margin-bottom: 10px;
}

.topic-text {
  font-size: 20px;
  color: #000;
  font-family: "YuGothic", sans-serif;
  margin-bottom: 10px;
}

.topic-line {
  height: 6px;
  background-color: #494949;
  margin-bottom: 15px;
}

.topic-button {
  width: 125px;
  height: 38px;
  background-color: #000;
  margin: 10px 0;
}

.topic-triangle {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 21px solid #000;
  position: absolute;
  right: 30px;
  bottom: 10px;
}

/* 応援エリア */
.topic-support {
  position: relative;
  margin-top: 10px;
  background-color: #e3edf7;
  padding: 20px;
  box-sizing: border-box;
}

.support-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  box-sizing: border-box;
  z-index: 0;
}

.support-left {
  width: 60%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.support-text {
  font-size: 20px;
  font-family: "YuGothic", sans-serif;
  color: #000;
  margin: 10px 0;
  z-index: 1;
  position: relative;
}

.support-right {
  width: 35%;
  max-width: 254px;
  float: right;
  z-index: 1;
  position: relative;
}

/* 施工実績 */

/* 施工事例セクション */
.works-title {
  font-size: 36px;
  font-weight: bold;
  color: #1b5ea3;
  text-align: center;
  margin-bottom: 30px;
  font-family: "YuGothic", sans-serif;
}
.works-section {
  width: 100%;
  max-width: 700px; /* ← 他のセクションと同じに */
  margin: 0 auto;   /* ← 中央寄せ */
  padding: 0 10px;  /* ← スマホ時に左右余白 */
  box-sizing: border-box;
}

.works-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #333;
}






/* ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 30px; /* ← ここがドットの下の余白！ */
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  transition: background-color 0.3s;
  cursor: pointer;
}

.slider-dots .dot.active {
  background-color: #333;
}



/* 選ばれる理由セクション */
.reasons-section {
  position: relative;
  width: 100%;
  background-color: #f4f4f4;
  text-align: center;
}

.reasons-wrapper {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.reasons-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ボタンブロック（選ばれる理由画像の下から470pxの位置に重ねる） */
.contact-overlay {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);  /* 左右10pxの余白 */
  max-width: 750px;
  z-index: 10;
}

.overlay-bg {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.overlay-buttons img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}


.estimate-flow-section {
  width: 100%;
  background-color: #ffffff;
  padding: 0; /* 上下に余白、左右はなし */
  margin: 0;
}


.estimate-flow-img {
  width: 100%;         /* ビューポート幅いっぱい */
  max-width: 100vw;     /* 横スクロール防止 */
  height: auto;
  display: block;
}

.price-section {
  width: 100%;
  background-color: #ffffff;
  padding: 0;  /* 上下の余白（必要に応じて調整） */
}

.price-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.voice-section {
  margin: 0;
  padding: 0;
}

.voice-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.faq-section {
  background: url('../images/23_よくある質問背景.png') no-repeat center/cover;
  width: 100%;
  padding: 30px 0; /* 上下paddingを少し短く */
}

.faq-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding-top: 10px; /* ← 上余白を最小限に */
}

.faq-underline {
  width: 120px;
  height: 1px;
  background: #000;
  margin: 0 auto 30px;
}

.faq-item {
  margin: 0 10px 20px; /* ← 左右10px余白追加 */
  border: 1px solid #000;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #114D64;
  color: white;
  padding: 15px 20px;
  font-size: 24px;
  font-weight: bold;
  width: 100%;
  border: none;
  cursor: pointer;
}

.faq-icon {
  margin-right: 15px;
  height: 30px;
}

.toggle-icon {
  font-size: 28px;
  transition: transform 0.3s;
}

.faq-answer {
  display: none;
  background: transparent;
  padding: 20px;
  font-size: 18px;
  color: #000;
}

.faq-a-icon {
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

.contact-section {
  padding: 20px 20px 40px; /* ← 上:20px, 横:20px, 下:40px に変更 */
  background-color: #e5f3fa;
  text-align: center;
}

.section-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
}

.section-underline {
  width: 100px;
  border: 1px solid #000;
  margin: 0 auto 30px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form dl {
  margin-bottom: 20px;
}

.contact-form dt {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-form dd input,
.contact-form dd textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.required {
  color: red;
  font-size: 14px;
  margin-left: 5px;
}

.contact-btn {
  text-align: center;
  margin-top: 30px;
}

.contact-btn button {
  background-color: #1b5ea3;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-btn button:hover {
  background-color: #144d82;
}


.area-info {
  background-color: #fff;
  padding: 40px 20px;
}

.map-container {
  max-width: 750px;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.area-box {
  background: url('../images/24_営業エリア枠.png') no-repeat center center;
  background-size: contain;
  background-color: #fff;
  width: 100%;
  max-width: 670px;
  margin: 10px auto; /* ← 上下余白を10pxに調整 */
  padding: 20px 10px; /* ← 内側の余白もコンパクトに */
  box-sizing: border-box;
}


.area-content {
  text-align: center;
  padding: 10px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  color: #000;
  font-size: 12px;     /* ← 本文を小さく */
  line-height: 1.6;
  max-width: 90%;
}

.area-title {
font-size: 14px;     /* ← タイトルもやや小さめに */
font-weight: bold;
margin: 8px 0;
}
.company-name {
  font-size: 14px;     /* ← タイトルもやや小さめに */
  font-weight: bold;
  margin: 4px 0;
}

.tel-link {
  color: #000;
  text-decoration: underline;
  font-size: 14px;     /* 電話番号の文字サイズも調整 */
}




/* ======================
   PC表示用のスタイル（横幅768px以上）
   ====================== */
   @media screen and (min-width: 768px) {
    body {
      display: flex;
      justify-content: center;
    }
  
    .page-container {
      width: 750px; /* メインコンテンツの幅に合わせる */
      margin: 0 auto;
    }
  
    header.main-header,
    section.main-visual,
    section.main1-section,
    section.topics-section,
    section.reasons-section,
    section.works-section,
    section.flow-section,
    section.price-section,
    section.voice-section,
    section.faq-section,
    section.contact-section,
    section.map-section,
    section.area-info-section,
    footer {
      max-width: 750px;
      margin: 0 auto;
    }
  
    /* スライダー画像も中央寄せかつサイズ制限 */
    .works-slider .slider-track img {
      max-width: 100%;
      height: auto;
    }
  
    /* フッターバナー横並び対応 */
    .foot-banar .up-d-flex {
      flex-direction: row;
      justify-content: space-between;
    }
  
    /* よくある質問のボックスを中央に */
    .faq-box {
      margin: 0 auto;
      max-width: 700px;
    }
  
    /* お問い合わせフォームも中央寄せ */
    .contact-form {
      max-width: 700px;
      margin: 0 auto;
    }
  
    /* 地図も中央寄せ */
    .map-section iframe {
      display: block;
      margin: 0 auto;
      max-width: 100%;
    }
  }
  