@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&family=Shippori+Mincho+B1:wght@400;700;800&display=swap');

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CSS VARIABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --soot:     #111008;
  --iron:     #1e1c12;
  --plate:    #2a2818;
  --olive:    #3a3a1e;
  --olive-lt: #585830;
  --rust:     #7a3a1a;
  --rust-lt:  #a84820;
  --amber:    #c8800a;
  --amber-lt: #e8a020;
  --gold:     #d4a032;
  --cream:    #c8b882;
  --cream-dk: #b8a868;
  --smoke:    #a09278;
  --stencil:  #ddd0a0;
  --paper:    #e8ddb8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--soot);
  color: var(--cream);
  overflow-x: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NOISE + GRAIN OVERLAY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -20px;
  width: calc(100vw + 40px); height: calc(100vh + 40px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  animation: grain-shift 0.15s steps(1) infinite;
  z-index: 9000;
  mix-blend-mode: overlay;
}
@keyframes grain-shift {
  0%  { transform: translate(0,0); }
  20% { transform: translate(-8px, 4px); }
  40% { transform: translate(6px, -6px); }
  60% { transform: translate(-4px, 8px); }
  80% { transform: translate(8px, -2px); }
  100%{ transform: translate(-2px, 6px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAMEPLATE HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nameplate {
  width: 100%;
  background: var(--plate);
  border-bottom: 4px solid var(--rust);
  position: relative;
  overflow: hidden;
}
.nameplate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0px, var(--amber) 10px, var(--iron) 10px, var(--iron) 20px);
}
.nameplate-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* リベット */
.rivet {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cream-dk), var(--smoke) 60%, var(--iron));
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6), 0 1px 1px rgba(200,184,130,0.2);
}
.rivet.tl { top: 14px; left: 14px; }
.rivet.tr { top: 14px; right: 14px; }
.rivet.bl { bottom: 12px; left: 14px; }
.rivet.br { bottom: 12px; right: 14px; }

.nameplate-title .dept {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 11px;
  color: var(--cream-dk);
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 8px;
}
.nameplate-title .dept a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.nameplate-title .dept a:hover { color: var(--amber-lt); }

.dept-back {
  display: block;
  text-align: right;
}
.dept-back a {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-decoration: none;
  border: 1px solid var(--amber);
  padding: 4px 10px;
  display: inline-block;
  background: rgba(200,128,10,0.08);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.dept-back a:hover {
  color: var(--soot);
  background: var(--amber);
  border-color: var(--amber-lt);
}

.nameplate-title h1 {
  font-size: clamp(20px, 4vw, 30px);
  color: var(--stencil);
  letter-spacing: 0.08em;
  font-weight: 400;
  line-height: 1.1;
}
.nameplate-title h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--amber-lt);
}

.nameplate-meta {
  text-align: right;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 10px;
  color: var(--cream-dk);
  letter-spacing: 0.1em;
  line-height: 2;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-num {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 10px;
  color: var(--rust-lt);
  letter-spacing: 0.3em;
  border: 1px solid var(--rust);
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(17px, 2.8vw, 24px);
  font-weight: 700;
  color: var(--stencil);
  letter-spacing: 0.3em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rust) 0%, transparent 100%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NOTE STRIP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.note-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--plate);
  border: 1px solid rgba(200,128,10,0.25);
  margin-top: 40px;
}

.note-icon {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--amber);
  flex-shrink: 0;
}

.note-text {
  font-size: 12px;
  line-height: 1.9;
  color: var(--smoke);
  letter-spacing: 0.08em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RIVET STRIP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.rivet-strip {
  width: 100%;
  display: flex;
  gap: 0;
  overflow: hidden;
  background: var(--plate);
  padding: 10px 0;
  border-top: 1px solid rgba(122,58,26,0.3);
  border-bottom: 1px solid rgba(122,58,26,0.3);
}

.rv {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a6040, #1e1c12);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.7), 0 1px 1px rgba(200,184,130,0.15);
  flex-shrink: 0;
  margin: 0 22px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REVEAL ANIMATION (scroll)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 3px solid var(--rust);
  background: var(--iron);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0px, var(--amber) 10px,
    var(--iron) 10px, var(--iron) 20px
  );
  opacity: 0.4;
}

.footer-mark {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--stencil);
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}
.footer-mark a { color: inherit; text-decoration: none; }

.footer-nav {
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 10px;
  color: var(--smoke);
  letter-spacing: 0.3em;
  text-decoration: none;
  border-bottom: 1px solid rgba(122,58,26,0.4);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }

.footer-sub {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--smoke);
}
.footer-sub + .footer-sub { margin-top: 0.6em; }
.footer-sub a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
.footer-sub a:hover { color: var(--amber-lt); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PR STRIP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pr-strip {
  width: 100%;
  background: var(--iron);
  border-top: 1px solid rgba(122,58,26,0.5);
  border-bottom: 1px solid rgba(122,58,26,0.5);
  padding: 14px max(20px, calc(50% - 430px));
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.pr-label {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--amber);
  border: 1px solid rgba(200,128,10,0.5);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pr-strip a {
  font-family: 'Sawarabi Mincho', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream-dk);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.2s;
}

.pr-strip a:hover { color: var(--cream); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
  .nameplate-meta { display: none; }
}
