@charset "utf-8";

/* 穢れ — 配色は LP用画像 の3枚に合わせる */
:root {
  --ink: #0b1418;        /* ほぼ黒緑の背景 */
  --ink-deep: #060d10;
  --teal: #16303a;       /* 水の影 */
  --ivory: #ece5d8;      /* 生成り */
  --ivory-dim: #a8a79e;
  --lily: #b5321f;       /* 彼岸花の錆朱 */
  --lily-soft: #d4644c;
  --line: rgba(236, 229, 216, .16);
  --panel: rgba(6, 13, 16, .72);
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 2;
  letter-spacing: .08em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: .3em;
  margin-bottom: 1.2rem;
}
.center { text-align: center; }

.note-lead {
  color: var(--ivory-dim);
  font-size: .9rem;
  line-height: 2.2;
  margin-bottom: 2rem;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: .85rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .32em;
  text-decoration: none;
  text-indent: .32em;
  cursor: pointer;
  transition: background .5s ease, border-color .5s ease, color .5s ease;
}
.btn:hover { background: rgba(236, 229, 216, .07); border-color: rgba(236, 229, 216, .4); }
.btn-solid { border-color: rgba(181, 50, 31, .55); }
.btn-solid:hover { background: rgba(181, 50, 31, .16); border-color: var(--lily-soft); }

/* ファーストビュー */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0;
  background: url("../images/01-hero.jpg") center right / cover no-repeat;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--ink) 4%, rgba(11, 20, 24, .86) 30%, rgba(11, 20, 24, .18) 62%, rgba(11, 20, 24, .5) 100%),
    linear-gradient(to bottom, rgba(6, 13, 16, .5), rgba(6, 13, 16, 0) 30%, var(--ink) 99%);
}
.hero-inner {
  position: relative;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 6rem 0;
}
.title {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .12em;
  margin-bottom: 2rem;
  text-shadow: 0 0 60px rgba(0, 0, 0, .8);
}
.title-gap { display: inline-block; width: .34em; }
.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: .26em;
  margin-bottom: .6rem;
}
.sub {
  color: var(--ivory-dim);
  font-size: .9rem;
  letter-spacing: .24em;
  margin-bottom: 3rem;
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 2.2rem;
  width: 1px; height: 4.5rem;
  background: linear-gradient(to bottom, rgba(236, 229, 216, 0), rgba(236, 229, 216, .5));
  animation: drift 4s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* 投稿欄 */
.compose { position: relative; padding: 7rem 0; overflow: hidden; }
.compose-art {
  position: absolute; inset: 0;
  background: url("../images/02-writing.jpg") center left / cover no-repeat;
}
.compose-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(260deg, var(--ink) 8%, rgba(11, 20, 24, .82) 34%, rgba(11, 20, 24, .1) 70%),
    linear-gradient(to bottom, var(--ink), rgba(6, 13, 16, 0) 22%, rgba(6, 13, 16, 0) 78%, var(--ink));
}
.compose-inner {
  position: relative;
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}
.panel {
  width: min(520px, 100%);
  padding: 2.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

.field { display: block; position: relative; margin-bottom: 1.8rem; }
.label {
  display: block;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--ivory-dim);
  margin-bottom: .6rem;
}
textarea, input[type="text"] {
  width: 100%;
  padding: .9rem 1rem;
  background: rgba(6, 13, 16, .55);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .06em;
  resize: vertical;
}
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: rgba(212, 100, 76, .6);
  background: rgba(6, 13, 16, .75);
}
textarea::placeholder, input::placeholder { color: rgba(168, 167, 158, .5); }
.counter {
  position: absolute; right: .2rem; bottom: -1.5rem;
  font-size: .72rem;
  color: var(--ivory-dim);
  letter-spacing: .1em;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .4rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory-dim);
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { color: var(--ivory); border-color: rgba(236, 229, 216, .35); }
.chip.is-on { color: var(--ivory); border-color: rgba(212, 100, 76, .7); background: rgba(181, 50, 31, .14); }

.caution {
  font-size: .78rem;
  color: var(--ivory-dim);
  letter-spacing: .12em;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(181, 50, 31, .5);
}
.error {
  font-size: .82rem;
  color: var(--lily-soft);
  margin-bottom: 1rem;
}

/* 一覧 */
.stream { padding: 7rem 0 8rem; background: linear-gradient(to bottom, var(--ink), #09161b 50%, var(--ink)); }
.stream-inner { width: min(860px, 92vw); margin: 0 auto; }

.controls { margin: 2.5rem 0 3rem; }
.tabs { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1.4rem; }
.tab {
  padding: .3rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--ivory-dim);
  font-family: var(--serif);
  font-size: .88rem;
  letter-spacing: .2em;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.tab:hover { color: var(--ivory); }
.tab.is-on { color: var(--ivory); border-bottom-color: var(--lily); }
.chips-filter { justify-content: center; }

.list { display: flex; flex-direction: column; gap: 1.1rem; }

.post {
  position: relative;
  padding: 1.8rem 1.9rem 1.3rem;
  background: rgba(22, 48, 58, .28);
  border: 1px solid var(--line);
  border-radius: 3px;
  animation: surface .9s ease both;
}
@keyframes surface { from { opacity: 0; transform: translateY(14px); } }
.post.is-going { animation: sink 1.1s ease forwards; }
@keyframes sink { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(3px); } }

.post-body {
  font-size: 1.05rem;
  line-height: 2.1;
  letter-spacing: .06em;
  margin-bottom: 1.1rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--ivory-dim);
}
.post-cat {
  padding: .12rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.post-spacer { flex: 1; }

.harai {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(181, 50, 31, .45);
  border-radius: 999px;
  color: var(--lily-soft);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .2em;
  cursor: pointer;
  transition: background .4s, color .4s, border-color .4s;
}
.harai:hover { background: rgba(181, 50, 31, .18); color: var(--ivory); }
.harai[disabled] { cursor: default; opacity: .55; }
.harai .n { font-size: .78rem; color: var(--ivory-dim); letter-spacing: .06em; }

.report {
  background: none; border: none; padding: 0;
  color: rgba(168, 167, 158, .55);
  font-family: var(--serif);
  font-size: .74rem;
  letter-spacing: .12em;
  cursor: pointer;
}
.report:hover { color: var(--lily-soft); }

.empty { text-align: center; color: var(--ivory-dim); font-size: .9rem; padding: 3rem 0; }

/* 締め */
.closing { position: relative; min-height: 78svh; display: grid; align-items: center; overflow: hidden; }
.closing-art {
  position: absolute; inset: 0;
  background: url("../images/03-relief.jpg") center / cover no-repeat;
}
.closing-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 2%, rgba(11, 20, 24, .3) 40%, rgba(11, 20, 24, .75) 100%),
    linear-gradient(90deg, rgba(11, 20, 24, .8), rgba(11, 20, 24, .05) 55%);
}
.closing-inner { position: relative; width: min(1180px, 92vw); margin: 0 auto; }
.closing-copy {
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  letter-spacing: .28em;
  line-height: 2.4;
  text-shadow: 0 0 40px rgba(0, 0, 0, .8);
}

/* フッター */
.foot { background: var(--ink-deep); padding: 4.5rem 0 3rem; border-top: 1px solid var(--line); }
.foot-inner { width: min(860px, 92vw); margin: 0 auto; text-align: center; }
.foot-strong { font-size: .95rem; letter-spacing: .24em; margin-bottom: .6rem; }
.foot-text { color: var(--ivory-dim); font-size: .84rem; margin-bottom: 1.4rem; }
.hotlines {
  display: flex; flex-direction: column; gap: .3rem;
  width: fit-content; margin: 0 auto;
  font-size: .84rem; color: var(--ivory-dim);
}
.hotlines b { color: var(--ivory); font-weight: 600; letter-spacing: .1em; }

.terms { margin: 2.6rem auto 0; max-width: 42rem; text-align: left; }
.terms summary {
  text-align: center;
  color: var(--ivory-dim);
  font-size: .82rem;
  letter-spacing: .2em;
  cursor: pointer;
}
.terms summary:hover { color: var(--ivory); }
.terms ul { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.terms li {
  color: var(--ivory-dim);
  font-size: .8rem;
  line-height: 1.9;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.copyright { margin-top: 3rem; font-size: .8rem; letter-spacing: .5em; color: rgba(168, 167, 158, .45); }

/* かさねて出すもの */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  animation: fade .8s ease both;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.overlay-art { position: absolute; inset: 0; background: url("../images/03-relief.jpg") center / cover no-repeat; }
.overlay-veil { position: absolute; inset: 0; background: rgba(6, 13, 16, .88); }
.overlay-inner { position: relative; text-align: center; width: min(640px, 88vw); padding: 2rem; }
.overlay-copy { font-size: clamp(1.3rem, 3.4vw, 1.9rem); letter-spacing: .3em; margin-bottom: 1rem; }
.overlay-sub { color: var(--ivory-dim); font-size: .9rem; letter-spacing: .2em; margin-bottom: 2.4rem; }
.care-text { line-height: 2.2; }
#care .overlay-veil { background: rgba(6, 13, 16, .97); backdrop-filter: blur(8px); }
#care .hotlines { margin-bottom: 2.4rem; }

@media (max-width: 720px) {
  body { line-height: 1.95; }
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(6, 13, 16, .62), rgba(11, 20, 24, .5) 45%, var(--ink) 96%);
  }
  .hero-art { background-position: 62% center; }
  .compose { padding: 5rem 0; }
  .compose-veil { background: linear-gradient(to bottom, var(--ink), rgba(6, 13, 16, .82) 18%, rgba(6, 13, 16, .86) 82%, var(--ink)); }
  .panel { padding: 1.8rem 1.4rem; }
  .stream { padding: 5rem 0 6rem; }
  .post { padding: 1.4rem 1.3rem 1.1rem; }
  .tabs { gap: 1.2rem; }
  .closing { min-height: 60svh; }
}
