@charset "utf-8";

/* 標準CSSでは$変数が使えないため、ルートでカスタムプロパティとして定義します */
:root {
  --color-base: #950d0f;
  --color-main: #b0005e;
  --color-accent: #ffc0d7;
  --color-accent-2: #ffaaaa;
  --color-font: #eee;
  --color-footer: #333;

  /* ---フォントサイズ--- */
  --fs-40: clamp(3.2rem, 3.3vw, 4rem);
  --fs-32: clamp(2.4rem, 2.6vw, 3.2rem);
  --fs-24: clamp(2rem, 2vw, 2.4rem);
  --fs-20: clamp(1.7rem, 1.7vw, 2rem);
  --fs-18: clamp(1.5rem, 1.5vw, 1.8rem);
  --fs-16: clamp(1.4rem, 1.3vw, 1.6rem);
  --fs-14: clamp(1.3rem, 1.2vw, 1.4rem);

  /* ブレイクポイントを定義 */
  --breakpoint-pc: 1023px; /*PCは1024px～*/
  --breakpoint-tablet: 767px; /*タブレットは768px～1024px*/
  --breakpoint-min: 320px; /*スマホは320px～375px基準～430px*/
}

/* ==========================================
 * 1. Cocoonテーマのリセット
 * ========================================== */
/*1-1.メインレイアウトの全幅化（ホーム専用）*/
.home #main,
.page-id-399 #main,
.page-id-404 #main {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
}

.home .article,
.page-id-399 .article,
.page-id-404 .article {
  border-radius: 0; /* 角丸を強制リセット */
}

.home .wb-theme-reset {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.page-id-399 .content-in.wrap,
.page-id-404 .content-in.wrap {
  max-width: none;
  width: 100%;
}

/* ===========================================
  2. 独自スタイルの適用
=========================================== */

/* 上にある:rootを上書きしてhtmlタグへ直接指定 */
:root {
  /* html自体のfont-sizeは変更せず、変数の計算式で10px基準を再現する */
  /* 例: 3.2rem (32px) を 16px基準で書くと 2rem になる */
  --root-ratio: calc(10 / 16);

  /* 既存の変数を16px基準に自動変換 */
  --fs-40: clamp(calc(3.2rem * var(--root-ratio)), 3.3vw, calc(4rem * var(--root-ratio)));
  --fs-32: clamp(calc(2.4rem * var(--root-ratio)), 2.6vw, calc(3.2rem * var(--root-ratio)));
  --fs-24: clamp(calc(2rem * var(--root-ratio)), 2vw, calc(2.4rem * var(--root-ratio)));
  --fs-20: clamp(calc(1.7rem * var(--root-ratio)), 1.7vw, calc(2rem * var(--root-ratio)));
  --fs-18: clamp(calc(1.5rem * var(--root-ratio)), 1.5vw, calc(1.8rem * var(--root-ratio)));
  --fs-16: clamp(calc(1.4rem * var(--root-ratio)), 1.3vw, calc(1.6rem * var(--root-ratio)));
  --fs-14: clamp(calc(1.3rem * var(--root-ratio)), 1.2vw, calc(1.4rem * var(--root-ratio)));
}

/* bodyの指定：.homeクラスを使用して詳細度を上げる */
body.home,
body.page-id-399,
body.page-id-404 {
  font-size: calc(1rem * var(--root-ratio));
  font-family: "Zen Old Mincho", serif;
  font-weight: 300;
  font-style: normal;
  color: var(--color-font);
  line-height: 1.75;
  letter-spacing: 0.05em;
  background-color: var(--color-base);
  animation: pageFadeIn 3s cubic-bezier(0.33, 1, 0.68, 1) both;
}

/* ===========================================
  ここから自作html
=========================================== */

@keyframes pageFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 1.4s ease-out;
  will-change: opacity, transform;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

a:link {
  color: #fff;
  text-decoration: none;
}

a:visited {
  color: #ffd700;
  /* color: #ffd166; */
}

a:hover {
  color: #ff6b6b;
  /* text-decoration: underline; */
}

a:active {
  color: #e0b4b5;
}

.no-visited-color {
  color: #eee;
}

.fs-40 {
  font-size: var(--fs-40);
}

.fs-32 {
  font-size: var(--fs-32);
}

.fs-24 {
  font-size: var(--fs-24);
}

.fs-20 {
  font-size: var(--fs-20);
}

.fs-18 {
  font-size: var(--fs-18);
}

.fs-16 {
  font-size: var(--fs-16);
}

.fs-14 {
  font-size: var(--fs-14);
}

h2 {
  line-height: 1;
  margin-bottom: clamp(15px, 5vw, 70px);
}

/* フレックスボックス */
.model-flex {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.model-btn {
  display: block;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  width: fit-content;
  text-align: center;
  padding: 0.5em 3em;
  border-radius: 0.3em;
  white-space: nowrap;
  cursor: pointer;

  /* &.type-blood-red {
    color: var(--color-font);
    background-color: var(--color-accent-2);
  } */

  /* &.type-orange {
    color: var(--color-font);
    background-color: var(--color-accent);
  } */
}

.wb-bat-btn {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1.2;
  padding: 1.2em 1.8em;
  margin: min(10vw, 60px) auto 0;
  border-radius: 0;
  background-image: url(../image/wb-common/Bat-btn.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

.model-inner {
  max-width: 1340px;
  width: min(90vw, 100%);
  /* ↓今風のmargin-left: auto,margin-right: auto */
  margin-inline: auto;
  /* left、right:30pxはmargin:auto挙動のスキマ最小値として必要 */
  padding: 160px 30px;
  /* width: 100%; ※超重要 */
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .model-inner {
    padding: min(12vw, 120px) 30px;
  }

  .wb-new .model-inner,
  .wb-schedule .model-inner,
  .wb-favorite .model-inner,
  .wb-collect .model-inner,
  .wb-schedule .model-inner,
  .subpage-gallery .model-inner {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .wb-welcome .model-inner,
  .wb-collect .model-inner,
  .wb-new .model-inner,
  .wb-share .model-inner,
  .wb-popular .model-inner,
  .wb-favorite .model-inner,
  .wb-info .model-inner {
    width: 100%;
    padding: 60px min(3vw, 15px);
  }
}

.wb-line-limit {
  overflow: hidden; /* はみ出た部分を隠す */

  display: -webkit-box; /* 必須：ボックスモデルの指定 */
  -webkit-box-orient: vertical; /* 必須：垂直方向に並べる */

  word-break: break-all; /* 英単語が長くても強制改行/カットする */

  &.limit-1 {
    /* max-height: calc(1.4em * 1); */
    -webkit-line-clamp: 1; /* 表示したい行数を指定（ここでは2行） */
  }

  &.limit-2 {
    /* max-height: calc(1.4em * 2); */
    -webkit-line-clamp: 2; /* 表示したい行数を指定（ここでは2行） */
  }
}

/* ===========================================
  Header Section (ヘッダー)
=========================================== */

.wb-header-content {
  width: 100%;
  z-index: 10;
  background: linear-gradient(to top, rgba(48, 0, 0, 0.2) 0%, rgba(48, 0, 0, 0.6) 40%, rgb(48, 0, 0, 1) 80%);
}

.wb-header-content.sub,
.wb-header-content.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
}
.wb-header-content.is-fixed {
  animation: slideDown 0.3s ease-out;
}

.wb-header-column {
  width: 100%;
  /* max-width: 1640px; */
  height: 85px;
  margin: 0 auto;
  padding: 5px 2em;
  box-sizing: border-box;
}

.wb-header-column {
  & h1 {
    /* font-family: "Playfair Display", serif; */
    /* font-family: "Kaisei Decol", serif; */
    /* font-style: italic; */
    font-weight: bold;
    white-space: nowrap;
    /* text-shadow: 1px 1px 2px #950d0f; */

    /* 文字のグラディエーション化 */
    /* 1. 文字の後ろにグラデーション背景を置く */
    background: linear-gradient(to bottom, #ddd 40%, #ffaccb 60%);

    /* 2. 背景を文字の形に合わせて切り抜く */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. 本来の文字の色を透明にして、後ろの背景を透かせる */
    -webkit-text-fill-color: transparent;
  }
}

.wb-header-logo {
  display: block;
  width: auto;
  height: 100%;

  & h1 {
    display: none;
  }

  & a {
    height: 100%;
  }

  & img {
    height: 100%;
    width: auto;
    object-fit: cover;
  }
}

/* --- G-nav (Gナビゲーション) --- */

.wb-gnav-menu {
  letter-spacing: 0.01em;
  text-align: center;
  width: fit-content;
  height: 100%;
}

.wb-gnav-list {
  padding: 0 0.7em;
  margin-top: 0.5em;
  height: 100%;
  line-height: 1;

  &.hidden {
    display: none;
  }

  &:nth-child(-n + 3) {
    border-right: solid 1px var(--color-font);
  }
}

.wb-header-content.sub .wb-gnav-list.hidden {
  display: block;
}

.wb-gnav-list a span {
  display: block;
  width: fit-content;
  height: fit-content;
  margin: 0 auto;
}

.wb-gnav-list a small {
  font-style: italic;
}

.hmb-icon {
  display: none;
  width: 50px;
  aspect-ratio: 1 / 1;
  padding: 5px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: clamp(15px, 3vw, 20px);
  z-index: 2;

  & img {
    width: 100%;
    height: auto;
    min-width: 28px;
  }
}

/* ページトップボタンの基本スタイル */
.pagetop-icon {
  position: fixed;
  bottom: 15px;
  right: clamp(15px, 3vw, 20px);
  width: 50px;
  aspect-ratio: 1 / 1;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}

.pagetop-icon.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1200px) {
  .wb-header-column h1 {
    font-size: var(--fs-20);
  }
}

@media (max-width: 1023px) {
  .wb-header-column {
    gap: 3vw;

    & > h1 {
      display: none;
    }
  }

  .wb-gnav-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch; /*※重要：centerを解除、下線をいっぱいに広げる*/
    gap: 35px;

    width: fit-content;
    height: 100vh;
    background-color: rgb(51, 51, 51, 0.95);
    padding: 100px 5vw;
    font-size: clamp(1em, 2vw, 1.5em);

    .wb-gnav-list {
      height: fit-content;
      border-right: unset;
      border-bottom: 1px solid #aaa;
      line-height: 1.4;
      padding: 0;
      margin: 0;

      & a {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5em;
      }

      & a span {
        width: 7em;
        margin: 0;
        text-align: left;
      }
    }
  }

  .wb-header-logo {
    display: flex;
    gap: 3vw;

    & h1 {
      display: block;
    }
  }
}

@media (max-width: 767px) {
  .wb-header-column {
    height: min(20vw, 75px);
  }

  .wb-header-logo {
    flex-direction: column;
    justify-content: center;
    gap: 0;

    & h1 {
      line-height: 1.2;
    }

    & img {
      height: min(12vw, 50px);
    }
  }
}

@media (max-width: 500px) {
  .wb-header-column {
    padding: 5px 0.5em;
    margin: 0;
  }

  .wb-header-column h1 {
    font-size: 12px;
    margin: 0 auto;
  }
}

.wb-sub-image {
  width: 100%;
  height: 60vw; /* 親に高さを指定 */
  max-height: 600px;
  overflow: hidden;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }
}

/* ===========================================
  サブメニュー用（場合によっては削除）
=========================================== */

.wb-sub-image {
  position: relative;
}

.wb-sub-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;

  /* font-family: "Kaisei Decol", serif; */
  font-family: "Playfair Display", serif;
  font-style: italic;
  text-shadow: 1px 1px 50px #70003c;

  white-space: nowrap;

  &::after {
    content: "";
    position: absolute;

    /* 親(.wb-sub-text)の左端から100%＝右端を基準にする */
    left: 100%;
    /* 上下中央に配置する場合 */
    top: 25%;
    transform: translateY(-50%);

    width: clamp(160px, 18vw, 300px); /* 画像の横幅 */
    height: auto; /* 画像の高さ */
    aspect-ratio: 160 / 125;
    margin-left: 1vw;

    /* 背景画像の設定 */
    background-image: url(../image/wb-common/pet_bat.png);
    background-size: contain; /* 枠内に画像を収める */
    background-repeat: no-repeat;

    animation: bird-float 3s ease-in-out infinite;
  }
}

@keyframes bird-float {
  0% {
    transform: translateY(-50%); /* 初期位置（中央） */
  }
  50% {
    transform: translateY(-60%); /* 上に上がる（数値はお好みで） */
  }
  100% {
    transform: translateY(-50%); /* 元に戻る */
  }
}

.wb-sub-text .en {
  font-size: var(--fs-40);
  font-weight: bold;
  display: block;
}

.wb-sub-text .ja {
  font-size: var(--fs-24);
  display: block;
}

@media (max-width: 767px) {
  .wb-sub-text {
    top: 60%;
    /* transform: translate(-50%, -50%); */
  }
}
@media (max-width: 500px) {
  .wb-sub-text {
    line-height: 1.5;

    &::after {
      width: 110px;
      left: 80%;
      top: 100%;
    }
  }

  .wb-sub-text .en {
    font-size: var(--fs-32);
  }

  .wb-sub-text .ja {
    font-size: var(--fs-16);
  }
}
/* ===========================================
  サブメニュー用（場合によっては削除）（完）
=========================================== */

/* ===========================================
  ハンバーガーメニュー（アニメーション）
=========================================== */

@media (max-width: 1023px) {
  .wb-gnav-menu {
    transform: translateX(100%); /*100%隠す*/
    opacity: 0;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease-out;
    will-change: transform, opacity;
    overflow-y: auto;

    .wb-gnav-list {
      opacity: 0;
      transform: translateY(20px);

      transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1s ease;
    }
  }

  .header-menu-toggle:checked ~ .wb-gnav-menu {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
  }

  .header-menu-toggle:checked ~ .wb-gnav-menu .wb-gnav-list {
    opacity: 1;
    transform: translateY(0);

    &:nth-child(1) {
      transition-delay: 0.3s;
    }
    &:nth-child(2) {
      transition-delay: 0.4s;
    }
    &:nth-child(3) {
      transition-delay: 0.5s;
    }
    &:nth-child(4) {
      transition-delay: 0.6s;
    }
  }

  /* ===========================================
    トグルスイッチ切替
  =========================================== */
  .header-hamburger {
    position: relative;
    width: 40px;
    aspect-ratio: 1/1;
    border-radius: 6px;
    background-color: var(--color-main);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
  }

  .header-hamburger span {
    position: absolute;
    background: var(--color-accent);
    border-radius: 1px;
    transition: all 0.6s;
  }

  .header-hamburger span:nth-of-type(1) {
    top: 4px;
    width: 5px;

    left: 17px;
    height: 7px;
  }

  .header-hamburger span:nth-of-type(2) {
    top: 13px;
    width: 30px;

    left: 5px;
    height: 5px;
  }

  .header-hamburger span:nth-of-type(3) {
    top: 20.5px;
    width: 5px;

    left: 17px;
    height: 15px;
  }

  /* クリック時 */
  .header-menu-toggle:checked + .header-hamburger span {
    width: 40px;
    left: 0;
  }

  .header-menu-toggle:checked + .header-hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);

    width: 30px;
    top: 3px;
    left: 10px;
    height: 5px;
  }
  .header-menu-toggle:checked + .header-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .header-menu-toggle:checked + .header-hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);

    width: 40px;
    height: 5px;
    top: 26px;
  }
}

/* ===========================================
  Sectionタイトル (全般)
=========================================== */

.wb-sect-title {
  position: relative;
  width: 16.5em;
  max-width: 660px;
  min-width: 230px;
  aspect-ratio: 9.2 / 1;
  margin: 0 auto min(18vw, 110px);
  z-index: 0;

  font-size: var(--fs-40);

  box-sizing: border-box;

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 薄いグレー（お好みの色に） */
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: -1; /* 文字の後ろ側に配置 */
    pointer-events: none; /* 念のためクリックなどの操作を透過させる */
  }
}

.wb-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-bottom: 0.5px solid #bc8f8f;
  line-height: 1;
}

.wb-title-container {
  & span {
    letter-spacing: 0.07em;
  }

  & small {
    font-size: 60%;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .wb-sect-title {
    width: 10.5em;
    &::before {
      transform: translate(-50%, -46%);
    }
  }

  .wb-title-container {
    flex-direction: column;
    gap: 0;
    border: none;

    & span {
      width: 100%;
      text-align: center;
      border-bottom: 0.5px solid #bc8f8f;
    }

    & small {
      margin-top: 0.1em;
    }
  }
}

@media (max-width: 500px) {
  .wb-sect-title {
    font-size: clamp(26px, 2.6vw, 32px);
  }

  /* .wb-title-container small {
    font-size: 50%;
  } */
}

/* ===========================================
  Sectionタイトル (サブページ)
=========================================== */
.wb-subpage .wb-title-container {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-style: italic;
}

@media (max-width: 500px) {
  .wb-subpage .wb-sect-title {
    font-size: clamp(22px, 2.6vw, 32px);
  }
}
/* ===========================================
  Footer Section (フッター)
=========================================== */
.wb-footer {
  background-color: #333;
}

.wb-footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;

  & img + img {
    margin-top: 10px;
  }
}

.wb-footer-sns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: min(6vw, 50px);
  width: fit-content;
  max-width: 700px;
  margin: max(8vw, 60px) auto;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4em;
  font-weight: 400;
  letter-spacing: 0.02em;

  & img {
    border-radius: 3px;
  }
}

.wb-sns-link {
  height: fit-content;
  overflow: hidden;

  & img {
    width: auto;
    height: 60px;
    /* object-fit: contain; */
  }
}

.sns-iriam,
.sns-setlink {
  display: flex;
  width: 190px;
  flex-direction: column;
  align-items: center;
}

.sns-x,
.sns-yt {
  display: block;
  margin: 0 auto;
}

.sns-setlink img {
  background-color: #a3d7fe;
  object-fit: contain;
  padding: 0 15px;
}

.wb-footer-copyright {
  display: block;
  text-align: center;
}

@media (max-width: 767px) {
  .wb-footer-logo img {
    &:nth-child(1) {
      width: 20vw;
      aspect-ratio: 7 / 5;
      height: auto;
    }

    &:nth-child(2) {
      width: 60vw;
      aspect-ratio: 5 / 1;
      height: auto;
    }
  }

  .wb-footer-sns {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;

    & a {
      transform: scale(0.8);
    }
  }
}

@media (max-width: 500px) {
  .wb-footer-sns {
    font-size: 14px;

    & > :nth-child(n + 3) {
      grid-column: 1 / -1;
    }

    & a {
      transform: scale(0.7);
    }
  }

  .wb-footer-copyright {
    font-size: 12px;
  }
}

/* ===========================================
  共通アニメーション
=========================================== */

.wb-bat-btn:hover {
  text-decoration: none;
  animation: bat-fly 0.6s ease-in-out forwards;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); */
  filter: brightness(0.8); /* 少し明るくして目立たせる */
}

/* 羽ばたきアニメーションの定義 */
@keyframes bat-fly {
  0% {
    transform: translateY(0) scale(1.05) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) scale(1.08) rotate(2deg); /* 少し上に浮いて右に傾く */
  }
  50% {
    transform: translateY(0) scale(1.05) rotate(0deg); /* 戻る */
  }
  75% {
    transform: translateY(-8px) scale(1.08) rotate(-2deg); /* また浮いて左に傾く */
  }
  100% {
    transform: translateY(0) scale(1.05) rotate(0deg);
  }
}
