.tokyo-point-guide {
  color: #254234;
  background: #f5faed;
}

.tokyo-point-guide__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 88px;
}

.tokyo-point-guide__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px 40px;
  text-align: center;
}

.tokyo-point-guide__hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
}

.tokyo-point-guide__hero-image--right { justify-self: end; }

.tokyo-point-guide__hero h1 {
  margin: 0 0 12px;
  color: #006b43;
  font-size: clamp(2rem, 4vw, 3.5rem);
  white-space: nowrap;
}

.tokyo-point-guide__hero p { margin: 0; line-height: 1.8; }

.tokyo-point-guide__section {
  margin-top: 30px;
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgb(48 108 67 / 8%);
}

.tokyo-point-guide__section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: #006b43;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.4;
}

.tokyo-point-guide__section h2 span {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #078759;
  font-size: 1.2rem;
}

.tokyo-point-guide__section p,
.tokyo-point-guide__section li { line-height: 1.8; }

.tokyo-point-guide__uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.tokyo-point-guide__uses > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  background: #f1f8f0;
  font-weight: 700;
}

.tokyo-point-guide__uses img { width: 92px; height: 92px; object-fit: contain; }

.tokyo-point-guide__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.tokyo-point-guide__flow li { min-width: 0; padding: 14px; border-radius: 16px; background: #f1f8f0; }
.tokyo-point-guide__flow img { display: block; width: min(100%, 140px); height: auto; margin: 0 auto 12px; }
.tokyo-point-guide__flow span { color: #006b43; font-weight: 800; }
.tokyo-point-guide__flow p { margin: 4px 0 0; font-weight: 700; }
.tokyo-point-guide__flow-description { margin: 24px 0 0; }

.tokyo-point-guide__learning-link {
  display: flex;
  box-sizing: border-box;
  width: min(100%, 320px);
  min-height: 55px;
  margin: 18px auto 0;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--color-primary-dark);
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.tokyo-point-guide__learning-link:hover { box-shadow: 0 12px 26px rgb(20 170 145 / 16%); transform: translateY(-4px); }
.tokyo-point-guide__learning-link:focus-visible { outline: 3px solid #006b43; outline-offset: 4px; }

.tokyo-point-guide__stores { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.tokyo-point-guide__stores a { display: inline-flex; align-items: center; min-height: 58px; }
.tokyo-point-guide__stores a:focus-visible { outline: 3px solid #006b43; outline-offset: 4px; }
.tokyo-point-guide__stores img { display: block; width: auto; max-width: 100%; height: 58px; object-fit: contain; }

.tokyo-point-guide__method-intro { margin-bottom: 0; }
.tokyo-point-guide__method-note { margin: 8px 0 0; color: #596b60; font-size: .875rem; }
.tokyo-point-guide__device-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; scroll-margin-top: 120px; }
.tokyo-point-guide__device-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 24px; border: 1px solid #cde9d5; border-radius: 16px; background: #f1f8f0; text-align: center; }
.tokyo-point-guide__device-card h3 { margin: 14px 0 4px; color: #006b43; font-size: 1.25rem; }
.tokyo-point-guide__device-card p { margin: 0 0 16px; }
.tokyo-point-guide__device-card a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: min(100%, 260px); min-height: 48px; margin-top: auto; padding: 8px 16px; border-radius: 24px; background: var(--color-primary-dark); color: #fff; font-weight: 700; text-decoration: none; }
.tokyo-point-guide__device-card a:hover { box-shadow: 0 8px 18px rgb(20 170 145 / 16%); }
.tokyo-point-guide__device-card a:focus-visible, .tokyo-point-guide__back-link:focus-visible { outline: 3px solid #006b43; outline-offset: 4px; }
.tokyo-point-guide__device-icon { position: relative; display: block; width: 48px; height: 48px; color: #006b43; }
.tokyo-point-guide__device-icon--pc::before { content: ""; position: absolute; inset: 5px 2px 13px; border: 3px solid currentColor; border-radius: 3px; }
.tokyo-point-guide__device-icon--pc::after { content: ""; position: absolute; bottom: 6px; left: 5px; width: 38px; border-bottom: 4px solid currentColor; }
.tokyo-point-guide__device-icon--mobile::before { content: ""; position: absolute; inset: 1px 11px; border: 3px solid currentColor; border-radius: 6px; }
.tokyo-point-guide__device-icon--mobile::after { content: ""; position: absolute; bottom: 6px; left: 22px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tokyo-point-guide__methods { display: grid; gap: 20px; }
.tokyo-point-guide__method { min-width: 0; padding: 24px; border-radius: 16px; background: #f1f8f0; scroll-margin-top: 120px; }
.tokyo-point-guide__method h3 { margin: 0 0 8px; color: #006b43; font-size: 1.25rem; }
.tokyo-point-guide__method > p { margin: 0 0 16px; }
.tokyo-point-guide__method ol { margin: 0 0 16px; padding: 0; counter-reset: point-guide-step; list-style: none; }
.tokyo-point-guide__method li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; align-items: center; gap: 16px; margin-bottom: 12px; padding: 18px 24px; border-radius: 18px; background: #fff; counter-increment: point-guide-step; }
.tokyo-point-guide__method li::before { content: "STEP" counter(point-guide-step); display: grid; place-items: center; box-sizing: border-box; width: 92px; min-height: 38px; padding: 4px 10px 4px 4px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 5px 0 0 5px; color: #fff; background: #078759; font-size: .875rem; font-weight: 800; white-space: nowrap; }
.tokyo-point-guide__method li:not(.tokyo-point-guide__method-step--illustrated) > span { grid-column: 2 / -1; }
.tokyo-point-guide__method-step--illustrated { padding-top: 22px; padding-bottom: 22px; }
.tokyo-point-guide__method-step--illustrated img { display: block; width: 100%; height: 112px; object-fit: contain; }
.tokyo-point-guide__back-link { display: inline-block; color: #006b43; font-size: .875rem; font-weight: 700; text-underline-offset: 3px; }
.tokyo-point-guide__notices { padding-left: 1.5em; }
.tokyo-point-guide__notices li { margin-bottom: 12px; }

@media (max-width: 900px) {
  .tokyo-point-guide__hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tokyo-point-guide__hero-copy { grid-column: 1 / -1; grid-row: 1; }
  .tokyo-point-guide__hero-image { grid-column: 1; grid-row: 2; justify-self: center; }
  .tokyo-point-guide__hero-image--right { grid-column: 2; }
  .tokyo-point-guide__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tokyo-point-guide__method li { grid-template-columns: 88px minmax(0, 1fr) 120px; padding-right: 18px; padding-left: 18px; }
  .tokyo-point-guide__method li::before { width: 84px; }
}

@media (max-width: 600px) {
  .tokyo-point-guide__inner { width: min(100% - 28px, 520px); padding-bottom: 56px; }
  .tokyo-point-guide__hero { gap: 16px; padding: 22px 0; }
  .tokyo-point-guide__hero-image { width: min(100%, 200px); }
  .tokyo-point-guide__section { padding: 22px 18px; }
  .tokyo-point-guide__section h2 { gap: 10px; }
  .tokyo-point-guide__section h2 span { flex-basis: 44px; width: 44px; height: 44px; font-size: 1rem; }
  .tokyo-point-guide__uses,
  .tokyo-point-guide__device-menu { grid-template-columns: minmax(0, 1fr); }
  .tokyo-point-guide__method li { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 16px 12px; }
  .tokyo-point-guide__method li::before { width: 78px; font-size: .8rem; }
  .tokyo-point-guide__method-step--illustrated { padding-top: 20px; padding-bottom: 20px; }
  .tokyo-point-guide__method-step--illustrated img { grid-column: 2; justify-self: end; width: auto; max-width: 100%; height: 104px; }
  .tokyo-point-guide__stores { flex-direction: column; align-items: flex-start; }
  .tokyo-point-guide__flow { gap: 10px; }
  .tokyo-point-guide__flow li { padding: 10px; }
}

@media (max-width: 420px) {
  .tokyo-point-guide__method li { grid-template-columns: minmax(0, 1fr); }
  .tokyo-point-guide__method li > span,
  .tokyo-point-guide__method li:not(.tokyo-point-guide__method-step--illustrated) > span,
  .tokyo-point-guide__method-step--illustrated img { grid-column: 1; }
}

@media (max-width: 375px) {
  .tokyo-point-guide__flow { grid-template-columns: minmax(0, 1fr); }
}
