/*
  ====================================================
  紫煙の口づけ 共通CSS
  「CSSファイル編集」に貼るファイル。全ページ共通で読み込まれる。

  【目次】
  - :root              色・変数の一覧
  - body / .page       全ページ共通の土台
  - hero-visual &#12316; nav  TOPページ専用(煙・タイトル・ナビ)
  - .mark / .site-nav &#12316;     サブページ共通のミニヘッダー
  - .page-title         サブページの見出し(info/log/main/clapなど)
  - section, .notice    サブページの本文セクション・注意書き
  - .log-entry &#12316;       logページの記事ボックス
  - .notice-box &#12316;      mainページの諸注意・名前変換リンク・作品リンク
  - footer, @media      共通フッター・スマホ対応
  ====================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;600&family=Zen+Kaku+Gothic+New:wght@300;400&family=Jost:wght@300;400&display=swap');

:root{
  --bg: #131015;
  --bg-soft: #1c1720;
  --line: #332b35;
  --ink: #e8e1dd;
  --ink-soft: #948b8f;
  --smoke: #8a7189;
  --ember: #c99a5b;
  --danger: #c1524b;
}

*{ box-sizing: border-box; margin:0; padding:0; }

/* ---- アリスプラスの機能付きページ(小説・日記など)が自動挿入するラッパーの余白打ち消し ---- */
.Wrapper{
  margin: 0 !important;
  padding: 0 !important;
}

html{ font-size: 112.5%; scroll-behavior: smooth; }

/* ---- 本文中に挿入するリンクの基本スタイル(クラス指定不要) ---- */
a{
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--smoke);
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover{
  color: var(--ember);
  text-decoration-color: var(--ember);
}

body{
  background: radial-gradient(ellipse 900px 600px at 50% 0%, #201a24 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.02em;
  min-height: 100vh;
}

.page{
  max-width: 600px;
  margin: 0 auto;
  padding: 72px 32px 56px;
}

.page:has(> .site-head){
  padding-top: 40px;
}

/* ---- TOPのみで使う: 煙とタバコの火 ---- */
.hero-visual{
  position: relative;
  width: 84px;
  height: 168px;
  margin: 0 auto 24px;
}

.smoke-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.ember{
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px 3px rgba(201,154,91,0.6);
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow{
  0%, 100% { box-shadow: 0 0 11px 2px rgba(201,154,91,0.45); }
  50% { box-shadow: 0 0 19px 5px rgba(201,154,91,0.75); }
}

/* ---- TOPのみ: サイトタイトル(hero) ---- */
header{
  text-align: center;
  margin-bottom: 20px;
}

.site-title{
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.7rem);
  letter-spacing: 0.18em;
  color: var(--ink);
}

/* ---- TOPのみ: 挨拶文 ---- */
.greeting{
  font-family: "Zen Old Mincho", serif;
  font-size: 0.98rem;
  text-align: center;
  color: var(--ink);
  margin-bottom: 40px;
}

/* ---- TOPのみ: 一行インデックス型ナビ ---- */
nav{
  margin-bottom: 40px;
}

nav ul{
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 10px;
  list-style: none;
}

nav .dot{
  color: var(--smoke);
  margin: 0 18px;
}

nav a{
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

nav a:hover{
  color: var(--ember);
}

/* ---- サブページ共通: 追従するヘッダー(サイト名+ナビ) ---- */
.site-head{
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 32px 10px;
  margin: 0 -32px 24px;
  background: rgba(19, 16, 21, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.mark{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Zen Old Mincho", serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.mark:hover{
  color: var(--ember);
}

.mark-icon{
  position: relative;
  width: 17px;
  height: 28px;
  flex-shrink: 0;
}

.mark-icon svg{
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 21px;
  opacity: 0.5;
}

.mark-icon .dot{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 7px 1px rgba(201,154,91,0.55);
}

.site-nav{
  padding: 0;
}

.site-nav ul{
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 8px;
  list-style: none;
}

.site-nav .dot{
  color: var(--smoke);
  margin: 0 14px;
  font-size: 0.85rem;
}

.site-nav a,
.site-nav .is-current{
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-nav a:hover{
  color: var(--ember);
}

.site-nav .is-current{
  color: var(--ember);
  animation: nav-glow 4s ease-in-out infinite;
}

@keyframes nav-glow{
  0%, 100% { text-shadow: 0 0 5px rgba(201,154,91,0.5); }
  50% { text-shadow: 0 0 6px rgba(201,154,91,1), 0 0 14px rgba(201,154,91,0.9); color: #e0b57c; }
}

/* ---- サブページ共通: ページタイトル(小さく控えめ) ---- */
.page-title{
  text-align: center;
  margin-bottom: 32px;
}

.page-title h1{
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

/* ---- サブページ共通: セクション ---- */
section{
  margin-bottom: 44px;
}

section + section{
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

section h2{
  font-family: "Zen Old Mincho", serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--smoke);
  margin-bottom: 14px;
}

section h3{
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}

section p{
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.8em;
}

/* ---- 共通: 注意書き(TOP・サブページどちらでも使用) ---- */
.notice{
  margin-bottom: 40px;
}

.notice h2{
  font-family: "Zen Old Mincho", serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--smoke);
  margin-bottom: 14px;
}

.notice ul{
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
}

.alert{
  color: var(--danger);
  font-weight: 600;
}

.emphasis{
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.notice li{
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 6px;
}

.notice li:last-child{ margin-bottom: 0; }

.notice li::before{
  content: "・";
  position: absolute;
  left: 0;
}

/* ---- サブページ共通: SNS一覧 ---- */
.sns-inline{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 0.85rem;
  margin-top: 4px;
}

.sns-inline a{
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sns-inline a:hover{
  color: var(--ember);
}

.sns-inline .dot{
  color: var(--smoke);
  margin: 0 12px;
}

/* ---- サブページ共通: リンク一覧(下線ホバー型) ---- */
.link-list{
  list-style: none;
  font-size: 0.85rem;
}

.link-list li{
  margin-bottom: 14px;
}

.link-list li:last-child{
  margin-bottom: 0;
}

.link-list a{
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.link-list a:hover{
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.link-list .link-note{
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ---- 共通: フッター ---- */
footer{
  text-align: center;
  margin-top: 48px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}

@media (prefers-reduced-motion: reduce){
  .ember{ animation: none; }
  .site-nav .is-current{ animation: none; }
}

/* ---- logページ: 記事ボックス ---- */
.log-entry{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-soft);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.log-entry__smoke{
  position: absolute;
  top: -10px;
  right: -6px;
  width: 70px;
  height: 70px;
  opacity: 0.18;
  pointer-events: none;
}

.log-date{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.log-date .dot-ember{
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 6px 1px rgba(201,154,91,0.55);
}

.log-title{
  font-family: "Zen Old Mincho", serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 12px;
}

.log-body{
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink);
}

.log-entry .read__more,
.log-entry a.read__more{
  display: inline-block;
  margin-top: 10px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.log-entry .read__more:hover,
.log-entry a.read__more:hover{
  color: var(--ember);
  border-bottom-color: var(--ember);
}

/* ---- mainページ: 諸注意ボックス・名前変換リンク ---- */
.notice-box{
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-soft);
  padding: 20px 22px;
  margin-bottom: 24px;
  text-align: center;
}

.notice-box h2{
  font-family: "Zen Old Mincho", serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--smoke);
  margin-bottom: 10px;
}

.notice-box p{
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink);
  text-align: left;
}

.name-link{
  display: block;
  text-align: center;
  padding: 12px;
  margin-bottom: 36px;
  border: 1px solid var(--ember);
  border-radius: 3px;
  color: var(--ember);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, color 0.3s ease;
}

.name-link:hover{
  background: var(--ember);
  color: var(--bg);
}

/* ---- mainページ: 中編以降の左寄せインデント ---- */
.novel-indent{
  padding-left: 28px;
}

/* カテゴリ見出し(中編/短編) */
.cat-h{
  margin: 32px 0 18px;
}

.cat-h span{
  font-family: "Zen Old Mincho", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.cat-h .rule{
  width: 22px;
  height: 1px;
  background: var(--ember);
  margin: 8px 0 0;
}

/* 中編: 作品見出し+話数リンク */
.work{
  margin-bottom: 18px;
}

.work-h{
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.work-h .t{
  font-family: "Zen Old Mincho", serif;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.work-h .g{
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-left: 4px;
}

.ep-row{
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.ep-row a{
  color: var(--ink-soft);
  text-decoration: none;
  padding-right: 10px;
  transition: color 0.3s ease;
}

.ep-row a:hover{
  color: var(--ember);
}

/* 短編: ジャンル見出し+タイトルリンク */
.genre-h{
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--smoke);
  margin: 18px 0 8px;
}

.short-item{
  font-size: 0.85rem;
  margin-bottom: 7px;
}

.short-item a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.short-item a:hover{
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.short-item .p{
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-left: 4px;
}

/* ---- mailページ ---- */
.mail-top{
  text-align: center;
  margin-bottom: 32px;
}

.mail-top h1{
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.mail-top p{
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--ink);
}

.mail-box{
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-soft);
  padding: 26px 24px;
}

.mail-field{
  margin-bottom: 18px;
}

.mail-field label{
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-bottom: 6px;
}

.mail-box input[type="text"],
.mail-box input[type="email"]{
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.85rem;
  padding: 8px 10px;
}

.mail-box textarea{
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.85rem;
  line-height: 1.8;
  padding: 12px 12px 16px;
  min-height: 100px;
  resize: vertical;
}

.mail-box img{
  max-width: 100%;
  vertical-align: middle;
}

.mail-submit{
  text-align: center;
  margin-top: 24px;
}

.mail-box input[type="submit"],
.mail-box button{
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid var(--ember);
  border-radius: 3px;
  background: transparent;
  color: var(--ember);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.mail-box input[type="submit"]:hover,
.mail-box button:hover{
  background: var(--ember);
  color: var(--bg);
}

.mail-bottom{
  text-align: center;
  margin-top: 32px;
  font-size: 0.72rem;
}

.mail-bottom a{
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mail-bottom a:hover{
  color: var(--ember);
}

.mail-bottom .copy{
  margin-top: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* ---- 小説本文ページ ---- */
.novel-crumb{
  text-align: center;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.novel-crumb a{
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.novel-crumb a:hover{
  color: var(--ember);
}

.novel-crumb .sep{
  margin: 0 10px;
  color: var(--smoke);
}

.novel-title-block{
  margin-bottom: 30px;
}

.novel-work-title{
  font-family: "Zen Old Mincho", serif;
  font-size: 0.75rem;
  color: var(--smoke);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.novel-chapter-title{
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.novel-body-wrap{
  border-left: 2px solid var(--line);
  padding: 2px 0 2px 22px;
}

.novel-body-text{
  font-size: 0.85rem;
  line-height: 2;
  color: var(--ink);
}

.novel-pager{
  text-align: center;
  margin-top: 36px;
  font-size: 0.78rem;
}

.novel-pager a{
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 14px;
  transition: color 0.3s ease;
}

.novel-pager a:hover{
  color: var(--ember);
}

.novel-pager .sep{
  color: var(--line);
}

/* ---- logページ下部: ページ送り(アリスプラス自動出力) ---- */
.backBtn-grid{
  display: block;
  text-align: center;
  margin: 30px 0 18px;
  font-size: 0.78rem;
}

.backBtn{
  color: var(--ink-soft);
  margin: 0 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.backBtn:hover{
  color: var(--ember);
}

/* ---- logページ下部: カテゴリ・年月の絞り込みは非表示 ---- */
select[name="CategoryID"],
select[name="ym"],
select[name="CategoryID"] + input[type="submit"],
select[name="ym"] + input[type="submit"]{
  display: none;
}

@media (max-width: 480px){
  .page{ padding: 56px 24px 44px; }
  .page:has(> .site-head){ padding-top: 28px; }
  header{ margin-bottom: 16px; }
  .hero-visual{ margin: 0 auto 16px; }
  .greeting{ margin-bottom: 32px; }
  nav{ margin-bottom: 32px; }
  .notice{ margin-bottom: 32px; }
  nav .dot{ margin: 0 12px; }
  .site-head{ margin: 0 -24px 20px; padding: 12px 24px 8px; }
  .page-title{ margin-bottom: 24px; }
  section{ margin-bottom: 32px; }
  .novel-body-wrap{ padding-left: 16px; }
}