@import url('https://fonts.googleapis.com/css2?family=Ballet:opsz@16..72&family=Noto+Serif+JP:wght@200..900&family=Sancreek&display=swap');

/* ページ背景 */
body {
  background: #dbffed url("img/back.jpg") repeat;
  margin: 0;
}




/* 画面に固定する装飾フレーム */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;

  /* 枠の太さ */
  padding: 14px;

  /* 画像を繰り返して配置 */
  background-image: url("img/line.webp");
  background-repeat: repeat;
  background-position: left top;

  /* 縦横比を維持して縮小 */
  background-size: 1000px auto;

  /* 中央を透明にし、四辺だけ表示 */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}





/* =========================
   右下の花・TOPに戻る
========================= */

html {
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;

  right: 15px;
  bottom: -20px;

  width: 140px;
  height: auto;

  display: block;
  z-index: 10000;

  cursor: pointer;
}

/* 花の画像 */
.back-to-top img {
  display: block;
  width: 100%;
  height: auto;

  transition: transform 0.3s ease;
}

/* マウスを乗せると少し拡大 */
.back-to-top:hover img {
  transform: scale(1.08);
}

/* スマートフォン */
@media (max-width: 700px) {
  .back-to-top {
    width: 100px;
    right: 8px;
    bottom: -8px;
  }
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top img {
    transition: none;
  }
}






/* =========================
   新しい共通メニュー
========================= */

.global-header {
  position: static;

  width: min(1100px, calc(100% - 80px));
  margin: 0 auto;
  padding: 60px 12px 12px;
  text-align: center;
}

/* 中央タイトル */
.global-header__title {
  margin: 0;
  line-height: 1.2;
  font-weight: 400;
}

.global-header__title a {
  font-family: "Sancreek", serif;
  font-size: clamp(24px, 4.3vw, 42px);

  color: #111;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* メニュー全体 */
.global-header__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: none;
}

/* メニューのリンク */
.global-header__nav a {
  display: block;
  min-width: 0;
  padding: 8px 2px 2px;

  font-family: "Sancreek", serif;
  font-size: clamp(23px, 1.7vw, 34px);
  line-height: 1.3;

  color: #111;
  text-decoration: none;
}

/* マウスを乗せたとき */
.global-header__nav a:hover {
  color: #c451a4;
}

/* スマートフォン */
@media (max-width: 700px) {

  .global-header {
    padding: 8px 6px;
  }

  .global-header__title a {
    font-size: clamp(24px, 7vw, 38px);
  }

  .global-header__nav {
    margin-top: 6px;
  }

  .global-header__nav a {
    padding: 7px 1px 2px;
    font-size: 13px;
  }
}




/* メニューの文字とアイコンを横並び */
.global-header__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 文字の左側にアイコンを配置 */
.global-header__nav a::before {
  content: "";
  display: block;

  width: 32px;
  height: 32px;
  flex-shrink: 0;

  background-image: url("img/tefu.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 以前の右側アイコンを削除 */
.global-header__nav a::after {
  content: none;
}

/* スマートフォン */
@media (max-width: 700px) {
  .global-header__nav a {
    gap: 4px;
  }

  .global-header__nav a::before {
    width: 14px;
    height: 14px;
  }
}


/* サイトタイトル */
.global-header__title a {
  position: relative;
  display: inline-block;
  isolation: isolate;

  color: #000;
  text-decoration: none;
}

/* 画像を使った文字の影 */
.global-header__title a::before {
  content: attr(data-text);

  position: absolute;
  inset: 0;
  z-index: -1;

  /* 影の位置 */
  transform: translate(7px, 7px);

  /* 元の文字と同じフォント */
  font: inherit;
  white-space: nowrap;

  /* 影に使用する画像 */
  background-image: url("img/line.jpg");
  background-position: center;
  background-size: cover;

  /* 画像を文字の形に切り抜く */
  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  pointer-events: none;
}





/* =================================
   メニュー・タイトルのオーロラホバー
================================= */

/* 共通メニュー */
.global-header__nav a:hover,
.global-header__nav a:focus-visible,

/* サイトタイトル */
.global-header__title a:hover,
.global-header__title a:focus-visible {

  /* オーロラ画像 */
  background-image: url("img/line.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  /* 画像を文字の形に切り抜く */
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}






/* =========================
   トップイラスト
========================= */

.top-visual {
  width: 90%;
  max-width: 880px;

  margin: 65px auto 90px;
}

/* トップイラスト画像 */
.top-visual img {
  display: block;

  width: 100%;
  aspect-ratio: 2.7 / 1;

  object-fit: cover;
  object-position: center;
}

/* スマートフォン */
@media (max-width: 700px) {

  .top-visual {
    width: 95%;
    margin: 30px auto 60px;
  }

  .top-visual img {
    aspect-ratio: 2 / 1;
  }
}






/* コンテンツ名 */
.content-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  width: 85%;
  max-width: 760px;
  margin: 70px auto 35px;

  font-family: "Sancreek", serif;
  font-size: clamp(12px, 4vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  color: #111;
  text-align: center;
}

/* 左右の横線 */
.content-title::before,
.content-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #111;
}

/* スマートフォン */
@media (max-width: 700px) {
  .content-title {
    width: 90%;
    gap: 12px;
    margin: 45px auto 25px;
    font-size: 32px;
  }
}






/* =========================
   漫画サムネイル・2カラム
========================= */

.story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  width: 85%;
  max-width: 850px;

  gap: 50px;
  margin: 0 auto 80px;
}

/* サムネイルの置き場所 */
.story-slot {
  width: 100%;
  aspect-ratio: 4 / 3;

  /* 制作中の確認用 */
  border: 1px dashed #aaa;
}

/* 将来配置するサムネイル */
.story-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* スマートフォン */
@media (max-width: 700px) {

  .story-gallery {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 30px;
  }
}







/* =========================
   イラスト・4カラム
========================= */

.illust-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  width: 85%;
  max-width: 900px;

  gap: 35px;
  margin: 0 auto 80px;
}

/* サムネイルの置き場所 */
.illust-slot {
  width: 100%;
  aspect-ratio: 3 / 4;
}

/* サムネイルを配置したとき */
.illust-slot a {
  display: block;
  width: 100%;
  height: 100%;
}

.illust-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* スマートフォン */
@media (max-width: 700px) {
  .illust-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 90%;
    gap: 20px;
    margin-bottom: 60px;
  }
}





/* =========================
   Story 作品紹介
========================= */

.story-work {
  position: relative;

  width: 85%;
  max-width: 840px;

  margin: 180px auto;
  padding: 50px 25px 65px;

  background-color: #d8fbef;
  color: #111;

  font-family: "Noto Serif JP", serif;
}

/* Novel・Comic の表示 */
.story-work-label {
  position: absolute;
  top: -38px;
  left: -22px;

  font-family: "Ballet", cursive;
  font-size: 61px;
  color: #0000cd;
}

/* 作品タイトル */
.story-work-title {
  margin: 0 0 22px;

  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

/* タイトル下の横線 */
.story-work-line {
  width: 62%;
  max-width: 480px;
  height: 1px;

  background-color: #111;
  margin-bottom: 30px;
}

/* あらすじ */
.story-work-description {
  margin: 0 0 22px;

  font-size: 18px;
  line-height: 2;
  white-space: pre-line;
}

/* 各話へのリンク */
.story-work-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  column-gap: 20px;
  row-gap: 12px;
}

/* リンクの文字 */
.story-work-links a {
  font-size: 17px;
  line-height: 1.8;

  color: #0000cd;
  text-decoration: none;
}

/* リンク前の中黒 */
.story-work-links a::before {
  content: "・";
}

/* マウスを重ねたとき */
.story-work-links a:hover {
  color: #c451a4;
  text-decoration: underline;
}

/* =========================
   スマートフォン
========================= */

@media (max-width: 700px) {

  .story-work {
    width: 90%;
    margin: 60px auto;
    padding: 85px 20px 45px;
  }

  .story-work-label {
    left: -5px;
    font-size: 37px;
  }

  .story-work-title {
    font-size: clamp(28px, 7vw, 38px);
  }

  .story-work-line {
    width: 80%;
    margin-bottom: 25px;
  }

  .story-work-description {
    font-size: 15px;
  }

  .story-work-links {
    column-gap: 12px;
    row-gap: 8px;
  }

  .story-work-links a {
    font-size: 15px;
  }
}






/* =========================
   パンくずリスト
========================= */

.breadcrumb {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto 65px;

  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  color: #111;
}

/* 横並び */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  margin: 0;
  padding: 0;
  list-style: none;
}

/* 各項目 */
.breadcrumb li {
  line-height: 1.8;
}

/* 区切り記号 */
.breadcrumb li + li::before {
  content: ">";
  display: inline-block;
  margin: 0 10px;
  color: #111;
}

/* リンク */
.breadcrumb a {
  color: #111;
  text-decoration: none;
}

/* マウスを重ねたとき */
.breadcrumb a:hover {
  color: #c451a4;
  text-decoration: underline;
}

/* スマートフォン */
@media (max-width: 700px) {
  .breadcrumb {
    width: 92%;
    margin: 25px auto 35px;
    font-size: 13px;
  }

  .breadcrumb li + li::before {
    margin: 0 5px;
  }
}






/* =========================
   Story 記事ページ全体
========================= */

.story-page {
  width: 100%;
  padding-bottom: 30px;
}

/* 記事の背景と配置 */
.story-article {
  display: flex;
  flex-direction: column;

  width: 75%;
  max-width: 720px;
  min-height: 800px;

  margin: 75px auto 0;
  padding: 45px 55px 55px;

  background-color: #e0fff4;
  color: #111;

  font-family: "Noto Serif JP", serif;
}

/* =========================
   記事タイトル
========================= */

.story-article-title {
  margin: 0 0 45px;

  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.5;

  text-align: center;
}

/* =========================
   本文
========================= */

.story-article-body {
  flex: 1;

  border-top: 2px solid #111;
  padding: 45px 15px 35px;

  font-size: 17px;
  line-height: 2.1;
  overflow-wrap: anywhere;
}

/* 本文の段落 */
.story-article-body p {
  margin: 0 0 1.8em;
}

/* =========================
   あとがき
========================= */

.story-afterword {
  border-top: 2px solid #111;
  padding: 15px 10px 0;

  font-size: 16px;
  line-height: 1.8;
}

.story-afterword h2 {
  margin: 0 0 15px;
  font-size: 17px;
  font-weight: 400;
}

.story-afterword p {
  margin: 0;
}

/* =========================
   ページ移動
========================= */

.story-pagination {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;

  width: 75%;
  max-width: 720px;

  margin: 170px auto 0;
  gap: 10px;

  text-align: center;
}

.story-pagination a,
.story-pagination span {
  font-family: "Sancreek", serif;
  font-size: clamp(22px, 3vw, 34px);

  color: #111;
  text-decoration: none;
}

.story-pagination a:hover {
  color: #c451a4;
}

.story-pagination .is-disabled {
  opacity: 0.35;
}

/* =========================
   スマートフォン
========================= */

@media (max-width: 700px) {

  .story-article {
    width: 90%;
    min-height: 550px;

    margin-top: 40px;
    padding: 30px 20px;
  }

  .story-article-title {
    margin-bottom: 25px;
    font-size: 27px;
  }

  .story-article-body {
    padding: 30px 5px;
    font-size: 15px;
    line-height: 2;
  }

  .story-afterword {
    padding: 12px 5px 0;
    font-size: 14px;
  }

  .story-pagination {
    width: 90%;
    margin-top: 70px;
  }

  .story-pagination a,
  .story-pagination span {
    font-size: 22px;
  }
}








/* ==============================
   ABOUTページ全体
============================== */


/* プロフィールページ上部 */
.about-page {
  padding-top: 0;
}

/* ヘッダー画像を左右いっぱいに */
.about-hero {
  position: relative;

  width: min(1363px, calc(100vw - 60px));

  left: 50%;
  transform: translateX(-50%);

  margin: 0;
}

/* メイン画像 */
.about-hero__image {
  display: block;

  width: 100%;
  height: 350px;

  object-fit: cover;
  object-position: center;
}

/* スマートフォン */
@media (max-width: 700px) {
  .about-hero {
    width: calc(100vw - 20px);
  }

  .about-hero__image {
    height: 220px;
  }
}

/* ==============================
   中央の装飾アイコン
============================== */

.about-hero__icon {
  position: absolute;

  left: 50%;
  bottom: 0;

  width: 36%;
  max-width: 350px;
  height: auto;

  transform: translate(-50%, 46%);

  pointer-events: none;
  z-index: 2;
}


/* ==============================
   Louiscoma タイトル
============================== */

.about-title {
  margin: 160px 0 65px;

  font-family: "UnifrakturCook", serif;
  font-size: clamp(45px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.2;

  text-align: center;
}


/* ==============================
   プロフィール 2カラム
============================== */

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;

  width: 85%;
  max-width: 820px;

  margin: 0 auto;
  align-items: stretch;
}


/* ==============================
   左側の文章エリア
============================== */

.about-text {
  padding: 0 30px 0 0;
  border-right: 2px solid #111;
}

.about-text h2 {
  margin: 0 0 30px;

  font-family: "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;

  text-align: right;
}

.about-text p {
  margin: 0 0 24px;

  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}


/* ==============================
   右側の画像エリア
============================== */

.about-gallery {
  padding-left: 30px;
}

.about-gallery img {
  display: block;

  width: 230px;
  max-width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;
}

.about-gallery h2 {
  margin: 15px 0 30px;

  font-family: "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.3;
}


/* ==============================
   スマートフォン
============================== */

@media (max-width: 700px) {

  .about-page {
    width: calc(100% - 32px);
    padding: 15px 0 60px;
  }

  .about-hero__image {
    aspect-ratio: 2 / 1;
  }

  .about-hero__icon {
    width: 48%;
    max-width: 240px;
  }

  .about-title {
    margin: 115px 0 45px;
    font-size: clamp(40px, 10vw, 55px);
  }

  /* 2カラムから1カラムへ */
  .about-columns {
    width: 92%;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    padding: 0 0 30px;
    border-right: none;
    border-bottom: 1px solid #111;
  }

  .about-text h2 {
    text-align: left;
    font-size: 36px;
  }

  .about-text p {
    font-size: 14px;
  }

  .about-gallery {
    padding-left: 0;
  }

  .about-gallery img {
    width: min(230px, 100%);
  }

  .about-gallery h2 {
    font-size: 36px;
  }
}















/* =========================
   共通フッター
========================= */

.site-footer {
  width: 100%;
  margin-top: 100px;
  padding: 30px 20px 60px;

  text-align: center;
  background: transparent;
}

/* フッターの文字 */
.site-footer small {
  font-family: "Sancreek", serif;
  font-size: 18px;
  font-weight: 400;
  color: #111;
}

/* スマートフォン */
@media (max-width: 700px) {
  .site-footer {
    margin-top: 60px;
    padding: 25px 15px 50px;
  }

  .site-footer small {
    font-size: 14px;
  }
}







/* =========================
   Now Loading
========================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #dbffed;
  background-image: url("img/back.jpg");
  background-repeat: repeat;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

/* 中央の表示 */
.page-loader-content {
  text-align: center;
  padding: 20px;
}

/* Now Loadingの文字 */
.page-loader-title {
  font-family: "Sancreek", serif;
  font-size: clamp(30px, 6vw, 55px);
  font-weight: 400;
  color: #111;

  margin: 0 0 25px;

  animation: loading-pulse 1.5s ease-in-out infinite;
}

/* オーロラ柄のバー */
.page-loader-bar {
  width: 200px;
  max-width: 70vw;
  height: 6px;
  margin: 0 auto;

  background-image: url("img/line.jpg");
  background-size: 200% 100%;
  background-position: left center;

  animation: aurora-move 1.5s ease-in-out infinite alternate;
}

/* 文字がゆっくり点滅 */
@keyframes loading-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

/* オーロラ柄が左右に動く */
@keyframes aurora-move {
  from {
    background-position: left center;
  }

  to {
    background-position: right center;
  }
}

/* 読み込み完了後 */
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader-title,
  .page-loader-bar {
    animation: none;
    transition: none;
  }
}






















