@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #07100a;
  --bg-card: #111d14;
  --bg-soft: #18291c;
  --text: #f4f8f3;
  --text-soft: #9baa9e;
  --primary: #9acb7f;
  --primary-dark: #78ad61;
  --secondary: #80ff48;
  --accent: #80ff48;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: none;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.28);
  --radius: 0;
  --radius-lg: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body.ai-portal-page,
body.ai-game-page {
  margin: 0;
  padding-top: 78px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--primary); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

header.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 68px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 10, 0.88);
  backdrop-filter: blur(18px);
}
.head-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo.yamamu-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  gap: 10px;
  color: var(--text);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: .82;
}
.logo .brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  background: var(--primary);
  color: var(--bg);
  font-size: 25px;
}
.logo .brand-copy { display: grid; }
.logo .brand-copy small {
  display: block;
  margin-top: 7px;
  color: var(--secondary);
  font-size: 8px;
  letter-spacing: .27em;
}
nav.head-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 46px);
  flex-wrap: nowrap;
}
nav.head-nav a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  transition: color .18s;
}
nav.head-nav a:hover,
nav.head-nav a[aria-current="page"] { color: var(--secondary); transform: none; box-shadow: none; }
.header-youtube {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.header-youtube::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(154, 203, 127, .11);
}

/* AI game portal */
body.ai-portal-page .hero {
  position: relative;
  min-height: 720px;
  padding: 105px clamp(24px, 7vw, 120px) 90px;
  overflow: hidden;
  background: var(--bg);
  text-align: left;
}
body.ai-portal-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(154, 203, 127, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 203, 127, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(#000, transparent 96%);
}
body.ai-portal-page .hero::after {
  content: "";
  position: absolute;
  top: 58px;
  right: clamp(-190px, -7vw, -60px);
  width: min(58vw, 820px);
  aspect-ratio: 1.91;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7,16,10,.24) 38%, rgba(7,16,10,.12)),
    linear-gradient(0deg, var(--bg) 0%, transparent 44%),
    url("assets/ogp-portal.png") center / cover;
  opacity: .76;
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%, 0 18%);
}
body.ai-portal-page .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  margin-bottom: 25px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .28em;
}
body.ai-portal-page .hero h1 {
  max-width: 1050px;
  margin: 0 0 34px;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}
body.ai-portal-page .hero h1 .title-line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
body.ai-portal-page .hero h1 .hl {
  padding: 0;
  background: none;
  color: var(--text);
  box-decoration-break: initial;
}
body.ai-portal-page .hero h1 .mobile-break { display: inline; }
body.ai-portal-page .hero h1 .pop {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--secondary);
  text-shadow: 0 0 42px rgba(128, 255, 72, .13);
}
.hero-sub {
  max-width: 650px;
  margin: 0 0 36px;
  color: #c5cec7;
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
}
.hero-stats {
  width: min(100%, 760px);
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 0;
  background: none;
}
.hero-stats .stat {
  min-width: 0;
  padding: 10px 18px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.hero-stats .num {
  color: var(--text);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 31px;
  line-height: 1;
}
.hero-stats .label {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}
.hero-cta,
.game-cta,
.fs-btn,
.game-btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 210px;
  padding: 17px 20px;
  border: 1px solid var(--primary);
  border-radius: 0;
  background: var(--primary);
  color: var(--bg);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  box-shadow: none;
  transition: transform .18s, background .18s;
}
.hero-cta:hover,
.fs-btn:hover { transform: translateY(-3px); background: #b8dda4; }

.why {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 7vw, 120px);
  background: linear-gradient(135deg, #18291c, #101b13);
  border-block: 1px solid var(--line);
}
.why-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.why-card {
  min-height: 250px;
  padding: 42px 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.why-card:last-child { border-right: 1px solid var(--line); }
.why-card .ico { display: block; margin-bottom: 45px; color: var(--secondary); font-size: 22px; }
.why-card h3 { margin: 0 0 10px; font-size: 21px; }
.why-card p { margin: 0; color: #c3cdc5; font-size: 12px; line-height: 1.9; }

.games {
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px clamp(24px, 6vw, 88px) 130px;
}
.section-head { margin-bottom: 48px; text-align: left; }
.section-head h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}
.section-head h2 .emoji { display: none; }
.section-head p { color: var(--text-soft); font-size: 13px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 18px;
}
.game-card {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .22s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: none; }
.game-thumb {
  position: relative;
  aspect-ratio: 1.91;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 94% 100%, 0 100%);
}
.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(7, 16, 10, .75));
}
.game-no,
.badge {
  z-index: 2;
  top: 12px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: rgba(7, 16, 10, .78);
  color: var(--secondary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.game-thumb .game-no {
  left: auto;
  right: 12px;
  width: max-content;
  max-width: calc(100% - 78px);
  min-width: 0;
  white-space: nowrap;
}
.game-thumb .badge {
  left: 12px;
  right: auto;
  width: auto;
  max-width: calc(100% - 78px);
  min-width: 0;
  white-space: nowrap;
}
.badge.new { background: var(--primary); color: var(--bg); }
.game-body { padding: 17px 4px 0; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.game-tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
}
.game-tag.log { color: var(--text-soft); background: transparent; }
.game-title { margin: 0 0 9px; color: var(--text); font-size: 21px; line-height: 1.45; }
.game-desc {
  display: -webkit-box;
  min-height: 5.7em;
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.9;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.game-card .game-cta {
  min-width: 0;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 10px;
}
.game-card:hover .game-cta { color: var(--secondary); }

.devlog {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px clamp(24px, 6vw, 88px) 115px;
}
.devlog-grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.devlog-card {
  position: relative;
  min-height: 310px;
  padding: 29px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
  transition: transform .2s, border-color .2s;
}
.devlog-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: none; }
.devlog-price,
.devlog-price.free {
  position: absolute;
  top: 0;
  right: 20px;
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: var(--bg);
  font-size: 9px;
  font-weight: 900;
}
.devlog-no {
  align-self: flex-start;
  margin-bottom: 55px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}
.devlog-card h3 { margin: 0 0 12px; color: var(--text); font-size: 20px; line-height: 1.5; }
.devlog-card p { flex: 1; margin: 0 0 20px; color: var(--text-soft); font-size: 11px; line-height: 1.9; }
.devlog-cta {
  align-self: flex-start;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
}
.devlog-card:hover .devlog-cta { background: none; color: var(--secondary); }
.devlog-foot { color: var(--text-soft); font-size: 10px; }

.about {
  position: relative;
  z-index: 1;
  padding: 92px clamp(24px, 7vw, 120px);
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, #18291c, #101b13);
}
.about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(35px, 7vw, 100px);
  align-items: center;
}
.about-text h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -.05em;
  line-height: 1.1;
}
.about-text p { margin: 0 0 16px; color: #c9d2cb; font-size: 13px; line-height: 2; }
.about-text b { color: var(--text); }
.youtube-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}
.youtube-embed { background: linear-gradient(135deg, #233827, #0d1c11) !important; }
.youtube-meta { padding: 18px; background: var(--bg-card); color: var(--text); }
.youtube-meta small { color: var(--text-soft); }
.youtube-meta a {
  padding: 8px 13px;
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: var(--bg);
  font-size: 10px;
}

/* Shared play pages */
.breadcrumb {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 30px;
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: .05em;
}
.breadcrumb a { color: var(--primary); border: 0; }
.game-hero { max-width: 1180px; margin: 22px auto 34px; padding: 0 30px; }
.hero-card {
  min-height: 350px;
  padding: clamp(28px, 5vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background-position: center;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 96% 100%, 0 100%);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(7,16,10,.9) 0%, rgba(7,16,10,.2) 72%);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 2; }
.game-meta-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.meta-tag,
.meta-tag.pink {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 0;
  background: rgba(7,16,10,.72);
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}
.meta-tag.pink { border-color: var(--primary); color: var(--secondary); }
.game-hero h1 {
  max-width: 920px;
  margin: 0 0 13px;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}
.game-hero .sub { max-width: 850px; margin: 0; color: #d4dcd6; font-size: 13px; line-height: 1.9; }

.ad-slot { max-width: 1120px; margin: 30px auto; padding: 0 30px; }
.ad-label { color: var(--text-soft); font-size: 8px; letter-spacing: .22em; }
.ad-box {
  min-height: 90px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.02);
}
.game-section { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
.game-frame-wrap {
  max-width: 820px;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(154, 203, 127, .45);
  border-radius: 0;
  background: #020604;
  box-shadow: 0 32px 100px rgba(0,0,0,.38);
}
.game-frame-wrap.pseudo-fs { border: 0; }
.fs-btn { margin: 18px auto 0; cursor: pointer; }
.play-hint { max-width: 850px; margin: 14px auto 0; color: var(--text-soft); font-size: 11px; line-height: 1.8; }
.game-toolbar { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.game-btn {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

section.content-section {
  max-width: 1120px;
  margin: 78px auto 0;
  padding: 48px 30px 0;
  border-top: 1px solid var(--line);
}
section.content-section h2 {
  margin: 0 0 25px;
  color: var(--text);
  font-size: clamp(27px, 4vw, 43px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.25;
}
section.content-section h2 .ico {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--secondary);
  font-size: 17px;
}
section.content-section h3 { color: var(--text); }
section.content-section p,
section.content-section li { color: #c9d2cb; font-size: 13px; line-height: 2; }
section.content-section b { color: var(--text); }
.info-grid { gap: 12px; }
.info-item,
.ai-tool,
.faq details,
.dev-video,
.related-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
}
.info-item { padding: 19px; }
.info-item b,
.ai-tool .role,
.related-body .desc,
.faq p { color: var(--text-soft); }
.ai-tool { padding: 18px; }
.ai-tool .icon { border-radius: 0; background: var(--bg-soft); }
.ai-tool .visit {
  border-radius: 0;
  background: var(--primary);
  color: var(--bg);
}
.faq { gap: 8px; }
.faq details { padding: 17px 19px; }
.faq summary { color: var(--text); }
.dev-video-embed { background: linear-gradient(135deg, var(--bg-soft), #223d29); }
.dev-video-meta a {
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: var(--bg);
}
.tip-jar {
  padding: 44px 28px;
  border: 1px solid rgba(154,203,127,.38);
  border-radius: 0;
  background: linear-gradient(135deg, #233827, #18291c);
  color: var(--text);
  box-shadow: none;
}
.tip-jar p { color: #d6ded8 !important; }
.tip-btn {
  border-radius: 0;
  background: var(--primary);
  color: var(--bg);
  box-shadow: none;
}
.related-grid { gap: 13px; }
.related-card { overflow: hidden; }
.related-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: none; }
.related-thumb { border-bottom: 1px solid var(--line); }
.related-body { padding: 16px; }

footer.site-foot {
  margin-top: 100px;
  padding: 52px clamp(24px, 6vw, 88px) 34px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #08110b;
}
.foot-inner { max-width: 1440px; }
.foot-links { gap: 20px; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.foot-links a { color: var(--text-soft); border: 0; }
.foot-links a:hover { color: var(--secondary); }
.foot-copy { color: var(--text-soft); font-size: 9px; letter-spacing: .08em; }

@media (max-width: 1000px) {
  body.ai-portal-page .hero::after { width: 74vw; top: 80px; opacity: .46; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devlog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.ai-portal-page,
  body.ai-game-page { padding-top: 66px; }
  header.site-head { height: 66px; padding: 0 18px; }
  .head-inner { grid-template-columns: 1fr auto; }
  nav.head-nav { display: none; }
  .logo.yamamu-logo { font-size: 14px; }
  .logo .brand-mark { width: 32px; height: 32px; font-size: 20px; }
  .header-youtube { font-size: 9px; }
  body.ai-portal-page .hero { min-height: 760px; padding: 58px 20px 70px; }
  body.ai-portal-page .hero::after { top: 38px; right: -44%; width: 145vw; opacity: .35; }
  body.ai-portal-page .hero h1 {
    margin-top: 245px;
    font-size: clamp(34px, 9vw, 38px);
    line-height: 1.12;
    letter-spacing: -.07em;
  }
  body.ai-portal-page .hero h1 .title-line { width: auto; white-space: nowrap; }
  body.ai-portal-page .hero h1 .mobile-break { display: block; }
  .hero-sub br { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-stats .stat { padding-left: 13px; }
  .hero-stats .num { font-size: 25px; }
  .hero-cta { width: 100%; }
  .why { padding: 0 20px; }
  .why-inner { grid-template-columns: 1fr; }
  .why-card,
  .why-card:last-child { min-height: 0; padding: 31px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .why-card .ico { margin-bottom: 20px; }
  .games { padding: 85px 20px 100px; }
  .game-grid { grid-template-columns: 1fr; gap: 38px; }
  .game-title { font-size: 17px; text-wrap: balance; }
  .game-desc { min-height: 0; }
  .devlog { padding: 10px 20px 85px; }
  .devlog-card { min-height: 270px; padding: 24px; }
  .about { padding: 72px 20px; }
  .about-inner { grid-template-columns: 1fr; }
  .breadcrumb { margin-top: 18px; padding: 0 20px; }
  .game-hero { margin-top: 18px; padding: 0 20px; }
  .hero-card {
    min-height: 280px;
    padding: 20px 18px 30px;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 0 100%);
  }
  .hero-card::before { background: linear-gradient(0deg, rgba(7,16,10,.94) 0%, rgba(7,16,10,.18) 82%); }
  .game-meta-tags { gap: 5px; margin-bottom: 10px; }
  .meta-tag,
  .meta-tag.pink { padding: 4px 6px; font-size: 7px; }
  .game-hero h1 { margin-bottom: 0; font-size: clamp(25px, 7.5vw, 32px); line-height: 1.18; }
  .game-hero .sub { display: none; }
  .ad-slot,
  .game-section { padding-inline: 20px; }
  .game-frame-wrap { height: 36svh; min-height: 300px; max-height: 340px; aspect-ratio: auto; }
  .fs-btn { width: 100%; }
  .game-toolbar { display: grid; }
  section.content-section { margin-top: 60px; padding: 38px 20px 0; }
  .ai-tool { align-items: flex-start; flex-wrap: wrap; }
  .ai-tool .visit { width: 100%; text-align: center; }
  footer.site-foot { margin-top: 80px; padding: 42px 20px 28px; }
  .foot-inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
