:root {
  /* Asayake (Morning Glow) Palette */
  --bg-dark: #0f111a;
  --bg-gradient: linear-gradient(135deg, #181b2c 0%, #2d2638 50%, #4a3b4e 100%);
  --accent-glow: #ff9e7d;
  /* Morning sun orange */
  --accent-secondary: #c988ba;
  /* Dawn purple */

  --panel-bg: rgba(22, 24, 35, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);

  --text: #f0f4f8;
  --text-muted: #c0c8d4;

  --link: #fabd9e;
  --link-hover: #fff;

  --max: 860px;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.8;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .5px;
  background: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.nav a {
  margin-left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Grid Layout */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.link-card {
  display: block;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  height: 100%;
}

.link-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-glow);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.link-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}

.link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Main Content */
main {
  padding: 40px 0;
}

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 700;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.card {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.card h1 {
  background: linear-gradient(to right, #fff 0%, #ffecd2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Post List / Cards */
.post {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.post h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.post h1 a {
  color: var(--text);
}

.post h1 a:hover {
  color: var(--accent-glow);
  text-decoration: none;
}

.post p {
  margin: 12px 0;
  color: var(--text-muted);
}

/* Utilities */
.muted {
  color: var(--text-muted);
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--panel-border), transparent);
  margin: 40px 0;
}

.note-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--accent-glow);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note-body {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 32px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(15, 17, 26, 0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  border-bottom: 1px dotted transparent;
}

.footer-links a:hover {
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
}

/* Post Navigation */
.post-nav {
  margin-top: 40px;
}

.post-nav .link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.nav-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-secondary);
  margin-bottom: 6px;
  font-weight: 700;
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-placeholder {
  /* Empty div to keep grid alignment if one button is missing, or use flex tricks */
  display: none;
}

@media (min-width: 600px) {
  .nav-placeholder {
    display: block;
  }
}

/* Share Button */
.share-area {
  margin: 32px 0;
  display: flex;
  justify-content: flex-end;
  /* Align to right? or center? Keeping it neutral or right */
}

.share-btn-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn-x:hover {
  transform: translateY(-2px);
  background-color: #222;
  text-decoration: none;
  color: #fff;
}

/* ── daily_v2 A-3 スタンプノート ── */
:root {
  --nb3-green: #4a7c59;
  --nb3-cream: #faf6e9;
  --nb3-cream-dark: #ede7d0;
  --nb3-ink: #2d2416;
  --nb3-border: #c8b89a;
  --nb3-rule: rgba(200, 180, 150, 0.28);
  --nb3-font: 17px;
  --nb3-line: 34px;
  --nb3-rule-pos: 25px;
}

.nb3 {
  background: var(--nb3-cream);
  border: 2px solid var(--nb3-border);
  border-radius: 10px;
  box-shadow: 5px 6px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: var(--nb3-ink);
  font-family: 'Klee One', cursive;
  margin: 20px 0;
}

.nb3-head {
  background: repeating-linear-gradient(
    45deg,
    #4a7c59, #4a7c59 8px, #3d6b4b 8px, #3d6b4b 16px
  );
  padding: 0.55rem 1.4rem;
  text-align: center;
}

.nb3-series {
  display: inline-block;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.15rem 1.2rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.nb3-stamp-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--nb3-cream-dark);
  border-bottom: 1px solid var(--nb3-border);
}

.nb3-stamp {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border: 2.5px solid var(--nb3-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  opacity: 0.82;
  transform: rotate(-6deg);
}

.nb3-stamp-meta {
  flex: 1;
}

.nb3-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.78rem;
  margin-bottom: 0.22rem;
}

.nb3-ml {
  color: var(--nb3-green);
  font-size: 0.67rem;
  font-weight: 600;
  min-width: 4.5em;
}

.nb3-mv {
  color: var(--nb3-ink);
  border-bottom: 1px solid var(--nb3-border);
  flex: 1;
}

.nb3-title {
  padding: 0.85rem 1.4rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nb3-ink);
}

.nb3-tags {
  padding: 0.2rem 1.4rem 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nb3-tag {
  background: #fff;
  color: #b06040;
  border: 1.5px solid #e8c090;
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
}

.nb3-body {
  padding: 0.4rem 1.4rem 1.3rem;
  font-size: var(--nb3-font);
  line-height: var(--nb3-line);
  color: var(--nb3-ink);
  background-image: linear-gradient(
    to bottom,
    transparent var(--nb3-rule-pos),
    var(--nb3-rule) var(--nb3-rule-pos),
    var(--nb3-rule) calc(var(--nb3-rule-pos) + 1px),
    transparent calc(var(--nb3-rule-pos) + 1px)
  );
  background-size: 100% var(--nb3-line);
  background-origin: content-box;
  background-clip: content-box;
  min-height: 7rem;
}

.nb3-body p {
  margin: 0;
  color: var(--nb3-ink);
}

.nb3-footer {
  border-top: 2px dashed #b06040;
  margin: 0 1.4rem;
  padding: 0.7rem 0;
  font-size: 0.75rem;
  color: #b06040;
}