@charset "UTF-8";

/* Studio portal and shared links between the game pages. */
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.phrase { display: inline-block; }

.studio-page { background: #faf4e8; }
.studio-page .site-header {
  background: #faf4e8;
  color: var(--ink);
  border-bottom-color: rgb(67 53 34 / 18%);
}
.studio-page .language-switcher { color: #75654e; }
.studio-page .language-button:is(:hover, :focus-visible, .is-active) {
  color: #75471d;
  border-color: #9b713d;
}
.studio-page .site-nav a::after { background: var(--vermilion); }
.studio-page :is(a, button):focus-visible { outline-color: var(--vermilion); }

.studio-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 38%, rgb(242 188 60 / 18%), transparent 38%),
    radial-gradient(rgb(118 88 49 / 12%) 0.6px, transparent 0.6px),
    #faf4e8;
  background-size: auto, 16px 16px, auto;
  border-bottom: 1px solid rgb(67 53 34 / 16%);
}
.studio-intro {
  display: block;
  padding-block: clamp(40px, 4vw, 56px);
}
.studio-copy { min-width: 0; }
.studio-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.3;
}
html[lang="en"] .studio-copy h1 { letter-spacing: -0.035em; line-height: 1.12; }
.studio-description {
  max-width: 40em;
  margin: 24px 0 30px;
  color: #5b5042;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.95;
}

.portal-games { padding: clamp(56px, 7vw, 90px) 0; }
.portal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 36px;
}
.portal-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.portal-heading > p { margin: 0; color: #756b5d; font-size: 0.88rem; }
.portal-game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.portal-game {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgb(67 53 34 / 24%);
  background: #fffbf1;
}
.portal-game-media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  background: linear-gradient(120deg, #c4ae80, #eee3c9);
}
.portal-game-imori .portal-game-media { background: #101923; }
.portal-game-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.portal-game-media:hover { filter: brightness(1.04); }
.portal-game-copy { display: flex; flex: 1; flex-direction: column; padding: 30px; }
.portal-game-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #756b5d;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.portal-game h3 { margin: 22px 0 0; font-size: clamp(1.65rem, 2.5vw, 2.2rem); font-weight: 600; line-height: 1.5; }
.portal-game h3 a:hover { color: var(--vermilion); }
.game-subtitle { display: block; font-size: 0.67em; font-weight: 500; letter-spacing: 0.03em; }
.portal-game-copy > p { margin: 20px 0; color: #5b5042; font-size: 0.95rem; line-height: 1.95; }
.portal-game-copy .page-actions { margin-top: auto; padding-top: 14px; }

.news-section { padding: clamp(56px, 7vw, 90px) 0; background: linear-gradient(110deg, #f1e7d2, #e8ddc5); }
.news-list { border-top: 1px solid rgb(67 53 34 / 40%); }
.news-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid rgb(67 53 34 / 25%);
}
.news-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-family: var(--font-sans); }
.news-meta time { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.news-category { padding: 3px 9px; border: 1px solid #a5402e; color: #8c3526; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.13em; }
.news-event { border-color: #36786c; color: #276255; }
.news-copy { min-width: 0; }
.news-copy h3 { margin: 0; font-size: clamp(1.12rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.65; }
.news-copy h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-copy > p { max-width: 65ch; margin: 14px 0 18px; color: #655744; font-size: 0.92rem; line-height: 1.95; }
.studio-follow { padding: 32px 0 80px; background: linear-gradient(110deg, #f1e7d2, #e8ddc5); }
.studio-follow .follow-card { margin-top: 0; }
.studio-page .contact-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; }
.studio-page .contact-copy { position: static; }
.studio-page .contact-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.4; }
.studio-page .contact-copy h2 > [data-lang] { white-space: normal; }

.game-press { padding: 18px 0; background: #eee1c5; color: #3c3122; border-block: 1px solid rgb(110 82 40 / 30%); }
.game-press .section-shell { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 32px; }
.game-press p { margin: 0; font-family: var(--font-sans); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; }
.game-press a { line-height: 1.7; }
.game-end .section-index { color: var(--gold-bright); font-size: 0.65rem; margin-bottom: 14px; }
.game-end .page-actions { min-width: 0; }

.book-section { padding: clamp(64px, 8vw, 112px) 0; }
.book-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.book-copy h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.3rem); font-weight: 500; letter-spacing: 0.03em; line-height: 1.4; }
.book-copy > p:last-child { max-width: 32em; margin: 24px 0 0; color: #655744; font-size: 0.96rem; line-height: 1.95; }
.book-stores { border: 1px solid rgb(67 53 34 / 30%); background: rgb(255 250 240 / 65%); }
.book-store { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 22px 28px; border-bottom: 1px solid rgb(67 53 34 / 22%); transition: background-color 180ms ease; }
.book-store:last-child { border-bottom: 0; }
.book-store:hover { background: rgb(196 161 93 / 18%); }
.book-store-name { font-size: 1.4rem; font-weight: 600; }
.book-store-action { grid-column: 1; color: #756b5d; font-family: var(--font-sans); font-size: 0.72rem; }
.book-store-arrow { grid-column: 2; grid-row: 1 / 3; color: var(--vermilion); font-size: 1.3rem; }
.awai-page .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.awai-page .section-copy h2 { font-size: clamp(1.8rem, 3.2vw, 3.35rem); }
.awai-page .section-copy h2 > [data-lang="ja"] { white-space: normal; }

.site-footer { grid-template-columns: minmax(140px, 190px) minmax(0, 1fr) auto; gap: 24px; }
.footer-nav { flex-wrap: wrap; gap: 12px 24px; }

/* Imori vs Yamori: coral, teal, and a specimen-book layout. */
.imori-page {
  --ink: #101923;
  --white: #fffdf1;
  --paper-light: #fff5e4;
  --vermilion: #b43c35;
  --vermilion-bright: #ff695e;
  --gold-bright: #f6d75a;
  font-family: var(--font-sans);
  background: var(--paper-light);
}
.imori-hero {
  padding: clamp(54px, 7vw, 96px) 0 0;
  color: var(--white);
  background:
    radial-gradient(ellipse at 5% 18%, rgb(233 85 70 / 15%), transparent 50%),
    radial-gradient(ellipse at 98% 80%, rgb(40 204 181 / 14%), transparent 52%),
    #101923;
}
.imori-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
.imori-hero-copy { min-width: 0; }
.imori-hero .section-index { color: #f6d75a; }
.imori-live { display: inline-block; margin: 0 0 24px; padding: 6px 12px; border: 1px solid #36bca9; color: #8eead8; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; }
.imori-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.imori-hero h1 > [data-lang] > span { display: block; }
.imori-hero h1 .imori-vs { margin: 0.2em 0; color: #f6d75a; font-family: var(--font-serif); font-size: 0.4em; font-style: italic; }
.imori-tagline { margin: 28px 0 16px; font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.6; }
.imori-lead { margin: 0 0 28px; color: rgb(255 253 241 / 76%); font-size: 0.92rem; line-height: 1.9; }
.imori-cover { margin: 0; border: 1px solid rgb(255 253 241 / 24%); box-shadow: 0 24px 65px rgb(0 0 0 / 30%); }
.imori-cover img { width: 100%; height: auto; }
.imori-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; margin-bottom: 0; border-top: 1px solid rgb(255 253 241 / 22%); }
.imori-numbers > div { display: flex; flex-direction: column; align-items: center; padding: 28px 10px; border-right: 1px solid rgb(255 253 241 / 22%); }
.imori-numbers > div:last-child { border-right: 0; }
.imori-numbers dd { order: -1; margin: 0; color: #f6d75a; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
.imori-numbers dd span { font-size: 0.4em; }
.imori-numbers dt { margin-top: 10px; font-size: 0.7rem; text-align: center; }
.imori-features { padding: 80px 0; background: radial-gradient(rgb(140 104 55 / 10%) 0.6px, transparent 0.6px) 0 0 / 16px 16px, #fff5e4; }
.imori-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 48px; margin-top: 64px; }
.imori-feature:nth-of-type(even) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.imori-feature:nth-of-type(even) figure { order: 2; }
.imori-feature figure { margin: 0; min-width: 0; }
.imori-feature figure img { width: 100%; height: auto; border: 1px solid #d8c8ad; }
.imori-feature figcaption { padding-top: 10px; color: #756b5d; font-size: 0.65rem; letter-spacing: 0.12em; }
.imori-feature-copy { min-width: 0; }
.imori-feature-copy h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.5; }
.imori-feature-copy p { margin: 20px 0 0; color: #655744; line-height: 1.95; font-size: 0.95rem; }
.imori-play { padding: 80px 0; background: #172633; color: var(--white); }
.imori-play > .section-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px 64px; }
.imori-play .section-index { color: #f6d75a; }
.imori-play h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.3rem); font-weight: 800; line-height: 1.4; }
.imori-play-heading > p:not(.section-index) { color: rgb(255 253 241 / 76%); margin-block: 24px; }
.imori-specs { margin: 0; }
.imori-specs > div { padding: 20px 0; border-bottom: 1px solid rgb(255 253 241 / 22%); }
.imori-specs dt { color: #93d7c8; font-size: 0.72rem; font-weight: 700; }
.imori-specs dd { margin: 6px 0 0; font-size: 0.95rem; }
.imori-image-note { grid-column: 1 / -1; max-width: 80ch; margin: 18px 0 0; padding-top: 24px; border-top: 1px solid rgb(255 253 241 / 22%); color: rgb(255 253 241 / 65%); font-size: 0.75rem; line-height: 1.9; }

@media (max-width: 1024px) {
  .studio-page .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-game-copy { padding: 26px; }
}
@media (max-width: 900px) {
  .imori-hero-grid, .imori-play > .section-shell { grid-template-columns: minmax(0, 1fr); }
  .imori-cover { width: min(100%, 680px); margin-inline: auto; }
  .site-footer { grid-template-columns: 150px minmax(0, 1fr); }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .site-footer > p { justify-self: end; }
}
@media (max-width: 780px) {
  .desktop-break { display: none; }
  .portal-game-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .news-meta { flex-direction: row; align-items: center; gap: 18px; }
  .awai-page .story-grid { grid-template-columns: minmax(0, 1fr); }
  .game-press .section-shell { justify-content: flex-start; }
  .imori-feature, .imori-feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 50px; }
  .imori-feature:nth-of-type(even) figure { order: 0; }
}
@media (max-width: 480px) {
  .studio-copy .section-index { font-size: 0.58rem; letter-spacing: 0.1em; }
  .studio-description { font-size: 0.87rem; }
  .portal-game-copy { padding: 24px 20px; }
  .book-store { padding: 20px; }
  .portal-game-meta { font-size: 0.58rem; }
  .studio-follow { padding-bottom: 60px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-column: 1; grid-row: auto; }
  .site-footer > p { justify-self: start; }
  .imori-hero h1 { font-size: 3.2rem; }
  .imori-numbers { margin-top: 44px; }
  .imori-numbers dt { font-size: 0.6rem; }
  .imori-features, .imori-play { padding-block: 60px; }
}
