/*
Theme Name: Regood
Theme URI: http://regood.jp/
Author: NANA
Author URI: http://regood.jp/
Description: オリジナルテーマ「Regood」 - ランディングページ用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regood
*/

/* =====================================================================
   1. Global Base Styles
===================================================================== */

/* 全体の背景・テキスト設定 */
html {
}

body {
  color: #2d2d2d;
  font-family: 'Noto Sans Japanese', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.site-main {
  background: #ffffff;
  max-width: 990px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 992px) {
  .site-main {
    max-width: 792px;
  }
}

.home .site-main,
.home .content-area,
.home .entry-content,
.home .page {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.home .site-main {
  background: transparent;
  max-width: none;
  width: 100%;
}

/* トップページ セクションごとの背景色 */
.section-main-banner {
  width: 100%;
  background-color: #e50013;
}

.section-img01 {
  width: 100%;
  background-color: #ebf1f7;
}

.section-items {
  width: 100%;
  background-color: ##f8f9fa;
}

.section-img02 {
  width: 100%;
  background-color: #d5f0f9;
}

.section-img03 {
  width: 100%;
  background-color: #ffffff;
}

.section-img04 {
  width: 100%;
  background-color: #e7f3fb;
}

.section-faq {
  width: 100%;
  background-color: #f8f9fa;
}

.section-contact {
  width: 100%;
  background-color: #ffffff;
}

/* サイト全体のフォント（Noto Sans） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Japanese:wght@400;700&display=swap');

body {
  font-family: 'Noto Sans Japanese', sans-serif;
}

.banner-overlay h1 {
  font-family: 'Noto Sans Japanese', sans-serif !important;
  font-weight: 900 !important;
}


/* 見出し */
h1 {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}
h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

@media (max-width: 991.98px) {
  h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.2rem;
}
}

/* テキスト・リンク */
p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
a {
  color: #00a2ff;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #0088dd;
}

/* ボタン */
.btn, button {
  font-weight: 700;
  border-radius: 5px;
  padding: 10px 20px;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.btn-primary, .btn-primary:hover {
  background-color: #ff0000;
  border-color: #ff0000;
}
.btn-primary:hover {
  background-color: #e10202;
  border-color: #e10202;
}

/* 改行防止カスタム */
.card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PC版：7列表示用カスタムグリッド */
@media (min-width: 992px) {
  .row-cols-lg-7 > * {
    flex: 0 0 calc(100% / 7);
    max-width: calc(100% / 7);
  }
}

/* =====================================================================
   2. Header（共通：PC/SP統合版）
===================================================================== */

/* ヘッダー背景・共通レイアウト */
header, .header, .navbar, .pc-header, .site-header {
  background-color: #ffffff !important;
}

/* ヘッダーCTA */
.header-top-actions {
  column-gap: 16px;
}

.contact-info {
  row-gap: 6px;
  text-align: right;
}

/* 行揃え用：アイコン幅を固定 */
.contact-row {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

/* ← アイコン幅固定でテキストの開始位置を揃える */
.contact-icon {
  color: #2d2d2d;
  font-size: 1.1rem;
  width: 20px;         /* ★ 追加部分 */
  display: inline-flex;
  justify-content: center;
}

/* テキスト */
.contact-text {
  font-size: 1rem;
  color: #2d2d2d;
  line-height: 1.2;
}

.contact-email {
  color: #2d2d2d;
  text-decoration: none;
}
.contact-email:hover {
  text-decoration: underline;
}
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* ← これで左揃え */
    text-align: left !important;
}

.contact-main {
  font-size: 1rem;
}

.contact-email {
  color: #2d2d2d;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.header-cta-group .btn {
  border-radius: 8px;
  font-weight: 700;
  color: #ffffff;
  padding: 10px 18px;
}

.header-cta-group .btn + .btn {
  margin-left: 10px;
}

@media (max-width: 991.98px) {
  .header-cta-group .btn + .btn {
    margin-left: 0px !important; /* ← 好きな数字でOK（例：4px） */
  }
}

.btn-line,
.btn-line:hover {
  background-color: #06c755;
  border-color: #06c755;
  color: #ffffff;
}

.btn-line:hover {
  background-color: #05b74f;
  border-color: #05b74f;
}

.site-header .header-line-btn {
  margin: 0 0 0 5px !important;
}

/* ヘッダー内リンクの文字色（PC/SPともに黒に変更） */
.navbar-light .navbar-brand,
.navbar-light .nav-link,
.pc-header .nav-link {
  color: #2d2d2d !important;
}

/* 統合後のヘッダー内のナビリンクのカラーを黒に固定 */
.site-header a.nav-link {
  color: #2d2d2d !important;
}

/* SP用：ハンバーガーアイコンの色を黒に変更 */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* セクション・コンテナ共通余白 */
.section,
.header,
.footer,
.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 991.98px) {
  .site-header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.items-section .container,
.faq-section .container {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 992px) {
  .items-section .container,
  .faq-section .container {
    max-width: 990px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* メニューバーに影 */
.site-header {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
/* PC版メニュー：単語の間に垂直線を追加 */
@media (min-width: 992px) {
  /* PC版メニューを横並び＆中央揃え */
  .site-header ul.nav {
    display: flex;
    align-items: center; /* アイテムを垂直中央に */
    justify-content: flex-end; /* 右寄せ */
  }

  /* 最初の li は線を入れない。2番目以降の li の手前に縦線 */
  .site-header ul.nav li.nav-item + li.nav-item {
    position: relative;
  }
  /* 擬似要素で縦線を挿入 */
  .site-header ul.nav li.nav-item + li.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%; /* 調整可 */
    background-color: #c9c9c9;
  }
}


/* SP版メニュー：各アイテムの下に水平線を追加 */
@media (max-width: 991.98px) {
  .site-header .sp-menu ul.nav li.nav-item {
    border-bottom: 1px solid #c9c9c9;
    padding: 10px 0;
  }
  /* 最後のアイテムには水平線を表示しない */
  .site-header .sp-menu ul.nav li.nav-item:last-child {
    border-bottom: none;
  }
}

/* ロゴボックス（.logo-box）の設定 */
/* 左端はコンテナに合わせてフラットに、ロゴを中央に配置し、左右のパディングを同じにしてシンメトリーに */
.logo-box {
  background-color: #00a2ff; /* 青 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;  /* 左右の余白を同じに設定 */
  padding-right: 20px;
}

@media (max-width: 991.98px) {
  /* SP版用CTAボタンのサイズ調整 */
  .d-lg-none .btn.btn-primary,
  .d-lg-none .btn.btn-line {
    font-size: 0.7rem;
    padding: 6px 6px;
  }
}






/* =====================================================================
   3. Main Banner
===================================================================== */
.main-banner {
  display: flex;
  justify-content: center;
  padding: 0 0 30px;
  margin-top: 0;
}

.home .main-banner {
  padding: 0;
  margin: 0;
}

.banner-wrapper {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  box-shadow: none;
  border-radius: 0;
}

.home .banner-wrapper {
  margin: 0 auto;
  padding: 0;
}

.main-banner-image {
  width: 100%;
  max-width: 990px;
  height: auto;
  aspect-ratio: 640 / 350;
  object-fit: cover;
  display: block;
  box-shadow: none;
  border-radius: 0;
  margin: 0 auto;
}

.main-banner .container {
  padding-left: 0;
  padding-right: 0;
}

.home .main-banner .container {
  padding-left: 0;
  padding-right: 0;
}

@supports not (aspect-ratio: 1) {
  .main-banner-image {
    height: 350px;
  }
}

@media (max-width: 991.98px) {
  .main-banner {
    padding: 0 0 20px;
  }

  .home .main-banner {
    padding: 0;
  }

  .main-banner .container {
  /* 余白を消す */
  padding-left: 0;
  padding-right: 0;

  /* Bootstrap の max-width を無効化して、
     ビューポートに対して常にフル幅にする */
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

}


/* =====================================================================
   4. Items Section
   ※ items セクションは主にカードとグリッドレイアウトで構成
===================================================================== */

/* PC版 card-text 完全上書き */
@media (min-width: 992px) {
  #items .card-text {
    font-size: 0.8rem !important;
    white-space: nowrap;
    overflow: visible; /* ← ellipsis を無効化 */
    text-overflow: unset;
  }
}

/* ※ PC版：7列グリッドは上記で定義 */
@media (max-width: 991.98px) {
  /* アイコン間の隙間は g-2 で調整済み（gutterの半分） */
  
  /* アイコン下のテキスト：改行せず、入り切るように文字サイズを小さく */
  #items .card-text {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* =====================================================================
   5. Front Page Image Sections
===================================================================== */

.home .front-stack {
  margin: 0;
  padding: 0;
}

.home .front-stack__container {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.home .front-stack__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.fp-section-image {
  max-width: 960px;
  margin: 40px auto;
}

.fp-section-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767px) {
  .fp-section-image {
    max-width: 100%;
    margin: 32px auto;
  }
}


/* =====================================================================
   6. Method Section
===================================================================== */

/* 買取方法セクション内のカード画像サイズを統一 */
#method .card img {
  height: 200px;       /* 固定の高さ（必要に応じて調整） */
  width: 100%;
  object-fit: cover;
}

/* 買取の流れテキスト非表示*/
.card-outdoor .card-text,
.card-delivery .card-text,
.card-line .card-text {
  display: none;
}




/* =====================================================================
   7. Area Section
===================================================================== */

/* 出張エリア一覧：共通スタイル */
.area-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  justify-items: center;
}

/* PC表示時（幅992px以上）：3行に配置 */
@media (min-width: 992px) {
  .area-list {
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    max-width: 800px; /* 必要に応じて調整 */
  }
  .area-list li {
    text-align: center;
    padding: 5px 10px;
    border: 1px solid #00a2ff;
    border-radius: 20px;
    background-color: #00a2ff;
    color: #ffffff;
    font-weight: 700;
  }
}

/* SP表示時（幅991.98px以下）：6行に配置 */
@media (max-width: 991.98px) {
  .area-list {
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    max-width: 600px; /* 必要に応じて調整 */
  }
  .area-list li {
    padding: 5px 10px;
    border: 1px solid #00a2ff;
    border-radius: 20px;
    background-color: #00a2ff;
    color: #ffffff;
    font-weight: 700;
  }
}

/* エリア内：東京23区の地図 */
.tokyo-map {
  max-width: 600px;
}

@media (max-width: 991.98px) {
  #area .area-list li {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* =====================================================================
   8. FAQ Section
   ※ FAQはBootstrapのアコーディオンで管理（追加スタイルが必要な場合はここへ）
===================================================================== */
/* アコーディオン全般のフォーカス時の影を消す（Bootstrap変数を強制上書き） */
.accordion-button {
  --bs-accordion-btn-focus-box-shadow: none !important;
  box-shadow: none !important;
}

/* 開いている時（.collapsed が付いていない = aria-expanded="true"）の色変更 */
.accordion-item .accordion-button:not(.collapsed) {
  color: #2d2d2d !important;
  background-color: #e3f5ff !important;
  border-color: #e3f5ff !important;
  box-shadow: none !important;
}

/* FAQの各カテゴリ先頭のアコーディオンに上枠線を復活させる */
.section-faq .faq-subtitle + .accordion-item {
  border-top: 1px solid var(--bs-accordion-border-color, #dee2e6);
}




/* =====================================================================
   9. Contact Section
===================================================================== */

.contact-form-container {
  max-width: 600px;
}

/* =====================================================================
   10. Footer
===================================================================== */

/* 共通：フッター全体 */
.site-footer {
  font-family: 'Noto Sans Japanese', sans-serif;
}

/* ----- Footer Top: ロゴとメニュー（背景：白） ----- */
.footer-top {
  background-color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

.footer-logo img {
  max-height: 60px;
  margin-bottom: 10px;
}

/* PC版フッターメニュー */
@media (min-width: 992px) {
  .footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: inline-block;  /* メニュー全体を中央揃え */
  }
  .footer-menu ul li {
    display: inline-block;
    font-size: 1rem;
  }
  .footer-menu ul li a {
    display: inline-block;
    padding: 0 10px;  /* 各項目の左右スペース */
    color: #2d2d2d;
    text-decoration: none;
  }
  /* 隣接する li の間に縦線を挿入（左右均等のパディング） */
  .footer-menu ul li + li::before {
    content: "｜";
    color: #2d2d2d;
    padding: 0 10px;
  }
}

/* SP版フッターメニュー（3段構成） */
@media (max-width: 991.98px) {
  .footer-menu .footer-menu-row {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    display: inline-block;  /* 各行を中央揃え */
    text-align: center;
  }
  .footer-menu .footer-menu-row li {
    display: inline-block;
    font-size: 0.9rem;
  }
  .footer-menu .footer-menu-row li a {
    display: inline-block;
    padding: 0 5px;
    color: #2d2d2d;
    text-decoration: none;
  }
  /* 各行内で隣接する li の間にのみ縦線を表示 */
  .footer-menu .footer-menu-row li + li::before {
    content: "｜";
    color: #2d2d2d;
    padding: 0 5px;
  }
}

/* ----- Footer Bottom: 許可証番号と© 表示（背景：#2d2d2d） ----- */
.footer-bottom {
  background-color: #2d2d2d;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #ccc;
  font-size: 0.8rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.3;
}

/* 許可証番号と© の間のスペース調整 */
.footer-cert {
  margin-bottom: 5px;
}
.footer-copy {
  margin-top: 5px;
}


/* =====================================================================
   10. Additional / Section-Specific Styles
===================================================================== */

/* 各買取方法カードの個別カラー設定 */
.card-outdoor {
  background-color: #ff6f61 !important;  /* 例: コーラルレッド */
  color: #fff !important;
}

.card-delivery {
  background-color: #ff9900 !important;  /* 例: オレンジ */
  color: #fff !important;
}

.card-line {
  background-color: #00cc66 !important;  /* 例: グリーン */
  color: #fff !important;
}

/* カード内リンクやボタンの色（各カード専用） */
.card-outdoor a,
.card-delivery a,
.card-line a {
  color: #fff !important;
}

/* =====================================================================
   11. Responsive Adjustments
===================================================================== */

/* メディアクエリ（レスポンシブ対応） */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2rem;
  }
  p, a, .btn {
    font-size: 0.9rem;
  }
}

@media (min-width: 992px) {
  /* 既に定義済み：.area-list 用グリッド設定 */
}

/* --- ロゴ画像 --- */
.logo-pc {
  max-height: 80px;
}
.logo-sp {
  max-height: 60px;
}

/* ロゴ共通設定 */
.logo {
  max-height: 80px;
}

/* SP版：折りたたみメニューの余白調整 */
.sp-menu ul.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-menu ul.nav li.nav-item {
  padding: 10px 0;
}


/* プライバシーポリシーページのタイトルを本文と同じ色にする */

.privacy-policy-page h1 {
  color: #2d2d2d !important;
  text-align: center;
}

.privacy-policy-content .page-title {
  color: #2d2d2d;
}

.privacy-policy-page .privacy-content {
  background-color: #ffffff; /* 白いコンテンツ背景 */
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* CTAボタン */
.regood-cta-button {
  display: flex;
  justify-content: center;
  margin: 40px auto;
}

.regood-cta-button img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
}

/* FAQセクション用の調整 */
.regood-cta-button--faq {
  margin-bottom: 80px;
}


/* ▼ ヘッダー共通レイアウト */
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.4rem 0;
}

/* 画像がはみ出さないように共通指定 */
.site-header .header-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48px; /* 必要に応じて 40〜56px くらいで調整 */
  object-fit: contain;
}

.site-header .header-line-btn .btn {
  display: block;
  width: 100%;
  font-weight: 700;
  padding: 6px 6px;
}

/* PC・タブレットでも動くが、主にスマホ用のバランス調整 */
@media (max-width: 768px) {
  .site-header .header-logo,
  .site-header .header-line-btn {
    flex: 1 1 0;
  }

  /* 画面幅に応じて縮小されるよう、最大幅をvwで縛る */
  .site-header .header-logo {
    max-width: 30vw;
  }

  .site-header .header-line-btn {
    max-width: 45vw;
  }

  /* ハンバーガーは固定幅で、潰れないようにする */
  .site-header .header-hamburger {
    flex: 0 0 auto;
    padding: 0.1rem 0.2rem;
  }
}

/* もっと狭い端末向けに、少し小さめにする */
@media (max-width: 480px) {
  .site-header .header-logo img {
    max-height: 60px;
  }

  .site-header .header-logo {
    max-width: 40vw;
  }

  .site-header .header-line-btn {
    max-width: 60vw;
  }

  /* 文字サイズはそのままに、ボタンの余白だけさらにコンパクトに */
  .site-header .header-line-btn .btn {
    padding: 5px 8px;
  }
}
