:root {
  --bg: #f6f0ea;
  --bg-alt: #efe4da;
  --surface: rgba(255, 252, 249, 0.95);
  --surface-soft: #f3e7dd;
  --text: #5b4d45;
  --text-soft: #7a6a60;
  --heading: #3d2f29;
  --primary: #ba8264;
  --primary-deep: #8c5746;
  --secondary: #dcac9f;
  --accent: #e1cabb;
  --blush: #e7c0bc;
  --cream: #f8f2ec;
  --border: #dbc8bc;
  --line: rgba(120, 96, 82, 0.12);
  --shadow: 0 18px 42px rgba(112, 82, 64, 0.12);
  --shadow-soft: 0 10px 24px rgba(112, 82, 64, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 172, 159, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(225, 202, 187, 0.3), transparent 28%),
    linear-gradient(180deg, #fcf9f6 0%, var(--bg) 100%);
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(252, 249, 246, 0.88);
  border-bottom: 1px solid rgba(145, 116, 96, 0.12);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--heading);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fffdfb;
  box-shadow: var(--shadow-soft);
}

.logo-text {
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--heading);
}

.hero,
.page-hero {
  padding: 78px 0 42px;
}

.page-hero.small {
  padding: 56px 0 14px;
}

.hero-grid,
.goods-layout,
.profile-layout,
.world-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-grid,
.goods-layout,
.world-layout {
  grid-template-columns: 1.08fr 0.92fr;
}

.profile-layout {
  grid-template-columns: 0.92fr 1.08fr;
}

.hero-copy h1,
.page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.16;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.lead {
  font-size: 17px;
  max-width: 640px;
  color: var(--text-soft);
}

.eyebrow,
.section-tag,
.label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary-deep);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fffdfb;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255, 252, 249, 0.9);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #c9ad9a;
}

.section {
  padding: 48px 0 58px;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(239, 228, 218, 0.72), rgba(248, 242, 236, 0.96));
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading.center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  color: var(--heading);
}

.card,
.profile-data div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.soft-bg {
  background: linear-gradient(145deg, rgba(225, 202, 187, 0.68), rgba(248, 242, 236, 0.98));
}

.concept-grid,
.card-grid {
  display: grid;
  gap: 20px;
}

.concept-grid,
.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-card,
.info-card,
.news-item {
  padding: 24px;
}

.concept-card h3,
.info-card h3,
.character-card h3,
.friend-item h3,
.profile-copy h2 {
  color: var(--heading);
}

.character-card {
  overflow: hidden;
}

.card-body {
  padding: 18px 18px 22px;
}

.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: #866f62;
  font-weight: 700;
  border: 2px dashed #d2b9aa;
  background:
    linear-gradient(135deg, rgba(255, 252, 249, 0.98), rgba(243, 231, 221, 0.9));
  border-radius: calc(var(--radius-lg) - 4px);
}

.large-placeholder { min-height: 430px; }
.medium-placeholder { min-height: 300px; }
.chara-placeholder { min-height: 250px; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.profile-placeholder { min-height: 460px; }
.friend-placeholder { width: 180px; min-height: 180px; }

.goods-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.goods-list li {
  padding: 14px 18px;
  background: rgba(255, 252, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.goods-card,
.profile-image-wrap {
  padding: 18px;
}

.news-list,
.friend-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

.news-item time {
  font-weight: 800;
  color: var(--primary-deep);
}

.profile-catch,
.friend-role {
  color: var(--primary-deep);
  font-weight: 800;
}

.profile-data {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.profile-data div {
  padding: 14px 16px;
  background: rgba(255, 250, 246, 0.96);
}

.profile-data dt {
  font-weight: 800;
  color: var(--heading);
}

.profile-data dd {
  margin: 4px 0 0;
}

.friend-item {
  padding: 18px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.site-footer {
  padding: 26px 0 40px;
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-weight: 800;
  color: var(--heading);
}

.footer-text {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .hero-grid,
  .goods-layout,
  .profile-layout,
  .world-layout,
  .concept-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .news-item,
  .friend-item {
    grid-template-columns: 1fr;
  }

  .friend-placeholder {
    width: 100%;
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    background: rgba(255, 252, 249, 0.72);
    border: 1px solid rgba(145, 116, 96, 0.12);
  }

  .hero,
  .page-hero,
  .section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .large-placeholder { min-height: 300px; }
  .profile-placeholder { min-height: 320px; }
}

/* smartphone fine tuning */
@media (max-width: 720px) {
  :root {
    --bg: #f4ede6;
    --surface: rgba(255, 251, 247, 0.98);
    --surface-soft: #efe1d5;
    --primary: #b67d5e;
    --primary-deep: #855240;
    --secondary: #d7a596;
    --accent: #dcc4b4;
    --border: #d3beb1;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(215, 165, 150, 0.28), transparent 34%),
      radial-gradient(circle at top right, rgba(220, 196, 180, 0.34), transparent 30%),
      linear-gradient(180deg, #fcf9f6 0%, #f4ede6 100%);
  }

  .alt-bg {
    background: linear-gradient(180deg, rgba(239, 228, 218, 0.84), rgba(247, 241, 235, 0.98));
  }

  .soft-bg {
    background: linear-gradient(145deg, rgba(225, 202, 187, 0.76), rgba(248, 242, 236, 1));
  }

  .card,
  .profile-data div,
  .goods-list li,
  .btn-secondary,
  .nav a {
    border-color: #ceb8ab;
  }

  .placeholder {
    color: #7f675b;
    border-color: #ccb2a2;
  }
}
