@charset "utf-8";

/*===================
fv
===================*/
.fv {
  position: relative;
  width: 100%;
  background-color: #ccc;
}

.fv__img img {
  display: block;
}

/* スクロール誘導 */
.fv__scroll {
  position: absolute;
  top: 44%;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.fv__scrollText {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  writing-mode: vertical-rl;
  position: relative;
  left: 1px;
}

.fv__scrollLine {
  position: relative;
  width: 1px;
  height: 75px;
  background-color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.fv__scrollLine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  animation: fvScrollLine 2s ease-in-out infinite;
}

@keyframes fvScrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media screen and (max-width: 750px) {
  .fv__scroll {
    display: none;
  }
}

/*===================
intro
===================*/
.intro {
  overflow-x: clip;
  padding: 143px 0 128px;
  margin-bottom: 100px;
  /* 波画像（高さ265px固定・横だけ伸ばす）を下に置き、その上は同じ色で塗る */
  background: url(../imgs/common/intro_bg.png) no-repeat center bottom / 100% 265px, linear-gradient(#fbf8f2, #fbf8f2) no-repeat center top / 100% calc(100% - 262px);
}

.intro__wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.intro__content {
  flex-shrink: 0;
  position: relative;
}

.intro__lead {
  width: 377px;
  margin-bottom: 30px;
}

.intro__title {
  width: 389px;
  margin-bottom: 53px;
}

.intro__text {
  width: 390px;
  margin-bottom: 60px;
}

.intro__btnWrap {
  position: relative;
  margin-top: 74px;
}

.intro__btnWrap a {
  width: 321px;
  display: block;
}

.intro__bus {
  width: 384px;
  height: auto;
}

.intro__map {
  flex: 1;
  min-width: 0;
  max-width: 849px;
  /* 右側はinnerからはみ出して画面端まで伸ばす（最大120px） */
  margin-right: calc(-1 * min(120px, max(20px, (100vw - 1200px) / 2)));
}

@media screen and (max-width: 1080px) {
  .intro__lead {
    width: 34.9074vw;
    margin-bottom: 2.7777vw;
  }
  .intro__title {
    width: 36.0185vw;
    margin-bottom: 4.9074vw;
  }
  .intro__text {
    width: 36.1111vw;
  }
  .intro__btnWrap {
    margin-top: 6.8518vw;
  }
  .intro__btnWrap a {
    width: 29.7222vw;
  }
  .intro__bus {
    left: 33.3333vw;
    bottom: -1.3888vw;
    width: 35.5555vw;
  }
}

@media screen and (max-width: 880px) {
  .intro {
    padding: 100px 0 70px;
    /* 狭い画面では波を横幅に合わせて縮める（画像の高さ＝横幅の18.86%） */
    background-size: 100% auto, 100% calc(100% - 18.6vw);
  }
  .intro__wrap {
    position: relative; /* intro__contentを解除したのでバスの基準をここに */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* 中身をwrapの直下扱いにして、MAPを本文とボタンの間に並べ替える */
  .intro__content {
    display: contents;
  }

  .intro__map {
    order: 1;
    max-width: 100%;
    width: 100%;
    margin: 40px auto 30px;
  }

  .intro__btnWrap,
  .intro__bus {
    order: 2;
  }

  .intro__lead {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 25px;
  }

  .intro__title {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 45px;
  }

  .intro__text {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .intro__btnWrap a {
    width: 85%;
    max-width: 321px;
    margin: 0 auto;
  }

  /* 880px時の位置を保ったまま縮める
     top：本文3画像の高さ（幅×0.7962）＋余白70px＋MAP上マージン40px＝MAPの上端
     width/right：wrap幅（＝MAP幅）に対する割合 */
  .intro__bus {
    width: 37.381%;
    margin: 0 auto;
    position: absolute;
    top: calc(min(400px, 100vw - 40px) * 0.7962 + 131px);
    left: auto;
    right: 0;
    bottom: auto;
  }
}

@media screen and (max-width: 750px) {
  .intro {
    padding: 70px 0 50px;
    margin-bottom: 30px;
  }
}

/*===================
merit
===================*/
.merit {
  position: relative;
  padding: 120px 0 162px; /* 下のrouteが70px重なる分を足す */
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;
  background-color: #f5a347;
}

/* 右上のリボン */
.merit::before {
  content: "";
  position: absolute;
  top: 0;
  right: 122px;
  width: 105px;
  height: 174px;
  background-color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 83%, 0 100%);
}

.merit__head {
  padding-bottom: 36px;
  margin-bottom: 64px;
  border-bottom: 1px solid #fff;
  text-align: center;
}

.merit__title {
  width: 100%;
  max-width: 827px;
  margin: 0 auto 15px;
}

.merit__sub {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  line-height: 1.75;
}

.merit__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 60px;
}

.merit__card {
  padding: 30px 21px 36px;
  border-radius: 15px;
  background-color: #fff;
}

.merit__cardImg {
  width: 100%;
  max-width: 213px;
  margin: 0 auto 20px;
}

.merit__cardImg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merit__cardTitle {
  color: #f5a347;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.05em;
  margin-bottom: 11px;
}

.merit__cardText {
  color: #000;
  font-size: 14px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  line-height: 1.42;
}

.merit__text {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  line-height: 1.66;
}

@media screen and (max-width: 1050px) {
  .merit::before {
    right: 40px;
    width: 70px;
    height: 116px;
  }

  .merit__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 750px) {
  .merit {
    padding: 100px 0 100px;
    border-radius: 30px 30px 0 0;
  }

  .merit::before {
    right: 20px;
    width: 46px;
    height: 76px;
  }

  .merit__head {
    padding-bottom: 26px;
    margin-bottom: 54px;
  }

  .merit__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .merit__sub {
    font-size: clamp(14px, 9.535px + 1.3953vw, 20px); /* 750pxで20px → 320pxで14px */
  }

  .merit__cardTitle {
    font-size: 17px;
  }

  .merit__text {
    font-size: clamp(18px, 13.535px + 1.3953vw, 24px); /* 750pxで24px → 320pxで18px */
  }
}

/*===================
route
===================*/
.route {
  position: relative;
  margin-top: -70px; /* meritのオレンジに角丸を重ねる */
  padding: 143px 0 109px;
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;
  background: repeating-linear-gradient(45deg, transparent 0 61.5px, rgba(255, 255, 255, 0.4) 61.5px 123px) #fbf8f2;
}

.route__head {
  padding-bottom: 42px;
  margin-bottom: 64px;
  border-bottom: 2px solid #000;
}

.route__title {
  width: 100%;
  max-width: 786px;
  margin: 0 auto 18px;
}

.route__sub {
  color: #3fbdd4;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

/* タブのパネル（外側×内側の組み合わせで1つだけ表示） */
.route__panel {
  display: none;
}

.route__panel.is-active {
  display: block;
}

/* 外側のタブ */
.route__mainTabWrap {
  width: fit-content;
  margin: 0 auto 50px;
}

.route__mainTabList {
  display: flex;
  border: 7px solid #fff;
  border-radius: 40px;
  background-color: #f4f3ef;
}

.route__mainTab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 282px;
  height: 60px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 500;
  color: #000;
  transition: background-color 0.3s, color 0.3s;
}

.route__mainTab.is-active {
  background-color: #555048;
  color: #fff;
}

/* 外側のタブ下のリンク（各タブの中央に配置） */
.route__mainTabLinks {
  display: flex;
  margin-top: 8px;
  padding: 0 7px; /* タブの白枠分 */
}

.route__mainTabLinks > * {
  flex: 1;
  text-align: center;
}

.route__mainTabLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
}

.route__mainTabLink::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: url(../imgs/common/arrow_rgt.svg) no-repeat center / contain;
}

.route__mainTabLink:hover {
  opacity: 0.7;
}

/* 内側のタブ */
.route__subTabList {
  display: none; /* 選択中の外側タブに対応するものだけ表示 */
  justify-content: center; /* タブが2つのときは中央寄せ */
  gap: 16px;
  margin-bottom: 62px;
}

.route__subTabList.is-active {
  display: flex;
}

.route__subTab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 32px) / 3); /* タブの数に関係なく3等分の幅（間隔16px×2を引く） */
  height: 68px;
  border-radius: 8px;
  background-color: #fff;
  font-size: 20px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  color: #1c1e21;
  transition: background-color 0.3s, color 0.3s;
}

.route__subTab.is-active {
  background-color: #f5a347;
  font-weight: 500;
  color: #fff;
}

.route__interval {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 45px;
}

.route__intervalNum {
  color: #be2a20;
  font-size: 45px;
  font-weight: 500;
  line-height: 1;
}

.route__intervalLarge {
  color: #be2a20;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

/* 時刻表 */
.route__tableWrap {
  --kind-w: 64px; /* 区分列の幅 */
  --head-w: 234px; /* 区分＋停留所名（固定列）の最小幅 */
  container-type: inline-size; /* 列幅の計算に表示幅（cqw）を使う */
  border-radius: 8px;
  overflow-x: auto;
}

/*
  列幅：区分64px＋停留所名（残り）＋時刻×9
  幅が縮むとまず停留所名が170pxまで縮み、その後に時刻列が84px→57pxまで縮む
  750pxより狭くなったら横スクロール
*/
.route__table {
  width: 100%;
  min-width: calc(var(--head-w) + 57px * var(--cols, 9)); /* 時刻列が57pxになる幅（9列なら747px） */
  table-layout: fixed;
  border-collapse: collapse;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}

.route__table thead th,
.route__fareTable thead th {
  color: #fff;
  font-size: 15px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;

  background-color: #555048;
}

.route__table thead th {
  padding: 23px 15px;
}

.route__table tbody tr:nth-child(odd) {
  background-color: #e2dfd7;
}

.route__table tbody tr:nth-child(even) {
  background-color: #fff;
}

.route__table th,
.route__table td {
  vertical-align: middle;
}

/* 時刻列（3列目以降） */
.route__table thead th:nth-child(n + 3) {
  width: clamp(57px, (100cqw - var(--head-w)) / var(--cols, 9), 84px); /* --colsは時刻の列数（tableのstyleで指定） */
  padding-left: 4px;
  padding-right: 4px;
}

.route__table td {
  color: #5a6065;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1;
  padding: 16px 4px;
}

.route__table .route__tableKind {
  width: var(--kind-w);
  font-weight: 700;
  color: #000;
}

.route__table thead .route__tableKind {
  color: #fff;
  padding-left: 4px;
  padding-right: 4px;
}

.route__table .route__tableStop {
  text-align: left;
  white-space: normal; /* 狭いときは停留所名を折り返す */
  line-height: 1.4;
  padding-left: 0;
  padding-right: 10px;
}

/* 区分・停留所名の列を固定し、時刻部分のみ横スクロール */
.route__table .route__tableKind,
.route__table .route__tableStop {
  position: sticky;
  z-index: 1;
  background-color: inherit; /* 行の背景色を引き継いで下の時刻を隠す */
}

.route__table thead .route__tableKind,
.route__table thead .route__tableStop {
  background-color: #555048;
}

/* スクロールヒントを固定列より手前に表示 */
.route__tableWrap .scroll-hint-icon-wrap {
  z-index: 2;
}

.route__table .route__tableKind {
  left: 0;
}

.route__table .route__tableStop {
  left: var(--kind-w);
}

/* 固定列の境目の影（Chrome系は border-collapse の表でセルの box-shadow を描画しないため疑似要素で描く） */
.route__table .route__tableStop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 6px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.route__tableStop a {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.route__tableStop a:hover {
  text-decoration-color: transparent;
}

/* 料金表 */
.route__fare {
  margin-top: 107px;
  border-radius: 8px;
  overflow-x: auto;
}

.route__fareTable {
  width: 100%;
  min-width: 400px; /* これより狭いと横スクロール（スクロールヒント表示） */
  border-collapse: separate; /* rowspanのセルと線の太さがずれないよう、線は各セルで描く */
  border-spacing: 0;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #fff;
}

.route__fareTable th,
.route__fareTable td {
  vertical-align: middle;
}

.route__fareTable thead th {
  padding: 13px 20px;
  text-align: left;
}

.route__fareTable thead th:last-child {
  text-align: center;
}

.route__fareTable tbody th {
  color: #000;
  font-size: 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  width: 51.5%;
  padding: 7px 20px;
  border-bottom: 2px solid #e2dfd7;
  border-right: 2px solid #e2dfd7;
}

.route__fareCell {
  padding: 9px 20px;
  border-bottom: 2px solid #e2dfd7;
  text-align: center;
}

/* グレーの区間は線を白に */
.route__fareTable tbody tr.is-gray {
  background-color: #e2dfd7;
}

.route__fareTable tbody tr.is-gray th,
.is-gray .route__fareCell {
  border-color: #fff;
}

/* 最後の行は下線なし（運賃セルはrowspanで最後の行まで伸びている場合も含め、最後の運賃セル） */
.route__fareTable tbody tr:last-child th,
.route__fareTable tbody tr:not(:has(~ tr > .route__fareCell)) > .route__fareCell {
  border-bottom: none;
}

.route__farePrice {
  display: inline-block;
  font-size: 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  line-height: 1.81;
  text-align: left;
  color: #be2a20;
}

.route__farePrice li::before {
  content: "・";
}

/* 1行だけの区間は横並び */
.route__farePrice--inline {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 12px;
  line-height: 1.4;
}

.route__dummy--fare {
  height: 200px;
  margin-top: 60px;
}

/* お支払方法 */
.payment {
  padding-top: 96px;
}

.payment__box {
  padding: 32px 32px 39px;
  border-radius: 12px;
  background-color: #fff;
}

.payment__title {
  color: #000;
  font-size: 18px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.payment__text {
  color: #000;
  font-size: 14px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  line-height: 1.75;
  padding-bottom: 19px;
  border-bottom: 1px solid #e2e5e8;
}

.payment__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}

.payment__link {
  color: #be2a20;
  font-size: 14px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  line-height: 1.6;

  border-bottom: 1px solid rgba(190, 42, 32, 0.3);
  transition: border-color 0.3s;
}

.payment__link:hover {
  border-bottom-color: #be2a20;
}

/* データ未着のためダミー */
.route__dummy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin-top: 44px;
  border: 2px dashed #d8d2c4;
  border-radius: 8px;
  background-color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b5ae9f;
}

@media screen and (max-width: 750px) {
  .route {
    margin-top: -30px;
    padding: 80px 0 70px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  .route__head {
    padding-bottom: 32px;
    margin-bottom: 54px;
  }

  .route__sub {
    font-size: clamp(14px, 9.535px + 1.3953vw, 20px);
  }

  .route__mainTabWrap {
    width: 100%;
  }

  .route__mainTabList {
    border-width: 4px;
  }

  .route__mainTabLinks {
    margin-top: 6px;
    padding: 0 4px;
  }

  .route__mainTabLink {
    gap: 4px;
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .route__mainTab {
    flex: 1;
    width: auto;
    height: 48px;
    font-size: 16px;
  }

  .route__subTabList {
    gap: 8px;
    margin-bottom: 42px;
  }

  .route__subTab {
    flex-basis: calc((100% - 16px) / 3); /* 間隔8px×2を引く */
    height: 50px;
    font-size: 15px;
  }

  .route__interval {
    font-size: 16px;
    margin-bottom: 35px;
  }
  .route__intervalLarge {
    font-size: 22px;
  }
  .route__intervalNum {
    font-size: 30px;
  }

  .route__tableWrap {
    margin-top: 24px;
  }

  .route__table {
    font-size: 14px;
  }

  /* SPは時刻の表示領域を確保するため固定列を細くする */
  .route__tableWrap {
    --kind-w: 44px;
    --head-w: 164px;
  }

  .route__table .route__tableStop a {
    letter-spacing: 0.05em;
  }

  .route__fare {
    margin-top: 40px;
  }

  .route__fareTable thead th,
  .route__fareTable tbody th,
  .route__fareCell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .route__fareTable tbody th,
  .route__farePrice {
    font-size: 13px;
  }

  .route__fareTable tbody th {
    width: 55%;
  }

  .route__table thead th,
  .route__fareTable thead th {
    font-size: 14px;
  }

  .route__dummy--fare {
    margin-top: 40px;
  }

  .payment {
    padding-top: 76px;
  }

  .payment__title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .payment__text,
  .payment__link {
    font-size: 13px;
  }

  .payment__text {
    padding-bottom: 15px;
  }

  .payment__links {
    margin-top: 15px;
  }
}

@media screen and (max-width: 640px) {
  /* オレンジのタブを縦並びに */
  .route__subTabList {
    flex-direction: column;
    margin: 0 auto 42px;
  }

  .route__subTab {
    flex: none;
  }
}

@media screen and (max-width: 480px) {
  .route__mainTabLink {
    font-size: 13px;
  }
}

@media screen and (max-width: 375px) {
  .route__mainTabLink {
    font-size: 11px;
  }
}

/*===================
contact
===================*/
.contact {
  padding: 140px 0 13.4722vw;
  background-color: #fff;
}

.contact__head {
  padding-bottom: 46px;
  margin-bottom: 77px;
  border-bottom: 2px solid #000;
  text-align: center;
}

.contact__title {
  width: 100%;
  max-width: 983px;
  margin: 0 auto 21px;
}

.contact__sub {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

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

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 435px;
  padding: 90px 30px;
  border-radius: 12px;
  text-align: center;
}
.contact__logo {
  width: 100%;
  max-width: 285px;
  margin: 0 auto 30px;
}
.contact__card--chuo {
  --contact-color: #be2a20;
  background-color: #faf0f0;
}

.contact__card--hokto {
  --contact-color: #00562e;
  background-color: #eef3f0;
}

.contact__text {
  color: #000;
  font-size: 14px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 18px;
}

.contact__btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 58px;
  border: 1px solid var(--contact-color);
  border-radius: 30px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s;
}

.contact__btn--fill {
  background-color: var(--contact-color);
  color: #fff;
  transition: all 0.3s;
}

.contact__btn--fill:hover {
  background-color: #fff;
  color: var(--contact-color);
}

.contact__btn--line {
  color: var(--contact-color);
}

.contact__btn--line:hover {
  background-color: var(--contact-color);
  color: #fff;
}

/* 公式HPボタンのリンクアイコン（通常は白、ホバーで各社の色） */
.contact__btn--fill::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: url(../imgs/common/icon_link.svg) no-repeat center / contain;
  transition: all 0.3s;
}

.contact__card--chuo .contact__btn--fill:hover::after {
  background-image: url(../imgs/common/icon_link_red.svg);
}

.contact__card--hokto .contact__btn--fill:hover::after {
  background-image: url(../imgs/common/icon_link_green.svg);
}

/* 電話番号 */
.contact__tel {
  margin-top: 9px;
  line-height: 1;
}

.contact__telLink {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  color: #000;
  font-weight: 900;
}

.contact__telLabel {
  font-size: 16px;
  padding-bottom: 3px;
}

/* 数字とハイフンをflexで並べる */
.contact__telNum {
  display: flex;
  align-items: baseline;
  font-size: 48px;
}

/* 数字の間のハイフン（デザインに合わせて太めの横棒・数字の高さの中央に配置） */
.contact__telHyphen {
  width: 14px;
  height: 5px;
  margin: 0 7px;
  border-radius: 2px;
  background-color: #000;
  transform: translateY(-0.3em); /* 下端が数字のベースラインに揃うので、数字の中央まで持ち上げる */
}

/* 850px以下は電話番号を画面幅に合わせて縮める（850px時の値を基準にvw換算） */
@media screen and (max-width: 850px) {
  .contact__telLink {
    gap: 0.4705vw;
  }

  .contact__telLabel {
    font-size: 1.8823vw;
    padding-bottom: 0.3529vw;
  }

  .contact__telNum {
    font-size: 5.347vw;
  }

  .contact__telHyphen {
    width: 1.647vw;
    height: 0.5882vw;
    margin: 0 0.8235vw;
    border-radius: 0.2352vw;
  }
}

@media screen and (max-width: 750px) {
  .contact {
    padding: 100px 0 90px;
  }

  .contact__head {
    padding-bottom: 36px;
    margin-bottom: 60px;
  }

  .contact__sub {
    margin-top: 14px;
    font-size: clamp(14px, 9.535px + 1.3953vw, 20px);
  }

  .contact__list {
    gap: 24px;
  }

  .contact__card {
    min-height: 0;
  }

  .contact__card {
    padding: 40px 20px;
  }

  .contact__logo {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .contact__text {
    margin-top: 20px;
    font-size: 13px;
  }

  .contact__text br {
    display: none;
  }

  .contact__btn {
    height: 52px;
  }

  .contact__tel {
    margin-top: 20px;
  }
}

@media screen and (max-width: 640px) {
  .contact__list {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .contact__telLabel {
    font-size: 16px;
    padding-bottom: 3px;
  }

  .contact__telNum {
    font-size: 48px;
  }
}

@media screen and (max-width: 390px) {
  .contact__telLabel {
    font-size: 4vw;
    padding-bottom: 0.8692vw;
  }

  .contact__telNum {
    font-size: 11.3076vw;
  }
}
