@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box; /* もちろん、より直感的なbox-sizingに設定 */
}

h1, h2, h3, h4, h5, h6,
p,
ul,
ol,
dl,
pre,
fieldset,
blockquote,
address {
  margin: 0;
}

:where([hidden]:not([hidden=until-found])) {
  display: none !important; /* hiddenは非表示を意味します */
}

:where(html) {
  -webkit-text-size-adjust: none; /* iOSのランドスケープでテキストが調整されないようにする */
  color-scheme: dark light; /* ユーザーがダークテーマを好む場合、自動的にダークテーマになる */
}

@supports not (min-block-size: 100dvb) {
  :where(html) {
    block-size: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  :where(html:focus-within) {
    scroll-behavior: smooth; /* 何かにフォーカスがある場合のみスムーズスクロール */
  }
}
:where(body) {
  margin: 0;
  block-size: 100%; /* サファリ以外のブラウザのフォールバック */
  block-size: 100dvb; /* 1dvbは動的ビューポートの長さの1%、100dvbで高さいっぱいに */
  line-height: 1.5; /* アクセシブルな行の高さ */
  font-family: system-ui, sans-serif; /* timeの代わりにシステムフォントを使用 */
  -webkit-font-smoothing: antialiased; /* テキストのレンダリングを改善 */
}

:where(input, button, textarea, select) {
  font: inherit; /* フォーム コントロールは親フォントを継承 */
  color: inherit; /* カラーも継承 */
}

:where(textarea) {
  resize: vertical; /* テキストエリアの水平リサイズを無効に */
  resize: block;
}

:where(button, label, select, summary, [role=button], [role=option]) {
  cursor: pointer; /* インタラクティブなものにカーソルを合わせる */
}

:where(:disabled) {
  cursor: not-allowed; /* フォームコントロール無効時のカーソルを許可しない */
}

:where(label:has(> input:disabled), label:has(+ input:disabled)) {
  cursor: not-allowed; /* ラベルにもカーソルを許可しない */
}

:where(button) {
  border-style: solid; /* ボタンのボーダーのスタイルを設定しやすくする */
}

:where(a) {
  text-underline-offset: 0.2ex; /* 下線の上にスペースを追加する */
}

:where(ul, ol) {
  list-style: none; /* ビュレットを削除、必要に応じて手動で追加する */
  -webkit-padding-start: 0;
          padding-inline-start: 0;
}

:where(img, svg, video, canvas, audio, iframe, embed, object) {
  display: block; /* 置換された要素をより予測可能にする */
}

:where(img, picture, svg) {
  max-inline-size: 100%; /* images should never overflow past the available space */
  block-size: auto; /* アスペクト比を保持 */
}

:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word; /* 長い単語は改行 */
}

:where(h1, h2, h3) {
  line-height: calc(1em + 0.5rem); /* 見出しの行の高さを減らす */
}

:where(hr) { /* より一貫性のある、スタイリッシュなhr */
  border: none;
  -webkit-border-before: 1px solid;
          border-block-start: 1px solid;
  color: inherit;
  block-size: 0;
  overflow: visible;
}

:where(:focus-visible) { /* より一貫性のある、カスタマイズ可能なフォーカスのアウトライン */ }

/* .visually-hiddenは後のカスケードレイヤーを上書きするために!importantを使用 */
:where(.visually-hidden:not(:focus, :active, :focus-within, .not-visually-hidden)) {
  -webkit-clip-path: inset(50%) !important;
          clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.modal {
  --modal-max-width: 700px;
  --modal-radius: 12px;
  --modal-main-color: #192C37;
  --modal-overlay-bg: rgba(255, 255, 255, 0.6);
  --modal-accent-color: #0077c8;
  --modal-hover-color: #00538a;
  --modal-content-padding: 20px;
  --modal-content-bg: #f6f6f6;
  --modal-card-bg: #ffffff;
  padding-top: 100px;
  padding-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--modal-overlay-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal__content {
  z-index: 9999;
  overflow: hidden;
  background: var(--modal-content-bg);
  width: 100%;
  max-width: var(--modal-max-width);
  border-radius: var(--modal-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  color: #222;
}
.modal__content__header {
  background-color: var(--modal-main-color);
  padding: 1em;
}
.modal__content__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__content__logo img {
  max-width: 100%;
  height: auto;
  display: block;
}
.modal__content__textArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  padding: var(--modal-content-padding);
}
.modal__content__title {
  font-size: clamp(0.875rem, -0.014rem + 4.44vw, 1.375rem);
  line-height: 1.4;
  color: var(--modal-main-color);
}
.modal__content__label {
  border: 2px solid var(--modal-main-color);
  color: var(--modal-main-color);
  font-size: clamp(1rem, 0.333rem + 3.33vw, 1.375rem);
  font-weight: bold;
  padding: 0.5em;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}
.modal__content__btn {
  display: flex;
  justify-content: center;
}
@media screen and (min-width: 420px) {
  .modal__content__btn {
    align-items: center;
  }
}
.modal__content__btn__link {
  text-align: center;
  display: inline-block;
  font-weight: bold;
  background: var(--modal-accent-color);
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 5px;
  text-decoration: none;
  width: 200px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.modal__content__btn__link svg {
  width: 1em;
}
@media screen and (min-width: 420px) {
  .modal__content__btn__link {
    min-width: 280px;
  }
}
.modal__content__btn__link:hover {
  background: var(--modal-hover-color);
}
.modal__close {
  outline: none;
  box-shadow: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  text-decoration: none;
}
.modal__close:hover {
  color: #fff;
  background: var(--modal-accent-color);
}
.modal__card__wapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 var(--modal-content-padding) var(--modal-content-padding);
  width: 100%;
}
.modal__card {
  overflow: hidden;
}
.modal__card__top {
  background: var(--modal-card-bg);
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.modal__card__top__img {
  aspect-ratio: 2/1;
  overflow: hidden;
}
.modal__card__top__img img {
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.modal__card__top__title {
  position: relative;
  text-align: center;
  padding: 12px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal__card__top__title img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}
.modal__card__top__title svg {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  right: 10px;
  width: 1.2em;
  color: var(--modal-accent-color);
}
.modal__card__top:hover {
  background-color: #c3f3ff;
}
.modal__card__top:hover .modal__card__top__img img {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.modal__card__bottom {
  padding-top: calc(var(--modal-content-padding) / 2);
  padding-bottom: var(--modal-content-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal__card__address, .modal__card__tel {
  font-size: clamp(0.875rem, 0.786rem + 0.29vw, 1rem);
  color: #333;
}
.modal__card__btn {
  margin-top: 0.6em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal__card__btn__link {
  text-align: center;
  display: inline-block;
  font-weight: bold;
  background-color: #fff;
  border: 2px solid var(--modal-accent-color);
  color: var(--modal-accent-color);
  padding: 0.4em 2em;
  border-radius: 5px;
  text-decoration: none;
  min-width: 200px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.modal__card__btn__link svg {
  width: 1em;
}
.modal__card__btn__link:hover {
  background: var(--modal-accent-color);
  color: #fff;
}

/* Make modal visible when body has is-modal-active */
body.is-modal-active {
  overflow: hidden;
}

body.is-modal-active .modal {
  opacity: 1;
  pointer-events: auto;
}