/* font */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");

@font-face {
  font-family: "LINESeedJP OTF";
  font-weight: 300;
  src: url("../font/LINESeedJP_OTF_Rg.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "LINESeedJP OTF";
  font-weight: 700;
  src: url("../font/LINESeedJP_OTF_Bd.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "LINESeedJP OTF";
  font-weight: 800;
  src: url("../font/LINESeedJP_OTF_Eb.woff2") format("woff2");
  font-display: swap;
}
/* -------------------------------------------
 ベース
------------------------------------------- */

html {
  scroll-behavior: smooth;
}

/* 変数 */
:root {
  --font-base: "Noto Sans JP", sans-serif;
  --font-sub: "LINESeedJP OTF", sans-serif;
  --font-main-ttl: "LINESeedJP OTF", sans-serif;
  --font-btn: "LINESeedJP OTF", sans-serif;
}

/* -------------------------------------------
 base
------------------------------------------- */
.base {
  max-width: none;
  position: relative;
  background: transparent;
  clip-path: inset(0);

  @media (max-width: 428px) {
    padding-bottom: 0;
  }

  @media (max-width: 375px) {
    padding-bottom: 0;
  }
}

.base::before {
  content: "";
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background: no-repeat top center/cover url(../images/bg.webp);
}

body:has(input[id^="modal-open--"]:checked) .base {
  clip-path: none;
}

/* -------------------------------------------
 side-wrap
------------------------------------------- */

.side-wrap {
  width: 100%;
  position: fixed;
  display: grid;
  grid-template-columns: 1fr 740px minmax(400px, 1fr);
  top: 0;
  left: 0;
  align-items: center;
}

.side-wrap__left,
.side-wrap__right {
  height: 100vh;
  height: 100dvh;
  padding-inline: 8%;
  padding-block: 13vh;
  box-sizing: border-box;
  @media (max-width: 1000px) {
    height: 0;
    padding-block: 0;
  }
}

.side-wrap__left-img,
.side-wrap__right-img {
  display: block;
  height: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.side-wrap__right {
  max-width: 500px;
}

@media (max-width: 1024px) {
  .side-wrap {
    position: absolute;
  }
}

/* -------------------------------------------
 main-container
------------------------------------------- */
main.main-container {
  max-width: 740px;
  margin-right: clamp(400px, 27vw, 40rem);
  z-index: 1;
  margin-left: auto;
  position: relative;
  padding-bottom: 3rem;
  @media (max-width: 1024px) {
    margin: auto;
  }

  @media (min-width: 1600px) {
    margin: auto;
  }
}

main.main-container::before {
  content: "";
  display: block;
  width: 740px;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: calc((100% - 740px) / 2);
  z-index: -1;
  background: no-repeat top center/cover url();
}

/* -------------------------------------------
 main-section
------------------------------------------- */

.main-section--padding-bottom {
  padding-bottom: 50px;
}

.main-section__inner {
  max-width: 700px;
  width: 95%;
  background-color: #fffdc9;
  margin: 40px auto;
  padding-block: 24px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.main-section__lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-section__ttl {
  font-family: var(--font-main-ttl);
  text-align: center;
  font-weight: 800;
  color: #358b42;
  font-size: clamp(
    20px,
    calc(20px + (34 - 20) * (100vw - 375px) / (700 - 375)),
    34px
  );
  line-height: 1.5;
  min-height: 1.6em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-section__text-box {
  font-family: var(--font-base);
  font-weight: 350;
  text-align: center;
  font-size: clamp(
    16px,
    calc(16px + (24 - 16) * (100vw - 375px) / (700 - 375)),
    24px
  );
  line-height: 1.3;
}

.main-section__text:not(:last-child) {
  padding-bottom: 1em;
}

@media (max-width: 768px) {
  .main-section__ttl {
    max-width: 95%;
  }
  .main-section__text-box {
    max-width: 95%;
  }

  .main-section__inner {
    padding-block: 30px;
  }
}

/* -------------------------------------------
 btn
------------------------------------------- */

.btn:hover {
  opacity: 0.7;
}

/* -------------------------------------------
 レスポンシブ対応
------------------------------------------- */

@media (min-width: 769px) {
  .sp {
    display: none;
  }
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }
}
