@charset "UTF-8";

/* =========================================================
   黒耀レイン 公式サイト スタイルシート

   目次
   0. 基本設定と色
   1. 共通パーツ（見出し・ボタン・アイコン）
   2. ヘッダーとメニュー
   3. トップ（ヒーロー）
   4. 小説セクション
   5. LINEスタンプセクション
   6. グッズ・noteセクション
   7. リンクまとめ
   8. よくある質問
   9. フッターと先頭に戻るボタン
   10. スマートフォン向けの調整

   色を変えたいときは「0. 基本設定と色」の中の
   --color- で始まる行の色番号を書き換えてください。
   ========================================================= */


/* =========================================================
   0. 基本設定と色
   ========================================================= */

:root {
  /* 背景の黒（少し紫を含んだ黒にして、冷たくなりすぎないようにしています） */
  --color-bg:        #0b0910;
  --color-bg-soft:   #12101a;
  --color-bg-card:   #171423;

  /* 文字の色 */
  --color-text:      #e6e2ec;   /* 本文 */
  --color-text-dim:  #a49cb4;   /* 補足・小さい文字 */

  /* 差し色 */
  --color-gold:      #c9a86a;   /* 金。見出しの飾り・ボタン */
  --color-gold-soft: #e0c894;
  --color-purple:    #8c6fc0;   /* 紫。線・アイコン */

  /* 線 */
  --color-line:      #2a2438;

  /* 余白と横幅 */
  --width-page: 1080px;
  --space-section: 120px;

  /* 文字の種類（明朝体を基本にして、静かな印象にしています） */
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-sans:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

/* 全体の初期化 */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
  word-break: auto-phrase;

  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { font-weight: 500; line-height: 1.6; margin: 0; }

p { margin: 0 0 1.4em; }

ul, ol { list-style: none; margin: 0; padding: 0; }

/* 中央にそろえる箱 */
.container {
  width: 100%;
  max-width: var(--width-page);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* キーボード操作でも今どこにいるか分かるようにする */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}


/* =========================================================
   1. 共通パーツ
   ========================================================= */

/* 各セクションの外枠 */
.section { padding: var(--space-section) 0; position: relative; }

.section--novel   { background: var(--color-bg); }
.section--sticker { background: var(--color-bg-soft); }
.section--goods   { background: var(--color-bg); }
.section--links   { background: var(--color-bg-soft); }
.section--faq     { background: var(--color-bg); }

/* セクションの見出しのかたまり */
.section__head { text-align: center; margin-bottom: 64px; }

.section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-purple);
}
.section__icon svg { width: 22px; height: 22px; }

.section__title {
  font-size: 30px;
  letter-spacing: 0.12em;
}

/* 見出しの下の細い金の線 */
.section__title::after {
  content: "";
  display: block;
  width: 48px; height: 1px;
  margin: 22px auto 0;
  background: var(--color-gold);
}

.section__lead {
  margin-top: 22px;
  color: var(--color-gold-soft);
  font-size: 17px;
  letter-spacing: 0.1em;
}

.section__buttons {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
.btn__icon svg { width: 17px; height: 17px; display: block; }
.btn:hover { transform: translateX(3px); }

.btn--primary {
  background: var(--color-gold);
  color: #1a1408;
}
.btn--primary:hover { background: var(--color-gold-soft); }

.btn--ghost {
  border-color: var(--color-line);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-soft);
}

/* 画面に入ったらふわっと出す動き（JavaScriptと連動） */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 動きを減らす設定の人には動かさない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}


/* =========================================================
   2. ヘッダーとメニュー
   ========================================================= */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
/* 少しスクロールしたら背景を出す（JavaScriptがクラスを付けます） */
.header.is-scrolled {
  background: rgba(11, 9, 16, .92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-line);
}

.header__inner {
  max-width: var(--width-page);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 19px;
  letter-spacing: 0.24em;
  text-decoration: none;
  color: var(--color-text);
}

.nav__list { display: flex; gap: 32px; }

.nav__list a {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--color-text-dim);
  padding: 6px 0;
  position: relative;
  transition: color .3s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width .3s;
}
.nav__list a:hover { color: var(--color-text); }
.nav__list a:hover::after { width: 100%; }

/* スマートフォン用のメニューボタン。パソコンでは隠す */
.header__toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-text);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.header__toggle svg { width: 22px; height: 22px; }
.header__toggle .icon--close { display: none; }
.header__toggle[aria-expanded="true"] .icon--menu  { display: none; }
.header__toggle[aria-expanded="true"] .icon--close { display: block; }


/* =========================================================
   3. トップ（ヒーロー）
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;      /* 縦長の写真でも間延びしないようにする */
  object-position: center 40%;
  opacity: .92;
}
/* 写真の上に黒をかぶせて、文字を読みやすくする */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,9,16,.18) 0%, rgba(11,9,16,.34) 52%, rgba(11,9,16,.72) 82%, var(--color-bg) 100%);
}

.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__catch {
  font-size: clamp(30px, 6.4vw, 58px);
  letter-spacing: 0.16em;
  text-indent: 0.16em;   /* 文字間を空けた分の右寄りを打ち消す */
  margin-bottom: 26px;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

/* キャッチコピーを「読むものと、」「送るもの。」のかたまりで折り返す。
   画面が狭いときも「送る／もの。」のような変な位置で切れなくなる */
.hero__catch span {
  display: inline-block;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-gold-soft);
  margin-bottom: 48px;
}

.hero__text {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  font-size: 15.5px;
  color: var(--color-text);
}

.hero__buttons {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}


/* =========================================================
   4. 小説セクション
   ========================================================= */

.novel__intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.novel__figure { margin: 0; }
.novel__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: brightness(.85) saturate(.9);
  border: 1px solid var(--color-line);
}

.novel__status {
  margin-top: 32px;
  padding: 22px 26px;
  border-left: 2px solid var(--color-gold);
  background: var(--color-bg-card);
  font-size: 15px;
  color: var(--color-gold-soft);
}

/* 第一作のあらすじ */
.synopsis {
  margin-top: 88px;
  padding: 48px 52px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
}
.synopsis__title {
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--color-gold-soft);
  margin-bottom: 28px;
}
.synopsis p:last-child { margin-bottom: 0; }

/* 全十作の一覧 */
.works__title,
.brands__title {
  margin-top: 88px;
  margin-bottom: 32px;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--color-gold-soft);
}

.works__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--color-line);
}
.works__item:first-child { border-top: 1px solid var(--color-line); }

.works__no {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-purple);
}
.works__name { font-size: 16px; }
.works__line { font-size: 14.5px; color: var(--color-text-dim); line-height: 1.9; }


/* =========================================================
   5. LINEスタンプセクション
   ========================================================= */

/* キャラクターの絵を、セクションの幅いっぱいに敷く */
.sticker__banner { margin: 0 0 44px; }
.sticker__banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--color-line);
}

.sticker__body {
  max-width: 660px;
  margin: 0 auto;
  font-size: 15.5px;
  text-align: center;
}

.brands { display: grid; gap: 16px; }

.brands__item {
  padding: 24px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  border-left: 2px solid var(--color-purple);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: baseline;
  transition: border-left-color .3s, transform .3s;
}
.brands__item:hover {
  border-left-color: var(--color-gold);
  transform: translateX(4px);
}
.brands__name { font-size: 17px; letter-spacing: 0.06em; }
.brands__line { font-size: 14.5px; color: var(--color-text-dim); line-height: 1.9; }


/* =========================================================
   6. グッズ・noteセクション
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}
.card__figure { margin: 0; overflow: hidden; }
.card__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: brightness(.8) saturate(.9);
  transition: transform .6s;
}
.card:hover .card__figure img { transform: scale(1.04); }

.card__body { padding: 34px 34px 38px; flex: 1; display: flex; flex-direction: column; }
.card__title {
  font-size: 21px;
  letter-spacing: 0.1em;
  color: var(--color-gold-soft);
  margin-bottom: 18px;
}
.card__body p { flex: 1; font-size: 15px; }
.card__body .btn { align-self: flex-start; }


/* =========================================================
   7. リンクまとめ
   ========================================================= */

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.links__item a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  height: 100%;
  text-decoration: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  transition: border-color .3s, transform .3s;
}
.links__item a:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.links__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-purple);
}
.links__icon svg { width: 19px; height: 19px; }

.links__text { display: flex; flex-direction: column; line-height: 1.7; }
.links__text strong {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.links__text small {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--color-text-dim);
  letter-spacing: 0.04em;
}

.links__note {
  margin-top: 40px;
  text-align: center;
  font-size: 14.5px;
  color: var(--color-text-dim);
}


/* =========================================================
   8. よくある質問
   ========================================================= */

.faq { border-top: 1px solid var(--color-line); }

.faq__item { border-bottom: 1px solid var(--color-line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 16.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition: color .3s;
}
.faq__q:hover { color: var(--color-gold-soft); }

.faq__mark {
  flex: 0 0 auto;
  color: var(--color-purple);
  transition: transform .3s;
}
.faq__mark svg { width: 20px; height: 20px; display: block; }
.faq__q[aria-expanded="true"] .faq__mark { transform: rotate(180deg); }

/* 答えの部分。閉じているときは高さゼロ */
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}
.faq__a p {
  margin: 0;
  padding: 0 4px 28px;
  font-size: 15px;
  color: var(--color-text-dim);
}


/* =========================================================
   9. フッターと先頭に戻るボタン
   ========================================================= */

.footer {
  padding: 64px 0 72px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  text-align: center;
}
.footer__name {
  font-size: 18px;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
}
.footer__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.footer__copy {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-dim);
  margin: 0;
}

.totop {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 20, 35, .9);
  border: 1px solid var(--color-line);
  color: var(--color-gold-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, border-color .3s;
}
.totop.is-visible { opacity: 1; visibility: visible; }
.totop:hover { border-color: var(--color-gold); }
.totop svg { width: 20px; height: 20px; }


/* =========================================================
   10. スマートフォン向けの調整
   ========================================================= */

/* タブレットくらいの幅 */
@media (max-width: 900px) {
  :root { --space-section: 88px; }

  .novel__intro { grid-template-columns: 1fr; gap: 36px; }

  .novel__figure { max-width: 400px; margin: 0 auto; }

  .cards { grid-template-columns: 1fr; }

  .links { grid-template-columns: repeat(2, 1fr); }

  .works__item { grid-template-columns: 84px 1fr; }
  .works__line { grid-column: 2; }
}

/* スマートフォン */
@media (max-width: 680px) {
  body { font-size: 15px; line-height: 1.95; }

  .container { padding: 0 20px; }

  /* メニューを開閉式にする */
  .header__toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(78vw, 300px);
    height: 100svh;
    padding: 96px 28px 40px;
    background: rgba(11, 9, 16, .97);
    border-left: 1px solid var(--color-line);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 16px 0; font-size: 15px; }
  .nav__list a::after { display: none; }

  .hero { min-height: 92svh; padding: 120px 0 80px; }
  .hero__text { font-size: 15px; }
  .hero__buttons .btn,
  .section__buttons .btn { width: 100%; justify-content: center; }
  .hero__buttons, .section__buttons { flex-direction: column; }

  .section__title { font-size: 24px; }
  .section__lead { font-size: 15px; }

  .synopsis { padding: 32px 24px; margin-top: 64px; }

  /* 全十作は縦積みのカードにする */
  .works__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }
  .works__line { grid-column: 1; }

  .brands__item { grid-template-columns: 1fr; gap: 8px; padding: 20px 22px; }

  /* リンクは1列に */
  .links { grid-template-columns: 1fr; }

  .card__body { padding: 26px 24px 30px; }

  .totop { right: 16px; bottom: 16px; }
}
