:root {
  --paper: #f6f1ea;
  --ink: #1c1916;
  --rust: #a24b32;
  --char: #24211e;
  --line: #e0d4c6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
p, a, h1, li, figcaption { overflow-wrap: anywhere; }
a { color: var(--rust); }
h1, h2, h3 { font-family: "Slabo 27px", serif; font-weight: 400; line-height: 1.15; margin: 0 0 0.4em; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--char);
  color: #f6f1ea;
}
.logo { color: #f6f1ea; text-decoration: none; font-family: "Slabo 27px", serif; font-size: 1.35rem; }
.nav { display: flex; gap: 16px; }
.nav a { color: #f6f1ea; text-decoration: none; }
.nav-toggle { display: none; background: transparent; color: #f6f1ea; border: 1px solid #c9b8a8; padding: 6px 10px; font: inherit; }
.ph-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 480px; }
.ph-hero div { padding: 52px 28px 52px max(20px, calc((100vw - 1080px) / 2)); display: flex; flex-direction: column; justify-content: center; }
.ph-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.ph-hero figure { display: flex; flex-direction: column; background: #fff; }
.ph-hero img { width: 100%; height: 420px; object-fit: cover; }
.ph-hero figcaption { padding: 10px 14px; font-size: 0.95rem; }
.btn { display: inline-block; margin-top: 10px; background: var(--rust); color: #fff; text-decoration: none; padding: 10px 16px; width: fit-content; }
.ph-ribbon { text-align: center; padding: 18px 16px; background: var(--rust); color: #fff8f4; font-family: "Slabo 27px", serif; font-size: 1.35rem; }
.ph-time { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.ph-time article { padding: 8px 0 18px 22px; border-left: 2px solid var(--ink); margin-left: 8px; }
.ph-time strong { display: block; font-family: "Slabo 27px", serif; font-size: 1.4rem; }
.ph-aside { display: grid; grid-template-columns: 1.3fr 0.7fr; background: #fff; }
.ph-aside img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.ph-aside div { padding: 32px 28px; align-self: end; }
.ph-pull { padding: 56px 14vw; }
.ph-pull p { margin: 0; font-family: "Slabo 27px", serif; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ph-dark { background: var(--char); color: #f6f1ea; padding: 48px 8vw; display: flex; justify-content: space-between; gap: 24px; }
.ph-dark a { color: #f6c7b6; text-decoration: none; }
.ph-qa { padding: 20px 8vw 50px; }
.ph-qa div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ph-qa b { display: block; margin-bottom: 4px; }
.ph-form, .ph-end { max-width: 680px; margin: 0 auto; padding: 36px 20px 70px; }
form { display: flex; flex-direction: column; gap: 10px; }
label { font-size: 0.92rem; }
input, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cbbbaa; background: #fff; color: var(--ink); }
button[type="submit"] { font: inherit; background: var(--char); color: #fff; border: 0; padding: 12px 16px; width: fit-content; cursor: pointer; }
.ph-title { padding: 42px 8vw 8px; }
.ph-title h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.ph-uneven { display: grid; grid-template-columns: 1.7fr 0.8fr; }
.ph-uneven article { padding: 28px 8vw 36px 8vw; min-width: 0; }
.ph-uneven article:last-child { background: #efe4d8; padding: 28px 32px; }
.ph-count { counter-reset: n; padding: 10px 8vw 30px; }
.ph-count li { list-style: none; padding: 14px 0 14px 48px; position: relative; border-top: 1px solid var(--line); }
.ph-count li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; font-family: "Slabo 27px", serif; font-size: 1.6rem; color: var(--rust); }
.ph-count ol { margin: 0; padding: 0; }
.ph-frame { padding: 10px 8vw 30px; }
.ph-frame img { width: 100%; max-height: 440px; object-fit: cover; }
.ph-frame figcaption { padding-top: 8px; }
.ph-dash { margin: 10px 8vw 28px; padding: 18px 20px; border: 1px dashed var(--rust); }
.ph-where { padding: 8px 8vw 28px; columns: 2; gap: 28px; }
.ph-hourline { padding: 22px 8vw; background: var(--ink); color: #f6f1ea; }
.ph-giant { padding: 28px 6vw 0; }
.ph-giant h1 { font-size: clamp(2.4rem, 8vw, 5.6rem); }
.ph-block { padding: 8px 6vw 20px; max-width: 36em; }
.ph-links { display: flex; flex-direction: column; padding: 8px 6vw 24px; gap: 4px; }
.ph-links a { text-decoration: none; color: var(--ink); font-size: clamp(1.1rem, 2.8vw, 1.7rem); }
.ph-write { padding: 8px 6vw 20px; }
footer { background: var(--char); color: #f0e6dc; padding: 24px 20px 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: #f0e6dc; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(28, 25, 22, 0.55); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal div { background: #fff; padding: 26px 22px; max-width: 420px; width: 100%; }
.modal button { font: inherit; margin-top: 14px; background: var(--char); color: #fff; border: 0; padding: 8px 14px; }
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--char); flex-direction: column; padding: 12px 20px 16px; }
  .nav.is-open { display: flex; }
  .ph-hero, .ph-aside, .ph-uneven { grid-template-columns: 1fr; }
  .ph-dark { flex-direction: column; }
  .ph-where { columns: 1; }
  .logo { font-size: 1.15rem; }
  .ph-uneven article, .ph-uneven article:last-child { padding: 24px 20px; }
}
