/* =========================================================
   88works テーマ 追加調整CSS（custom.css）
   作成：2026-09-08 WEB企画事務所FREE
   読み込み順：style.css → responsive.css → このファイル
   ・前半：崩れ修正
   ・後半：WordPress「追加CSS」から移設した内容（移設後は追加CSSを空にしてOK）
   ========================================================= */

/* ---------- 1. ヘッダーナビの文字が途中で折り返す（全ページ・PC） ---------- */
/* 1200px以上：1行表示。1200px未満はナビが収まらないため元の折り返し挙動のまま（横はみ出し防止） */
@media screen and (min-width: 1200px) {
  #header .btn_wrapper > ul > li.text_link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  #header .btn_wrapper > ul > li a span,
  #header .btn_wrapper > ul > li div span { white-space: nowrap; }
}
@media screen and (min-width: 1200px) and (max-width: 1500px) {
  #header .btn_wrapper > ul > li.text_link { padding: 0 14px; }
  #header .btn_wrapper > ul > li a span,
  #header .btn_wrapper > ul > li div span { font-size: 13px; }
  #header .header_top h1 { margin-left: 30px; }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  #header .btn_wrapper > ul > li.text_link { padding: 0 8px; }
  #header .btn_wrapper > ul > li a span,
  #header .btn_wrapper > ul > li div span { font-size: 12px; }
  #header .btn_wrapper > ul > li a .eigo,
  #header .btn_wrapper > ul > li div .eigo { font-size: 10px; }
  #header .header_top h1 { margin-left: 20px; }
}

/* ---------- 2. トップ「ハチハチワークスって？」の見出し・本文が途中で改行（PC） ---------- */
@media screen and (min-width: 768px) {
  #sec3 .part1 .block-title {
    flex: 1 1 46%;
    min-width: 0;
  }
  #sec3 .part1 .block-title h2 { font-size: clamp(28px, 2.9vw, 42px); }
  #sec3 .part1 .block-content {
    flex: 0 1 54%;
    max-width: 54%;
  }
  #sec3 .part1 .block-content img {
    max-width: 100%;
    height: auto;
  }
}
@media screen and (min-width: 1200px) {
  #sec3 .part1 .block-title h2 { white-space: nowrap; }
}

/* ---------- 3. トップ「03 持ち込みタイヤパーツ交換」の途中改行 ---------- */
/* index.php 側で <br> の位置を「持ち込みタイヤ／パーツ交換」に変更済み */

/* ---------- 4. 整備ページのMV高さ（PC：100vhで画像が足りず余白が出る） ---------- */
@media screen and (min-width: 768px) {
  #repairing_sec1 {
    background-size: cover;
    background-position: center;
    height: auto;
    aspect-ratio: 1920 / 966;
    max-height: 100vh;
    min-height: 480px;
  }
}

/* ---------- 5. 買取ページ「最新買取事例」カードの高さを揃える ---------- */
/* slickでは a.block 自体が .slick-slide になるため、a を縦flexにして本文を伸ばす */
.buying_slicker_parts .slick-track { display: flex; }
.buying_slicker_parts .slick-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}
#buying_sec4 .part-content .block-body { flex: 1; }

/* ---------- 6. 買取・タイヤなど画像MVの下層ページ：スマホで固定ヘッダーの下に隠れる ---------- */
/* 旧・追加CSSの「.part1 img { margin-top:20px }」（全ページに効く応急処置）は撤去し、必要なページだけに限定 */
body .part1 img { margin-top: 0; }
@media screen and (max-width: 767px) {
  #buying_sec1,
  #tire_sec1,
  #sells_sec1,
  #ev_sec1,
  #repairing_sec1 { padding-top: 14.4vw; }
}


/* =========================================================
   以下、WordPress「追加CSS」から移設（2026-09-08）
   ・重複していたブロックは1つに統合
   ・「.part1 img { margin-top:20px }」は上記6で置き換えたため削除
   ========================================================= */

/* 投稿記事内のh2見出しスタイル */
.block_body h2 {
  font-size: 24px; /* フォントサイズ */
  margin-bottom: 20px; /* 下マージン */
  border-bottom: 2px solid #F8CB00; /* 下線 */
  padding-bottom: 10px; /* 下パディング */
}

/* 投稿記事内のh3見出しスタイル */
.block_body h3 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 1px solid #F8CB00;
  padding-bottom: 5px;
}

/* 投稿記事内のh4見出しスタイル */
.block_body h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* 投稿記事内のh5見出しスタイル */
.block_body h5 {
  font-size: 18px;
  margin-bottom: 5px;
}


	/* 取り急ぎのCSS＿SP時TOP_FVの切り替え*/

	.mv_sp {
		display:none;
	}

@media (max-width: 767px) {
  .mv_sp {
    display: block; /* SP時のみ表示 */
  }
}

	@media screen and (max-width: 767px){
#sec1 .slicker_parts img {
    width: 100%;
    display: none;
}

}

	/* 取り急ぎのCSS＿SP時のABOUT_IMGの切り替え*/

	 .block-image-sp {
		display:none;
	}

@media (max-width: 767px) {
  .quick {
    display: none; 
  }
	.block-image-sp {
		display:block;
	}	
	
	.block2 {
		text-align:left;
	}
	
}


	@media screen and (max-width: 767px){
#sec1 .slicker_parts img {
    width: 100%;
    display: none;
}

}



	/* 取り急ぎのCSS＿SP時にTOPの吹き出し が下にもぐってしまうのをmarginをとって調整*/

@media screen and (max-width: 767px){
#sec4 .part1 .block3 .block-title {
    margin-bottom: 100px;
}
}

@media screen and (max-width: 767px){
#sec4 .part1 .block2 .block-title {
    background: url(./../images/sec4_comment_background.png) no-repeat;
    margin-right: 12vw;
    background-size: 100% 100%;
    padding-top: 5.3333333333vw;
    padding-bottom: 8vw;
    height: 80vw;
    margin-left: 20vw;
    margin-bottom: 100px;
	}
	
	/* 取り急ぎのCSS＿SP時にABOUTの代表写真 が下にもぐってしまうのをmarginをとって調整*/


#about_sec4 .flex_img {
margin-top: 0px!important;
margin-bottom: 0px!important;
margin-left: 20px;
}
	
	/* 取り急ぎのCSS＿SP時にABOUT_STAFFを非表示*/	
	
}

	/* 取り急ぎのCSS＿SP時にEV_IMAGEを調整*/	

.block-image-sp {
	margin-top:20px;
}

@media screen and (max-width: 767px){
	.block-logo {
		display:none;
	}
	
}

/* 取り急ぎのCSS＿SPheader*/

.header_top {
	background-color:#F8CB00;
}

#header .g_nav { 
    background-color: #F8CB00;
}


	/* 取り急ぎのCSS＿CONTACTFORM*/


.cf7__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cf7__list dt:nth-of-type(n + 2),
.cf7__list dd:nth-of-type(n + 2) {
  margin-top: 30px;
}

.cf7__list dt {
  width: 35%;
  padding-top: 15px;
}

.cf7__list dd {
  width: 65%;
}

/* 必須・任意 */
.cf7__required,
.cf7__optional {
  margin-right: 15px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  vertical-align: 1px;
}

.cf7__required {
  background: #BE1D1D;
}

.cf7__optional {
  background: #878D8E;
}

/* input・textarea */
.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="email"],
.cf7__list dd textarea {
  width: 100%;
  padding: 15px 20px;
  background: #F4F4F4;
}

/* ドロップダウンメニュー */
.cf7__select {
  position: relative;
}

.cf7__select:before {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 10;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid #000;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  pointer-events: none;
  content: '';
}

.cf7__select select {
  width: 100%;
  padding: 19px 20px;
  background: #F4F4F4;
  color: #a5a5a5;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* チェックボックス・ラジオボタン */
.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
  display: block;
  padding: 15px 0 10px;
}

/* 縦並び（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item {
  display: block;
  margin: 0;
}

.cf7__list dd .wpcf7-list-item:nth-child(n + 2) {
  margin-top: 18px;
}

/* マウスカーソル（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item label {
  cursor: pointer;
}

/* チェックボックス・ラジオボタン */
input[type="checkbox"],
input[type="radio"] {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #bcbcbc;
  vertical-align: -3px;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* チェックボックス */
input[type="checkbox"]:checked {
  border: 1px solid #000;
  background: #000;
}

input[type="checkbox"]:checked:before {
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(50deg);
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: '';
}

/* ラジオボタン */
input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]:checked:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000;
  content: '';
}

/* プレースホルダー */
/* Google Chrome / Safari / Mozilla Firefox / Opera */
.cf7__list dd input[type="text"]::placeholder,
.cf7__list dd input[type="tel"]::placeholder,
.cf7__list dd input[type="email"]::placeholder,
.cf7__list dd textarea::placeholder {
  color: #a5a5a5;
}

/* Microsoft Edge */
.cf7__list dd input[type="text"]::-ms-input-placeholder,
.cf7__list dd input[type="tel"]::-ms-input-placeholder,
.cf7__list dd input[type="email"]::-ms-input-placeholder,
.cf7__list dd textarea::-ms-input-placeholder {
  color: #a5a5a5;
}

/* Internet Explorer */
.cf7__list dd input[type="text"]:-ms-input-placeholder,
.cf7__list dd input[type="tel"]:-ms-input-placeholder,
.cf7__list dd input[type="email"]:-ms-input-placeholder,
.cf7__list dd textarea:-ms-input-placeholder {
  color: #a5a5a5;
}

/* 送信ボタン */
.cf7__button {
  padding-left: 72px;
  text-align: center;
}

input[type="submit"] {
  width: 260px;
  height: 60px;
  background: #000;
  color: #fff;
  transition: opacity .6s;
}

input[type="submit"]:hover {
  opacity: .6;
}

/* ajax-loader */
.wpcf7-spinner {
  vertical-align: middle;
}

@media screen and (max-width: 767px) {

  .cf7__list dt {
    width: 100%;
    margin-bottom: 15px;
    padding-top: 0;
  }

  .cf7__list dd {
    width: 100%;
  }

  .cf7__list dd:nth-of-type(n + 2) {
    margin-top: 0;
  }

  .cf7__list dd .wpcf7-checkbox,
  .cf7__list dd .wpcf7-radio {
    padding: 15px 0 0;
  }

  /* 送信ボタン */
  input[type="submit"] {
    width: 180px;
    height: 56px;
  }

}

  /* Contactボタン */
@media screen and (max-width: 767px){
header .contact_btn {
    right: 0;
		display:none;
}
}



.instagram-icon-container {
  text-align: center; /* アイコンを中央に配置 */
  margin-top: 20px; /* 上部にマージンを追加 */
 color:white;
}

.instagram-icon {
  font-size: 36px; /* アイコンのサイズ */
  color: #E4405F; /* インスタグラムのブランドカラー */
  text-decoration: none;
}

.youtube-icon {
  font-size: 36px; /* アイコンのサイズ */
  color:#FF0000; /* youtubeのブランドカラー */
  text-decoration: none;
}

.instagram-icon:hover {
  color: #C13584; /* ホバースタイル */
}

#header .btn_wrapper > ul > li .header_icon {
  /* 適用するスタイル */
  font-size: 24px;

}

/* コメントエリア全体のスタイル */
.comments-area {
    margin-top: 30px; /* コメントエリア全体の上に余白を追加 */
    padding: 20px;
    background-color: #f9f9f9; /* 背景色を白っぽいグレーに */
    border-radius: 8px; /* 角を丸く */
}

/* コメントリスト全体のスタイル */
.comment-list {
    list-style: none; /* デフォルトのリストスタイルを削除 */
    padding: 0;
}

/* 個々のコメントのスタイル */
.comment-list .comment {
    padding: 15px; /* コメントの内側に余白を追加 */
    background-color: #ffffff; /* 背景色を白に変更 */
    border: 1px solid #ddd; /* 薄いグレーのボーダーを追加 */
    margin-bottom: 15px; /* コメント間に余白を追加 */
    border-radius: 6px; /* 角を少し丸く */
}

/* コメントの投稿者名スタイル */
.comment-author {
    font-weight: bold; /* 名前を太字に */
    font-size: 1rem; /* フォントサイズを適度に設定 */
    margin-bottom: 5px;
    color: #333; /* テキスト色を濃いグレーに */
}

/* コメントのメタデータ（時間など）のスタイル */

.comment-meta {
	background-color:white;
	padding:10px;
}
.comment-metadata a {
    color: #888; /* メタデータのリンク色を薄いグレーに */
    font-size: 0.9rem; /* 時間などのフォントサイズをやや小さく */
    margin-left: 10px; /* 投稿者名との間に余白を追加 */
}

/* コメント本文のスタイル */
.comment-content {
    margin-top: 10px;
    font-size: 1rem; /* 本文のフォントサイズを調整 */
    color: #333; /* 本文の色を濃いグレーに */
}

/* 返信ボタンのスタイル */
.reply {
    margin-top: 10px;
}

.reply a {
    color: #0073aa; /* 返信リンクのテキスト色を青に */
    font-size: 0.9rem; /* リンクのフォントサイズをやや小さく */
    background-color: #f1f1f1; /* ボタン背景をグレーに */
    padding: 5px 10px; /* ボタン内側に余白を追加 */
    border-radius: 4px; /* ボタンの角を丸く */
    text-decoration: none; /* 下線を除去 */
    border: 1px solid #ccc; /* 薄いグレーの枠を追加 */
    transition: background-color 0.3s; /* ホバー時の背景色変更をスムーズに */
}

/* 返信ボタンのホバー時のスタイル */
.reply a:hover {
    background-color: #0073aa; /* ホバー時の背景色を青に */
    color: #fff; /* テキスト色を白に */
}

/* コメントフォームのスタイル */
.comment-respond {
    margin-top: 40px; /* コメントフォームの上に余白を追加 */
    padding: 20px;
    background-color: #f9f9f9; /* フォームの背景色を白っぽいグレーに */
    border-radius: 8px; /* フォームの角を丸く */
}

/* コメントフォームのラベルや入力フィールド */
.comment-reply-title {
    font-size: 1.5rem; /* フォームタイトルのフォントサイズ */
    margin-bottom: 20px;
}

.comment-form-author label,
.comment-form-comment label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333; /* ラベルの文字色を濃いグレーに */
}

.comment-form-author input,
.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd; /* 入力フィールドの枠を薄いグレーに */
    border-radius: 4px; /* 角を丸く */
}

.comment-form-comment textarea {
    min-height: 150px; /* テキストエリアの高さを設定 */
    resize: vertical; /* テキストエリアのリサイズを縦にのみ許可 */
}

/* コメントフォームの送信ボタン */
.form-submit input {
    padding: 10px 20px;
    background-color: #0073aa; /* ボタンの背景色を青に */
    color: white;
    border: none;
    border-radius: 4px; /* ボタンの角を丸く */
    cursor: pointer;
}

.form-submit input:hover {
    background-color: #005f8d; /* ホバー時に色を濃く */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comments-area, .comment-respond {
        padding: 10px;
    }

    .comment-list .comment {
        padding: 10px;
    }

    .comment-reply-title {
        font-size: 1.3rem;
    }

    .comment-form-author input,
    .comment-form-comment textarea {
        padding: 8px;
    }

    .form-submit input {
        padding: 8px 16px;
    }
}



/* =================================================
  タイヤ預かりセクション（#tire_storage）
================================================= */

#tire_storage {
  background-color: #F8CB00; /* 全体の背景色：ハチハチイエロー */
  position: relative;
  padding-bottom: 80px;      /* 下部の余白 */
  margin-top: -60px;         /* 上のセクションとの隙間を埋める負のマージン */
  z-index: 10;               /* 前のセクションより前面に表示 */
  overflow: visible;
}

/* --- 上部のナミナミ（ウェーブ） --- */
.storage_wave_top {
  width: 100%;
  height: 80px;              /* PC時の高さ */
  line-height: 0;
  margin-bottom: 40px;
}

.storage_wave_top svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #F8CB00;
  transform: translateY(1px); /* 1px下げて物理的な隙間を埋める */
}

/* --- タイトルエリア --- */
#tire_storage .subtitle {
  width: 100%;
  text-align: center;        /* 中央寄せ */
  margin-bottom: 20px;
}

/* --- 料金表（テーブル） --- */
.storage_plan_box {
  margin: 40px auto 0;
  max-width: 900px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.storage_table {
  width: 100%;
  border: 2px solid #333;
  border-collapse: collapse;
}

.storage_table th, 
.storage_table td {
  padding: 20px;
  border: 1px solid #ddd;
  text-align: center;
}

.storage_table tbody th {
  background: #f9f9f9;
  width: 35%;
  font-weight: bold;
}

/* --- 実質無料のロジックボックス --- */
.logic_container {
  margin-top: 50px;
  padding: 40px;
  border: 2px solid #333;
  background: rgba(255, 255, 255, 0.4); /* 背景を少し透けさせる */
  border-radius: 12px;
}

.logic_flex {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 20px;
}

.logic_item {
  text-align: center;
  flex: 1;
}

.logic_plus {
  font-size: 32px;
  font-weight: bold;
}

/* --- 6つのメリット --- */
.storage_merit_grid {
  margin-top: 80px;
}

.grid_wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.merit_card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border-bottom: 5px solid #333;
}

/* =================================================
  スマホ・タブレット対応（レスポンシブ最終調整）
================================================= */

@media (max-width: 767px) {
  #tire_storage {
    margin-top: -40px;
    padding-bottom: 60px;
  }

  /* 波の高さ調整 */
  .storage_wave_top {
    height: 40px;
    margin-bottom: 20px;
  }

  /* --- 文字サイズの適正化（他のコンテンツに合わせる） --- */
  
  /* メイン見出し：大きすぎず、かつ埋もれないサイズ */
  #tire_storage h2.font36 {
    font-size: 22px !important; 
    line-height: 1.4 !important;
  }
  
  /* 説明文：サイト標準の14~15px程度に */
  #tire_storage p.font18 {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* ロジックボックス内 */
  .logic_container {
    padding: 20px 10px;
  }

  .logic_container h3.font24 {
    font-size: 18px !important; /* タイトルをサイト標準に */
  }

  .logic_item p.font16 {
    font-size: 14px !important; /* 「ディーラーの場合」など */
  }

  .logic_item p.bold.font22 {
    font-size: 17px !important; /* 金額の強調を少し抑える */
  }

  .logic_item p.font12 {
    font-size: 11px !important; /* 注釈を小さめに */
  }

  .logic_plus {
    font-size: 20px !important; /* ＋記号も控えめに */
    margin: 5px 0;
  }

  /* 下部のまとめメッセージ */
  .logic_total.font20 {
    font-size: 15px !important;
    padding: 12px !important;
  }

  /* メリットカード */
  .merit_card p.bold {
    font-size: 16px !important; /* メリットのタイトル */
  }
  
  .merit_card p.font15 {
    font-size: 13px !important; /* メリットの本文 */
  }

  /* テーブルの表示形式 */
  .logic_flex {
    flex-direction: column;
  }

  .storage_table tbody th,
  .storage_table td {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 14px !important;
  }

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

.instagram-media {
  min-width: unset !important;
  max-width: 100% !important;
}

/* iframe に直接当てる */
iframe[src*="instagram.com"] {
  max-width: 100% !important;
  width: 100% !important;
  min-width: unset !important;
}

/* 念のため親も封じる */
.wp-block-embed,
.wp-block-embed__wrapper {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Flexbox の min-width 問題を解消 */
#news_detail_sec1 .part1 .part-content {
  min-width: 0;
  overflow: hidden;
}

/* Instagram embed の幅を制御 */
iframe[src*="instagram.com"] {
  max-width: 100% !important;
  min-width: unset !important;
}






/* =========================================================
   8. トップ「できること」：hoverで出る吹き出しを廃止し、
      リード文＋「詳しく見る」ボタンを常時表示（2026-09-08）
   ========================================================= */
#sec4 .part1 .block .comment { display: none !important; }
#sec4 .part1 .block .lead {
  width: 1200px;
  max-width: 90%;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  z-index: 5;
}
#sec4 .part1 .block2 .lead,
#sec4 .part1 .block4 .lead { align-items: flex-start; }
#sec4 .part1 .block .lead p {
  max-width: 600px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.9;
  text-align: left;
}
#sec4 .part1 .block .lead .detail_second_btn {
  position: relative;
  top: auto; right: auto; bottom: auto; left: auto;
  margin-top: 24px;
}
#sec4 .part1 .block1 .block-body { margin-top: 60px; }
@media screen and (max-width: 767px) {
  #sec4 .part1 .block .lead {
    width: auto;
    max-width: none;
    margin: 22vw 5.33vw 0;
    align-items: flex-start;
  }
  #sec4 .part1 .block .lead p { font-size: 3.7vw; line-height: 1.8; }
  #sec4 .part1 .block .lead .detail_second_btn { margin-top: 4vw; }
  #sec4 .part1 .block1 .block-body { margin-top: 12vw; }
}
/* ---------- 9. SP：買取事例スライダーの矢印が車両情報の文字に被る → カードの下に移動 ---------- */
@media screen and (max-width: 767px) {
  #sec4 .part1 .block1 .block-body .sellings_content .items_slicker_parts { padding-bottom: 16vw; }
  #sec4 .part1 .block1 .block-body .sellings_content .items_slicker_parts .slick-prev,
  #sec4 .part1 .block1 .block-body .sellings_content .items_slicker_parts .slick-next {
    top: auto;
    bottom: 0;
    transform: none;
    right: auto;
  }
  /* コンテナは画面左端から(5vw-12px)の位置にあるので、画面中央=コンテナ内の 45vw+12px */
  #sec4 .part1 .block1 .block-body .sellings_content .items_slicker_parts .slick-prev { left: calc(45vw + 12px - 14vw); }
  #sec4 .part1 .block1 .block-body .sellings_content .items_slicker_parts .slick-next { left: calc(45vw + 12px + 3vw); }
}

/* =========================================================
   10. SEO対応（2026-09-08）：h1の再配置に伴うスタイル
   ・ヘッダーロゴはトップページのみ h1、下層は div.top_logo に変更
   ・各ページの主見出しを h2 → h1 に変更（見た目は変わらないよう既存h2ルールを複製）
   ========================================================= */
/* --- ヘッダーロゴ（下層ページ：div.top_logo） --- */
#header .header_top .top_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 60px;
}
#header .header_top .top_logo a img {
  width: 400px;
  max-width: 23vw;
}
@media screen and (max-width: 767px) {
  #header .top_logo {
    display: inline-block;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-left: 6vw;
    position: relative;
    z-index: 100;
  }
  #header .top_logo a { display: block; line-height: 1; }
  #header .top_logo a img { width: 28.66667vw; }
  #header:not(.top_bg) .top_logo {
    width: auto;
    height: 100%;
    bottom: 0;
    top: 0;
    margin-left: 0;
    padding-left: 5.7vw;
    padding-top: 0;
    position: absolute;
    left: 0;
    z-index: 1000;
  }
  #header:not(.top_bg) .top_logo a img { width: 23vw; transition: none; }
  #header.top_bg .top_logo {
    width: auto;
    height: 100%;
    bottom: 0;
    top: 0;
    margin-left: 0;
    padding-left: 5.7vw;
    padding-top: 0;
    position: absolute;
    left: 0;
    z-index: 1000;
  }
  #header.top_bg .top_logo a img { width: 43vw; max-width: 43vw; }
}

/* --- 各ページ主見出し（h2→h1）：既存h2ルールの複製 --- */
#about_sec1 .part1 h1 {
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.15em;
}
#works_sec1 .part1 h1 {
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.15em;
}
#news_sec1 h1, #selled_item_sec1 h1 {
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.15em;
}
#news_detail_sec1 .part1 .part-content h1, #selled_item_detail_sec1 .part1 .part-content h1 {
  font-size: 24px;
  font-weight: bold;
}
#sells_sec1 .part-header h1 img {
  width: 376px;
}
#repairing_sec1 h1 {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 0 5px white;
}
#buying_sec2 .part h1 {
  font-size: 36px;
  font-weight: 900;
  color: white;
  height: 254px;
  line-height: 1.6;
  padding-top: 75px;
}
#tire_sec2 h1 {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  color: #333;
  padding-top: 10px;
  margin-top: 10px;
}
#tire_sec2 h1 span {
  padding: 5px 20px;
  background: #F8CB00;
}
#ev_sec2 h1 {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  color: #333;
  padding-top: 10px;
  margin-top: 10px;
}
#ev_sec2 h1 span {
  padding: 5px 20px;
  background: #F8CB00;
}
@media screen and (max-width: 767px) {
  #about_sec1 .part1 h1 {
    text-align: center;
    font-size: 9.6vw;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.15em;
}
  #works_sec1 .part1 h1 {
    text-align: center;
    font-size: 9.6vw;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.15em;
}
  #news_sec1 .part1 h1 {
    text-align: center;
    font-size: 9.6vw;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.15em;
}
  #news_detail_sec1 .part1 .part-content h1, #selled_item_detail_sec1 .part1 .part-content h1 {
    font-size: 4.8vw;
    font-weight: bold;
}
  #sells_sec1 .part-header h1 img {
    width: 100%;
    max-width: 53.33333vw;
}
  #repairing_sec1 h1 {
    font-size: 8.53333vw;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-shadow: 0 0 5px white;
}
  #buying_sec2 .part h1 {
    font-size: 5.6vw;
    font-weight: 900;
    color: white;
    height: 53.33333vw;
    line-height: 1.6;
    padding-top: 13.33333vw;
}
  #tire_sec2 h1 {
    text-align: center;
    font-size: 3.73333vw;
    letter-spacing: 0;
    font-weight: 900;
    color: white;
    padding-top: 2.66667vw;
    margin-top: 2.66667vw;
}
  #tire_sec2 h1 span {
    padding: 1.33333vw 5.33333vw;
    background: #F8CB00;
}
  #news_detail_sec1 h1, #selled_item_detail_sec1 h1 {
    font-size: 5vw;
    text-align: left;
    position: relative;
    padding-top: 6.8vw;
    margin: auto;
    margin-bottom: 6vw;
    max-width: 88vw;
    width: 100%;
}
  #selled_item_detail_sec1 .part1 .part-content .selled_item h1 {
    padding: 0;
    margin: 0;
    margin-bottom: 8px;
}
}

/* --- Googleビジネスプロフィールへの導線（フッター） --- */
.company_info .gbp_link { margin-top: 10px; }
.company_info .gbp_link a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 2px;
}
.company_info .gbp_link a:hover { opacity: .7; }
@media screen and (max-width: 767px) {
  .company_info .gbp_link a { font-size: 3.2vw; }
}

/* --- パンくずリスト（フッター先頭・下層ページのみ） --- */
.site_breadcrumb {
  margin: -50px 0 46px;
  font-size: 12px;
  line-height: 1.6;
}
.site_breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}
.site_breadcrumb li { display: flex; align-items: center; }
.site_breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
}
.site_breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site_breadcrumb a:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.site_breadcrumb span { color: rgba(255, 255, 255, 0.5); }
@media screen and (max-width: 767px) {
  .site_breadcrumb {
    margin: -8vw 0 8vw;
    font-size: 3vw;
  }
  .site_breadcrumb li + li::before { margin: 0 2vw; }
}

/* --- 11. スマホのハンバーガーメニュー：中身が画面より長いとき最後まで開けない ---
   原因：.g_nav ul に height:100% が入っており、はみ出した分がスクロール範囲に入らない。
   あわせて 100vh をアドレスバー込みの実寸(dvh)にし、下端に余白を足す。 */
@media screen and (max-width: 767px) {
  .g_nav {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .g_nav ul {
    height: auto;
    min-height: 0;
    padding-bottom: calc(5vw + 28px);
  }
}
@media screen and (max-width: 767px) {
  /* メニューを開いてスクロールしたとき、項目がロゴに重なるので上部に帯を敷いて隠す */
  .g_nav.active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 14.4vw;
    background: #F8CB00;
    z-index: 1;
    pointer-events: none;
  }
  .g_nav.active > ul { position: relative; z-index: 0; }
}

/* =========================================================
   12. プライバシーポリシー（/privacy/）2026-09-09
   ========================================================= */
#privacy_sec1 .part1 {
  padding: 20px 0 100px;
  line-height: 2;
}
#privacy_sec1 .lead {
  font-size: 16px;
  margin-bottom: 50px;
}
#privacy_sec1 h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F8CB00;
}
#privacy_sec1 p {
  font-size: 16px;
  margin-bottom: 16px;
}
#privacy_sec1 ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
#privacy_sec1 ul li {
  font-size: 16px;
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
#privacy_sec1 ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F8CB00;
}
#privacy_sec1 a {
  color: #333;
  border-bottom: 1px solid #F8CB00;
}
#privacy_sec1 a:hover { opacity: .7; }
#privacy_sec1 .privacy_box {
  border: 1px dashed #333;
  border-radius: 8px;
  padding: 26px 30px;
  margin: 10px 0 16px;
  background: rgba(248, 203, 0, 0.08);
}
#privacy_sec1 .privacy_box p { margin-bottom: 0; }
#privacy_sec1 .privacy_date {
  margin-top: 50px;
  text-align: right;
  font-size: 15px;
}
/* お問い合わせフォーム上の注意書き */
#contact_sec2 .privacy_note {
  text-align: center;
  font-size: 15px;
  margin-bottom: 26px;
}
#contact_sec2 .privacy_note a {
  color: #333;
  border-bottom: 1px solid #F8CB00;
}
@media screen and (max-width: 767px) {
  #privacy_sec1 .part1 { padding: 4vw 0 16vw; }
  #privacy_sec1 .lead { font-size: 3.7vw; margin-bottom: 9vw; }
  #privacy_sec1 h2 { font-size: 4.5vw; margin: 9vw 0 3vw; }
  #privacy_sec1 p,
  #privacy_sec1 ul li { font-size: 3.7vw; }
  #privacy_sec1 .privacy_box { padding: 5vw; }
  #privacy_sec1 .privacy_date { font-size: 3.4vw; }
  #contact_sec2 .privacy_note { font-size: 3.5vw; text-align: left; }
}
