@import url("./akari-chat.css");

:root {
  --ink: #3a2417;
  --muted: #7a6657;
  --orange: #f47a10;
  --orange-dark: #c95f00;
  --paper: #fff6e9;
  --surface: #fffdf8;
  --soft: #fff0de;
  --line: #efcda9;
  --shadow: 0 10px 26px rgba(125, 73, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 174, 72, 0.28), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  font-family: "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

a,
button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-header {
  display: block;
  padding: 14px 16px 10px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-star {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.18;
}

.brand strong {
  font-size: 1.02rem;
  font-weight: 900;
}

.brand strong span {
  color: var(--orange);
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

main {
  width: calc(100% - 24px);
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 0 28px;
}

.search-box {
  display: block;
}

#siteSearch {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

#siteSearch:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244, 122, 16, 0.12);
}

.chip-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
}

.chip-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.chip-nav a:first-child {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.hero,
.start-panel,
.akari-note,
.panel,
.game-strip a {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 183, 80, 0.32), transparent 24%),
    linear-gradient(135deg, #fffef9 0%, #fff0dc 100%);
}

.hero::after {
  content: "★";
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(244, 122, 16, 0.22);
  font-size: 4rem;
  line-height: 1;
  transform: rotate(14deg);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  font-size: clamp(2rem, 9vw, 2.45rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span {
  color: var(--orange);
}

.lead {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  word-break: break-all;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff8a16, #ef6900);
}

.button-light {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.start-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
}

.start-panel h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.start-grid {
  display: grid;
  gap: 8px;
}

.start-grid a,
.start-grid button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #f3d5b7;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff8ef, #fff);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.start-grid a::after,
.start-grid button::after {
  content: "›";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
}

.start-grid strong,
.start-grid span {
  display: block;
}

.start-grid strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 1rem;
  font-weight: 900;
}

.start-grid span {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.akari-note {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  padding: 18px;
  border-radius: 20px;
  align-items: center;
}

.akari-bust {
  width: 82px;
  height: 110px;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  align-self: end;
  filter: drop-shadow(0 10px 16px rgba(125, 73, 23, 0.18));
}

.akari-note h2 {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 1rem;
}

.akari-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  word-break: break-all;
}

.game-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.game-strip a {
  min-height: 72px;
  padding: 14px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.game-strip strong,
.game-strip span {
  display: block;
}

.game-strip strong {
  font-size: 1rem;
  font-weight: 900;
}

.game-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-title h2 {
  margin: 0;
  font-size: 1.08rem;
}

.panel-title span,
.panel-more {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.panel-more {
  text-decoration: none;
}

.news-list,
.button-list,
.db-list {
  display: grid;
  gap: 14px;
}

.db-group {
  display: grid;
  gap: 8px;
}

.db-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.db-group-title h3 {
  margin: 0;
  font-size: 1rem;
}

.db-group-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.db-subgrid {
  display: grid;
  gap: 8px;
}

.news-item,
.rank-list button,
.rank-list a,
.button-list button,
.button-list a,
.db-card {
  width: 100%;
  border: 1px solid #f3d5b7;
  border-radius: 10px;
  background: #fff8ef;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  text-decoration: none;
}

.news-item b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
}

.news-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item time {
  color: var(--muted);
  font-size: 0.76rem;
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.rank-list li::before {
  content: counter(rank);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.rank-list button,
.rank-list a,
.button-list button,
.button-list a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.support-list {
  display: grid;
  gap: 8px;
}

.support-list a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #f3d5b7;
  border-radius: 12px;
  background: #fff8ef;
  color: var(--ink);
  text-decoration: none;
}

.support-list strong {
  color: var(--orange-dark);
  font-size: 1.05rem;
}

.support-list span {
  font-weight: 900;
}

.db-card {
  min-height: 132px;
  padding: 14px;
}

.db-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.db-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
}

.db-status {
  color: var(--muted);
  font-size: 0.76rem;
}

.db-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.28;
}

.db-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 900;
}

.db-open {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.mobile-footer {
  display: grid;
  gap: 4px;
  padding: 20px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-footer a {
  color: var(--orange-dark);
  text-decoration: none;
}

@media (max-width: 360px) {
  main {
    width: calc(100% - 18px);
  }

  .brand strong {
    font-size: 0.94rem;
  }

  h1 {
    font-size: 1.86rem;
  }

  .support-list a {
    grid-template-columns: 1fr;
  }

  .akari-note {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .akari-bust {
    width: 70px;
  }
}

/* M1_POLICY_FOOTER */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-links a {
  color: var(--orange-dark);
  text-decoration: none;
  font-weight: 900;
}
