:root {
  color-scheme: light;
  --navy: #123a5d;
  --navy-deep: #062f50;
  --gold: #b99535;
  --gold-dark: #a77f25;
  --paper: #fffdf8;
  --green: #5ab176;
  --blue: #4f9cdc;
  --shadow: 0 6px 18px rgba(35, 45, 54, 0.12);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f2f0e8;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(8, 43, 71, 0.08), transparent 18%, transparent 82%, rgba(8, 43, 71, 0.08)),
    #f2f0e8;
  color: var(--navy);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid rgba(79, 156, 220, 0.42);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scale-frame {
  width: 744px;
  margin: 0 auto;
}

.app {
  position: relative;
  width: 744px;
  transform-origin: top left;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 35%, rgba(185, 149, 53, 0.05), transparent 22rem),
    linear-gradient(180deg, #fff 0 25%, var(--paper) 25% 100%);
  box-shadow: 0 0 36px rgba(15, 36, 56, 0.14);
}

.site-header {
  display: grid;
  grid-template-columns: 96px 1fr 200px;
  align-items: center;
  height: 79px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(5, 35, 62, 0.08);
  position: relative;
  z-index: 3;
}

.home-header {
  grid-template-columns: 96px 1fr 96px;
}

.home-header .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-button {
  display: grid;
  gap: 9px;
  width: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand svg {
  width: 62px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-castle-img {
  display: block;
  width: 58px;
  height: auto;
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #c9aa58);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 437px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.46) 68%, rgba(255, 255, 255, 0) 84%),
    linear-gradient(180deg, #dff1ff 0%, #fff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 88%, rgba(255, 255, 255, 0.95), transparent 18rem),
    linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, 0.85));
  pointer-events: none;
}

.hero-castle {
  position: absolute;
  inset: 0 0 0 auto;
  width: 370px;
  background: url("./assets/hero-castle.png") right top / 399px 437px no-repeat;
}

.hero-text {
  position: relative;
  z-index: 1;
  width: 55%;
  padding: 40px 0 0 37px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  margin: 2px auto 24px;
  color: #10131b;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.48;
  text-align: center;
  transform: translateX(-34px);
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(52deg, transparent 45%, var(--gold) 47% 54%, transparent 56%),
    linear-gradient(20deg, transparent 45%, var(--gold) 47% 54%, transparent 56%);
  opacity: 0.78;
}

.hero-kicker::before {
  transform: scaleX(-1);
}

.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin: 0 15px;
  background:
    linear-gradient(52deg, transparent 45%, var(--gold) 47% 54%, transparent 56%),
    linear-gradient(20deg, transparent 45%, var(--gold) 47% 54%, transparent 56%);
  opacity: 0.78;
  vertical-align: middle;
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 51px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero h1 span,
.final-card h2 span {
  color: var(--gold);
}

.hero-copy {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  color: var(--navy);
}

.primary-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: calc(100% - 66px);
  min-height: 73px;
  margin: 0 auto 30px;
  border-radius: 999px;
  background: linear-gradient(100deg, #bd9939, #caaa55 52%, #b89230);
  color: #fff;
  box-shadow: 0 8px 17px rgba(107, 83, 26, 0.2);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-cta svg {
  width: 47px;
  height: 39px;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-castle-img {
  display: block;
  width: 46px;
  height: auto;
}

.primary-cta strong {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.section {
  padding: 0 36px;
}

.section-title {
  margin: 0 0 20px;
  text-align: center;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.feature-card {
  display: grid;
  grid-template-columns: 99px 1fr;
  align-items: center;
  min-height: 159px;
  padding: 18px 18px 18px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 93px;
  height: 93px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(18, 58, 93, 0.05), 0 5px 14px rgba(42, 53, 60, 0.1);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 900;
}

.icon-circle svg {
  width: 66px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon-img {
  display: block;
  object-fit: contain;
}

.castle-feature-icon {
  width: 70px;
  height: 58px;
}

.map-feature-icon {
  width: 70px;
  height: 62px;
}

.level-feature-icon {
  width: 70px;
  height: 65px;
}

.japan-mark {
  color: var(--gold);
  font-size: 23px;
  transform: rotate(-13deg);
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.85;
}

.categories {
  padding-top: 44px;
}

.category-list {
  display: grid;
  gap: 12px;
}

.category-row {
  position: relative;
  display: grid;
  grid-template-columns: 55px 1fr 95px 95px 95px 30px;
  align-items: center;
  min-height: 65px;
  padding: 0 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--navy);
}

.category-row.category-coming-soon {
  background: rgba(247, 247, 244, 0.98);
  color: #7b8790;
}

.category-row.category-coming-soon svg,
.category-row.category-coming-soon .category-row-castle-img,
.category-row.category-coming-soon .category-name,
.category-row.category-coming-soon strong {
  opacity: 0.62;
}

.category-row svg {
  width: 42px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-row-castle-img {
  display: block;
  width: 43px;
  height: auto;
  justify-self: center;
  transform: translateX(-6px);
}

.category-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
}

.level {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 34px;
  border-radius: 999px;
  justify-self: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  touch-action: manipulation;
}

.level.is-locked {
  position: relative;
}

.level.is-locked::before {
  content: "";
  position: absolute;
  right: -9px;
  top: -14px;
  z-index: 1;
  width: 30px;
  height: 30px;
  background: url("./assets/rock.png") center / 92px 69px no-repeat;
  mix-blend-mode: multiply;
}

.level.is-locked::after {
  content: none;
}

.level-link {
  transition: transform 0.16s ease, filter 0.16s ease;
}

.level-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.beginner {
  background: var(--green);
}

.intermediate {
  background: var(--blue);
}

.advanced {
  background: var(--gold);
}

.level.is-locked {
  background: linear-gradient(180deg, #aeb7bf, #8f9aa3);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.category-coming-soon .level {
  background: linear-gradient(180deg, #c6ced4, #a4afb8);
  color: rgba(255, 255, 255, 0.72);
}

.category-soon-badge {
  position: absolute;
  right: 56px;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 160px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(18, 58, 93, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(24, 45, 58, 0.2);
}

.category-row strong {
  color: #6c7277;
  font-size: 39px;
  font-weight: 300;
}

.popular {
  padding-top: 39px;
  padding-bottom: 31px;
}

.popular-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 0 5px;
  scroll-snap-type: x mandatory;
}

.popular-scroller::-webkit-scrollbar {
  display: none;
}

.castle-card {
  position: relative;
  flex: 0 0 190px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--navy);
  text-align: center;
  scroll-snap-align: start;
}

.castle-card.is-coming-soon::before {
  content: "";
  position: absolute;
  inset: 0 0 44px;
  z-index: 1;
  background: rgba(6, 31, 50, 0.46);
}

.castle-card.is-coming-soon::after {
  content: "COMING SOON";
  position: absolute;
  left: 50%;
  top: 71px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 142px;
  height: 34px;
  padding: 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(5, 31, 52, 0.2);
}

.castle-card img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.castle-card span {
  display: grid;
  place-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
}

.final-card {
  position: relative;
  min-height: 188px;
  margin: 0 34px 18px;
  padding: 29px 24px 21px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.final-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 235px;
  height: 150px;
  opacity: 0.28;
  background:
    linear-gradient(transparent 72%, var(--gold) 73% 76%, transparent 77%),
    url("./assets/hero-castle.png") right center / cover no-repeat;
  filter: sepia(1) saturate(0.8);
}

.final-card > div {
  position: relative;
  z-index: 1;
}

.final-card h2 {
  margin: 0 0 26px 35px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.65;
}

.primary-cta.compact {
  min-height: 57px;
  width: 100%;
  margin: 0;
  gap: 28px;
  font-size: 22px;
}

.primary-cta.compact strong {
  font-size: 40px;
}

.bottom-nav {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 128px;
  padding: 19px 18px 15px;
  background: linear-gradient(110deg, #052c4d, #08385f 48%, #062c4d);
  box-shadow: 0 -7px 19px rgba(4, 35, 62, 0.15);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  font-weight: 900;
}

.bottom-nav a[aria-current="page"] {
  color: #fff;
}

.bottom-nav svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-castle-img {
  display: block;
  width: 40px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.bottom-nav a[aria-current="page"] .nav-castle-img {
  opacity: 1;
}

.category-app {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 17%, rgba(185, 149, 53, 0.06), transparent 15rem),
    linear-gradient(180deg, #fff 0, var(--paper) 100%);
}

.category-page-content {
  flex: 1;
  padding: 36px 27px 58px;
}

.category-page-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.category-page-title::before,
.category-page-title::after {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  margin: 0 17px;
  background:
    linear-gradient(52deg, transparent 45%, var(--gold) 47% 54%, transparent 56%),
    linear-gradient(20deg, transparent 45%, var(--gold) 47% 54%, transparent 56%);
  opacity: 0.8;
  vertical-align: middle;
}

.category-page-lead {
  margin: 0 0 27px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.category-card-list {
  display: grid;
  gap: 18px;
}

.category-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  min-height: 188px;
  padding: 24px 24px 22px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--navy);
}

.category-detail-card.category-coming-soon {
  background: rgba(247, 247, 244, 0.98);
  color: #7b8790;
}

.category-detail-card.category-coming-soon .category-card-icon,
.category-detail-card.category-coming-soon .category-card-main {
  opacity: 0.64;
}

.category-card-icon {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #eaf4ff;
  color: var(--navy);
}

.category-card-icon svg {
  width: 76px;
  height: 65px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.castle-image-icon img {
  display: block;
  width: 76px;
  height: auto;
}

.category-card-main h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 900;
}

.category-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 9px;
}

.category-card-title-row h2 {
  margin: 0;
}

.category-detail-card.category-coming-soon .category-card-main h2 {
  color: #697782;
}

.category-card-main p {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.category-detail-card.category-coming-soon .category-card-main p {
  color: #697782;
}

.category-card-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  width: 100%;
}

.category-card-levels .level {
  width: 100%;
  min-height: 88px;
  padding: 0 12px;
  font-size: 24px;
  justify-self: stretch;
}

.category-card-levels .level.is-locked::before {
  right: -12px;
  top: -18px;
  width: 42px;
  height: 42px;
}

.category-detail-card .category-soon-badge {
  position: static;
  justify-self: end;
  min-width: 198px;
  height: 46px;
  border-width: 3px;
  background: linear-gradient(100deg, #063a66, #074a7f);
  font-size: 17px;
  transform: none;
  box-shadow: 0 5px 13px rgba(5, 31, 52, 0.2);
}

.ranking-app {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 16%, rgba(79, 156, 220, 0.07), transparent 16rem),
    linear-gradient(180deg, #fff 0, var(--paper) 100%);
}

.ranking-content {
  position: relative;
  flex: 1;
  padding: 65px 31px 44px;
}

.ranking-content.is-under-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.ranking-content.is-under-construction::after {
  content: "準備中";
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 310px;
  min-height: 94px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(6, 58, 102, 0.92);
  color: #fff;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 26px rgba(5, 31, 52, 0.24);
  pointer-events: none;
}

.ranking-content h1 {
  margin: 0 0 26px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 900;
  text-align: center;
}

.ranking-unavailable {
  margin: -10px 10px 28px;
  padding: 13px 18px;
  border-radius: 8px;
  background: rgba(185, 149, 53, 0.12);
  color: var(--gold-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.65;
  text-align: center;
}

.ranking-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 39px;
  overflow: hidden;
  border: 3px solid rgba(18, 58, 93, 0.28);
  border-radius: 8px;
  background: #fff;
}

.ranking-tabs span {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.ranking-tabs .is-active {
  background: linear-gradient(100deg, #063a66, #064a81);
  color: #fff;
}

.ranking-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item {
  display: grid;
  grid-template-columns: 66px 82px 1fr 158px;
  align-items: center;
  min-height: 83px;
  color: var(--navy);
}

.ranking-item.top-rank {
  min-height: 118px;
}

.rank-mark {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  border: 3px solid rgba(18, 58, 93, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.top-rank .rank-mark {
  width: 55px;
  height: 55px;
  border: 0;
  font-size: 29px;
}

.rank-gold .rank-mark {
  background: rgba(185, 149, 53, 0.16);
  color: var(--gold-dark);
}

.rank-silver .rank-mark {
  background: rgba(111, 145, 175, 0.16);
  color: #6f91af;
}

.rank-bronze .rank-mark {
  background: rgba(187, 128, 89, 0.16);
  color: #b77954;
}

.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eef1f3;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.82);
}

.avatar.small {
  width: 45px;
  height: 45px;
  font-size: 18px;
}

.player {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.player b {
  overflow: hidden;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player small {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.ranking-item strong {
  justify-self: end;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  white-space: nowrap;
}

.ranking-item strong span {
  margin-left: 2px;
  font-size: 18px;
}

.ranking-more {
  display: grid;
  place-items: center;
  width: 420px;
  min-height: 73px;
  margin: 40px auto 50px;
  border: 3px solid rgba(18, 58, 93, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
}

.ranking-more:disabled {
  opacity: 0.72;
}

.ranking-my-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 132px;
  padding: 25px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.ranking-my-card div {
  display: grid;
  place-items: center;
  gap: 11px;
  color: var(--navy);
}

.ranking-my-card div + div {
  border-left: 2px solid rgba(18, 58, 93, 0.1);
}

.ranking-my-card span {
  font-size: 17px;
  font-weight: 900;
}

.ranking-my-card strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
}

.titles-app {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 13%, rgba(90, 177, 118, 0.07), transparent 15rem),
    linear-gradient(180deg, #fff 0, var(--paper) 100%);
}

.titles-content {
  position: relative;
  flex: 1;
  padding: 31px 22px 40px;
}

.titles-content.is-under-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.titles-content.is-under-construction::after {
  content: "準備中";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 310px;
  min-height: 94px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(6, 58, 102, 0.92);
  color: #fff;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 26px rgba(5, 31, 52, 0.24);
  pointer-events: none;
}

.titles-content h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 900;
  text-align: center;
}

.titles-unavailable {
  margin: 0 8px 17px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(185, 149, 53, 0.12);
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
}

.title-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}

.title-tabs span {
  display: grid;
  place-items: center;
  min-height: 43px;
  border: 2px solid rgba(18, 58, 93, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.title-tabs .is-active {
  background: linear-gradient(100deg, #063a66, #064a81);
  color: #fff;
}

.title-list {
  display: grid;
  gap: 10px;
}

.title-card {
  position: relative;
  display: grid;
  grid-template-columns: 89px 1fr 82px;
  align-items: center;
  min-height: 103px;
  padding: 15px 14px 15px 17px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--navy);
}

.title-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #78828c;
}

.title-icon img {
  width: 55px;
  height: auto;
}

.title-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title-green .title-icon {
  color: var(--green);
}

.title-blue .title-icon {
  color: var(--navy);
}

.title-red .title-icon {
  color: #d9825e;
}

.title-card h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
}

.title-card p {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.title-card small {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.title-card b {
  justify-self: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.title-card strong {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 70px;
  height: 70px;
  border: 3px dashed var(--gold);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 16px;
  font-weight: 900;
  transform: rotate(-18deg);
}

.review-content {
  position: relative;
  flex: 1;
  padding: 31px 22px 40px;
}

.review-content.is-under-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.review-content.is-under-construction::after {
  content: "準備中";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 310px;
  min-height: 94px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(6, 58, 102, 0.92);
  color: #fff;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 26px rgba(5, 31, 52, 0.24);
  pointer-events: none;
}

.review-content h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 900;
  text-align: center;
}

.review-tabs {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr 1fr;
  gap: 13px;
  margin-bottom: 17px;
}

.review-tabs span {
  display: grid;
  place-items: center;
  min-height: 43px;
  border: 2px solid rgba(18, 58, 93, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.review-tabs .is-active {
  background: linear-gradient(100deg, #063a66, #064a81);
  color: #fff;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  min-height: 118px;
  padding: 18px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--navy);
}

.review-card-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}

.tag {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tag.navy {
  background: var(--navy);
  color: #fff;
}

.tag.green {
  background: var(--green);
  color: #fff;
}

.tag.pale {
  background: rgba(18, 58, 93, 0.08);
  color: var(--navy);
}

.review-card h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
}

.review-card p,
.review-card small {
  display: block;
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.quiz-app {
  display: flex;
  flex-direction: column;
  min-height: 1200px;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 86% 14%, rgba(185, 149, 53, 0.1), transparent 16rem),
    linear-gradient(180deg, #fff 0, var(--paper) 100%);
}

.quiz-site-header {
  grid-template-columns: 96px 1fr 200px;
}

.back-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--navy);
  font-size: 43px;
  font-weight: 300;
  line-height: 1;
}

.header-badge {
  display: grid;
  place-items: center;
  justify-self: end;
  min-width: 150px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(185, 149, 53, 0.12);
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
}

.quiz-stage {
  flex: 1;
  padding: 33px 36px 38px;
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
}

.progress-track {
  height: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 58, 93, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.2s ease;
}

.question-panel,
.feedback-panel,
.result-panel {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.question-panel {
  padding: 32px;
}

.photo-question-figure {
  overflow: hidden;
  width: calc((100% - 18px) / 2);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0 auto 28px;
  border-radius: 12px;
  background: rgba(18, 58, 93, 0.08);
  box-shadow: 0 6px 16px rgba(24, 45, 58, 0.1);
}

.photo-question-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-quiz-app .question-panel h2 {
  margin-bottom: 24px;
  font-size: 39px;
}

.photo-quiz-app .answer-button {
  min-height: 82px;
}

.photo-quiz-app .answer-list.image-choice-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.photo-quiz-app .image-choice-button {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  outline: 4px solid rgba(18, 58, 93, 0.1);
  outline-offset: 0;
  background: rgba(18, 58, 93, 0.06);
}

.photo-quiz-app .image-choice-button:hover:not(:disabled) {
  outline-color: rgba(185, 149, 53, 0.56);
}

.photo-quiz-app .image-choice-button.is-correct {
  outline-color: rgba(90, 177, 118, 0.9);
}

.photo-quiz-app .image-choice-button.is-wrong {
  outline-color: rgba(190, 64, 56, 0.82);
}

.photo-quiz-app .image-choice-button img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-photo-submit-link {
  min-width: 250px;
  text-decoration: none;
}

.question-label {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  margin: 0 0 20px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.question-panel h2 {
  margin: 0 0 32px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.48;
}

.answer-list {
  display: grid;
  gap: 18px;
}

.answer-button {
  min-height: 96px;
  padding: 24px 26px;
  border: 2px solid rgba(18, 58, 93, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.42;
  text-align: left;
  box-shadow: 0 4px 12px rgba(24, 45, 58, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  touch-action: manipulation;
}

.answer-button:hover:not(:disabled) {
  border-color: rgba(185, 149, 53, 0.56);
  transform: translateY(-1px);
}

.answer-button:disabled {
  cursor: default;
}

.answer-button.is-correct {
  border-color: rgba(90, 177, 118, 0.9);
  background: rgba(90, 177, 118, 0.13);
}

.answer-button.is-wrong {
  border-color: rgba(190, 64, 56, 0.82);
  background: rgba(190, 64, 56, 0.1);
}

.feedback-panel {
  margin-top: 18px;
  padding: 30px 32px 34px;
}

.feedback-result {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
}

.is-correct-text {
  color: #2e8751;
}

.is-wrong-text {
  color: #b33a33;
}

.feedback-copy {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.7;
}

.result-copy {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.7;
}

.feedback-panel .quiz-button {
  min-height: 82px;
  margin-top: 26px;
  font-size: 28px;
}

.quiz-button,
.quiz-secondary-button {
  display: inline-grid;
  place-items: center;
  min-width: 190px;
  min-height: 74px;
  margin-top: 20px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.quiz-button {
  background: linear-gradient(100deg, #bd9939, #caaa55 52%, #b89230);
  color: #fff;
}

.quiz-secondary-button {
  background: rgba(18, 58, 93, 0.08);
  color: var(--navy);
}

.result-panel {
  padding: 50px 34px 46px;
  text-align: center;
}

.result-kicker {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  margin: 0 0 24px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgba(185, 149, 53, 0.14);
  color: var(--gold-dark);
  font-size: 23px;
  font-weight: 900;
}

.result-panel h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 47px;
  font-weight: 900;
  line-height: 1.35;
}

.result-score {
  margin: 0 0 24px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.result-panel .quiz-button,
.result-panel .quiz-secondary-button {
  min-height: 82px;
  min-width: 230px;
  font-size: 27px;
}

@media (max-width: 480px) {
  .result-panel {
    padding: 58px 36px 52px;
  }

  .result-kicker {
    min-height: 54px;
    margin-bottom: 28px;
    padding: 0 30px;
    font-size: 27px;
  }

  .result-panel h2 {
    margin-bottom: 22px;
    font-size: 58px;
    line-height: 1.28;
  }

  .result-score {
    margin-bottom: 28px;
    font-size: 52px;
  }

  .result-copy {
    font-size: 36px;
    line-height: 1.62;
  }

  .result-actions {
    gap: 22px;
    margin-top: 18px;
  }

  .result-panel .quiz-button,
  .result-panel .quiz-secondary-button {
    min-height: 90px;
    min-width: 260px;
    font-size: 32px;
  }
}

.photo-submit-app {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0, var(--paper) 100%);
}

.photo-help-overlay {
  position: absolute;
  inset: 79px 0 128px;
  z-index: 8;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 86px 34px 34px;
  background: rgba(255, 255, 255, 0.58);
}

.photo-help-overlay[hidden] {
  display: none;
}

.photo-help-card {
  position: relative;
  width: 100%;
  max-width: 632px;
  padding: 40px 38px 36px;
  border: 3px solid rgba(185, 149, 53, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(5, 31, 52, 0.26);
  color: var(--navy);
}

.photo-help-close {
  position: absolute;
  right: 18px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 58, 93, 0.08);
  color: var(--navy);
  cursor: pointer;
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
}

.photo-help-kicker {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(185, 149, 53, 0.14);
  color: var(--gold-dark);
  font-size: 19px;
  font-weight: 900;
}

.photo-help-card h2 {
  margin: 0 58px 18px 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.45;
}

.photo-help-card p:last-child {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.75;
}

.photo-hero {
  position: relative;
  min-height: 276px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 45, 80, 0.98) 0 47%, rgba(5, 45, 80, 0.78) 65%, rgba(5, 45, 80, 0.1)),
    url("./assets/himeji-card.png") right center / 480px 276px no-repeat,
    #06365f;
}

.photo-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 470px;
  height: 276px;
  background: url("./assets/hero-castle.png") right top / cover no-repeat;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.photo-hero-text {
  position: relative;
  z-index: 1;
  padding: 42px 38px;
  color: #fff;
}

.photo-hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 49px;
  font-weight: 900;
  line-height: 1.35;
}

.photo-hero p {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.7;
}

.photo-examples,
.photo-form-card {
  position: relative;
  z-index: 2;
  margin-inline: 25px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.photo-examples {
  margin-top: -20px;
  padding: 26px 26px 28px;
}

.photo-examples h2,
.photo-form-card h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 900;
}

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

.photo-example-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 3px 10px rgba(24, 45, 58, 0.08);
}

.photo-example-grid img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.photo-example-grid span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.photo-form-card {
  flex: 0 0 auto;
  margin-top: 20px;
  margin-bottom: 26px;
  padding: 28px 30px 26px;
}

.photo-submit-app .bottom-nav {
  margin-top: auto;
}

.photo-form-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 33px;
}

.photo-form-card h2 svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-submit-form {
  display: grid;
  gap: 23px;
}

.photo-dropzone {
  display: grid;
  place-items: center;
  min-height: 178px;
  padding: 24px;
  border: 2px dashed rgba(18, 58, 93, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  text-align: center;
}

.photo-dropzone.is-filled {
  border-color: rgba(79, 156, 220, 0.5);
  background: rgba(79, 156, 220, 0.06);
}

.photo-dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-dropzone svg {
  width: 66px;
  height: 66px;
  margin-bottom: 10px;
  fill: none;
  stroke: #a8b8c8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-dropzone strong {
  font-size: 28px;
  font-weight: 900;
}

.photo-dropzone span {
  margin-top: 8px;
  color: #53687a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.photo-field {
  display: grid;
  gap: 12px;
}

.photo-field span {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.photo-field b {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 29px;
  margin-left: 11px;
  border-radius: 999px;
  background: #f0606b;
  color: #fff;
  font-size: 16px;
  font-style: normal;
}

.photo-field input {
  width: 100%;
  height: 70px;
  padding: 0 22px;
  border: 1px solid rgba(18, 58, 93, 0.2);
  border-radius: 6px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
}

.photo-field input::placeholder {
  color: #a1adba;
}

.photo-rules {
  padding: 22px 24px;
  border: 1px solid rgba(185, 149, 53, 0.28);
  border-radius: 8px;
  background: rgba(185, 149, 53, 0.06);
}

.photo-rules h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 900;
}

.photo-rules ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.photo-rules li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--blue);
  font-weight: 900;
}

.photo-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 80px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #063a66, #064a81);
  color: #fff;
  cursor: pointer;
  font-size: 29px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(5, 45, 80, 0.22);
}

.photo-submit-button:disabled {
  cursor: wait;
  background: linear-gradient(100deg, #7890a5, #5f7b93);
  box-shadow: none;
}

.photo-submit-button svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-submit-status {
  min-height: 32px;
  margin: -5px 0 0;
  color: #53687a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.photo-submit-status:empty {
  display: none;
}

.photo-submit-status[data-tone="success"] {
  color: #2d8c54;
}

.photo-submit-status[data-tone="error"] {
  color: #c74755;
}
