:root { --red: #d40000; --ink: #242424; }
* { box-sizing: border-box; }
body { margin: 0; background: #ece7df; color: var(--ink); font-family: "Noto Sans JP", sans-serif; }
button { font: inherit; }
header nav { grid-template-columns:repeat(5,minmax(0,1fr))!important; }
header nav button { min-height:44px!important; padding:4px 2px; }
.story-header { background:linear-gradient(135deg,var(--red),var(--deep-red,#8d0000))!important; }
.story-card { overflow-wrap:anywhere; }
.article-image { display:block; width:100%; max-height:340px; object-fit:cover; }
.story-detail .article-image { height:auto; max-height:none; object-fit:contain; }
.article-text { white-space:pre-wrap; }
.article-read { display:block; margin-top:16px; padding:12px 0; color:var(--red); font-weight:700; text-decoration:none; min-height:44px; }
.story-copy .article-original { letter-spacing:normal; line-height:1.7; font-weight:400; }
#stories-status { padding:0 20px; font-size:14px; line-height:1.7; }
#back-to-articles { display:inline-block; padding:16px 20px; min-height:44px; color:var(--red); }
#retry-stories { margin:0 20px; min-height:44px; background:#fff; border:1px solid #bbb; border-radius:8px; padding:10px 16px; }
[hidden] { display:none!important; }
.phone { width: min(100%, 442px); min-height: 100dvh; margin: auto; background: #fff; }
header { padding: 29px 20px 0; }
header img { display: block; width: min(100%, 365px); margin: auto; }
header nav { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 23px; border-block: 1px solid #ddd; }
header nav button { min-height: 38px; border: 0; border-right: 1px solid #ddd; color: #4d4d4d; background: #fff; font-size: 12px; }
header nav button:last-child { border-right: 0; }
header nav .active { color: var(--red); font-weight: 700; }
.story-header { padding: 29px 24px 23px; color: #fff; background: linear-gradient(135deg, #d40000, #8d0000); text-align: center; }
.story-header p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.story-header h1 { margin: 7px 0 4px; font-size: 28px; letter-spacing: -.06em; }
.story-header span { font-size: 13px; }
.story-list { display: grid; gap: 20px; padding: 22px 17px 32px; }
.story-card { overflow: hidden; border: 1px solid #e1d5cb; border-radius: 17px; background: #fffaf6; }
.story-photo { aspect-ratio: 1.5; background-image: url("assets/musashiya-reference.png"); background-repeat: no-repeat; background-size: auto 650px; }
.story-photo.photo-one { background-position: 24% 15%; }
.story-photo.photo-two { background-position: 22% 36%; }
.story-photo.photo-three { background-position: 22% 58%; }
.story-photo.uploaded { background-position: center; background-size: cover; }
.story-copy { padding: 16px 18px 18px; }
.story-copy p { margin: 0 0 6px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.story-copy h2 { margin: 0 0 9px; font-size: 20px; letter-spacing: -.05em; }
.story-copy div { font-size: 13px; line-height: 1.85; }
footer { display: flex; justify-content: center; gap: 13px; padding: 20px 9px; color: #555; background: #fff; font-size: 12px; }
footer a { color: #1472d5; text-underline-offset: 3px; }
.menu-footer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.menu-footer a { padding: 11px 5px; border-right: 1px solid #ddd; color: #4d4d4d; font-size: 11px; text-align: center; text-decoration: none; }
.menu-footer a:nth-child(3n) { border-right: 0; }
.menu-footer a:nth-child(-n + 3) { border-bottom: 1px solid #ddd; }
.menu-footer a:hover { color: #fff; background: var(--red); }
@media (max-width: 420px) {
  .story-header h1 { font-size: 25px; }
  .story-copy h2 { font-size: 18px; }
  footer { gap: 9px; font-size: 11px; }
}


