@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Noto+Sans+JP:wght@500&display=swap");

.online-page {
  --online-surface: #fcfaf6;
  --online-rule: #e5ded4;
  --online-muted: #64564b;
  --online-link: #846337;
  --online-heading-font: 'Zen Maru Gothic', sans-serif;
  --online-en-font: 'Montserrat', sans-serif;
  background: #fff;
}

/* オンライン受付のメイン画像とページ見出し */
.online-page .l-fv,
.l-online-intro,
.online-section {
  padding-inline: 5%;
}

.online-page .l-fv .container {
  max-width: 1280px;
  margin-inline: auto;
}

.online-page .l-fv .cr {
  display: none;
}

.online-page .l-fv .fv {
  position: relative;
  display: grid;
  place-items: center;
  height: 450px;
  overflow: hidden;
  border-radius: 36px;
}

.online-page .l-fv .fv-img,
.online-page .l-fv .fv-img img {
  width: 100%;
  height: 100%;
}

.online-page .l-fv .fv-img {
  position: absolute;
  inset: 0;
}

.online-page .l-fv .fv-img img {
  object-fit: cover;
  object-position: center;
}

.online-page .l-fv .fv-cp {
  position: relative;
  display: grid;
  place-items: center;
  width: min(300px, 94%);
  aspect-ratio: 5 / 3;
  background: url("../images/img/online/heading-shape.svg") center / 100% 100% no-repeat;
}

.online-page .l-fv .ttl,
.online-section .ttl {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0;
}

.online-page .l-fv .icon {
  margin-bottom: 20px;
}

.online-page .l-fv .icon img {
  display: block;
  width: 50px;
  height: 50px;
}

.online-page .l-fv .ja,
.online-section .ttl .ja {
  font-family: var(--online-heading-font);
  font-weight: 700;
}

.online-page .l-fv .ja {
  font-size: 21px;
}

.online-page .l-fv .en,
.online-section .ttl .en {
  margin-top: 8px;
  font: 600 12px / 1.4 var(--online-en-font);
  color: #68737b;
}

.online-page .l-fv .en {
  font-size: 10px;
}

.l-online-intro .container {
  position: relative;
  width: calc(100% - 80px);
  max-width: 1200px;
  margin: -50px auto 0;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: #fff;
  border-radius: 40px 40px 0 0;
  text-align: center;
}

.l-online-intro .lead {
  font: 700 23px / 1.5 var(--online-heading-font);
  letter-spacing: 0;
  color: #946d3e;
}

.online-hours {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.online-hours h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
}

.online-hours__frame {
  width: 100%;
  max-width: 416px;
  overflow: hidden;
  border: 1px solid var(--online-rule);
  border-radius: 12px;
}

.online-hours table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.5;
}

.online-hours th,
.online-hours td {
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
}

.online-hours th:first-child {
  width: 38%;
  padding-left: 18px;
  text-align: left;
}

.online-hours th:nth-child(2) {
  width: 29%;
}

.online-hours th:last-child,
.online-hours td:last-child {
  padding-right: 18px;
}

.online-hours thead {
  background: #f5efe5;
  color: var(--online-muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.online-hours thead th {
  padding-block: 7px;
}

.online-hours tbody th {
  font-size: 15px;
  letter-spacing: .02em;
}

.online-hours td {
  padding-block: 4px;
  font-size: 20px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.online-hours tbody tr + tr {
  border-top: 1px solid var(--online-rule);
}

.online-hours__note {
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .03em;
  color: var(--online-muted);
}

.online-reception-link {
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  width: min(100%, 340px);
  padding: 20px 20px 20px 40px;
  border-radius: 20px;
  background: #D4A76C;
  color: #fff;
  font: 700 22px / 1.4 var(--online-heading-font);
  letter-spacing: 0;
  text-decoration: none;
}

.online-reception-link > img {
  filter: brightness(0) invert(1);
}

.online-page a:focus-visible {
  outline: 2px solid var(--online-link);
  outline-offset: 4px;
}

.online-section {
  padding-block: 80px;
}

.online-section > .container {
  display: grid;
  gap: 40px;
  max-width: 980px;
  margin-inline: auto;
}

.online-section .ttl .ja {
  font-size: 29px;
}

.online-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3.7vw, 40px);
  list-style: none;
}

.online-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 407px;
  padding: 40px clamp(16px, calc((100vw - 600px) / 12), 40px);
  border-radius: 20px;
  background: var(--online-surface);
}

.online-step__head {
  display: grid;
  gap: 4px;
  text-align: center;
}

.online-step__number {
  font: 600 12px / 1.38 var(--online-en-font);
  letter-spacing: .04em;
  color: var(--online-link);
}

.online-step h3 {
  font: 700 20px / 1.4 var(--online-heading-font);
  letter-spacing: 0;
}

.online-step__icon {
  display: block;
  width: 70px;
  height: auto;
}

.online-step__text {
  align-self: stretch;
}

.online-step__text p,
.online-flow-note {
  font-size: 14px;
  line-height: 2;
  letter-spacing: .8px;
}

.online-step__text a {
  color: var(--online-link);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.l-online-faq {
  background: var(--online-surface);
}

.online-faq-list {
  border-bottom: 1px solid #e2dfd9;
}

.online-faq-item {
  --q-width: 28px;
  --q-gap: 8px;
  display: grid;
  gap: 18px;
  padding-block: 32px;
  border-top: 1px solid #e2dfd9;
}

.online-faq-item dt {
  display: grid;
  grid-template-columns: var(--q-width) minmax(0, 1fr);
  gap: var(--q-gap);
  align-items: baseline;
  font: 700 18px / 1.5 var(--online-heading-font);
  letter-spacing: 0;
}

.online-faq-item__q {
  color: #8b683f;
  font: 600 20px / 1.3 var(--online-en-font);
  text-align: center;
}

.online-faq-item dd {
  padding-left: calc(var(--q-width) + var(--q-gap));
  line-height: 2;
}

@media only screen and (max-width: 600px) {
  .online-page .l-fv .fv {
    height: 350px;
    border-radius: 30px;
  }

  .online-page .l-fv .fv-cp {
    width: min(250px, 94%);
  }

  .online-page .l-fv .icon {
    margin-bottom: 12px;
  }

  .online-page .l-fv .icon img {
    width: 40px;
    height: 40px;
  }

  .online-page .l-fv .ja {
    font-size: 18px;
  }

  .l-online-intro .container {
    width: calc(100% - 24px);
    margin-top: -30px;
    padding: 24px 12px;
    gap: 24px;
    border-radius: 30px 30px 0 0;
  }

  .l-online-intro .lead {
    font-size: 20px;
    text-wrap: balance;
  }

  .online-hours th:first-child {
    width: 42%;
    padding-left: 10px;
  }

  .online-hours th:last-child,
  .online-hours td:last-child {
    padding-right: 6px;
  }

  .online-hours tbody th {
    font-size: 13px;
  }

  .online-hours td {
    font-size: 18px;
  }

  .online-hours__note {
    text-align: left;
  }

  .online-hours__note br {
    display: none;
  }

  .online-reception-link {
    padding: 16px 16px 16px 36px;
    font-size: 20px;
  }

  .online-section {
    padding-block: 60px;
  }

  .online-section > .container {
    gap: 28px;
  }

  .online-section .ttl .ja {
    font-size: 20px;
  }

  .online-section .ttl .en {
    margin-top: 6px;
    font-size: 10px;
  }

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

  .online-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "icon heading" "text text";
    align-items: center;
    gap: 12px 16px;
    min-height: 0;
    padding: 24px;
  }

  .online-step__head {
    grid-area: heading;
    text-align: left;
  }

  .online-step h3 {
    font-size: 18px;
  }

  .online-step__icon {
    grid-area: icon;
    width: 52px;
  }

  .online-step__text {
    grid-area: text;
  }

  .online-faq-item {
    --q-width: 22px;
    --q-gap: 6px;
    gap: 12px;
    padding-block: 24px;
  }

  .online-faq-item dt {
    font-size: 16px;
  }

  .online-faq-item__q {
    font-size: 18px;
  }
}

/* 既存の下層ページと共通のローディング画面 */
.load {
  background-color: #fff;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-right: 5%;
  padding-left: 5%;
}

.load .container {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.load .container .loading .logo {
  width: 90px;
  margin: 0 auto;
}

.load .container .loading .logo img {
  width: 100%;
}

.load .container .loading .txt {
  text-align: center;
  margin-top: 10px;
}

.load .container .loading .txt p span {
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  display: inline-block;
  margin: 0 -.05em;
  -webkit-animation: loading 1.4s infinite alternate;
          animation: loading 1.4s infinite alternate;
}

@media only screen and (max-width: 600px) {
  .load .container .loading .txt p span {
    font-size: 14px;
  }
}

.load .container .loading .txt p span:nth-child(2) {
  -webkit-animation-delay: .1s;
          animation-delay: .1s;
}

.load .container .loading .txt p span:nth-child(3) {
  -webkit-animation-delay: .2s;
          animation-delay: .2s;
}

.load .container .loading .txt p span:nth-child(4) {
  -webkit-animation-delay: .3s;
          animation-delay: .3s;
}

.load .container .loading .txt p span:nth-child(5) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}

.load .container .loading .txt p span:nth-child(6) {
  -webkit-animation-delay: .5s;
          animation-delay: .5s;
}

.load .container .loading .txt p span:nth-child(7) {
  -webkit-animation-delay: .6s;
          animation-delay: .6s;
}
