main {
  padding-bottom: 24px;
}

.p-sustop {
  display: grid;
  grid-template-columns: 35rem 1fr;
  gap: 16px;
}

.p-sustop__left {
  margin-top: 3.5rem;
}

.p-sustop__left div {
  font-size: 2.5rem;
  text-align: left;
}

.p-sustop__right {
  display: flex;
  justify-content: flex-end;
}

.c-text-box {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
  background-color: #f4f7fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.c-text--top {
  /* margin-top: 2rem; */
}

.c-text--sub {
  margin-top: 1rem;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section__subtitle {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
}

.section__caption {
  font-size: 1.25rem;
  text-align: center;
  margin-top: 0px;
  font-weight: 600;
}

.box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.step-box {
  border: 1px solid #000;
  text-align: left;
  flex: 1 1 calc(25% - 1rem);
  box-sizing: border-box;
}

.step-box__header {
  font-size: 1.15rem;
  border-bottom: 1px solid #9ea6b2;
  padding: 0.5rem 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.step-box__body {
  padding: 0.5rem;
}

.step-box__body img {
  width: 100%;
  height: auto;
}

.p-store-list__city-header {
  margin: 24px 0 8px;
  padding: 8px 16px;
  border-left: 8px solid #db0012;
  border-bottom: 2px solid #9ea6b2;
  font-size: 1.25rem;
  font-weight: bold;
}


.p-store-list__container {
  /* border-top: 2px solid #9ea6b2; */
  display: flex;
  flex-wrap: nowrap; /* 折り返さない */
  width: 100%;
  gap: 32px; /* 左右の間隔を広げる */
  padding: 16px;
  align-items: flex-start;
}

/* 店舗間のセパレーター */
.p-store-list__separator {
  height: 1px;
  background-color: #9ea6b2;
  margin: 0 16px 8px; /* 左右の余白と下の余白 */
}

.p-store-list__row {
  display: flex;
  align-items: flex-start; /* 上揃えに変更 */
  width: 100%;
  min-height: 1.5em; /* 最低限の高さを確保 */
  line-height: 1.5; /* 行の高さを調整 */
}

.p-store-list__label {
  min-width: 80px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  padding-top: 0.25em; /* テキストの位置を微調整 */
}

.p-store-list__tel,
.p-store-list__hours {
  flex: 1;
  font-weight: bold;
}

.p-store-list__tel {
  color: #003da5;
  font-weight: bold;
  font-size: 1.5rem;
}

.p-store-list__left {
  flex: 0 0 300px; /* 固定幅に */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-store-list__conditions {
  margin-top: auto;
  padding: 8px 16px;
  border: 1px solid #000;
  border-radius: 4px;
  text-decoration: none;
  align-self: flex-end;
  margin-right: 16px;
}

.p-store-list__right {
  flex: 1; /* 残りのスペースを全て使用 */
  min-width: 0; /* コンテンツがはみ出さないように */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 8px;
}

.p-store-list__iPhone {
  flex: 1 1 45%;
}

.p-store-list__iPad {
  flex: 1 1 45%;
}

.p-store-list__header {
  padding: 8px;
  border: solid 1.5px #9ea6b2;
  text-align: center;
  border-radius: 2px;
}

.p-store-list__carrier {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px 0;
}

.p-store-list__single-carrier {
  flex: 0 0 calc(33.333% - 5.33px);
  text-align: center;
  border: 2px solid;
  border-radius: 2px;
  min-height: 0;
  opacity: 1;
  transition: opacity 0.2s;
}

.p-store-list__single-carrier.hidden {
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
}

.p-store-list__single-carrier img {
  display: inline;
  max-width: 100%;
  height: auto;
}

.p-store-list__detail {
  padding: 8px 4px;
  font-size: 12px;
}

.p-store-list__detail a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PC版: iPhone・iPadのWeb予約セクション */
.p-store-list__iphone-management {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 16px 0;
  font-size: 14px;
  padding: 0;
  border: 1px solid #9ea6b2;
  border-radius: 4px;
  overflow: hidden;
}

.p-store-list__iphone-label {
  flex: 0 0 auto;
  padding: 8px;
  border-right: 1px solid #9ea6b2;
  background-color: #f8f9fa;
}

.p-store-list__iphone-link {
  flex: 1;
  padding: 8px 16px;
  text-align: center;
}

/* PC版: 店舗からのご案内セクション */
.p-store-list__notice {
  display: flex;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #9ea6b2;
  border-radius: 4px;
  overflow: hidden;
}

.p-store-list__notice-left {
  flex: 0 0 auto;
  padding: 8px;
  border-right: 1px solid #9ea6b2;
  background-color: #f8f9fa;
}

.p-store-list__notice-right {
  flex: 1;
  padding: 8px 16px;
}

/* PC版: 左側のボーダーは不要なので削除 */
.p-store-list__left {
  border-right: none;
}

/* PC版: データがない場合でもバー（タグ）は表示し、キャリアブロックだけ非表示 */
.p-store-list__iPhone.is-hidden .p-store-list__carrier,
.p-store-list__iPad.is-hidden .p-store-list__carrier {
  display: none;
}

/*Step boxes responsive*/
@media screen and (max-width: 767px) {
  .p-sustop {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4px;
    margin-bottom: 16px;
  }

  .p-sustop__left {
    margin-top: 0;
    align-self: center;
  }

  .p-sustop__left div {
    font-size: 1rem;
  }

  .c-text {
    background-color: #f8f8f8;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {

  .section__title {
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    user-select: none;
  }

  .section__title::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.8em;
  }

  .section__title:hover {
    opacity: 0.8;
  }

  .section__title.collapsed {
    font-size: 1rem;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-weight: bold;
  }

  .section__title.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
    font-size: 1rem;
  }

  .section__title {
    font-size: 1rem;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-weight: bold;
  }

  .box-container {
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    overflow: hidden;
    max-height: 2000px;
  }

  .box-container.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .step-box {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .p-store-list__city-collapsed {
    display: none;
  }

  .p-store-list__city-expanded {
    display: block;
  }

  .p-store-list__store-collapsed {
    display: none;
  }

  .p-store-list__store-expanded {
    display: block;
  }

  .p-store-list__city-container {
    /* border-bottom: 2px solid #000; */
    margin-bottom: 16px;
  }

  .p-store-list__city-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }

  .p-store-list__city-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 0;
    height: 2px;
    background: #000;
  }

  .p-store-list__store-toggle {
    cursor: pointer;
    padding: 8px 16px;
    background-color: #f4f7fa;
    color: #000;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin: 16px 0px;
  }

  .p-store-list__store-details {
    margin-bottom: 16px;
  }

  .p-store-list__left {
    flex: 1 1 100%;
    min-width: unset;
    margin-bottom: 16px;
  }

  .p-store-list__conditions {
    position: static;
    display: inline-block;
    margin: 8px 0 0 0;
  }

  .p-store-list__right {
    flex: 1 1 100%;
    min-width: unset;
    flex-direction: column;
    gap: 1rem;
  }

  .p-store-list__iPhone {
    flex: 1 1 100%;
  }

  .p-store-list__iPad {
    flex: 1 1 100%;
  }

  .p-store-list__carrier {
    gap: 8px 4px;
    margin-bottom: 8px
  }

  .p-store-list__single-carrier {
    flex: 0 0 calc(33.333% - 2.67px);
    font-size: 12px;
  }

  /* モバイル時のみデータがない場合は非表示 */
  .p-store-list__iPhone.is-hidden,
  .p-store-list__iPad.is-hidden {
    display: none;
  }

  /* モバイル時: iPhone・iPadのWeb予約セクション */
  .p-store-list__iphone-management {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 16px 0 0 0;
    font-size: 14px;
    padding: 0;
    border: 1px solid #9ea6b2;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .p-store-list__iphone-label {
    flex: 0 0 auto;
    padding: 8px;
    border-right: none;
    border-bottom: 1px solid #9ea6b2;
  }
  
  .p-store-list__iphone-link {
    padding: 8px;
    text-align: left;
  }

  /* モバイル時: 店舗からのご案内セクション */
  .p-store-list__notice {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 16px 16px 16px 16px;
    background-color: #fff;
    border: 1px solid #9ea6b2;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .p-store-list__notice-left {
    flex: 0 0 auto;
    padding: 8px;
    border-right: none;
    border-bottom: 1px solid #9ea6b2;
  }
  
  .p-store-list__notice-right {
    padding: 16px;
  }

  /* モバイル時: 縦線セパレータを非表示 */
  .p-store-list__left {
    border-right: none;
  }

}

@media (max-width: 480px) {
  .step-box {
    flex: 1 1 100%;
  }
}