@charset "UTF-8";
/* stylelint-disable media-feature-name-no-unknown */
/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 以下はクロスブラウザ対応のスタイリングに関する多くの研究の成果です。
 * Nicolas Gallagher、Jonathan Neal、Kroc Camen、そしてH5BP開発コミュニティとチームに感謝します。
 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css');

@font-face {
  font-family: '3tendash';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/3tendash.woff2') format('woff2-variations');
  font-display: swap;
}

@font-face {
  font-family: NotoSansJP;
  font-style: normal;
  /* stylelint-disable-next-line at-rule-descriptor-value-no-unknown */
  font-weight: lighter;
  src: url('../fonts/NotoSansJP-Regular.woff2') format('woff2-variations');
  font-display: swap;
}

@font-face {
  font-family: NotoSansJP;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/NotoSansJP-Medium.woff2') format('woff2-variations');
  font-display: swap;
}

@font-face {
  font-family: NotoSansJP;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/NotoSansJP-Black.woff2') format('woff2-variations');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2-variations');
  font-display: swap;
}

:root {
  --color-black: #222;
  --main-text-rgb: 34, 34, 34;
  --color-gray: #22222280;
  --color-light-gray: #ddd;
  --color-white: #fff;
  --color-blue: #06f;
  --color-blue-light: #0066ff80;
  --color-red: #f44336;
  --font-family-base: '3tendash', 'NotoSansJP', sans-serif;
  --font-family-heading: '3tendash', 'Montserrat', 'NotoSansJP', sans-serif;
  --font-size-xxs: 0.625rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-heading: 3rem;
  --container-width: clamp(280px, 100%, 1024px);
  --max-width: 100%;
}

/* ==========================================================================
  ベーススタイル: 意見のあるデフォルト設定
   ========================================================================== */

html {
  font-size: 1em;
  line-height: 1.4;
  color: #222;
}

/*
   * 選択ハイライトのテキストシャドウを削除:
   * https://twitter.com/miketaylr/status/12228805301
   *
   * 背景色をデザインに合わせてカスタマイズしてください。
   */

::selection {
  text-shadow: none;
  background: #b3d4fc;
}

/*
   * より見栄えの良い水平線
   */

hr {
  display: block;
  height: 1px;
  padding: 0;
  margin: 1em 0;
  border: 0;
  border-top: 1px solid #ccc;
}

/*
   * audio、canvas、iframe、画像、動画とコンテナの底部間の隙間を削除:
   * https://github.com/h5bp/html5-boilerplate/issues/440
   */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
   * fieldset のデフォルトスタイルを削除。
   */

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

/*
   * textarea のサイズ変更を縦方向のみに制限。
   */

textarea {
  resize: vertical;
}

/* ==========================================================================
    作成者のカスタムスタイル
========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
ul,
ol,
li,
dl,
dt,
dd {
  padding: 0;
  margin: 0;
}

/* ベーススタイル */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-md);
  font-weight: normal;
  color: var(--color-black);
  letter-spacing: 0.05rem;
  background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
}

h2 {
  position: relative;
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-black);
}

h2::before {
  position: absolute;
  left: 0;
  align-items: center;
  width: 1rem;
  height: auto;
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/></svg>');
}

.h2-noicon {
  padding-left: 0;
  margin: 2rem 0 1.5rem;
}

.h2-noicon::before {
  content: none;
}

.h3-line {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  margin: 1rem 0;
  margin-bottom: 1rem;
  line-height: 1;
  border: 2px solid var(--color-black);
}

.logo {
  display: block;
  width: min(calc(100% - 40px), 250px);
  height: auto;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

em {
  font-style: normal;
  font-weight: bold;
}

small {
  font-weight: normal;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--color-blue-light);
}

img {
  border: none;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

summary {
  margin-bottom: 1rem;
  font-weight: bold;
  cursor: pointer;
}

summary:hover {
  color: var(--color-gray);
}

button {
  padding: 1rem;
  margin: 1rem 0;
  color: var(--color-white);
  text-align: center;
  cursor: pointer;
  background-color: var(--color-black);
  border: none;
  border-radius: 0.3rem;
}

button:hover {
  background-color: var(--color-gray);
}

img.emoji {
  width: 1rem;
  height: 1rem;
  margin: 0 3px 3px;
  vertical-align: middle;
}

/* ==========================================================================
  レイアウト
========================================================================== */

/* header */
header {
  width: 100%;
  border-bottom: 2px solid var(--color-black);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container-width);
  max-width: var(--max-width);
  padding: 1rem;
  margin: 0 auto;
}

header h1 {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xxl);
  font-weight: bold;
}

header a {
  color: var(--color-black);
}

header a :hover {
  color: var(--color-gray);
}

header .icons {
  display: flex;
  gap: 1rem;
  font-size: var(--font-size-xl);
}

header .icons a {
  display: inline-flex;
}

header .icons svg {
  width: 100%;
  height: 100%;
  fill: currentcolor;
}

header .icons a:hover {
  color: var(--color-gray);
  transition: color 0.3s ease;
}

/* main */

main {
  flex-grow: 1;
  width: var(--container-width);
  max-width: var(--max-width);
  padding: 1rem;
  margin: 0 auto;
}

section {
  width: 100%;
  margin-bottom: 5rem;
}

/* footer */
footer {
  padding: 1rem;
  margin-top: auto;
  font-size: var(--font-size-xs);
  text-align: center;
  border-top: 2px solid var(--color-black);
}

/* グリッドコンテナ */
.grid.col2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid.col4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.grid.col6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .grid.col4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.col6 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .grid.col4 {
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
  }

  .grid.col6 {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  .grid.col2,
  .grid.col4 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .grid.col6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* 位置調整用クラス */

.flex {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

@media screen and (max-width: 468px) {
  .flex {
    display: block;
  }
}

.con-t {
  margin-top: 2rem;
}

.con-l {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.con-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.con-ce {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.con-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* ==========================================================================
  コンテンツ
========================================================================== */

/* 更新履歴 */
.news {
  margin-bottom: 2rem;
  font-size: var(--font-size-sm);
}

.new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.75rem;
  margin: 1rem auto;
  border: 2px solid currentcolor;
}

.latest dl {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

.latest dt,
.latest dd {
  margin: 0;
  font-size: var(--font-size-xs);
}

.rss-link {
  padding: 0.2rem 0.4rem;
  margin-left: 0.75rem;
  font-size: var(--font-size-xs);
  color: currentcolor;
  text-decoration: none;
  border: 1px solid currentcolor;
}

/* indexのコンテンツカード */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 400px), 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.content-item {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 21 / 9;
  padding: 4%;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border: 3px solid var(--color-black);
}

.content-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background-color: rgb(0, 0, 0, 40%);
}

.content-item:hover::before {
  background: rgb(0, 0, 0, 60%);
  transition: background-color 0.3s ease;
}

.content-body {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  color: var(--color-white);
  text-align: right;
}

.content-item h3 {
  padding: 0;
  margin: 0;
  font-size: var(--font-size-xl);
  color: var(--color-white);
  text-shadow:
    2px 2px 0 black,
    -2px 2px 0 black,
    2px -2px 0 black,
    -2px -2px 0 black,
    2px 0 0 black,
    -2px 0 0 black,
    0 2px 0 black,
    0 -2px 0 black;
}

.content-item p {
  padding: 0;
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: bold;
  color: var(--color-white);
  text-shadow:
    2px 2px 0 black,
    -2px 2px 0 black,
    2px -2px 0 black,
    -2px -2px 0 black,
    2px 0 0 black,
    -2px 0 0 black,
    0 2px 0 black,
    0 -2px 0 black;
}

/* 文字リンク並べるリスト */
.alink {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}

.alink li a {
  padding: 0 0.5rem;
}

.alink li::after {
  content: '|';
}

.alink li:last-child::after {
  content: '';
}

/* アイコンと文章横並べ */

.icon-text {
  display: flex;
  align-items: baseline;
  line-height: 1.8;
}

.icon-text i {
  width: 1.5em;
  margin-right: 0.2em;
  line-height: 1.8;
  text-align: center;
}

/* 移動ボタン */

.btn-go {
  padding: 0.75rem 1rem;
  font-weight: bold;
  color: var(--color-black);
  cursor: pointer;
  background-color: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  transition: transform 0.2s;
}

.btn-go a {
  color: var(--color-white);
  text-decoration: none;
  background-color: var(--color-white);
}

.btn-go:hover {
  background-color: var(--color-white);
  box-shadow: none;
  transform: translate(4px, 4px);
}

.btn-go svg {
  vertical-align: middle;
}

/* 前に戻るボタン */

.back_btn {
  display: inline-block;
  font-weight: bold;
}

.back_btn a {
  color: var(--color-black);
}

.back_btn:hover {
  opacity: 0.6;
}

/* 上に戻るボタン */

.ue_btn {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background: #22222280;
  border: none;
  border-radius: 50%;
}

.ue_btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* ✦✦✦区切り線 */

.fancy-divider {
  margin: 5rem 0;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 1rem;
}

/* ===============================================
  ギャラリー
================================================ */
.gallery,
.deco-thumb {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.gallery img,
.deco-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery a,
.deco-thumb a {
  position: relative;
  display: block;
  border: 1px solid var(--color-gray);
}

.gallery a::before,
.deco-thumb a::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  content: '';
  transition: background-color 0.3s ease;
}

.gallery a:hover::before,
.deco-thumb a:hover::before {
  background: rgb(255, 255, 255, 40%);
}

@media screen and (max-width: 768px) {
  .gallery,
  .deco-thumb {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===============================================
  漫画ビューア
================================================ */

.laymic_root {
  /* 上に覆いかぶさる要素より
    z-index数値を大きくすることが重要 */
  z-index: 10;
}

/* laymic 固定表示型雛形cssここから */
.laymic_page_wrapper {
  /* 原稿画像のアスペクト比をここに入力 */
  --page-aspect-height: 80;
  --page-aspect-width: 113;
  /* 2p表示時の表示横幅 */
  --slide-width: calc(50vw - var(--viewer-padding));

  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: calc(var(--slide-width) * var(--page-aspect-height) / var(--page-aspect-width));
  overflow: hidden;
  color: #fafafa;
}

.laymic_isVertView .laymic_page_wrapper,
.laymic_isSingleSlide .laymic_page_wrapper {
  --slide-width: calc(100% - var(--viewer-padding) * 2);
}
/* リンクカラー変更 */
.laymic_page_wrapper a {
  color: #fafafa;
}

.laymic_page_wrapper br {
  display: none;
}

.laymic_page_wrapper span {
  margin: 0.5rem 0;
}
/* 白背景とするやつ */
.bg_white {
  color: #333;
  background: #fff;
}

.bg_white a {
  color: #333;
}
/* 横長要素複数を想定したラッパー */
.laymic_page_landscapes,
/* 縦長要素複数を想定したラッパー */
.laymic_page_portraits {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  /* 入れ子要素ごとの区切り余白 */
  margin: 1rem 0;
}

.laymic_page_landscapes {
  flex-flow: column nowrap;
}

.laymic_page_landscapes:first-of-type {
  justify-content: flex-end;
}

.laymic_page_landscapes:last-of-type {
  justify-content: flex-start;
}

.laymic_page_landscapes:only-of-type {
  justify-content: center;
}

.laymic_page_portraits:first-of-type {
  align-items: flex-end;
}

.laymic_page_portraits:last-of-type {
  align-items: flex-start;
}

.laymic_page_portraits:only-of-type {
  align-items: center;
}
/* laymic 固定表示型雛形cssここまで */

/* ===============================================
  漫画カード
================================================ */

.manga-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.manga-column {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .manga-container {
    grid-template-columns: 1fr;
  }
}

.episode {
  border: 1px solid #ccc;
}

.episode-link {
  display: flex;
  width: 100%;
  padding: 0.75rem;
  color: var(--color-black);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.episode-link:hover {
  color: var(--color-black);
  background-color: var(--color-light-gray);
}

.episode-thumbnail {
  width: 150px;
  height: 113px;
  margin-right: 0.75rem;
  object-fit: cover;
  border: 1px solid #ccc;
}

.episode-info {
  flex-grow: 1;
}

.episode-number {
  margin-bottom: calc(0.5rem / 2);
  font-size: var(--font-size-sm);
  color: var(--color-gray);
}

.episode-title {
  margin-bottom: calc(0.5rem / 2);
  font-size: var(--font-size-md);
  font-weight: bold;
}

.episode-date {
  font-size: var(--font-size-xs);
}

@media (max-width: 600px) {
  .episode-thumbnail {
    width: 120px;
    height: 90px;
  }
}

/* ===============================================
  漫画カード２
================================================ */
.manga-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 2px solid var(--color-black);
}

.image-placeholder {
  width: 100%;
  border-bottom: 2px solid var(--color-black);
}

.image-placeholder img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.grid.col4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: stretch; /* 高さ揃え */
}

.manga {
  display: grid;
  grid-template-rows: auto 1fr auto; /* タイトル / 説明 / ボタン */
  grid-template-columns: 1fr;
  gap: 0.5rem;
  height: 100%; /* 高さ揃え用 */
  padding: 0.75rem;
}

.manga-title {
  font-size: var(--font-size-md);
  font-weight: bold;
  border-bottom: 2px solid var(--color-light-gray);
}

.manga-pages {
  font-size: var(--font-size-xs);
  font-weight: normal;
  color: var(--color-red);
}

.manga-description {
  display: flex;
  align-items: flex-start; /* 上端揃え */
  padding: 0 0 1rem;
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.laymic_opener {
  width: 100%;
  padding: 0.75rem;
  margin: 0;
  color: var(--color-white);
  text-align: center;
  background-color: var(--color-black);
  border-radius: 0.3rem;
}

/* ---------------------- */
/* レスポンシブ対応 */
/* ---------------------- */
@media screen and (max-width: 1024px) {
  .grid.col4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .grid.col4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .grid.col4 {
    grid-template-columns: 1fr;
  }

  .manga {
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
  }
}

/* ===============================================
  MBキャラクター紹介
================================================ */

.chara {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-black);
}

.chara-info {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-between;
}

.chara-info p {
  flex-grow: 1;
}

.avatar {
  aspect-ratio: 1 / 1;
  margin: 0 auto 2rem;
  object-fit: cover;
  border: 2px solid var(--color-black);
  border-radius: 50%;
}

.btn-more {
  padding: 0.75rem;
}

/* ===============================================
  モーダル
================================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 80%);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 5px;
}

.close-button {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

.modal-title {
  display: block;
  margin-bottom: 1rem;
  font-size: var(--font-size-md);
  font-weight: bold;
}
/* ===============================================
  キャラクター紹介
================================================ */

/* 各アイテム */
.character-item {
  text-align: center;
}

.character-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* 内側の丸（画像クリップ用） */
.image-circle {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #222;
  border-radius: 50%;
  box-shadow: 0 1px 1px 222;
}

.image-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* バッジ（拡大アイコン） */
.badge {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #222;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-10%, -10%);
}

.badge::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: '';
  background-color: rgb(255, 255, 255, 0%);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.badge:hover::before {
  background-color: rgb(255, 255, 255, 40%);
}

.badge > * {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* テキスト */
.character-name {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 800;
}

.character-desc {
  margin: 0;
  font-size: 0.85rem;
}

/* ===============================================
  Foncyboxカスタマイズ
================================================ */

.fancybox__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--fancybox-bg);
  opacity: var(--fancybox-opacity, 0.9);
  will-change: opacity;
}

/* ==========================================================================
  補助クラス
========================================================================== */

/*
   * 画面とスクリーンリーダーの両方で非表示にする
   */

.hidden,
[hidden] {
  display: none !important;
}

/*
   * 視覚的にのみ非表示にし、スクリーンリーダーで利用可能にする:
   * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
   *
   * 1. 長い内容の場合、改行はスペースとして解釈されず、小さい幅で
   *    1語ずつ折り返される原因になる:
   *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
   */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  /* 1 */
}

/*
   * .visually-hidden クラスを拡張し、キーボードでフォーカス可能にする:
   * https://www.drupal.org/node/897638
   */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  white-space: inherit;
  clip: auto;
}

/*
   * 視覚的およびスクリーンリーダーから非表示にしつつレイアウトを維持
   */

.invisible {
  visibility: hidden;
}

/*
   * Clearfix: float を含む
   *
   * `::before` を使用して子要素の上マージンを含む場合にのみ、`block` ではなく `table` を使用する必要があります。
   */

.clearfix::before,
.clearfix::after {
  display: table;
  content: '';
}

.clearfix::after {
  clear: both;
}
