.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: block;
  }
}

.p-lp-kv {
  position: relative;
  width: 100%;
  aspect-ratio: 32 / 10; /* PC比率 1280:400 = 約3.2:1 */
  overflow: hidden;
}

.p-lp-kv picture,
.p-lp-kv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいにトリミング */
  object-position: center center; /* 中央基準でトリミング */
}

/* スマホ時に比率を切り替え */
@media screen and (max-width: 767px) {
  .p-lp-kv {
    aspect-ratio: 9 / 10; /* SP比率 375:420 ≒ 0.89:1 */
  }
}

.p-selectarea {
  margin: 0 auto;
  position: relative;
  background-color: #c7e8fa;
  margin-bottom: 100px;
  height: auto;
  z-index: 0;
  padding: 0 20px;
  padding-bottom: 270px;
  font-family: "Noto Sans JP", sans-serif;
}
@media screen and (max-width: 768px) {
  .p-selectarea {
    padding-bottom: 70px;
    margin-bottom: 0;
  }
}
.p-selectarea::before {
  content: "";
  position: absolute;
  top: 150px;
  right: 0;
  width: 18%;
  height: 1663px;
  background-image: url(../img/lp/selectarea-bg_right.png);
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  z-index: -1;
}

.p-selectarea::after {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  width: 18%;
  height: 1663px;
  background-image: url(../img/lp/selectarea-bg_left.png);
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  z-index: -1;
}
.p-selectarea__content__inner {
  max-width: 860px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.p-selectarea__content {
  width: 100%;
  height: auto;
  background-color: #fff;
  border: 2px solid #0b2d73;
  margin: 0 auto;
  padding: 30px;
  margin-bottom: 50px;
}

.p-selectarea-header {
  z-index: 2;
  margin-bottom: 30px;
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.p-selectarea-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background-image: url(../img/lp/selectarea-bg.png);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  z-index: -1;
}
@media screen and (max-width: 768px) {
  .p-selectarea-bg {
    height: 140px;
  }
}

.brand-list {
  text-align: center;
  margin-bottom: 50px;
}

.brand-list__title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.brand-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 960px;
}

.brand-list__item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 10px 2px #7ea8ff80;
  transition: all 0.3s ease;
}
.brand-list__item::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #1a2a71;
  border-right: 2px solid #1a2a71;
}
.brand-list__item:hover {
  transform: scale(0.99);
  opacity: 0.8;
}
.brand-list__link {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #1a2a71;
  padding: 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.brand-list__link img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- スマホ対応（768px以下で2列に） --- */
@media (max-width: 768px) {
  .brand-list__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
  }

  .brand-list {
    padding: 2rem 1rem;
  }
}

/* メーカーエリア */

/* ===============================
   タイヤメーカーセクション
=============================== */
.p-maker-section {
  background: #fff;
  text-align: center;
  margin-bottom: 64px;
}
.p-maker-section__inner {
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .p-maker-section__inner {
    flex-direction: column;
  }
}

.p-maker-section__title {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
  border-bottom: 4px solid #0b2d73;
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 5px;
  width: 100%;
  text-align: left;

  img {
    width: 185px;
  }
}

/* ===============================
     タイヤリスト（横並び）
  =============================== */
.tire-list {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
  width: 40%;
}

@media screen and (max-width: 768px) {
  .tire-list {
    width: 100%;
  }
}

.tire-item {
  width: 45%;
  text-align: center;
  position: relative;
}
.tire-item.recommended::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../img/lp/recommended.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 35px;
  height: 35px;
}
.tire-item.new-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../img/lp/new-item.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 35px;
  height: 35px;
}
.tire-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.tire-item h3 {
  font-size: 12px;
  font-weight: normal;
  margin-top: 12px;
  color: #333;
  font-family: "Barlow Semi Condensed", sans-serif;
}

/* ===============================
     サイズボタン群
  =============================== */
.size-buttons {
  width: 60%;
}
.size-buttons__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
}

.size-buttons__title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #0b2d73;
  position: relative;
  padding-left: 20px;
  text-align: left;
}

.size-buttons__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background-color: #0b2d73;
  clip-path: polygon(49% 100%, 0 0, 100% 0);
}
.size-buttons button {
  display: inline-block;
  background: #fff;
  border: 2px solid #0b2d73;
  color: #0b2d73;
  font-weight: 500;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 34px;
  line-height: 0.5;
  font-family: "Reddit Sans", sans-serif;

  span {
    font-size: 12px;
    font-weight: 400;
    font-family: "Noto Sans JP", sans-serif;
  }
}
@media screen and (max-width: 768px) {
  .size-buttons button {
    width: 70px;
    height: 70px;
    font-size: 25px;
    span {
      font-size: 10px;
      text-wrap: nowrap;
    }
  }
}
.size-buttons button:hover {
  background: #0b2d73;
  color: #fff;
}
/* ===============================
   モーダル共通
=============================== */
.modal {
  display: none; /* 初期状態では確実に非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999999;
  padding: 20px;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .modal {
    padding-top: 130px;
    align-items: flex-start;
  }
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  max-width: 870px;

  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 15px;
  width: 45px;
  height: 45px;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.modal-header__content {
  display: flex;
  gap: 10px;
}
@media screen and (max-width: 768px) {
  .modal-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 20px;
  }
}

.modal-logo {
  width: 250px;
}

.modal-maker {
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 5px;
}

.modal-size {
  border: 2px solid #ff8802;
  color: #ff8802;
  padding: 3px 10px;
}

.modal-row {
  margin-bottom: 18px;
  display: flex;
}
@media screen and (max-width: 768px) {
  .modal-row {
    flex-direction: column;
  }
}

.modal-ratio {
  width: 120px;
  color: #333;
}
@media screen and (max-width: 768px) {
  .modal-ratio {
    font-size: 14px;
    margin-bottom: 10px;
  }
}
.modal-content h4 {
  color: #0b2d73 !important;
  margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
  .modal-content h4 {
    margin-bottom: 30px;
  }
}

.modal-sizes {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-size-btn {
  background: #fff;
  color: #333;
  border: 2px solid #eeeeee;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-size-btn:hover {
  border-color: #ff9100;
  color: #ff9100;
}

/* ===============================
     レスポンシブ対応
  =============================== */
@media screen and (max-width: 768px) {
  .tire-list {
    gap: 20px;
  }
  .tire-item {
    width: 45%;
  }
  .size-buttons button {
    width: 60px;
    height: 60px;
  }
  .size-buttons button span {
    font-size: 10px;
  }
  .size-buttons__title {
    font-size: 15px;
  }
  .size-buttons {
    width: 100%;
  }
}

.p-section__title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  background-color: #0b2d73;
  padding: 10px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.p-selectarea__lead {
  margin-bottom: 40px;
}

/* グリッドレイアウト */
.p-selectarea__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

@media screen and (max-width: 768px) {
  .p-selectarea__grid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
}

/* 各ボックス */
.p-selectarea__box {
  background: #eeeeee;
  text-align: left;
  width: 100%;
}
.p-selectarea__box__inner {
  padding: 20px 32px;
}
@media screen and (max-width: 768px) {
  .p-selectarea__box__inner {
    padding: 27px;
  }
}
.p-selectarea__subtitle {
  background: #0a2c68;
  color: #fff;
  font-weight: 500;
  text-align: center;
  padding: 8px 0;
  font-size: 16px;
}

.p-selectarea__image {
  position: relative;
  margin-bottom: 16px;
}
.p-selectarea__image img {
  width: 100%;
  height: auto;
  padding: 5px;
}

/* 説明テキスト */
.p-selectarea__note {
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  img {
    width: 17.5px;
    height: 40px;
    object-fit: contain;
  }
}
.p-selectarea__icon {
  margin-right: 4px;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}
.p-selectarea__text__content {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .p-selectarea__content {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  .p-section__title {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

.p-selectarea__btn {
  display: flex; /* 中央寄せ＋矢印位置制御のためflexに変更 */
  align-items: center;
  justify-content: center;
  gap: 10px; /* テキストと矢印の間隔 */
  width: 100%;
  max-width: 320px;
  background: #efefef;
  color: #333;
  border-radius: 10px;
  font-weight: bold;
  padding: 15px 20px;
  margin: 0 auto 50px;
  text-align: center;
  box-shadow: 0 4px 10px 0 #00000040;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none; /* リンク時に下線を消す */
}

.p-selectarea__btn::after {
  content: ""; /* 矢印（右向き） */
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  right: 25px;
  top: 50%;
  transition: 0.3s;
}

.p-selectarea__btn:hover {
  background: #0b2d73;
  color: #fff;
}

.p-selectarea__btn:hover::after {
  color: #fff;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.p-faq-item {
  border: 3px solid #212e62;
  margin-bottom: 10px;
  overflow: hidden;
}

.p-faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-weight: bold;
  font-size: 16px;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #d3d3d3;
}

.p-faq-question::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #212e62;
  border-right: 2px solid #212e62;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
  transition: transform 0.3s ease;
}

.p-faq-item.active .p-faq-question::after {
  transform: translateY(-50%) rotate(315deg);
}

/* ▼ アコーディオン本体 */
.p-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  padding: 0 15px;
}

/* 中身に別の余白を付ける */
.p-faq-answer-content {
  padding: 15px 0;
  line-height: 1.6;
}

/* ▼ 開いた状態 */
.p-faq-item.active .p-faq-answer {
  max-height: 800px; /* 内容量に合わせて調整可 */
}

.p-footer_section .p-postList__item,
.p-footer_section .p-postList__item {
  width: 25% !important;
}
@media screen and (max-width: 768px) {
  .p-footer_section .p-postList__item,
  .p-footer_section .p-postList__item {
    width: 50% !important;
  }
}

.shopInfo {
  padding: 0 20px;
  margin-bottom: 50px;
}
.shopInfoPC {
  display: flex !important;
  background: #3f3f3f;
  border: 1px solid #3a3a3a;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.shopInfoSP {
  display: none;
}
.shopInfoLeft h2 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}
.shopInfoLeft {
  position: relative;
  padding: 30px;
}
.shopInfoLeft img {
  width: 100%;
  margin: 50px 0;
}
.shopInfoSP {
  background: #3f3f3f;
  border: 1px solid #3a3a3a;
}
.shopInfoSP h2 {
  color: #fff;
  padding: 30px;
  font-size: 24px;
  font-weight: bold;
}
.shopInfoRight {
  width: 68%;
}
.shopInfoImg {
  position: relative;
}
.shopInfoImg a {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #000;
  background: #fff;
  width: 148px;
  padding: 7px 10px;
  text-align: center;
}
.shopInfoSP img {
  width: 100%;
  padding: 30px;
}
.shopInfoImg img {
  padding: 0;
}
.shopInfoLeft .btnarea {
  text-align: center;
}
.shopInfoLeft .btnarea a {
  color: #fff;
  background: #f80;
  width: 149px;
  padding: 7px 10px;
  font-size: 14px;
  display: block;
  text-align: center;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .shopInfoPC {
    display: none !important;
  }
  .shopInfoSP {
    display: block;
  }
}
@media screen and (max-width: 768px) {
  .shopInfo h2 {
    font-size: 18px;
    padding: 0 24px;
  }
  .shopInfo p {
    padding: 0px 0 20px 0;
    font-size: 13px;
  }

  .shopInfo a {
    background: #fff;
    color: #333;
    padding: 12px;
    width: 200px;
    margin: 0 auto;
    padding: 8px;
    text-align: center;
    display: block;
  }
  .shopInfo img {
    width: 100%;
  }
  .shopInfoFlex {
    display: block;
    padding: 24px 24px 0 24px;
  }
}

@media screen and (max-width: 1024px) {
  .shopInfoLeft img {
    margin: 25px 0;
  }
}

.shopInfoSP {
  background: #3f3f3f;
  border: 1px solid #3a3a3a;
}
.shopInfoSP h2 {
  color: #fff;
  padding: 30px;
  font-size: 24px;
  font-weight: bold;
}
.shopInfoRight {
  width: 68%;
}
.shopInfoImg {
  position: relative;
}
.shopInfoImg a {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #000;
  background: #fff;
  width: 148px;
  padding: 7px 10px;
  text-align: center;
}
.shopInfoSP img {
  width: 100%;
  padding: 30px;
}
.shopInfoImg img {
  padding: 0;
}
.shopInfoLeft .btnarea {
  text-align: center;
}
.shopInfoLeft .btnarea a {
  color: #fff;
  background: #f80;
  width: 149px;
  padding: 7px 10px;
  font-size: 14px;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.oyakudachiList {
  gap: 0 !important;
}

.c-postTimes__posted:before {
  display: none;
}

.p-siteMap strong {
  padding-left: 0 !important;
}

.p-siteMap strong:before {
  display: none;
}

.p-footer_section {
  width: 1100px;
  margin: 0 auto;
  margin-bottom: 40px;
  padding: 0 20px;
}
.c-postThumb__cat {
  display: none;
}
.p-footer_section__title {
  font-size: 24px;
  text-align: left;
  font-weight: bold;
  padding: 0px;
  margin: 48px 0 20px 0;
}
.oyakudachiList {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px !important;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
