@charset "utf-8";

/*
Theme Name: ibikona
Author: 株式会社リラクス
*/

/* =============================================
共通
============================================= */
:root {
  --black: #111;
  --white: #fff;
  --red: #ce000c;
  --dark-red: #8b0007;
  --gold: #967d54;
  --pale-gold: #f3efe5;
  --ivory: #fdf9f1;
  --pale-black: #111111c2;
  --leading-trim: calc((1em - 1lh) / 2);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--black);
  letter-spacing: 0.4px;
  -webkit-font-smoothing: antialiased;
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/bg-ivory.webp);
}

body.home {
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/bg-red.webp);
}

p {
  line-height: 1.7;
}

button {
  border: 0;
}

strong {
  font-weight: 700;
}

.shippori-mincho-regular {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.shippori-mincho-medium {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-style: normal;
}

.shippori-mincho-bold {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-style: normal;
}

.yeseva-one-regular {
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-style: normal;
}

.heading--large {
  --clamp-min: 30;
  --clamp-max: 48;
  text-align: center;
  padding-bottom: 8px;
  margin-top: var(--leading-trim);
  margin-bottom: clamp(40px, 5vw, 60px);
  letter-spacing: 0.05em;
}

.heading--large::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 22px;
  background-image: url("https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/heading-after.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.heading--large--02::after {
  background-image: url("https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/heading-after-02.svg");
}

.heading--partly-red .red {
  color: var(--red);
}

.button {
  padding: 1em;
  font-weight: 500;
  display: block;
  margin-inline: auto;
  width: fit-content;
  transition: filter 0.3s ease, opacity 0.3s ease;
  border-radius: 0;
  text-decoration: none !important;
}

.button--gold {
  background: var(--gold) !important;
  color: var(--white) !important;
}

.button--red {
  background: var(--dark-red) !important;
  color: var(--white) !important;
}

.button--black {
  background: var(--black) !important;
  color: var(--white) !important;
}

.button--arrow {
  position: relative;
  text-align: left;
  padding: 1.6em 5em 1.6em 1.6em;
}

.button--arrow::after {
  position: absolute;
  width: 33px;
  height: 14px;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/icon-arrow.svg);
  background-repeat: no-repeat;
}

.button--arrow-reverse {
  padding: 1.6em 1.6em 1.6em 5em;
}

.button--arrow-reverse::after {
  transform: translateY(-50%) scaleX(-1);
  right: unset;
  left: 26px;
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/icon-arrow.svg);
}

.text--red {
  color: var(--red);
}

.text--gold {
  color: var(--gold);
}

@media (hover: hover) {
  .button:hover {
    filter: brightness(105%);
  }
  .button--black:hover {
    opacity: 0.9;
  }
}

@media (max-width: 767px) {
  .heading--large::after {
    width: 270px;
  }
}

/* =============================================
フォントサイズ
============================================= */
*,
::before,
::after {
  --clamp-root-font-size: 16;
  --clamp-slope: calc(
    (var(--clamp-max) - var(--clamp-min)) /
      (var(--clamp-viewport-max) - var(--clamp-viewport-min))
  );
  --clamp-y-axis-intersection: calc(
    var(--clamp-min) - (var(--clamp-slope) * var(--clamp-viewport-min))
  );
  --clamp-preffered-value: calc(
    var(--clamp-y-axis-intersection) * (1rem / var(--clamp-root-font-size)) +
      (var(--clamp-slope) * 100vi)
  );
  --clamp: clamp(
    calc(var(--clamp-min) * (1rem / var(--clamp-root-font-size))),
    var(--clamp-preffered-value),
    calc(var(--clamp-max) * (1rem / var(--clamp-root-font-size)))
  );

  font-size: var(--clamp) !important;
}

/* bodyにデフォルト値を設定する */
body {
  --clamp-viewport-min: 375;
  --clamp-viewport-max: 1200;
  --clamp-min: 14;
  --clamp-max: 16;
}

/* =============================================
メニュー
============================================= */
.hamburger {
  position: fixed;
  right: 64px;
  top: 64px;
  z-index: 99998;
  width: 108px;
  height: 108px;
  transition: filter 0.3s ease;
}

@media (hover: hover) {
  .hamburger:hover {
    filter: brightness(105%);
  }
}

.navigation {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99997;
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/bg-red.webp);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: scroll;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.navigation--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navigation__list {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  width: 90vw;
  position: relative;
}

.navigation__list--overflow {
  position: absolute;
  top: 120px;
}

.navigation__link {
  color: var(--white);
  --clamp-min: 16;
  --clamp-max: 28;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navigation__divider {
  display: inline-block;
  height: 2px;
  width: 100%;
  background-color: var(--gold);
  margin: 20px 0 16px;
  border: 0;
  position: relative;
}

.navigation__item:last-of-type .navigation__divider {
  margin-bottom: 0;
}

.navigation__divider::before,
.navigation__divider::after {
  content: "";
  display: inline-block;
  background-color: var(--gold);
  width: 4px;
  height: 4px;
  border-radius: 999em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.navigation__divider::before {
  left: 0;
}

.navigation__divider::after {
  right: 0;
}

@media (max-width: 767px) {
  .hamburger {
    right: 10px;
    top: 20px;
    width: 70px;
    height: 70px;
  }
  .navigation__divider {
    margin: 12px 0;
  }
  .navigation__icon {
    width: 28px;
    height: 28px;
  }
  .navigation__list--overflow {
    top: 80px;
  }
}

/* =============================================
フッター
============================================= */
.footer {
  padding-top: 205px;
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/bg-red.webp);
  position: relative;
  padding-bottom: clamp(30px, 4vw, 55px);
}

.footer__account {
  background-image: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/footer-sns.webp);
  background-repeat: no-repeat;
  background-size: 820px 410px;
  width: 820px;
  height: 410px;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -205px;
}

.footer__heading {
  text-align: center;
  --clamp-min: 16;
  --clamp-max: 34;
  color: var(--white);
  margin-bottom: clamp(2px, 1vw, 24px);
  margin-top: var(--leading-trim);
  letter-spacing: 0.1em;
}

.footer__button {
  display: flex;
  gap: 20px;
  align-items: center;
  --clamp-min: 13;
  --clamp-max: 26;
  width: 90%;
  max-width: 320px;
  padding: 0.7em 0;
  justify-content: center;
}

.footer__copyrihgt {
  --clamp-min: 10;
  --clamp-max: 16;
  color: var(--white);
  font-weight: 700;
  text-align: center;
  display: block;
  margin: clamp(30px, 4vw, 55px) auto 0;
}

@media (max-width: 930px) {
  .footer {
    padding-top: 30vw;
  }
  .footer__account {
    background-size: 600px 300px;
    width: 600px;
    height: 300px;
    top: -150px;
  }
  .footer__button {
    max-width: 270px;
  }
}

@media (max-width: 767px) {
  .footer__account {
    width: 90vw;
    height: 45vw;
    background-size: 90vw 45vw;
    top: -22.5vw;
  }
  .footer__button {
    gap: 4px;
    width: 38vw;
    padding: 0.7em 0.3em;
  }
  .footer__icon {
    width: 14px;
  }
}

/* =============================================
下層ページ
============================================= */
body:not(.home)::before,
body:not(.home)::after {
  position: absolute;
  width: clamp(120px, 10vw, 194px);
  height: clamp(120px, 10vw, 194px);
  background-size: clamp(120px, 10vw, 194px) clamp(120px, 10vw, 194px);
  top: calc(240px + 60px);
  content: "";
  background-repeat: no-repeat;
}

body:not(.home)::before {
  background-image: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/frame-top-left.svg);
  left: clamp(30px, 3vw, 48px);
}

body:not(.home)::after {
  background-image: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/frame-top-right.svg);
  right: clamp(30px, 3vw, 48px);
}

.logo {
  background: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/bg-red.webp);
  height: 240px;
  position: relative;
}
.logo__image {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -72px;
  width: 265px;
}

.page {
  position: relative;
}

.page__article {
  border: 2px solid var(--gold);
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.18);
  width: 90vw;
  max-width: clamp(880px, 50vw, 960px);
  margin: clamp(90px, 8vw, 130px) auto clamp(160px, 30vw, 320px);
  background: var(--white);
  position: relative;
}

.page__article::before,
.page__article::after {
  position: absolute;
  width: clamp(20px, 5.5vw, 45px);
  height: clamp(20px, 5.5vw, 45px);
  background-size: clamp(20px, 5.5vw, 45px) clamp(20px, 5.5vw, 45px);
  top: 15px;
  content: "";
  background-repeat: no-repeat;
}

.page__article::before {
  background-image: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/frame-02-top-left.svg);
  left: 15px;
}

.page__article::after {
  background-image: url(https://ibikona-anime.com/wp-content/themes/ibikona/assets/images/frame-02-top-right.svg);
  right: 15px;
}

.page__header {
  padding: 56px 56px 0;
}

.page__eyecatch {
  padding-top: 1.8em;
}

.page__content {
  padding: 1.8em 56px 56px;
}

.page__title {
  --clamp-max: 40;
  --clamp-min: 22;
}

.page__meta {
  display: flex;
  justify-content: space-between;
}

.page__category {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  --clamp-max: 18;
  --clamp-min: 16;
}

.page__return {
  position: relative;
  margin-inline: auto !important;
}

.page__return::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid var(--gold);
  z-index: 0;
}

.page__content > * {
  margin: 1.8em 0;
}

.wp-block-heading {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-style: normal;
  margin-top: clamp(56px, 4.8vw, 80px) !important;
  margin-bottom: clamp(22px, 4vw, 32px) !important;
}

h1.wp-block-heading {
  --clamp-max: 40;
  --clamp-min: 32;
}

h2.wp-block-heading {
  --clamp-max: 32;
  --clamp-min: 28;
  border-top: solid 1px var(--gold);
  border-bottom: solid 1px var(--gold);
  padding: 0.4em 0;
}

h3.wp-block-heading {
  --clamp-max: 28;
  --clamp-min: 24;
  background-color: var(--pale-gold);
  padding: 0.5em;
}

h4.wp-block-heading {
  --clamp-max: 26;
  --clamp-min: 22;
  border-left: solid 1px var(--gold);
  padding: 0.3em 0.5em;
}

h5.wp-block-heading {
  --clamp-max: 22;
  --clamp-min: 18;
  border: solid 1px var(--gold);
  padding: 0.3em 0.5em;
  width: fit-content;
}

h6.wp-block-heading {
  --clamp-max: 20;
  --clamp-min: 18;
  border-bottom: solid 1px var(--gold);
  width: fit-content;
  padding-bottom: 0.2em;
}

.page__content p {
  line-height: 2;
}

.page__content a {
  color: var(--dark-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .page__content a:hover {
    text-decoration: none;
  }
}

.wp-block-list {
  padding-left: 1.2em;
}

ol.wp-block-list {
  list-style: decimal;
}

ul.wp-block-list {
  list-style: circle;
}

.wp-block-list li:not(:last-of-type) {
  margin-bottom: 0.6em;
}

.wp-block-button.wp-block-button {
  display: block;
  margin-inline: auto;
}

.wp-block-table thead,
.wp-block-table td,
.wp-block-table th {
  border: 0;
}
.wp-block-table th,
.wp-block-table td {
  padding: 1em;
  border: solid 1px var(--white);
}

.wp-block-table th {
  color: var(--white);
  font-weight: 700;
  background: var(--dark-red);
}

.wp-block-table td {
  background: var(--pale-gold);
}

.wp-element-caption {
  text-align: center;
  --clamp-min: 12;
  --clamp-max: 14;
}

.wp-block-image {
  text-align: center;
}

.wp-block-embed {
  text-align: center;
}

.wp-block-embed iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
}

@media (max-width: 1200px) {
  body:not(.home)::before,
  body:not(.home)::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .logo {
    height: 110px;
  }
  .logo__image {
    width: 160px;
  }
  .page__article::before,
  .page__article::after {
    top: 8px;
  }

  .page__article::before {
    left: 8px;
  }

  .page__article::after {
    right: 8px;
  }
  .page__header {
    padding: 20px 20px 0;
  }
  .page__content {
    padding: 0 20px 20px;
  }
}

/* =============================================
お知らせ
============================================= */
.news__list {
  margin-inline: auto;
  max-width: 960px;
  letter-spacing: 1px;
}

.news__item-inner {
  display: flex;
  gap: 30px;
  align-items: center;
}

.news__meta {
  display: flex;
  gap: 30px;
  align-items: center;
}

.news__time {
  white-space: nowrap;
  letter-spacing: 1.4px;
}

.news__date {
  --clamp-max: 24;
  --clamp-min: 22;
}

.news__category {
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2em 0.4em;
  text-align: center;
  white-space: nowrap;
}

.news__link {
  font-weight: 500;
  transition: color 0.3s ease;
  line-height: 1.8;
}

@media (hover: hover) {
  .news__link:hover {
    color: var(--red);
  }
}

.news__divider {
  display: inline-block;
  height: 1px;
  width: 100%;
  background-color: var(--gold);
  margin: 20px 0 16px;
  border: 0;
  position: relative;
}

.news__item:last-of-type .news__divider {
  margin-bottom: 0;
}

.news__divider::before,
.news__divider::after {
  content: "";
  display: inline-block;
  background-color: var(--gold);
  width: 6px;
  height: 6px;
  border-radius: 999em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.news__divider::before {
  left: 0;
}

.news__divider::after {
  right: 0;
}

.news__button {
  margin-top: clamp(30px, 6vw, 40px);
}

@media (max-width: 767px) {
  .news__item-inner {
    flex-direction: column;
    gap: 10px;
    align-items: baseline;
  }
  .news__meta {
    gap: 10px;
  }
  .news__category {
    padding: 0.1em 0.3em;
  }
  .news__divider {
    margin: 20px 0 12px;
  }
  .news__divider::before,
  .news__divider::after {
    display: none;
  }
}
