/* =========================================================
   YAPONSKIY.COM — STRUCTURED BASE
   ========================================================= */


/* =========================================================
   1. ROOT / VARIABLES
   ========================================================= */

:root {
  --bg1: #fdf8f3;
  --bg2: #eef2f7;

  --ink: #111827;
  --muted: #64748b;

  --indigo: #1f3a8a;
  --red: #e11d48;
  --green: #16a34a;

  --card: #ffffffee;

  --radius-lg: 28px;
  --radius-md: 20px;

  --shadow-soft: 0 12px 30px rgba(15,23,42,.08);
  --shadow-hover: 0 18px 40px rgba(15,23,42,.14);

  --ui: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --jp: 'Noto Serif JP', serif;
}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}


/* =========================================================
   3. GLOBAL LAYOUT
   ========================================================= */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--ui);
  color: var(--ink);

  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(225,29,72,.05), transparent 60%),
    radial-gradient(1000px 500px at 80% 90%, rgba(31,58,138,.05), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jp);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(225,29,72,.35);
}

.brand__name {
  font-size: 24px;
  font-weight: 800;
}

.brand__sub {
  font-size: 13px;
  color: var(--muted);
}


/* =========================================================
   5. PANEL
   ========================================================= */

.panel {
  width: 100%;
  max-width: 820px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 50px rgba(15,23,42,.12);
}


/* =========================================================
   6. GRID SYSTEM
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tile {
  aspect-ratio: 1 / 0.85;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
  box-shadow: var(--shadow-soft);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tile a {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   7. TYPOGRAPHY
   ========================================================= */

.kanji {
  font-family: var(--jp);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
}

.title {
  font-size: 17px;
  font-weight: 700;
}

.sub {
  font-size: 13px;
  color: var(--muted);
}

.footer {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}


/* =========================================================
   8. COLOR MODIFIERS
   ========================================================= */

.tile--indigo .kanji { color: var(--indigo); }
.tile--red .kanji { color: var(--red); }
.tile--green .kanji { color: var(--green); }


/* =========================================================
   9. BUTTON
   ========================================================= */

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(225,29,72,.35);
  transition: .2s ease;
}

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


/* =========================================================
   10. RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  .brand__logo {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .brand__name {
    font-size: 20px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

}