:root {
  --profile-ink: #16231d;
  --profile-muted: #5d6963;
  --profile-line: #dce5df;
  --profile-soft: #f3f8f5;
  --profile-green: #126f4a;
  --profile-green-dark: #0c5338;
  --profile-gold: #c59431;
  --profile-white: #fff;
  --profile-shadow: 0 16px 40px rgba(28, 56, 43, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--profile-ink);
  background: #f7faf8;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

.profile-shell {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.profile-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--profile-line);
}

.profile-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.profile-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.profile-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.profile-brand__text strong {
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.profile-brand__text small {
  margin-top: 2px;
  color: var(--profile-muted);
  font-size: .68rem;
  font-weight: 700;
}

.profile-header__area {
  color: var(--profile-muted);
  font-size: .82rem;
}

.profile-breadcrumbs {
  padding: 16px 0;
  color: var(--profile-muted);
  font-size: .8rem;
}

.profile-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-breadcrumbs li:not(:last-child)::after {
  margin-left: 7px;
  color: #9aa59f;
  content: "/";
}

.profile-card {
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--profile-white);
  border: 1px solid var(--profile-line);
  border-radius: 22px;
  box-shadow: var(--profile-shadow);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}

.profile-hero__media {
  min-height: 420px;
  background: var(--profile-soft);
}

.profile-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.profile-hero__media--sample {
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 84px);
  background: radial-gradient(circle at 50% 40%, #fff 0 24%, #e7f2eb 62%, #dcebe2 100%);
}

.profile-hero__media--sample img {
  width: min(62%, 260px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 30%;
  filter: drop-shadow(0 18px 28px rgba(18, 111, 74, .16));
}

.profile-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
}

.profile-eyebrow {
  margin: 0 0 8px;
  color: var(--profile-green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.profile-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.35;
}

.profile-feature {
  margin: 18px 0 0;
  color: var(--profile-muted);
  font-weight: 700;
}

.profile-access {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--profile-line);
  font-size: .94rem;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.profile-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--profile-green);
  border-radius: 12px;
  color: var(--profile-green);
  background: var(--profile-white);
  font-size: .94rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.profile-button:hover,
.profile-button:focus-visible {
  color: var(--profile-white);
  background: var(--profile-green-dark);
  transform: translateY(-1px);
}

.profile-button--primary {
  grid-column: 1 / -1;
  color: var(--profile-white);
  background: var(--profile-green);
  box-shadow: 0 8px 20px rgba(18, 111, 74, .18);
}

.profile-section {
  padding: clamp(24px, 5vw, 44px);
}

.profile-section + .profile-section { border-top: 1px solid var(--profile-line); }

.profile-section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--profile-line);
}

.profile-facts > div {
  display: grid;
  grid-template-columns: minmax(96px, .36fr) minmax(0, 1fr);
  gap: 14px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-facts > div:nth-child(odd) { border-right: 1px solid var(--profile-line); }

.profile-facts dt {
  color: var(--profile-muted);
  font-size: .86rem;
  font-weight: 800;
}

.profile-facts dd { margin: 0; }

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.profile-tags li {
  padding: 5px 11px;
  border: 1px solid #cfe0d6;
  border-radius: 999px;
  color: var(--profile-green-dark);
  background: var(--profile-soft);
  font-size: .8rem;
  font-weight: 700;
}

.profile-referral {
  scroll-margin-top: 24px;
  background: linear-gradient(135deg, #f7fbf8, #eef7f1);
}

.profile-referral__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid #cfe0d6;
  border-radius: 16px;
  background: var(--profile-white);
}

.profile-referral__box h2 { margin-bottom: 6px; }
.profile-referral__box p { margin: 0; color: var(--profile-muted); }
.profile-referral__box .profile-referral__legal,
.profile-referral__box .profile-referral__support { grid-column: 1 / -1; margin-top: 10px; font-size: .8rem; line-height: 1.7; }
.profile-referral__legal a + a { margin-left: .7em; }
.profile-referral__support a { font-weight: 750; }

.profile-button--referral {
  min-width: 250px;
  border-color: #7b9487;
  color: #355648;
  background: #fff;
  box-shadow: none;
}

.profile-note {
  margin: 20px 0 0;
  color: var(--profile-muted);
  font-size: .78rem;
}

.profile-back {
  display: inline-flex;
  margin: 0 0 38px;
  color: var(--profile-green-dark);
  font-weight: 800;
}

.profile-footer {
  padding: 32px 0 40px;
  color: #69746f;
  background: #ebf1ed;
  font-size: .78rem;
  text-align: center;
}
.profile-footer__inner { display: grid; gap: 14px; }
.profile-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.profile-footer__links a { color: #52635c; font-size: .84rem; font-weight: 750; }
.profile-footer small { color: #69746f; }

@media (max-width: 760px) {
  .profile-shell { width: min(100% - 24px, 1040px); }
  .profile-header__area { display: none; }
  .profile-brand__text small { display: none; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero__media,
  .profile-hero__media img { min-height: 0; aspect-ratio: 16 / 10; }
  .profile-hero__media--sample { padding: 34px; }
  .profile-hero__media--sample img {
    width: min(46%, 180px);
    height: auto;
    aspect-ratio: 1;
  }
  .profile-hero__content { padding: 26px 22px 30px; }
  .profile-button--primary { grid-column: auto; }
  .profile-facts { grid-template-columns: minmax(0, 1fr); }
  .profile-facts > div {
    grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px 4px;
  }
  .profile-facts > div:nth-child(odd) { border-right: 0; }
  .profile-facts dt { line-height: 1.55; }
  .profile-facts dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .profile-referral__box { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .profile-button--referral { width: 100%; min-width: 0; }
}

@media (max-width: 360px) {
  .profile-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .profile-button { transition: none; }
}
