/* 色・書体を変更する場合は、まずここを編集してください。 */
:root {
  --paper: #faf2eb;
  --ink: #432f35;
  --muted: #745c62;
  --sunset: #a05240;
  --line: #e5d2ca;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a05240; outline-offset: 6px; }
::selection { background: #ebc7b7; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 10px 20px; background: var(--sunset); color: white; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header, main, .site-footer { max-width: 1200px; margin: auto; padding-left: 48px; padding-right: 48px; }
.site-header { min-height: 114px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; }
.brand small { display: block; margin-top: 5px; font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .2em; }
.brand-mark { display: block; flex-shrink: 0; width: 44px; height: 44px; color: var(--sunset); }
nav { display: flex; gap: 33px; font-size: 12px; font-weight: 600; }
nav a:hover, .text-link:hover { color: #944736; }
nav span { margin-left: 8px; }
.eyebrow { margin: 0 0 22px; font-size: 10px; font-weight: 600; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.announcement { display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; font-size: 11px; }
.announcement-label { flex-shrink: 0; font-weight: 600; border-right: 1px solid var(--line); padding-right: 25px; }
.announcement p { margin: 0; flex: 1; }
.announcement a { flex-shrink: 0; }
.announcement a span { padding-left: 10px; }
.section { padding: 78px 0; }
.scripts.section { padding-top: 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.section .eyebrow { font-size: 9px; margin-bottom: 12px; color: #87554c; }
h1, h2 { font-size: 28px; letter-spacing: .06em; line-height: 1.7; margin-bottom: 0; }
.section-description { margin: 0 0 4px; font-size: 11px; color: var(--muted); }
.script-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; align-items: start; }
.script-card { background: #fffaf6; border: 1px solid var(--line); }
.card-art { height: 215px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 27px; }
.card-index { position: absolute; top: 15px; left: 18px; font-size: 7px; letter-spacing: .16em; opacity: .7; }
.cover-title { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; z-index: 1; }
.cover-caption { font-size: 5px; letter-spacing: .18em; margin-top: 8px; z-index: 1; }
.art-night { background: #324c50; color: #f6efd8; }
.moon { position: absolute; top: 40px; left: calc(50% - 23px); width: 46px; height: 46px; border-radius: 50%; background: #e6d8a9; box-shadow: 0 0 35px #f6efd819; }
.night-window { position: absolute; width: 105px; height: 170px; border: 1px solid #b6c8bb44; border-radius: 65px 65px 0 0; top: 23px; }
.night-window::before { content: ""; position: absolute; height: 100%; width: 1px; background: #b6c8bb44; left: 50%; }
.art-letter { background: #e9dfcf; color: #715c43; }
.envelope { position: absolute; width: 93px; height: 60px; top: 44px; background: #fbf8ed; border: 1px solid #cbbb9d; transform: rotate(-8deg); box-shadow: 5px 6px 0 #dbd0ba; }
.envelope::after { content: ""; position: absolute; width: 63px; height: 63px; border-right: 1px solid #cbbb9d; border-bottom: 1px solid #cbbb9d; transform: rotate(45deg); top: -34px; left: 14px; }
.art-cafe { background: #dce2d3; color: #425845; }
.cup { position: absolute; width: 68px; height: 47px; top: 69px; background: #f8f4e7; border-radius: 3px 3px 29px 29px; border: 1px solid #a4b197; }
.cup::after { content: ""; position: absolute; width: 18px; height: 21px; border: 4px solid #f8f4e7; outline: 1px solid #a4b197; border-radius: 0 50% 50% 0; right: -19px; top: 6px; }
.steam { position: absolute; top: 20px; left: calc(50% - 17px); font-family: serif; font-size: 29px; color: #93a286; }
.card-content { padding: 21px 21px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tags span { background: #f4e1d8; color: #794d47; padding: 2px 7px; font-size: 9px; }
.tags .sample-tag { background: transparent; color: var(--muted); margin-left: auto; padding-right: 0; }
h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: .02em; }
.card-content > p { font-size: 11px; line-height: 2; color: #745c62; min-height: 66px; margin-bottom: 15px; }
.script-meta { display: flex; flex-wrap: wrap; gap: 0; color: #745c62; font-size: 10px; margin-bottom: 20px; }
.script-meta span + span::before { content: "/"; margin: 0 11px; color: #bb978d; }
details { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; padding: 13px 0; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 17px; font-weight: 400; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
.excerpt { padding: 10px 0 20px; font-family: var(--serif); font-size: 12px; }
.excerpt p { margin-bottom: 12px; }
.excerpt small { font-family: var(--sans); font-size: 9px; color: var(--muted); }
.library-note { text-align: center; font-size: 11px; color: var(--muted); margin: 27px 0 0; }
.profile { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 55px; border-top: 1px solid var(--line); padding: 55px 35px 60px; }
.profile-visual { text-align: center; }
.profile-icon { display: block; width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.profile-caption { display: block; margin-top: 15px; font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.profile-content h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-size: 29px; }
.profile-reading { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.profile-bio { font-size: 12px; line-height: 2.3; }
.profile-bio p { margin-bottom: 15px; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-team { font-weight: 600; overflow-wrap: anywhere; }
.profile-social { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px; border: 1px solid #bb978d; font-size: 12px; transition: background .2s; }
.profile-social img { display: block; width: 20px; height: 20px; object-fit: contain; }
.profile-social:hover { background: #f1ddd4; }
.announcement + .profile { border-top: 0; }
.terms-link { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 38px 0; }
.terms-link h2 { font-size: 23px; }
.terms-link p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.page-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 40px; flex-shrink: 0; padding: 15px 24px; background: var(--sunset); color: #fff; font-size: 12px; transition: background .2s; }
.page-button:hover { background: #873f36; }
.breadcrumbs { padding-top: 25px; font-size: 11px; color: var(--muted); }
.breadcrumbs a:hover { text-decoration: underline; }
.terms-document { max-width: 800px; margin: 0 auto; padding: 32px 0 15px; font-size: 14px; line-height: 2.1; overflow-wrap: anywhere; }
.terms-heading { padding-bottom: 30px; }
.terms-heading .eyebrow { color: var(--muted); font-size: 10px; margin-bottom: 12px; }
.terms-heading h1 { margin-bottom: 25px; }
.terms-document p { margin-bottom: 16px; }
.terms-section { padding: 30px 0; border-top: 1px solid var(--line); }
.terms-section h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: .02em; margin-bottom: 20px; }
.terms-section ul { padding-left: 1.5em; margin: 0 0 20px; }
.terms-section li { padding-left: 4px; margin-bottom: 8px; }
.terms-section li::marker { color: #a05240; }
.terms-section > :last-child { margin-bottom: 0; }
.credit-example { background: #f1ddd4; border-left: 3px solid #b57667; padding: 20px 24px; margin: 24px 0; }
.credit-example .credit-example-label { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.credit-example p:last-child { margin-bottom: 0; }
.terms-closing { border-top: 1px solid var(--line); padding-top: 30px; }
.terms-back { margin: 32px 0 60px; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.catalog.section { padding-top: 28px; }
.catalog-notice { font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.catalog-filters { border: 1px solid var(--line); background: #fffaf6; padding: 25px; margin-bottom: 26px; }
.search-label, .tag-fieldset legend { font-size: 12px; font-weight: 600; }
.catalog-filters input[type="search"] { display: block; width: 100%; max-width: 540px; margin: 9px 0 22px; padding: 12px 14px; border: 1px solid #bb978d; border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.catalog-filters input:focus-visible, .catalog-filters button:focus-visible { outline: 3px solid #a05240; outline-offset: 3px; }
.tag-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-hint { color: var(--muted); font-size: 11px; margin: 6px 0 14px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tag { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 13px; border: 1px solid var(--line); font-size: 12px; }
.filter-tag:has(input:checked) { background: #f1ddd4; border-color: var(--sunset); }
.filter-tag input { accent-color: var(--sunset); width: 15px; height: 15px; margin: 0; }
.filter-reset { border: 0; border-bottom: 1px solid #bb978d; padding: 3px 0; background: transparent; color: var(--ink); font: inherit; font-size: 11px; cursor: pointer; margin-top: 18px; }
.catalog-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 11px; margin-bottom: 18px; }
.catalog-status p { margin: 0; }
.catalog-status > span { color: var(--muted); }
.card-content > .published-date { font-size: 10px; min-height: 0; margin-bottom: 12px; line-height: 1.5; color: var(--muted); }
.empty-results { padding: 45px 20px; border: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }
.backstage.section { padding-top: 28px; padding-bottom: 15px; }
.backstage-heading { max-width: 720px; margin-bottom: 40px; }
.backstage-heading .eyebrow { color: var(--muted); font-size: 10px; margin-bottom: 12px; }
.backstage-heading h1 { margin-bottom: 22px; }
.backstage-heading > p:last-child { font-size: 13px; color: var(--muted); line-height: 2.2; }
.backstage-lead { font-family: var(--serif); font-size: 20px; letter-spacing: .04em; margin-bottom: 12px; }
.backstage-list { display: grid; gap: 24px; }
.backstage-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); border: 1px solid var(--line); background: #fffaf6; scroll-margin-top: 25px; }
.backstage-card:target { outline: 2px solid #b57667; outline-offset: 4px; }
.backstage-image { display: block; align-self: center; aspect-ratio: 3 / 2; }
.backstage-content { padding: 25px 30px; }
.backstage-content .eyebrow { font-size: 8px; color: var(--muted); margin-bottom: 6px; }
.backstage-content h2 { font-size: 21px; margin-bottom: 12px; }
.backstage-content > p:not(.eyebrow) { font-size: 12px; color: var(--muted); }
.backstage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 25px; margin-top: 20px; }
.backstage-pending { display: inline-block; padding: 8px 14px; background: #f1ddd4; color: #794d47; font-size: 11px; }
.story-backstage-link { padding: 20px 0; border-top: 1px solid var(--line); }
.backstage-intro { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 48px 38px; margin-bottom: 40px; background: linear-gradient(135deg, #694653, #8e5547); color: #fff1e6; }
.backstage-intro .eyebrow { color: #f8ded4; }
.backstage-intro .page-button { background: #f1ddd4; color: #48313e; }
.backstage-intro .page-button:hover { background: #fff1e6; }
.backstage-intro h2 { margin-bottom: 22px; }
.backstage-intro-lead { font-family: var(--serif); font-size: 21px; letter-spacing: .06em; margin-bottom: 14px; }
.backstage-intro-description { font-size: 13px; line-height: 2.3; margin-bottom: 0; }
@media (max-width: 700px) {
  .backstage-intro { flex-direction: column; align-items: flex-start; padding: 30px 22px; gap: 25px; }
  .backstage-intro-lead { font-size: 19px; }
  .backstage-intro-description { font-size: 12px; }
  .backstage-intro .page-button { width: 100%; }
}
@media (max-width: 950px) {
  .site-header { flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; gap: 20px; }
  nav { flex-wrap: wrap; }
  .backstage-card { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
  .backstage-content { padding: 20px; }
}
@media (max-width: 700px) {
  .backstage-card { grid-template-columns: 1fr; }
  .backstage-lead { font-size: 18px; }
  .backstage-content h2 { font-size: 20px; }
}
.story-cover { text-align: center; padding-left: 18px; padding-right: 18px; transition: filter .2s; }
.story-cover:hover { filter: brightness(1.08); }
.card-art.thumbnail { display: block; height: auto; aspect-ratio: 3 / 2; padding: 0; background: #f1ddd4; }
.thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.thumbnail:hover img { opacity: .9; }
.cover-experiment { background: #344b4c; color: #e6eadc; }
.cover-eyes { background: #ded9d2; color: #564a50; }
.cover-scar { background: #e5d9d2; color: #735752; }
.story-cover-symbol { position: absolute; top: 35px; font-family: var(--serif); font-size: 48px; line-height: 1.3; opacity: .5; }
.story-cover .cover-title { font-size: 18px; line-height: 1.7; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-content .card-title { font-size: 18px; margin-bottom: 10px; letter-spacing: .02em; }
.read-script { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.read-script:hover { color: #944736; }
.story-document { max-width: 800px; margin: 40px auto 0; overflow-wrap: anywhere; }
.story-heading h1 { margin: 20px 0 15px; }
.story-byline { font-size: 12px; color: var(--muted); }
.story-byline span { display: inline-block; margin-left: 18px; }
.story-heading > p:last-child { font-size: 13px; line-height: 2.1; margin: 22px 0 30px; }
.story-info { background: #f1ddd4; padding: 23px 26px; }
.story-info h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 15px; }
.story-info p { font-size: 12px; margin: 7px 0; }
.story-info p:last-child { margin-top: 18px; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; margin: 25px 0; }
.story-version { font-size: 12px; margin: 20px 0; }
.script-text { margin-top: 40px; border-top: 1px solid var(--line); padding: 35px 0; font-family: var(--serif); font-size: 17px; line-height: 2.2; }
.script-text h2 { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.script-text p { margin-bottom: 22px; white-space: pre-wrap; }
.script-text .stage-direction { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 28px 0; }
@media (max-width: 700px) {
  .story-cover .cover-title { font-size: 21px; }
  .card-content .card-title { font-size: 21px; }
  .story-info { padding: 20px; }
  .script-text { font-size: 16px; }
  .story-byline span { display: block; margin: 7px 0 0; }
}
.guide { display: grid; grid-template-columns: .9fr 1.4fr; gap: 65px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-intro > p:not(.eyebrow) { font-size: 11px; color: var(--muted); margin-top: 17px; }
.guide-decoration { font-family: serif; font-size: 75px; color: #b2bfa0; line-height: 1.2; display: block; margin-top: 18px; }
.policy-note { font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.guide-item { display: flex; gap: 23px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.guide-item:last-child { border-bottom: 0; padding-bottom: 0; }
.guide-item > span { font-family: var(--serif); font-style: italic; color: #8c9a7c; font-size: 19px; line-height: 1.7; }
.guide-item h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.guide-item p { font-size: 11px; color: var(--muted); margin: 0; }
.about { text-align: center; padding-top: 75px; padding-bottom: 80px; }
.about h2 { font-size: 25px; margin-bottom: 20px; }
.about > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 2.4; margin-bottom: 25px; }
.text-link { display: inline-flex; gap: 35px; border-bottom: 1px solid #bb978d; padding: 0 2px 6px; font-size: 11px; }
.site-footer { border-top: 1px solid var(--line); min-height: 105px; display: flex; align-items: center; gap: 25px; }
.footer-brand { font-family: var(--serif); font-size: 20px; letter-spacing: .12em; }
.footer-brand span { margin-left: 12px; font-family: var(--sans); font-size: 7px; letter-spacing: .15em; }
.site-footer small { font-size: 9px; color: var(--muted); margin-left: auto; }
.site-footer > a:last-child { font-size: 10px; margin-left: 20px; }
@media (min-width: 1450px) { .site-header, main, .site-footer { max-width: 1280px; padding-left: 60px; padding-right: 60px; } }
@media (max-width: 950px) {
  .site-header, main, .site-footer { padding-left: 28px; padding-right: 28px; }
  nav { gap: 18px; font-size: 10px; }
  .script-grid { gap: 14px; }
  .card-content { padding: 16px 15px 0; }
  .cover-title { font-size: 16px; }
  h3 { font-size: 16px; }
  .script-meta span + span::before { margin: 0 6px; }
  .guide { gap: 35px; }
  .profile { gap: 30px; padding-left: 0; padding-right: 0; }
  .profile-desktop-break { display: none; }
}
@media (max-width: 700px) {
  .site-header, main, .site-footer { padding-left: 22px; padding-right: 22px; }
  .site-header { padding-top: 22px; padding-bottom: 18px; min-height: 0; flex-wrap: wrap; gap: 24px; }
  .brand { font-size: clamp(18px, 5vw, 24px); gap: 10px; }
  nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 10px; }
  .announcement { flex-wrap: wrap; gap: 9px 15px; padding: 16px 0; }
  .announcement-label { padding-right: 15px; }
  .announcement p { flex-basis: calc(100% - 85px); font-size: 10px; }
  .announcement a { margin-left: auto; font-size: 10px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-heading { display: block; margin-bottom: 25px; }
  h1, h2 { font-size: 23px; }
  .section-description { margin-top: 15px; }
  .script-grid { grid-template-columns: 1fr; gap: 25px; }
  .card-art { height: 225px; }
  .cover-title { font-size: 23px; }
  .cover-caption { font-size: 6px; }
  .card-content { padding: 22px 23px 0; }
  .card-content > p { min-height: 0; font-size: 12px; }
  h3 { font-size: 21px; }
  .script-meta { font-size: 11px; }
  .script-meta span + span::before { margin: 0 12px; }
  summary { padding: 15px 0; }
  .guide { grid-template-columns: 1fr; gap: 15px; }
  .terms-link { gap: 22px; }
  .terms-link .page-button { width: 100%; }
  .terms-document { padding-top: 20px; font-size: 13px; }
  .terms-section h2 { font-size: 17px; }
  .credit-example { padding: 16px; }
  .profile { grid-template-columns: 1fr; gap: 26px; }
  .profile-visual { justify-self: center; }
  .profile-icon { width: 140px; height: 140px; }
  .profile-content .eyebrow { text-align: center; }
  .profile-content h2 { justify-content: center; font-size: 27px; margin-bottom: 22px; }
  .profile-bio { font-size: 12px; }
  .guide-intro h2 br { display: none; }
  .guide-decoration { display: none; }
  .guide-item { gap: 18px; }
  .about h2 { font-size: 21px; }
  .about > p:not(.eyebrow) { font-size: 11px; }
  .about br { display: none; }
  .site-footer { flex-wrap: wrap; padding-top: 25px; padding-bottom: 25px; gap: 15px; }
  .footer-brand { width: 100%; }
  .site-footer small { margin-left: 0; }
  .site-footer > a:last-child { margin-left: auto; }
}
/* 各案内を画面1枚分で表示。内容が増えたときは自然に高さを伸ばします。 */
.library-introduction { margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.library-introduction h1 { color: var(--sunset); font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.library-introduction p { font-size: 12px; line-height: 2.2; color: var(--muted); margin: 0; }
.library-introduction a { text-decoration: underline; text-underline-offset: 3px; }
.terms-link, .about, .backstage-intro { min-height: 100vh; min-height: 100svh; }
.about { display: flex; flex-direction: column; justify-content: center; align-items: center; }
@media (max-width: 700px) {
  .terms-link, .backstage-intro { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
