/*
Theme Name: Japan Practical Tourism Guide Home
Theme URI: https://example.com/japan-practical-tourism-guide
Author: Codex
Description: A colorful portal page linking to practical Japan tourism guide contents.
Version: 1.0.0
Requires at least: 6.0
Text Domain: japan-guide-home
*/

:root {
  --ink: #151923;
  --muted: #5f6572;
  --paper: #fffaf2;
  --line: rgba(21, 25, 35, 0.12);
  --pink: #f05a8a;
  --orange: #ff9a3d;
  --cyan: #20b9d4;
  --green: #48b86b;
  --violet: #7758d8;
  --yellow: #ffd34e;
  --shadow: 0 24px 60px rgba(21, 25, 35, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 211, 78, .46), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(32, 185, 212, .30), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(240, 90, 138, .28), transparent 28%),
    linear-gradient(135deg, #fffaf2 0%, #eefaff 48%, #fff4fb 100%);
  font-family: "Avenir Next", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

a { color: inherit; }
.jh-page { min-height: 100vh; overflow: hidden; }
.jh-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 72px) 0 64px;
}
.jh-hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}
.jh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.jh-lang {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(21,25,35,.08);
}
.jh-lang a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.jh-lang a.is-active {
  color: #fff;
  background: var(--ink);
}
.jh-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}
h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 950;
}
.jh-gradient {
  background: linear-gradient(95deg, var(--pink), var(--orange) 34%, var(--cyan) 70%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jh-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
}
.jh-visual {
  position: relative;
  min-height: 520px;
}
.jh-orbit {
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(21, 25, 35, .14);
  border-radius: 42% 58% 52% 48%;
  transform: rotate(-8deg);
}
.jh-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.jh-tile svg { width: 86px; height: 86px; }
.jh-tile--train { top: 34px; left: 16px; transform: rotate(-8deg); }
.jh-tile--food { top: 164px; right: 8px; transform: rotate(7deg); }
.jh-tile--tokyo { bottom: 30px; left: 86px; transform: rotate(5deg); }
.jh-center-badge {
  position: absolute;
  top: 214px;
  left: 128px;
  width: 210px;
  min-height: 132px;
  padding: 22px;
  border-radius: 30px;
  background: #151923;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.18;
}
.jh-section-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 950;
}
.jh-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.jh-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.jh-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -38% -20%;
  height: 150px;
  background: rgba(255,255,255,.20);
  transform: rotate(-8deg);
  z-index: -1;
}
.jh-card--train { background: linear-gradient(135deg, #1b78d1, #20b9d4); }
.jh-card--food { background: linear-gradient(135deg, #f05a8a, #ff9a3d); }
.jh-card--tokyo { background: linear-gradient(135deg, #6b54d8, #48b86b); }
.jh-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.jh-card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,.22);
}
.jh-card-icon svg { width: 44px; height: 44px; }
.jh-card-label {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.jh-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 950;
}
.jh-card p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  font-weight: 700;
}
.jh-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 950;
}
.jh-arrow span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
}
.jh-card:hover { transform: translateY(-4px); transition: transform .18s ease; }
.jh-legal {
  margin: 28px 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}
.jh-legal a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.jh-legal a:hover { color: var(--ink); }

@media (max-width: 920px) {
  .jh-hero { grid-template-columns: 1fr; min-height: auto; }
  .jh-visual { min-height: 420px; }
  .jh-links { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .jh-main { width: min(100% - 28px, 1180px); }
  h1 { font-size: 46px; }
  .jh-visual { min-height: 360px; }
  .jh-tile { width: 126px; height: 126px; border-radius: 22px; }
  .jh-tile svg { width: 66px; height: 66px; }
  .jh-center-badge { top: 154px; left: 74px; width: 178px; min-height: 112px; font-size: 20px; }
}
