/*
Theme Name: lorelight
Author: Oracle design Jugem
Author URI: https://oracle-design.com
Version: 1.0
*/

@charset 'utf-8';

/* フォント */
@import url('https://fonts.googleapis.com/css2?family=Ancizar+Serif:ital,wght@0,300..900;1,300..900&family=Noto+Serif+JP:wght@200..900&display=swap');

/* ルート設定 */
:root {
  /* color */
  --main-color: #7ec0da;
  --accent-color: #dacaa4;
  --text-color: #00436d;
  --bg-color: #fefdf9;
  /* font-size */
  --small-font-size: clamp(1.2rem, 1.121rem + 0.37vw, 1.4rem);
  --main-font-size: clamp(1.6rem, 1.521rem + 0.37vw, 1.8rem);
  --large-font-size: clamp(2.4rem, 2.281rem + 0.56vw, 2.7rem);
  --exl-font-size: clamp(3.2rem, 3.042rem + 0.74vw, 3.6rem);
}

/* 基本設定 */
html {
  font-size: 62.5%;
}
body {
  font-family: 'Ancizar Serif', 'Noto Serif JP', serif;
  font-size: var(--main-font-size);
  letter-spacing: 0.09em;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}
a {
  transition: opacity ease 0.12s;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
p {
  margin-bottom: 36px;
}
.section {
  position: relative;
  padding-bottom: 96px;
  margin-bottom: 72px;
  &:first-of-type {
    padding-top: 60px;
  }
}
.inner {
  position: relative;
  max-width: 960px;
  padding-right: 12px;
  padding-left: 12px;
  margin-inline: auto;
}
.section-title {
  position: relative;
  display: block;
  width: fit-content;
  font-size: var(--large-font-size);
  text-align: center;
  margin-top: calc(var(--large-font-size) + 48px);
  margin-bottom: calc(var(--large-font-size) + 60px);
  margin-inline: auto;
  &::before,
  &::after {
    position: absolute;
    top: -24px;
    left: -48px;
    content: '\201C';
    color: var(--accent-color);
    font-size: var(--exl-font-size);
    font-weight: 900;
  }
  &::after {
    content: '\201D';
    top: initial;
    left: initial;
    bottom: -24px;
    right: -48px;
  }
}
.page-title {
  position: relative;
  text-align: center;
  font-size: var(--large-font-size);
  font-weight: bold;
  margin-top: 48px;
  margin-bottom: 172px;
  &::after {
    position: absolute;
    top: 72px;
    right: 50%;
    width: 1px;
    height: 96px;
    content: '';
    border: solid 1px var(--accent-color);
  }
}
.btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  &.btn-large > a.btn {
    width: 100%;
    height: 108px;
    font-size: var(--large-font-size);
  }
}
a.btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 270px;
  height: 72px;
  background-color: var(--main-color);
  color: #fff;
  font-weight: bold;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.075));
  overflow: hidden;
  z-index: 0;
  &::after {
    content: '＞';
    margin-left: 8px;
  }
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
  }
}
.text-center {
  text-align: center;
}
.mb-72 {
  margin-bottom: 72px;
}
.grecaptcha-badge {
  visibility: hidden;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.header-logo {
  height: 60px;
  object-fit: contain;
}
.navigation {
  position: relative;
  width: 100%;
  height: 60px;
}
.nav-list {
  display: flex;
  justify-content: flex-end;
  height: 60px;
  gap: 36px;
  font-weight: bold;
  padding-right: 24px;
}
.nav-content {
  display: grid;
  place-items: center;
}
.navToggle {
  display: none;
}

/* フッター */
.footer {
  background-color: var(--main-color);
  color: #fff;
}
.footer-inner {
  text-align: center;
  padding: 48px 12px;
}
img.footer-logo {
  display: block;
  margin-inline: auto;
  margin-bottom: 24px;
  height: 60px;
}
.footer-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;

  font-weight: bold;
}
a.backtoTop {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--large-font-size);
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  border-radius: 100vmax;
  background-color: var(--main-color);
  color: #fff;
}

/* SNSリスト */
.sns-list {
  max-width: 768px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sns-content a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 48px;
  text-align: center;
  border: solid 1px currentColor;
  background-color: transparent;
  transition: background-color ease 0.2s;
}

/* トップ メインビジュアル */
.section#front-mv {
  height: 100lvh;
  min-height: 480px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  z-index: 0;
  &::before {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    content: '';
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  &::after {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    content: '';
    mix-blend-mode: lighten;
    background-color: var(--text-color);
    z-index: -1;
  }
}
.mv-title {
  & h1 img {
    display: block;
    margin-inline: auto;
    max-height: 84px;
    margin-bottom: 48px;
    background-color: var(--bg-color);
  }
  & p {
    font-size: var(--large-font-size);
    color: #fff;
    filter: drop-shadow(0 0 0.4rem var(--text-color));
  }
}
/* トップ - インフォ */
.info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.info-content {
  line-height: 1.4;
  & a {
    display: block;
    overflow: hidden;
    & img {
      display: block;
      height: 120px;
      width: 100%;
      margin-bottom: 12px;
      object-fit: cover;
      object-position: center;
      transition: transform 0.3s ease;
    }
  }
  & h3 {
    font-size: var(--main-font-size);
  }
}
/* トップ - ナビ */
.top-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 768px;
  width: 100%;
  margin-inline: auto;
  & > li {
    display: grid;
    place-items: center;
    height: 144px;
    overflow: hidden;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.075));
    & a {
      display: grid;
      place-items: center;
      width: 100%;
      height: 100%;
      background-position: center;
      background-size: cover;
      transition: transform 0.3s ease;
      & span {
        padding: 14px 24px 10px;
        background-color: var(--main-color);
        color: #fff;
        font-weight: bold;
        &::after {
          content: '＞';
          margin-left: 6px;
        }
      }
    }
  }
}
/* トップ - コンタクト */
.section#front-contact > .inner {
  padding-top: 36px;
  padding-bottom: 36px;
  background-color: var(--text-color);
  color: #fff;
  & .section-title::before,
  & .section-title::after {
    display: none;
  }
  & .btn-wrapper.btn-large {
    max-width: 768px;
    margin-inline: auto;
  }
}

/* 固定ページ設定 */
/* ロアライト舎について */
img.about-img {
  display: block;
  max-width: 360px;
  height: auto;
  margin-inline: auto;
  margin-bottom: 48px;
}
.about-name {
  font-size: var(--large-font-size);
  margin-bottom: 24px;
  text-align: center;
}
/* 本紹介 */
img.books-img {
  display: block;
  max-height: 360px;
  margin-inline: auto;
  margin-bottom: 48px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.075));
}
.books-catch {
  display: block;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: var(--large-font-size);
  text-align: center;
}
.books-popup {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
}
.books-inner {
  position: relative;
  max-height: 80dvh;
  max-width: 780px;
  width: 100%;
  height: fit-content;
  margin-inline: auto;
  padding: 36px;
  border-radius: 12px;
  background-color: var(--bg-color);
  overflow: auto;
  z-index: 2500;
  animation: fadeIn 0.2s ease-out;
  & h3 {
    font-size: var(--large-font-size);
  }
  & img {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    margin-bottom: 24px;
    object-fit: contain;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.books-close {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: var(--exl-font-size);
  text-decoration: none;
  color: var(--accent-color);
  cursor: pointer;
}
/* お問い合わせ */
.contact-caution {
  font-size: var(--small-font-size);
  font-weight: bold;
  color: salmon;
}
.contact-form {
  margin-inline: auto;
  border-radius: 8px;
}
.contact-form dl {
  display: flex;
  flex-direction: column;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  &:last-of-type {
    margin-bottom: 60px;
  }
  &:focus-within {
    border-left: 4px solid var(--main-color);
    padding-left: 12px;
    transition: all 0.3s ease;
  }
  & dt {
    font-weight: 500;
    margin-bottom: 4px;
  }
  & dd input,
  & dd textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.3s ease;
  }
  & > dt,
  & > dd {
    & p {
      margin-bottom: initial;
    }
  }
}
input[type='submit'].submit-btn {
  width: 100%;
  text-align: center;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 4px;
  border: none;
  background-color: var(--text-color);
  color: #fff;
  transition: background-color ease 0.2s;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.075));
}

/* シングルページ */
main.single {
  .section:first-of-type {
    padding-bottom: initial;
    margin-bottom: initial;
  }
}
img.info-thumb {
  display: block;
  margin-inline: auto;
  margin-bottom: 48px;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* メディアクエリ */
@media (max-width: 780px) {
  /* 基本設定 */
  .section-title {
    &::before {
      top: -48px;
      left: 0px;
    }
    &::after {
      bottom: -48px;
      right: 0px;
    }
  }
  /* ヘッダー */
  .nav-list {
    display: none;
    &.on {
      position: absolute;
      inset: 0;
      top: 0;
      left: 0;
      width: 100lvw;
      height: 100lvh;
      padding-right: initial;
      display: flex;
      justify-content: center;
      flex-direction: column;
      background-color: rgba(255, 255, 255, 0.9);
      & .nav-content {
        place-items: normal start;
        padding-left: 48px;
      }
    }
  }
  .navToggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 48px;
    display: block;
    cursor: pointer;
    z-index: 1100;
    & span {
      position: absolute;
      top: 12px;
      right: 0;
      height: 1px;
      width: 24px;
      background-color: var(--text-color);
      &:last-of-type {
        top: 21px;
      }
    }
    &.on {
      & span {
        top: 18px;
        transform: rotate(24deg);
        &:last-of-type {
          transform: rotate(-24deg);
        }
      }
    }
  }
  /* トップ */
  .info-list {
    grid-template-columns: 1fr;
  }
  .sns-list {
    grid-template-columns: 1fr;
  }
}

/* ホバー設定 */
@media (hover: hover) {
  a:hover {
    opacity: 0.75;
    transition: opacity ease 0.12s;
  }
  a.btn {
    opacity: 1;
    &:hover::before {
      left: 0;
    }
  }
  .sns-content a:hover {
    background-color: var(--text-color);
    color: #fff;
  }
  .info-content a:hover img {
    transform: scale(1.05);
  }
  .top-nav > li a:hover {
    transform: scale(1.05);
    opacity: 1;
    & span {
      background-color: var(--accent-color);
    }
  }
  input[type='submit'].submit-btn:hover {
    background-color: var(--main-color);
    transition: background-color ease 0.2s;
  }
}
