:root {
  --ink: #1b2027;
  --paper: #f7f4ee;
  --muted: #6d6a62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    var(--paper)
    url("../images/background.png")
    center top / cover
    fixed
    no-repeat;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  overflow-x: hidden;
}

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

figure,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 20, 17, .94);
  color: #fffdf8;
  border-bottom: 1px solid rgba(255, 253, 248, .08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 180, 109, .62);
  border-radius: 50%;
  color: #d5b46d;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  background: radial-gradient(circle, rgba(213, 180, 109, .16), transparent 68%);
}

.brand-text {
  display: grid;
  gap: 4px;
  font-family: 'Noto Serif JP', serif;
  line-height: 1;
}

.brand-text b {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-text small {
  color: rgba(255, 253, 248, .62);
  font-size: .68rem;
  letter-spacing: .12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.site-nav a {
  position: relative;
  padding: 28px 0;
  color: rgba(255, 253, 248, .72);
  transition: color .25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: .12em;
  bottom: 21px;
  height: 1px;
  background: #d5b46d;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-nav a:hover {
  color: #fffdf8;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 253, 248, .18);
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: #fffdf8;
  transition: transform .25s ease, opacity .25s ease;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 34px;
  background:
    linear-gradient(90deg, rgba(155, 31, 22, .16), transparent 34%, rgba(213, 180, 109, .12)),
    #161411;
  color: #fffdf8;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(255, 253, 248, .035) 36px 37px),
    radial-gradient(circle at 16% 18%, rgba(213, 180, 109, .18), transparent 28%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, .8fr) auto;
  gap: 42px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 20px;
  color: rgba(255, 253, 248, .72);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.9;
  letter-spacing: .06em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.footer-nav a {
  color: rgba(255, 253, 248, .78);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  transition: color .25s ease;
}

.footer-nav a:hover {
  color: #d5b46d;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 14px;
  color: rgba(255, 253, 248, .58);
  text-align: right;
}

.footer-meta p {
  color: #d5b46d;
  font-family: 'Noto Serif JP', serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.footer-meta small {
  font-size: .76rem;
  letter-spacing: .08em;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 56px;
  background:
    radial-gradient(circle at 8% 12%, rgba(155, 31, 22, .08), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(185, 151, 83, .16), transparent 24%);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -170px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(7, 29, 66, .08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 14px rgba(155, 31, 22, .035);
}

.page-hero > * {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
  color: #9b1f16;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .32em;
}

.page-hero h1 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #071d42;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .16em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(27, 32, 39, .76);
  font-family: 'Noto Serif JP', serif;
  line-height: 2;
  letter-spacing: .06em;
}

.section-pad {
  padding: 42px 0 88px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card,
.contact-box,
.calendar-wrap,
.event-card,
.notice-page article,
.value-grid article {
  background: rgba(255, 253, 248, .68);
  border: 1px solid rgba(112, 75, 32, .1);
  box-shadow: 0 16px 34px rgba(70, 48, 24, .1);
}

.post-card {
  overflow: hidden;
}

.post-card a {
  display: grid;
  height: 100%;
  color: inherit;
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card div {
  padding: 22px;
}

.post-card time,
.notice-page time,
.event-card time,
.post-meta,
.post-cat {
  color: #9b1f16;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: .12em;
}

.post-card h2,
.event-card h2,
.notice-page p,
.story-text h2,
.value-grid h3,
.contact-box h2,
.post-title {
  color: #071d42;
  font-family: 'Noto Serif JP', serif;
}

.post-card h2 {
  margin: 10px 0 0;
  font-size: 1.35rem;
  line-height: 1.5;
  letter-spacing: .08em;
}

.post-card p {
  margin-top: 12px;
  color: rgba(27, 32, 39, .7);
  line-height: 1.8;
}

.calendar-wrap {
  padding: 26px;
  overflow: hidden;
}

.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.calendar-title a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(112, 75, 32, .18);
  border-radius: 50%;
  color: #9b1f16;
  font-size: 1.3rem;
}

.calendar-title h2 {
  margin: 0;
  color: #9b1f16;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: .1em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid.days {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(112, 75, 32, .12);
  color: #071d42;
  font-family: 'Noto Serif JP', serif;
  text-align: center;
}

.calendar-grid.days b:first-child {
  color: #9b1f16;
}

.cal-cell {
  min-height: 86px;
  padding: 10px;
  background: rgba(255, 253, 248, .36);
  border: 1px solid rgba(112, 75, 32, .12);
}

.cal-cell.empty {
  background: transparent;
}

.cal-cell strong {
  color: #071d42;
  font-family: 'Noto Serif JP', serif;
}

.cal-cell span {
  display: block;
  margin-top: 8px;
  color: #9b1f16;
  font-size: .82rem;
  line-height: 1.45;
}

.event-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.event-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.event-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.event-card p {
  margin-top: 8px;
  color: rgba(27, 32, 39, .72);
  line-height: 1.8;
}

.notice-page {
  display: grid;
  gap: 14px;
}

.notice-page article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 24px;
}

.notice-page p {
  line-height: 1.8;
  letter-spacing: .04em;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.story-text {
  padding: 34px;
  background: rgba(255, 253, 248, .56);
  border-left: 4px solid #9b1f16;
}

.story-text h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.35;
}

.story-text p {
  margin-top: 14px;
  line-height: 2;
  color: rgba(27, 32, 39, .74);
}

.photo-grid.mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-grid.mini .large {
  grid-column: span 2;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(112, 75, 32, .1);
  box-shadow: 0 14px 30px rgba(70, 48, 24, .12);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-grid article {
  padding: 28px;
}

.value-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #9b1f16;
  color: #fffaf0;
  font-family: 'Noto Serif JP', serif;
}

.value-grid h3 {
  margin: 0;
  font-size: 1.35rem;
}

.value-grid p {
  margin-top: 10px;
  color: rgba(27, 32, 39, .72);
  line-height: 1.8;
}

.contact-box {
  max-width: 760px;
  padding: 34px;
}

.contact-box h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.contact-box p {
  color: rgba(27, 32, 39, .72);
  line-height: 1.8;
}

.contact-box form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-box label {
  display: grid;
  gap: 8px;
  color: #071d42;
  font-weight: 700;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  border: 1px solid rgba(112, 75, 32, .16);
  background: rgba(255, 253, 248, .68);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.btn.primary,
.post-back__link {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #9b1f16;
  background: #9b1f16;
  color: #fffaf0;
  font-weight: 700;
  letter-spacing: .12em;
}

.post-hero {
  padding: 76px 0 38px;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.post-title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.25;
  letter-spacing: .08em;
}

.post-lead {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(27, 32, 39, .72);
  line-height: 2;
}

.post-cover,
.post-content {
  padding: 30px 0;
}

.post-cover__image {
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(70, 48, 24, .14);
}

.post-cover__image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.post-article {
  padding: 38px;
  background: rgba(255, 253, 248, .68);
  border: 1px solid rgba(112, 75, 32, .1);
  color: rgba(27, 32, 39, .82);
  font-family: 'Noto Serif JP', serif;
  line-height: 2.1;
  letter-spacing: .04em;
}

.post-back {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text small {
    display: none;
  }

  .menu-btn {
    display: block;
    position: relative;
    z-index: 111;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 110;
    display: grid;
    gap: 0;
    padding: 14px 24px 24px;
    background: rgba(22, 20, 17, .98);
    border-top: 1px solid rgba(255, 253, 248, .08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 253, 248, .08);
  }

  .site-nav a::after {
    display: none;
  }

  body.is-menu-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.is-menu-open .menu-btn span:first-child {
    transform: translateY(3.5px) rotate(35deg);
  }

  body.is-menu-open .menu-btn span:last-child {
    transform: translateY(-3.5px) rotate(-35deg);
  }

  .site-footer {
    padding: 42px 0 28px;
  }

  .footer-inner {
    width: min(100% - 28px, 680px);
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(255, 253, 248, .12);
  }

  .footer-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 253, 248, .12);
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .page-hero {
    padding: 54px 0 34px;
  }

  .page-hero > *,
  .container {
    width: min(100% - 28px, 680px);
  }

  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  .section-pad {
    padding: 28px 0 58px;
  }

  .journal-grid,
  .story-layout,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .post-card div,
  .story-text,
  .value-grid article,
  .contact-box,
  .post-article {
    padding: 22px;
  }

  .calendar-wrap {
    padding: 16px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .cal-cell {
    min-height: 48px;
    padding: 6px;
    font-size: .86rem;
  }

  .cal-cell span {
    font-size: .68rem;
  }

  .event-card,
  .notice-page article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .photo-grid.mini {
    gap: 10px;
  }

  .contact-box {
    max-width: none;
  }

  .post-hero {
    padding: 48px 0 22px;
  }

  .post-cover,
  .post-content {
    padding: 18px 0;
  }
}
