/*
Theme Name: maruhan_north Child
Version: 1.0
Template: maruhan_north
*/

.page{
  margin:0 !important;
}

/* Coming Soon店舗一覧 */

/* テキストオーバーレイ全体（画像中央に縦中央配置） */
.relative > .absolute {
  pointer-events: none; /* 画像クリックを邪魔しない */
}

/* キャッチコピー */
.text-white {
  color: #fff !important;
}

/* 店舗名・都道府県 横並びラップ */
.flex.items-center {
  gap: 24px !important;
  overflow: hidden;
  white-space: nowrap;
}

.ps-overlay-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center; /* SINCE と store-wrap の縦中央揃え */
  gap: 16px;
  padding: 0 20px;
  color: #000;
  font-family: sans-serif;
  width: 100%;
  pointer-events: none;
  white-space: nowrap; /* 一行固定 */
  /*overflow: hidden;  はみ出し隠し */
}

.ps-store-wrap {
  display: flex;
  align-items: baseline; /* 店舗名と都道府県のベースライン揃え */
  gap: 0.5em;
  max-width: 100%;
  /*flex-grow: 1;*/
  /*white-space: nowrap;*/
  /* overflow: hidden; ここでもはみ出し隠し */
  /*transition: width 0.3s ease;*/
  color:#000;
  min-width: 0;        /* flex要素がはみ出さない */
  flex-shrink: 1;      /* 縮むことを許可 */

}

.ps-store-name {
  display: inline-block;
  font-size: clamp(6px, 6vw, 78px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: unset !important;
  transform-origin: left center;
  will-change: transform;
  margin-left: clamp(24px, 20vw, 194px);
}


@media (min-width: 1180px) {
  /*
  .ps-store-name {
    font-size: 78px !important;
    transform: scale(1) !important;
  }
  */

  .ps-pref {
    font-size: 28px !important;
    margin-left: 8px;
  }
    


}

.ps-pref {
  font-size: clamp(12px, 2vw, 28px) !important;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;           /* 縮まない */
  align-self: baseline;     /* ベースライン揃え */
  margin-left: 4px;
}

.ps-pref-linebreak {
  margin-left: clamp(24px, 20vw, 194px) !important;
  margin-top:-12px;
}

.ps-pref-linebreak {
  margin-left: clamp(24px, 20vw, 194px) !important;
  margin-top:-12px;
}

@media (min-width: 1180px) {
  .ps-pref-linebreak {
    margin-top:-32px !important;
  }
}


/* 過去オープン店舗一覧 */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center; /* SINCE と store-wrap の縦中央揃え */
  gap: 16px;
  padding: 0 20px;
  color: #000;
  font-family: sans-serif;
  width: 100%;
  pointer-events: none;
  white-space: nowrap; /* 一行固定 */
  overflow: hidden;    /* はみ出し隠し */
}

.store-wrap {
  display: flex;
  align-items: baseline; /* 店舗名と都道府県のベースライン揃え */
  gap: 4px;
  max-width: 100%;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden; /* ここでもはみ出し隠し */
  transition: width 0.3s ease;
}

.store-name {
  display: inline-block;
  font-size: clamp(6px, 6vw, 62px);
  font-weight: 700;
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: unset !important;
  transform-origin: left center;
  will-change: transform;
  /* JSのscaleで縮小するのでここは基準サイズ */
}

.pref {
  font-size: clamp(12px, 2vw, 28px);
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;           /* 縮まない */
  align-self: baseline;     /* ベースライン揃え */
}

.pref-linebreak {
  margin-left: 0 !important;
  margin-top:-10px;
}


.since {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(8px, calc(16 * (80vw - 375px) / 805 + 12px), 36px);
  font-weight: 600;
  color: #777;
  flex-shrink: 0;           /* 縮まない */
}

/* 画面幅が1180px以上なら最大サイズを固定 */
@media (min-width: 1180px) {
  /*
  .store-name {
    font-size: 62px !important;
    transform: scale(1) !important;
  }
  */

  .pref {
    font-size: 28px !important;
  }

  .pref-linebreak {
    margin-top:-18px !important;
  }
}
