/* 全体背景色 */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f8f5f0;  /* 全体背景色 */
}

.container {
  width: 100%;
  max-width: 650px;
  margin: 77px auto auto;
}
container1 {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}


/* ヘッダー */
header {
  background-color: #f8f5f0;
  padding: 5px 0 0 0;
}
header .logo {
  font-size: 24px;
}
header nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}
header nav ul li a {
  text-decoration: none;
  color: #333;
}

/* メインビジュアル上の画像 */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}
.hero {
  background-color: #d3e5e9;  /*背景色 */
}

/* 光るボタン */
.button-wrapper {
  text-align: center;
  margin: 40px 0;
}

.shiny-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #FF5722;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* 光のアニメーション（自動で光る） */
.shiny-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(25deg);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  50% { left: 125%; }
  100% { left: -75%; }
}

/* PC画面向けにボタンサイズを大きくする */
@media screen and (min-width: 1024px) {
  .shiny-btn {
    padding: 25px 50px;
    font-size: 28px;
  }
}

/* 背景色だけ横幅いっぱいのセクション */
.hero-bg-full {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;

  /* 上20%透明、下80%色付き */
  background: linear-gradient(
    to bottom,
    rgba(216,124,43,0) 0%,    /* 上端透明 */
    rgba(216,124,43,0) 24.2%,   /* 20%まで透明 */
    #d87c2b 24.2%,              /* 20%から色付き開始 */
    #d87c2b 100%              /* 下端まで色付き */
  );
}

/* 画像は固定幅（PCは400px、スマホでは画面幅に合わせる） */
.hero-image-fixed {
  display: block;
  width: 650px !important;   /* PCで固定幅 */
  max-width: 100%;           /* スマホで画面幅に合わせて縮小 */
  height: auto;
  margin: 0 auto;            /* 中央寄せ */
}

/* フッター */
footer {
  background-color: #f8f5f0;
  padding: 20px 0 0 0;
  text-align: center;
}
/* images/3.png用のラッパー */
.hero-image-3-wrapper {
  position: relative;
  width: 100%;              /* 横幅いっぱい */
  background-color: #1c588b;/* 上95%の背景色 */
  text-align: center;
  overflow: hidden;
  padding: 0;               /* 画像の上下マージン調整 */
}



/* 中央の画像 */
.hero-image-3-wrapper img {
  max-width: 650px;         /* PCで最大650px */
  width: 90%;               /* スマホ対応 */
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-top:5%;
}

/* 下5%を透過させるためのオーバーレイ */
.hero-image-3-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4.5%;               /* 下5% */
  background-color: #f8f5f0;/* ページ背景色で透過に見せる */
  z-index: 1;
  pointer-events: none;
}
/* すべてのhero-image共通設定 */
.hero-image {
  display: block;
  width: 100%;
  max-width: 650px; /* PCで最大650pxに統一 */
  height: auto;
  margin: 0 auto;   /* 中央寄せ */
}
/* 横幅いっぱいの背景色 #475684 */
.hero-bg-5 {
  width: 100%;             /* 横幅いっぱい */
  background-color: #475684;
  text-align: center;      /* 中央寄せ */
  padding: 20px 0;         /* 上下に余白 */
}

/* 画像は他と同じ幅で中央寄せ */
.hero-bg-5 .hero-image {
  max-width: 650px;
  width: 90%;   /* スマホ対応 */
  height: auto;
  margin: 0 auto;
  display: block;
}




/* 紙吹雪貼り付けはここから */
.background-section {
  position: relative;
  width: 100%;
  text-align: center;
  /* 背景画像をリピート */
  background-image: url('../images/bg.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

/* 上5%だけ塗りつぶす色 */
.background-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.45%;
  background-color: #475684;
  z-index: 0; /* 画像より下にならない場合は調整 */
}

/* 画像は既存設定通り */
.background-section .hero-image {
  position: relative;
  z-index: 1; /* ::beforeより前に表示 */
  display: block;
  margin: 0 auto;
  width: 90%;
  max-width: 650px;
  height: auto;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .background-section .hero-image {
    width: 90%;
    max-width: 650px;
  }
}

/* 8.png */
.orange-section {
  position: relative;
  width: 100%;
  text-align: center;

  /* 背景色 */
  background-color: #d87c2b;

  /* 上の余白を作って半円と背景を下げる */
  padding-top: 40px;  /* 半円位置を下げたい分だけ調整 */

  /* 半円を上辺に追加 */
  border-top-left-radius: 50% 30px;  
  border-top-right-radius: 50% 30px;
}

/* 画像は前面に */
.orange-section .hero-image {
  display: block;
  max-width: 650px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}


/* 8-1ボタンセクション */
.contact-section {
  width: 100%;
  text-align: center;
  padding: 0 0 5%;
}
.contact-section1 {
  width: 100%;
  background-color: #d87c2b; /* 背景色 */
  text-align: center;
  padding: 1px 0;
}

.contact-section .button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* 共通ボタン */
.contact-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: bold;
  color: #d87c2b;         /* 文字色をオレンジ系に */
  background-color: #fff;  /* 白背景 */
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 光るアニメーション */
.contact-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,0.5);
  transform: rotate(25deg);
  animation: shine 2s infinite;
  z-index: 0;
}

/* ホバーで拡大 */
.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* ボタン文字は前面に */
.contact-btn span, .contact-btn {
  position: relative;
  z-index: 1;
}

/* shine アニメーション */
@keyframes shine {
  0% { left: -75%; }
  50% { left: 125%; }
  100% { left: -75%; }
}

/* PC画面用にボタンを大きく */
@media screen and (min-width: 1024px) {
  .contact-btn {
    padding: 25px 60px;
    font-size: 28px;
  }
}

/* 電話ボタン内のアイコン少し余白 */
.phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* アイコンと文字の間隔 */
}

/* ｶﾘｱｹﾞ太郎の流れ */
.check-section {
  width: 100%;
  text-align: center;
  background-color: #475684; /* 背景色 */

  /* 薄いグレーの格子模様 */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 10px 10px; /* 正方形のサイズ */
  padding: 20px 0; /* 上下余白 */
}

.check-section .hero-image {
  max-width: 650px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}


  /* QAセクション */
/* セクション全体 */
.faq-section {
  background-color: #f2f5f8;
  padding: 60px 20px;
}

/* タイトル部分 */
.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

/* FAQラベル（白抜き＋角丸背景） */
.faq-tag {
  display: inline-block;
  background-color: #475684;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 8px 24px;
  border-radius: 30px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* よくある質問タイトル */
.faq-title {
  font-size: 32px;
  color: #475684;
  margin: 0;
}

/* QAボックス */
.qa-box {
  background: #fff;
  width: 650px;
  max-width: 100%;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-family: "Noto Sans JP", sans-serif;
  margin: 20px auto;
  overflow: hidden;
  text-align: left; /* ← 中央揃えを防止 */
}

/* 質問部分 */
.qa-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 16px;
  font-size: 20px;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s;
  font-weight: bold; /* 質問文を太字にする */
}

.qa-question:hover {
  background: #f7f7f7;
}

/* Qラベル */
.qa-label {
  background: #475684;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 12px;
}

/* 質問テキスト */
.qa-text {
  flex-grow: 1;
}

/* ＋マーク */
.qa-toggle {
  font-size: 26px;
  color: #555;
  transition: transform 0.3s;
}

/* 回答部分 */
.qa-answer {
  display: none;
  padding: 18px 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* 開いた状態 */
.qa-question.active + .qa-answer {
  display: block;
}

.qa-question.active .qa-toggle {
  transform: rotate(45deg);
}


/* 問い合わせタイトル */
.image-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-section img {
  display: block;
  width: 100%;
  height: auto;
}

.image-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 擬似要素自体は画像全体 */
  background: linear-gradient(
    to top,
    #475684 30%,   /* 下30%まで塗る */
    transparent 10% /* 10%より上は透明 */
  );
  z-index: 0;
}

/* 画像を前面に */
.image-section img {
  position: relative;
  z-index: 1;
}

/* CTAセクション全体 */
.cta-section {
  width: 100%;
  background-color: #d87c2b;
  text-align: center;
  padding: 20px 0;
}

/* 内側コンテナ（PCで幅650pxに制限） */
.cta-section .cta-container {
  width: 90%;
  max-width: 650px;
  margin: 0 auto;
}

/* 文章スタイル */
.cta-section p {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
}

/* PC向け調整 */
@media screen and (min-width: 1024px) {
  .cta-section p {
    font-size: 32px;
  }
}

/* スマホ向け調整 */
@media screen and (max-width: 480px) {
  .cta-section p {
    font-size: 20px;
  }
}


/* ===============================
   グローバルメニュー 共通
================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.global-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

/* ロゴ */
.logo {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;  /* ← 縦方向の中央揃え */
  justify-content: center; /* ← 横方向も中央揃え（必要なら） */
  height: 50px; /* ボックスの高さを指定（任意） */
}

/* PC用メニュー */
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  padding: 9px 15px;
  font-weight: bold;
  font-size: 80%; /* 小さめに調整 */
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #FF9800;
}

/* ボタン共通 */
.btn {
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 各ボタン色 */
.phone-btn {
  background-color: #0c9625;
}

.form-btn {
  background-color: #de7c38;
}

/* ハンバーガー */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background-color: #c18954;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
}

/* モバイルメニュー背景色を変更 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: #c18954; /* 変更 */
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1100;
}

/* モバイルメニュー内リンク色を白に */
.mobile-menu a {
  margin: 10px 0;
  text-decoration: none;
  color: #fff;
  font-weight: bold; /* ボタン風の強調 */
  font-size: 16px;
}
.mobile-menu .btn {
  margin: 10px 0;
}

/* 閉じるボタン */
.close-btn {
  font-size: 30px;
  cursor: pointer;
  align-self: flex-end;
}

/* メディアクエリ */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
.logo img {
  width: 220px; /* PC用の標準サイズ */
  height: auto;
}

@media screen and (max-width: 768px) {
  .logo img {
    width: 180px; /* スマホ時のサイズ */
  }
}
#toTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #c18954;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: none; /* 最初は非表示 */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  z-index: 999;
}

#toTopBtn:hover {


  opacity: 0.8;
}
.footer {
  background-color: #f8f8f8;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
}

.footer-inner {
  padding: 40px 20px 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #c18954;
}

/* ▼ 下の帯（縦中央にコピーライト） */
.footer-bottom {
  display: flex;
  align-items: center;   /* ← 縦中央揃え */
  justify-content: center; /* ← 横中央揃え */
  background-color: #475684;
  color: #fff;
  height: 60px;           /* ← 帯の高さを指定（自由に調整） */
  border-bottom: 3px solid #475684;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* ▼ フォームエリア */
#contact {
  background-color: #ffffff;
  padding: 40px 0;
}

#contact h2 {
  color: #475684;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

/* iframeの外枠デザイン */
#contact iframe {
  display: block;
  width: 90%;
  max-width: 900px;
  height: 800px;
  margin: 0 auto;
  border: 5px solid #475684;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ページ内リンク */
#feature,
#area,
#faq,
#contact {
  scroll-margin-top: 80px; /* ヘッダー分の余白 */
}
.line-btn {
  background-color: #00c300;  /* LINEカラー */
  color: #fff;
  padding: 12px 36px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.line-btn:hover {
  background-color: #00a600;
}
/* 下の小ボタンラッパー（横並び） */
.sub-buttons {
  display: flex;
  gap: 20px;
  justify-content: center; /* 中央揃え */
}

/* 下のボタン共通スタイル */
.sub-btn {
  display: inline-block;
  padding: 10px 24px;      /* 大ボタンの半分くらい */
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーで少し浮く */
.sub-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* 個別色 */
.phone-btn { background-color: #00c300; }  /* 緑 */
.line-btn  { background-color: #00bfff; }  /* 青っぽいLINEカラー */

/* 大ボタンの色修正 */
.contact-btn {
  background-color: #FF5722; /* オレンジ背景 */
  color: #fff;               /* 文字は白 */
}

/* 下の小ボタンラッパー（横並び） */
.sub-buttons {
  display: flex;
  gap: 20px;
  justify-content: center; /* 中央揃え */
}

/* 下のボタン共通スタイル */
.sub-btn {
  display: inline-block;
  padding: 10px 24px;      /* 大ボタンの半分くらい */
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーで少し浮く */
.sub-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* 個別色 */
.phone-btn { background-color: #0077cc; }  /* 青系 */
.line-btn  { background-color: #00c300; }  /* 緑（LINEカラー） */

.contact-btn {
  display: inline-flex;        /* 横並びだけでなく縦中央揃えも可能 */
  align-items: center;         /* 縦方向中央 */
  justify-content: center;     /* 横方向中央 */
  text-align: center;          /* 文字中央 */
  padding: 12px 30px;          /* ボタン内余白 */
  height: auto;                /* 必要に応じて自動 */
  line-height: normal;         /* line-height 調整 */
}
