@charset "UTF-8";
:root{--bg:#fbf8ee;--paper:#fffdf7;--ink:#201d19;--sub:#70695f;--line:#ded6c8;--mincho:"Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;--gothic:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic","Noto Sans JP",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--gothic);font-size:16px;line-height:1.85}img{display:block;width:100%}a{color:inherit;text-decoration:none}

main{width:min(1320px,calc(100% - 48px));margin:auto}.breadcrumb{padding:20px 0 18px;color:#91897f;font-size:11px}.page{width:min(1180px,100%);margin:0 auto}
.catalog-hero{display:grid;grid-template-columns:.78fr 1.22fr;min-height:560px;margin-bottom:92px}.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:54px 52px;background:#f0eadb}.eyebrow,.section-head span,.intro-copy span,.freehand-head span{font-size:10px;letter-spacing:.18em;color:#877968;font-weight:700}.hero-copy h1{margin:8px 0 22px;font:600 clamp(44px,5vw,68px)/1.12 var(--mincho)}.hero-catch{margin:0 0 24px;font:600 clamp(26px,3vw,40px)/1.5 var(--mincho)}.hero-lead{margin:0;max-width:36em;color:#5e574f;font-size:14px;line-height:2}.hero-image{position:relative;margin:0;overflow:hidden;border-radius:2px}.hero-image img{height:100%;object-fit:cover}.hero-image figcaption{position:absolute;right:12px;bottom:9px;color:#fff;font-size:10px;text-shadow:0 1px 4px #000}
.editorial-intro{display:grid;grid-template-columns:.7fr 1.3fr;gap:60px;margin-bottom:106px}.intro-copy h2{margin:8px 0 0;font:600 34px/1.45 var(--mincho)}.viewpoints{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}.viewpoints article{padding:22px 20px 8px;border-right:1px solid var(--line)}.viewpoints article:last-child{border-right:0}.viewpoints b{color:#a08e76;font-size:11px}.viewpoints h3{margin:8px 0;font:600 22px/1.4 var(--mincho)}.viewpoints p{margin:0;color:#665f56;font-size:12px;line-height:1.8}
.section-head{margin-bottom:22px}.section-head h2{margin:5px 0 8px;font:600 32px/1.42 var(--mincho)}.section-head p{margin:0;color:#6a635b;font-size:13px}.section-head--row{display:flex;justify-content:space-between;align-items:end;gap:30px}.more{font-size:12px;border-bottom:1px solid #9b8f80;padding-bottom:3px}
.feature-block{margin-bottom:108px}.feature-grid{display:grid;grid-template-columns:1.5fr .75fr .75fr;gap:14px;height:430px}.feature-card{position:relative;overflow:hidden;border-radius:2px}.feature-card img{height:100%;object-fit:cover;transition:transform .35s ease}.feature-card:hover img{transform:scale(1.018)}.overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.68),rgba(0,0,0,0) 68%)}.feature-copy{position:absolute;left:0;right:0;bottom:0;padding:24px 22px;color:#fff}.feature-copy span{font-size:9px;letter-spacing:.12em}.feature-copy h3{margin:4px 0 5px;font:600 27px/1.3 var(--mincho)}.feature-copy p{margin:0;font-size:11px;line-height:1.7}
.story-shelf{margin-bottom:110px}.story-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.story-card{background:var(--paper);border-top:1px solid var(--line)}.story-card img{aspect-ratio:4/3;object-fit:cover;border-radius:2px}.story-card>div{padding:13px 2px 0}.story-card span{font-size:9px;color:#8b7b67;letter-spacing:.1em}.story-card h3{margin:5px 0;font:600 20px/1.35 var(--mincho)}.story-card p{margin:0;color:#655e55;font-size:11px;line-height:1.65}
.all-ghosts{margin-bottom:104px}.filter-note{font-size:10px;color:#999}.ghost-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:24px 12px}.ghost-card img,.ghost-placeholder{aspect-ratio:4/3;object-fit:cover;border-radius:2px}.ghost-placeholder{display:flex;align-items:center;justify-content:center;background:#e7e0d2;color:#a39888;font:600 12px/1 var(--mincho);letter-spacing:.14em}.ghost-card>div:not(.ghost-placeholder){padding-top:9px}.ghost-card h3{margin:0 0 3px;font:600 16px/1.35 var(--mincho)}.ghost-card p{margin:0;color:#8a8278;font-size:10px}
.freehand{margin-bottom:104px;padding:44px 46px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.freehand-head{max-width:780px}.freehand-head h2{margin:7px 0 12px;font:600 30px/1.45 var(--mincho)}.freehand-head p{margin:0;color:#635c54;font-size:13px;line-height:1.9}
.other-zukan{margin-bottom:100px}.book-row{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.book-row a{padding:22px 12px;text-align:center;background:#e9e1cf;border:1px solid #d5c9b5;border-radius:2px;font:600 15px/1.3 var(--mincho)}

@media(max-width:1050px){.catalog-hero{grid-template-columns:1fr 1.15fr}.hero-copy{padding:40px 32px}.ghost-grid{grid-template-columns:repeat(4,1fr)}.story-grid{grid-template-columns:repeat(2,1fr)}.book-row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){main{width:min(100% - 28px,1320px)}.catalog-hero{grid-template-columns:1fr;margin-bottom:70px}.hero-copy{padding:34px 24px}.hero-image{height:360px}.editorial-intro{grid-template-columns:1fr;gap:28px;margin-bottom:78px}.viewpoints{grid-template-columns:1fr}.viewpoints article{border-right:0;border-bottom:1px solid var(--line);padding:18px 0}.section-head--row{align-items:flex-start;flex-direction:column}.feature-grid{grid-template-columns:1fr;height:auto}.feature-card{height:290px}.story-grid{grid-template-columns:1fr 1fr}.ghost-grid{grid-template-columns:repeat(2,1fr);gap:22px 10px}.freehand{padding:30px 0}.book-row{grid-template-columns:repeat(2,1fr)}}


/* ===== V0.3 Human UAT revisions ===== */
.catalog-hero{
  position:relative;
  display:block !important;
  width:100% !important;
  min-height:560px;
  margin-bottom:92px;
  overflow:hidden;
  border-radius:2px;
}
.catalog-hero .hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
}
.catalog-hero .hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.catalog-hero .hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(20,18,15,.62) 0%,rgba(20,18,15,.35) 34%,rgba(20,18,15,.08) 62%,rgba(20,18,15,0) 78%);
}
.catalog-hero .hero-copy{
  position:relative;
  z-index:2;
  width:min(560px,48%);
  min-height:560px;
  padding:64px 0 64px 58px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:transparent !important;
  color:#fff;
}
.catalog-hero .eyebrow{color:rgba(255,255,255,.82)}
.catalog-hero .hero-copy h1,
.catalog-hero .hero-catch{color:#fff}
.catalog-hero .hero-lead{color:rgba(255,255,255,.92)}
.catalog-hero .hero-image figcaption{z-index:2}

@media(max-width:760px){
  .catalog-hero{min-height:520px}
  .catalog-hero .hero-copy{
    width:100%;
    min-height:520px;
    padding:180px 24px 36px;
    justify-content:flex-end;
  }
  .catalog-hero .hero-image::after{
    background:linear-gradient(0deg,rgba(20,18,15,.70) 0%,rgba(20,18,15,.35) 45%,rgba(20,18,15,.05) 75%);
  }
}


/* ===== V0.5 robust layout correction ===== */

/* The "HOW TO ENJOY" block: title at left, 3 viewpoints in one stable horizontal row. */
.editorial-intro.page{
  display:grid !important;
  grid-template-columns:minmax(360px,.72fr) minmax(0,1.28fr) !important;
  gap:54px !important;
  align-items:start !important;
  margin-bottom:78px !important;
}
.editorial-intro .intro-copy{
  min-width:0;
}
.editorial-intro .intro-copy h2{
  margin:8px 0 0 !important;
  font:600 32px/1.45 var(--mincho) !important;
  white-space:nowrap !important;
}
.editorial-intro .viewpoints{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  width:100% !important;
  border-top:1px solid var(--line) !important;
}
.editorial-intro .viewpoints article{
  display:block !important;
  min-width:0 !important;
  padding:22px 22px 10px !important;
  border-right:1px solid var(--line) !important;
  border-bottom:0 !important;
}
.editorial-intro .viewpoints article:last-child{
  border-right:0 !important;
}
.editorial-intro .viewpoints h3{
  margin:8px 0 !important;
  font:600 22px/1.4 var(--mincho) !important;
}
.editorial-intro .viewpoints p{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.8 !important;
  color:#665f56 !important;
}

/* Tighten vertical rhythm without making sections cramped. */
.castle-features{margin-bottom:76px !important}
.feature-block{margin-bottom:80px !important}
.all-ghosts{margin-bottom:80px !important}
.encyclopedia{margin-top:30px !important;margin-bottom:80px !important}

/* Castle feature cards: editorial, not production-note cards. */
.castle-feature-note{display:none !important}
.castle-feature-copy h3{font-size:19px !important}
.castle-feature-copy p{font-size:11px !important;line-height:1.72 !important}

/* Editor's Select */
.feature-grid{height:400px !important}
.feature-copy h3{font-size:25px !important}

/* "お城を探す" is a six-card preview on PC. */
.ghost-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:18px 12px !important;
}
.ghost-card{
  min-width:0 !important;
}
.ghost-card h3{font-size:16px !important}
.ghost-card p{font-size:10px !important}

/* Graceful image fallback: no broken icon / alt text spilling into the layout. */
.hero-image,
.castle-feature-image,
.feature-card,
.ghost-card,
.book-image{
  position:relative;
}
.has-fallback{
  background:
    radial-gradient(circle at 72% 24%,rgba(255,255,255,.46),transparent 27%),
    linear-gradient(145deg,#ded5c5,#b9ad98) !important;
  overflow:hidden;
}
.has-fallback::after{
  content:attr(data-fallback);
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  text-align:center;
  color:#776c5d;
  font:600 13px/1.5 var(--mincho);
  letter-spacing:.04em;
}
.hero-image.has-fallback::after,
.feature-card.has-fallback::after{
  color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.32);
}

/* Common TOP bookshelf, slightly compact on catalog pages. */
.encyclopedia .editorial-copy{max-width:760px}
.book-cover{height:218px !important}
.book-image{height:124px !important}
.book-title{margin-top:10px !important}

@media(max-width:1100px){
  .editorial-intro.page{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  .editorial-intro .intro-copy h2{
    white-space:normal !important;
  }
  .editorial-intro .viewpoints{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .ghost-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:700px){
  .editorial-intro.page{
    gap:20px !important;
    margin-bottom:62px !important;
  }
  .editorial-intro .intro-copy h2{
    font-size:28px !important;
  }
  .editorial-intro .viewpoints{
    grid-template-columns:1fr !important;
  }
  .editorial-intro .viewpoints article{
    padding:17px 0 !important;
    border-right:0 !important;
    border-bottom:1px solid var(--line) !important;
  }
  .editorial-intro .viewpoints article:last-child{
    border-bottom:0 !important;
  }
  .castle-features,
  .feature-block,
  .all-ghosts{
    margin-bottom:66px !important;
  }
  .feature-grid{height:auto !important}
  .ghost-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .book-cover{height:232px !important}
  .book-image{height:138px !important}
}


/* ===== V0.6 production-safety correction ===== */

/* Castle feature shelf must not appear before actual feature publication. */
.castle-features{
  display:none !important;
}

/* Header / Footer:
   HTML is copied exactly from ARE_IINA_TOP_FINAL_20261016.
   Production must continue to use the same shared common components. */


/* ===== Modern Catalog Cards V3 exact component ===== */
.horizontal-catalog-shelf {
  --catalog-gap: clamp(14px, 1.8vw, 24px);
  --catalog-control: 42px;
  min-width: 0;
}
.horizontal-catalog-shelf__heading { margin: 0 0 16px; }
.horizontal-catalog-shelf__heading h2 {
  margin: 0;
  color: #24211d;
  font: 600 clamp(1.45rem, 2.4vw, 2.15rem)/1.25 "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.horizontal-catalog-shelf__heading p {
  margin: 7px 0 0;
  color: #756e67;
  font-size: .86rem;
  line-height: 1.6;
}
.horizontal-catalog-shelf__viewport {
  display: grid;
  grid-template-columns: var(--catalog-control) minmax(0, 1fr) var(--catalog-control);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.horizontal-catalog-shelf__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(160px, calc((100% - (5 * var(--catalog-gap))) / 6), 270px);
  gap: var(--catalog-gap);
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(49, 80, 68, .35) transparent;
  -webkit-overflow-scrolling: touch;
}
.horizontal-catalog-shelf__track::-webkit-scrollbar { height: 6px; }
.horizontal-catalog-shelf__track::-webkit-scrollbar-thumb { background: rgba(49, 80, 68, .35); border-radius: 99px; }
.horizontal-catalog-shelf__track:focus-visible { outline: 2px solid #315044; outline-offset: 4px; }
.horizontal-catalog-shelf__arrow {
  display: grid;
  width: var(--catalog-control);
  height: var(--catalog-control);
  place-items: center;
  border: 1px solid rgba(49, 80, 68, .35);
  border-radius: 50%;
  background: #fffdf7;
  color: #315044;
  cursor: pointer;
  font: 400 28px/1 Georgia, serif;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.horizontal-catalog-shelf__arrow:hover:not(:disabled),
.horizontal-catalog-shelf__arrow:focus-visible {
  background: #315044;
  color: #fff;
  outline: 2px solid #315044;
  outline-offset: 3px;
}
.horizontal-catalog-shelf__arrow:disabled { cursor: default; opacity: .25; }
.catalog-card {
  display: block;
  min-width: 0;
  color: #24211d;
  text-decoration: none;
  scroll-snap-align: start;
}
.catalog-card__image-wrap {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: #e9e5dc;
}
.catalog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .22s ease;
}
.catalog-card:hover .catalog-card__image,
.catalog-card:focus-visible .catalog-card__image { transform: scale(1.025); }
.catalog-card:focus-visible { outline: 2px solid #315044; outline-offset: 4px; border-radius: 2px; }
.catalog-card__title {
  display: block;
  margin: 9px 0 0;
  color: #24211d;
  text-align: center;
  font-size: clamp(.88rem, 1.2vw, 1.02rem);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.catalog-card__subtitle {
  display: block;
  margin-top: 3px;
  color: #756e67;
  font-size: .76rem;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .horizontal-catalog-shelf { --catalog-control: 32px; }
  .horizontal-catalog-shelf__viewport { gap: 6px; }
  .horizontal-catalog-shelf__track {
    grid-auto-columns: min(76vw, 280px);
    gap: 14px;
    padding-bottom: 8px;
  }
  .horizontal-catalog-shelf__arrow { font-size: 22px; }
  .catalog-card__title { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  .horizontal-catalog-shelf__track { scroll-behavior: auto; }
  .catalog-card__image { transition: none; }
}



/* Castle page integration */
.modern-catalog-zone{
  margin-top:34px;
  margin-bottom:86px;
}
.modern-catalog-zone .horizontal-catalog-shelf__track{
  scrollbar-width:none;
}
.modern-catalog-zone .horizontal-catalog-shelf__track::-webkit-scrollbar{
  display:none;
}


/* ===== PEOPLE CATALOG V0.1 ===== */
.catalog-hero .hero-image img{
  object-position:center 20%;
}
.ghost-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:18px 12px !important;
}
.ghost-card{
  min-width:0;
  color:inherit;
  text-decoration:none;
}
.ghost-card img,
.ghost-placeholder{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:2px;
}
.ghost-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e7e0d2;
  color:#a39888;
  font:600 12px/1 var(--mincho);
  letter-spacing:.14em;
}
.ghost-card>div:not(.ghost-placeholder){
  padding-top:9px;
}
.ghost-card h3{
  margin:0 0 3px;
  font:600 16px/1.35 var(--mincho);
}
.ghost-card p{
  margin:0;
  color:#8a8278;
  font-size:10px;
}
.modern-catalog-zone{
  margin-top:34px;
  margin-bottom:86px;
}
@media(max-width:1050px){
  .ghost-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:700px){
  .ghost-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}


/* ===== GHOSTS CATALOG V0.1 ===== */
.ghost-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:18px 12px !important;
}
.ghost-card{
  min-width:0;
  color:inherit;
  text-decoration:none;
}
.ghost-card img,
.ghost-placeholder{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:2px;
}
.ghost-card>div:not(.ghost-placeholder){padding-top:9px}
.ghost-card h3{
  margin:0 0 3px;
  font:600 16px/1.35 var(--mincho);
}
.ghost-card p{
  margin:0;
  color:#8a8278;
  font-size:10px;
}
@media(max-width:1050px){
  .ghost-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media(max-width:700px){
  .ghost-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}


/* ===== GHOSTS CATALOG V0.4 ===== */
.all-ghosts .ghost-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:22px 12px !important;
}
.all-ghosts .ghost-card{min-width:0 !important;}
.all-ghosts .ghost-card img{
  width:100% !important;
  aspect-ratio:4/3 !important;
  object-fit:cover !important;
  border-radius:2px !important;
}
@media(max-width:1050px){
  .all-ghosts .ghost-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:700px){
  .all-ghosts .ghost-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

/* Mythology HERO: headline width / no isolated Japanese glyph lines */
.catalog-hero .hero-copy { max-width: min(53%, 720px); }
.catalog-hero .hero-catch { font-size: clamp(29px, 2.7vw, 40px); line-height: 1.5; overflow-wrap: normal; word-break: keep-all; }
.catalog-hero .hero-image img { object-fit: cover; object-position: 66% center; }
@media(max-width:900px){.catalog-hero .hero-copy{max-width:100%}.catalog-hero .hero-catch{font-size:clamp(25px,5.8vw,40px);word-break:normal}.catalog-hero .hero-image img{object-position:67% center}}

/* v0.4: keep extra shrine cards hidden until explicit expansion */
.shrines-extra-grid[hidden]{display:none !important}
.shrines-extra-grid{margin-top:18px}
button.more{font:inherit;cursor:pointer;border:0;background:none;color:inherit;padding:0}
