@charset "UTF-8";

@font-face {
  font-family: "Parisienne";
  src: url("../fonts/Parisienne-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Noto Serif JP";
  src: url("../fonts/NotoSerifJP-Regular.otf") format("opentype");
  font-display: block;
}


/* リセットcssはここから */
/* Copyright (c) 2021 Elad Shechter - https://github.com/elad2412/the-new-css-reset Released under the MIT license https://opensource.org/license/mit/ */
*:where(:not(html,iframe,canvas,img,svg,video,audio):not(svg *,symbol *)){all:unset;display:revert}*,*::before,*::after{box-sizing:border-box}a,button{cursor:revert}:where(ol,ul){counter-reset:revert}img{max-inline-size:100%;max-block-size:100%}table{border-collapse:collapse}input,textarea{-webkit-user-select:auto}textarea{white-space:revert}meter{-webkit-appearance:revert;appearance:revert}:where(pre){all:revert;box-sizing:border-box}::placeholder{color:unset}:where([hidden]){display:none}:where([contenteditable]:not([contenteditable="false"])){-moz-user-modify:read-write;-webkit-user-modify:read-write;overflow-wrap:break-word;-webkit-line-break:after-white-space;-webkit-user-select:auto}:where([draggable="true"]){-webkit-user-drag:element}:where(dialog:modal){all:revert;box-sizing:border-box}
/* リセットcssここまで */






/* imgを表示した際のズレを解消 */
:where(img) {
    vertical-align: bottom;
}

/* カーソルをポインターに */
a, button, :where([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], select, optgroup, option, label:has([type="checkbox"], [type="radio"]), summary) {
    cursor: pointer;
}

/* 一部のhtmlタグのスタイルを復元 */
:where(em, strong, small, s, cite, q, dfn, abbr, data, time, code, var, samp, kbd, sub, sup, i, b, u, mark, ruby, rb, rt, rtc, rp, bdi, bdo, span, br, wbr, ins, del, center, font) {
    all: revert;
    box-sizing: border-box;
}

/* ページ内リンクをクリックした後に、上部に余白を作る。不要ならば削除してください。 */
:where(html) {
	scroll-padding-block-start: 3em;
    /* スムーススクロールにしたい場合はここに scroll-behavior: smooth; を追加してください。 */
}







/* CSS変数（カスタムプロパティ）を設定 */
:root {
    --white: #fff;
    --gray: rgb(0 1 2 / 0.065);
    --red: #e81a35;
    --hr-border-color: #ccc;
    --button-border-color: #555;

    --text-color: #222;
    --background-color: #f6f7f8;
    --nav-background-color: var(--background-color);
    --link-color: #1045e4;
    --link-visited-color: rgb(118 118 118);
    --main-color: rgb(105 165 250);
    --main-color-t: rgb(105 165 250 / 0.2);
}





/* bodyで基本の指定 */
body {
    font-family: "EB Garamond", "Noto Serif JP", serif; /* フォントの種類。お好みで変更してください。 */
    font-size: 14px;
    line-height: 1.8;/* 行の高さ */
    overflow-wrap: break-word;
    overflow-wrap: anywhere;/* 文字の折り返し。収まらない場合に折り返す。anywhereが非対応時のフォールバックとしてbreak-wordも指定。 */
    line-break: strict;/* 禁則処理は強めに指定。通常はnormal。 */
    hanging-punctuation: allow-end;/* 句読点のぶら下げ。対応ブラウザは少ない。不要ならば削除してください。 */
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;/* 文字サイズの調整 */
    color: var(--text-color);
    background-color: var(--background-color);
}





/* ヘッダー */
.header {
    display: grid;
    place-content: center;
    place-items: center;
    height: auto;
    overflow-x: hidden;
    padding-top: 3em;     /* 上の余白 */
    padding-bottom: 0em;    /* 下の余白 */
}


@media screen and (max-width: 768px) {

  .header {
    padding-top: 2.0em;  /* ← スマホの上余白 */
    padding-bottom: 0em;/* ← スマホの下余白 */
  }

}





/* h1タグ */
h1 {
  display: inline-block; /* 中央寄せで安全 */
  font-weight: 400;
  font-size: 3.5em;
  letter-spacing: 0.14em;
  font-family: "Parisienne", cursive;
  line-height: 1.05;
 margin-bottom: 0.9em; /* ← 下に余白を追加 */ 
 padding-top: 1.5em; /* 上に余白を追加 */

}


@media screen and (max-width: 768px) {

 h1 {
  font-size: 3.0em;
  }

}




/* 最大幅、余白、1カラム中央寄せを指定 */


.wrap {
    padding-top: 0em;    /* 上の余白 */
    padding-bottom: 10em; /* 下の余白 */

    /* 左右余白を固定して中央寄せ */
    padding-left: 1.5em;
    padding-right: 1.5em;

    max-width: 45em;
    margin: 0 auto;
}


@media screen and (max-width: 768px) {

.wrap {
    max-width: 27em;
}


}


/* ナビ基本 */
.nav {
  display: flex;
  column-gap: 2.5em;  /* リンク間の幅 */
  justify-content: center;
  width: 100%;
  position: sticky;
  top: 0;
  padding: 0.6em 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 999;
}

/* リンク基本色 */
.nav a {
  color: #222222;
  transition: color 0.4s ease;
  text-decoration: none;
  font-size: 1.3em;
  letter-spacing: 0.15em;  /* 文字間の幅 */
}

/* 張り付いた瞬間の状態 */
.nav.is-fixed {
  background: rgba(225,228,231,0.96);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 1.5em 0;
}

/* 文字色変化 */
.nav.is-fixed a {
  color: #222222;
}




:target {
  scroll-margin-top: 130px;
}

/* nav下の余白 */
.nav-space{
  height: 3.5em;   
}



@media screen and (max-width: 768px) {
  .nav {
    column-gap: 1.3em;
  }

  .nav a {
    font-size: 1.2em;
    letter-spacing: 0.08em;
  }

:target {
  scroll-margin-top: 55px;
}


.nav-space{
  height: 2.3em;   
}
}




#long.scroll-target{
    margin-top: 2em;
}



/* アコーディオン */

.genre-accordion {
  border-bottom: none;
  margin-bottom: 12px;
}



.genre-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #ECEFF2;
  padding: 7px 1.8em;
  box-sizing: border-box;
  font-size: 1.0rem;
  font-weight: 600;
  list-style: none;
  position: relative;
}

@media screen and (max-width: 768px) {
  .genre-summary {
    padding: 6px 1.6em;
    font-size: 0.9rem;
  }
}

.genre-summary::after {
  content: " ▼";
  font-size: 0.8em;
  transition: transform 1.2s cubic-bezier(.4,0,.2,1);
}

/* 親が open のとき */
.genre-accordion.open > .genre-summary::after {
  content: " ▲";
}

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 2.0s cubic-bezier(.4,0,.2,1);
}

.genre-summary.open + .accordion-body {
  max-height: 3000px;
}

.genre-accordion {
  border-bottom: none;
  margin-bottom: 12px;
}

/* genre-accordion 開閉アニメーション */
.genre-accordion .accordion-body{
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}

.genre-accordion.open .accordion-body{
  max-height: 5000px;
}




/* 作品カード */

.novel-card{
  display:flex;
  gap:20px;
  align-items:flex-start;
  padding: 0 1.2em;   /* ← 左右だけ余白 */
  margin-bottom: 1.5em; /* ← ここで縦の余白を追加 */
}


/* 一番最初のカード上余白 */
.novel-card:first-of-type {
  margin-top: 2em; 
}

/* 一番最後のカード下余白 */
.novel-card:last-of-type {
  margin-bottom: 5em; 
}


.novel-banner img{
  width:200px;
  height:40px;
  object-fit:cover;
  display:block;
  margin-top: 0.4em;
}

/* 右側情報ブロック */
.novel-info{
  position:relative;
  padding-left:14px;
}

/* 縦線 */
.novel-info::before{
  content:"";
  position:absolute;
  left:0;
  top:0.05em;
  bottom:0.05em;
  width:1px;
  background:#999;
  border-radius:2px;
}

/* 文字 */
.novel-title{
  display:block;
  text-decoration:none;
  color:#444;
  font-size:15px;
}

.novel-desc{
  margin-top:4px;
  font-size:13px;
  color:#999;
}

/* スマホだけ切り替え */
@media screen and (max-width: 768px){
  .novel-card{
    flex-direction:column;
    gap:6px;
  }

  .novel-info{
    padding-left:14px;   /* 線の位置は同じ */
  }

/* バナーのサイズ */
  .novel-banner img{
    width:200px;   /* ← ここを好きなサイズに */
    height:40px;
  }
}










/* H3専用の下線デザイン */
h3 {
  position: relative;
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.12em;   /* ← 文字間隔 */
  padding-bottom: 0.4em;   /* ← 余白を少しだけ増やす */
  line-height: 1.3;
}


/* 文字の後ろを通る線 */
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .45em;        /* ← 文字に食い込ませる高さ */
  width: 100%;
  height: 7px;        /* ← 線の太さ */
  background: #cfcfcf; /* ← グレー */
  z-index: -1;
}

/* 線 */
h3[id]::before {
  content: "";
  display: block;
  height: 90px;        /* ← navの高さ */
  margin-top: -90px;
  pointer-events: none;
  visibility: hidden;
}


@media screen and (max-width: 768px) {
.section p {
  padding: 0 0.8em;   /* ← 左右の空白 */
}

}


.link-wrap {
  padding: 0 1.2em 5em 1.2em; /* 上:0, 右:1.2em, 下:5em, 左:1.2em */
  display: block; /* 念のため */
}

.link {
  display: flex;
  justify-content: flex-start;   /* ← 左寄せ */
  gap: 0.8em;                    /* ← 間隔を狭く */
  list-style: none;          /* ・を消す */
  padding: 0;
  margin: 0;
  flex-wrap: wrap;   /* ← 1行に収まらなければ改行 */
  row-gap: 0.2em;   /* 行と行の間 */
}

.link li {
  display: inline-block;     /* 念のため */
}

.link a {
  text-decoration: underline;              /* 下線表示 */
  text-decoration-color: currentColor;     /* 文字色と同じ下線 */
  text-underline-offset: 3px;              /* 下線を文字から3px下にずらす */
  color: inherit;                          /* 親と同じ文字色 */
  letter-spacing: 0.08em;                  /* 文字間 */
}

/* ホバー時も変えない */
.link a:hover {
  color: inherit;
  text-decoration-color: currentColor;
}





/* セクションの余白を指定 */
.section + .section {
    margin-top: 2em;
}





/* aタグ */
:where(a) {
    text-decoration: underline;
    color: var(--link-color);
}

/* 訪問済みaタグ */
:where(a:visited) {
    color: var(--link-visited-color);
}



/* 強調の赤文字 */
.strong {
    color: var(--red);
}

/* マークタグをカスタマイズする例 */
.mark {
    color: unset;
    background-color: var(--main-color-t);
}

/* ulリスト, olリスト */
:where(ul, ol) {
    margin-block: 1em;/* 上下の余白 */
    padding-inline-start: 2em;/* 左側の余白 */
}

.list-style-position-inside {
    list-style-position: inside;
}

.ul-disc {
    list-style-type: disc;
}

.ul-circle {
    list-style-type: circle;
}

.ul-square {
    list-style-type: square;
}

.ul-moji-ninni-1 {
    list-style-type: "★ ";
}

.ol-decimal {
    list-style-type: decimal;
}

.ol-decimal-leading-zero {
    list-style-type: decimal-leading-zero;
}

.ol-lower-latin {
    list-style-type: lower-latin;
}

.ol-upper-latin {
    list-style-type: upper-latin;
}

.ol-lower-roman {
    list-style-type: lower-roman;
}

.ol-upper-roman {
    list-style-type: upper-roman;
}

.ol-lower-greek {
    list-style-type: lower-greek;
}

.ol-hiragana {
    list-style-type: hiragana;
}

.ol-katakana {
    list-style-type: katakana;
}

.ol-hiragana-iroha {
    list-style-type: hiragana-iroha;
}

.ol-katakana-iroha {
    list-style-type: katakana-iroha;
}

.ol-japanese-informal {
    list-style-type: japanese-informal;
}

.ol-japanese-formal {
    list-style-type: japanese-formal;
}

/* 見出しの余白を統一している。不要ならば削除してください。 */
:where(h2, h3, h4, h5, h6) {
    margin: 2em 0 1em;
}

/* 見出しの装飾。class名で管理している。 */
.h-boldonly {
    font-weight: bold;
    margin-bottom: 0.25em;
}

.h-center {
    text-align: center;
}

.h-underline {
    font-weight: bold;
    border-bottom: solid 2px var(--text-color);
}

.h-leftline {
    font-weight: bold;
    border-left: double 8px var(--text-color);
    padding: 0.5em 1em;
}

.h-fill {
    width: fit-content;
    background-color: var(--main-color-t);
    padding: 0.25em 1em;
}

.h-square {
    width: fit-content;
    border: solid 1px var(--text-color);
    padding: 0.25em 1em;
}

.h-big {
    font-size: 1.25em;
}

.h-center {
    text-align: center;
}

/* hrのスタイル */
.hr {
    border-block-start: solid 1px var(--hr-border-color);
    margin-block: 6em;
}







/* dl の横並び */
.dl-yoko {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.5em;
}




/* 必須の赤文字 */
.hissu {
    color: var(--red);
} 



html {
  -webkit-text-size-adjust: 100%;
}


body {
   text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  font-synthesis-style: none;
}