/* 楽天モバイル 従業員紹介ブログ ／ LPと共通のトークン */
:root {
  --red: #ff008c;
  --red-deep: #b30062;
  --red-soft: #ffe8f4;
  --ink: #1f1a1d;
  --sub: #6b6267;
  --line: #eadde4;
  --paper: #fffafc;
  --card: #ffffff;
  --gold: #f6c453;
  --radius: 14px;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  padding-bottom: 76px;
}
img { max-width: 100%; height: auto; }
a { color: var(--red-deep); }
h1, h2, h3, p, ol, ul { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 760px; }
.num { font-family: "Arial Black", "Segoe UI", Arial, sans-serif; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.4; text-wrap: balance; }
section { padding-block: clamp(44px, 7vw, 76px); }
.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--red-deep); margin-bottom: 8px; }
.lead { color: var(--sub); margin-top: 10px; max-width: 46em; }
.sec-head { margin-bottom: 28px; }
.fine { font-size: 12px; color: var(--sub); margin-top: 12px; line-height: 1.7; }
.cta-note { font-size: 12px; color: var(--sub); margin-top: 12px; line-height: 1.6; }

/* ticker */
.ticker { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; padding: 7px 20px; font-size: 13px; justify-content: center; }
.ticker-label { background: var(--gold); color: var(--ink); font-weight: 800; font-size: 11px; border-radius: 4px; padding: 1px 8px; white-space: nowrap; }
.ticker-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 252, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font-weight: 800; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--sub); }
.nav { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px; font-size: 13px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; padding-block: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; border-radius: 999px; padding: 15px 30px; font-size: 16px; line-height: 1.3; box-shadow: 0 6px 0 var(--red-deep); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--red-deep); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--red-deep); }
.btn:focus-visible, .nav a:focus-visible, .card:focus-visible, .text-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn::after { content: "→"; }
.btn.small { padding: 9px 18px; font-size: 13px; box-shadow: 0 3px 0 var(--red-deep); white-space: nowrap; }
.btn.light { background: #fff; color: var(--red-deep); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }

/* hero */
.hero { background: var(--red); color: #fff; padding-block: clamp(34px, 6vw, 60px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .08); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .tag { display: inline-block; background: #fff; color: var(--red-deep); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 5px 14px; }
.hero h1 { margin-top: 16px; font-size: clamp(19px, 2.8vw, 24px); line-height: 1.5; font-weight: 700; }
.hero .big { display: block; font-size: clamp(56px, 8.6vw, 88px); line-height: 1; margin-top: 6px; white-space: nowrap; }
.hero .big small { font-family: inherit; font-size: .26em; font-weight: 800; letter-spacing: 0; margin-left: 6px; }
.hero .big .pre { font-size: .22em; font-weight: 800; letter-spacing: 0; margin-right: 8px; vertical-align: .9em; background: var(--gold); color: var(--ink); padding: 3px 10px; border-radius: 6px; font-family: inherit; }
.hero .desc { margin-top: 16px; font-size: 15px; font-weight: 600; max-width: 30em; }
.hero-cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.text-link { color: #fff; font-weight: 700; font-size: 14px; text-underline-offset: 4px; }
.hero .cta-note { color: #fff; font-weight: 600; }
.reward { display: grid; gap: 14px; }
.reward-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reward-card .label { font-weight: 800; font-size: 15px; line-height: 1.45; }
.reward-card .label small { display: block; font-weight: 500; font-size: 12px; color: var(--sub); }
.reward-card .pt { font-size: clamp(28px, 4.6vw, 40px); color: var(--red); line-height: 1; white-space: nowrap; }
.reward-card .pt small { font-family: inherit; font-size: .4em; font-weight: 800; margin-left: 3px; }

/* cards */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter button { font: inherit; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter button:focus-visible, .stepper button:focus-visible, .share-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card-meta, .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--sub); }
.cat { background: var(--red-soft); color: var(--red-deep); font-weight: 800; border-radius: 4px; padding: 1px 9px; font-size: 12px; }
.new { background: var(--gold); color: var(--ink); font-weight: 900; font-size: 11px; border-radius: 4px; padding: 1px 7px; letter-spacing: .06em; }
.card-title { font-size: 17px; line-height: 1.5; }
.card-desc { font-size: 13.5px; color: var(--sub); line-height: 1.7; flex: 1; }
.card-more { font-size: 13px; font-weight: 800; color: var(--red-deep); }
.card-more::after { content: " →"; }

/* simulator */
.sim { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sim-inputs { padding: 26px; background: var(--paper); display: grid; gap: 16px; align-content: center; }
.sim-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sim-label { font-weight: 800; line-height: 1.4; }
.sim-label small { display: block; font-weight: 500; font-size: 12px; color: var(--sub); }
.stepper { display: flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper button { font: inherit; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red-soft); color: var(--red-deep); font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-size: 24px; }
.sim-inputs .fine { margin-top: 0; }
.sim-result { background: var(--red); color: #fff; padding: 26px; text-align: center; display: grid; gap: 10px; align-content: center; justify-items: center; }
.sim-cap { font-weight: 700; font-size: 14px; }
.sim-total { font-size: clamp(40px, 7vw, 60px); line-height: 1.1; }
.sim-total small { font-family: inherit; font-size: .3em; font-weight: 800; margin-left: 6px; letter-spacing: 0; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { position: relative; padding: 0 14px; text-align: center; }
.steps li::before { counter-increment: s; content: counter(s); font-family: "Arial Black", Arial, sans-serif; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 25px; left: 50%; width: 100%; height: 3px; background: var(--red); opacity: .25; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 16px; line-height: 1.45; }
.steps p { font-size: 13.5px; color: var(--sub); margin-top: 6px; line-height: 1.7; }
.deadline { margin-top: 28px; background: var(--red-soft); border-left: 5px solid var(--red); border-radius: 8px; padding: 14px 18px; font-size: 14px; }

/* profile */
.profile { display: grid; grid-template-columns: 72px 1fr; gap: 20px; max-width: 760px; margin-inline: auto; align-items: start; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: "Arial Black", Arial, sans-serif; font-size: 30px; }
.profile-name { font-weight: 800; font-size: 17px; }
.profile p { color: var(--sub); font-size: 14.5px; }
.profile .btn { margin-top: 16px; }

/* post */
.post { padding-block: 28px clamp(44px, 7vw, 72px); }
.crumb { font-size: 12px; color: var(--sub); display: flex; gap: 8px; margin-bottom: 18px; }
.crumb a { color: var(--sub); }
.post h1 { font-size: clamp(24px, 4.4vw, 34px); line-height: 1.45; margin-top: 12px; text-wrap: balance; }
.post-lead { color: var(--sub); margin-top: 14px; font-size: 15.5px; }
.post-body { margin-top: 26px; font-size: 16.5px; line-height: 1.95; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 { margin-top: 2.2em; padding: 10px 16px; background: var(--red-soft); border-left: 5px solid var(--red); border-radius: 6px; font-size: clamp(19px, 3vw, 23px); scroll-margin-top: 110px; }
.post-body h3 { margin-top: 1.8em; font-size: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--line); scroll-margin-top: 110px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .4em; }
.post-body li::marker { color: var(--red-deep); font-weight: 800; }
.post-body strong { background: linear-gradient(transparent 62%, #ffd9ec 62%); }
.note { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: var(--sub); line-height: 1.8; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 15px; }
.toc-title { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.toc ol { padding-left: 1.3em; line-height: 1.9; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 15px; line-height: 1.6; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--ink); color: #fff; font-size: 13.5px; white-space: nowrap; }
tbody td:first-child { font-weight: 700; background: #fbf7f9; }

.cta-box { background: var(--red); color: #fff; border-radius: var(--radius); padding: 24px 22px; text-align: center; display: grid; gap: 14px; justify-items: center; margin-top: 2em; }
.cta-box-text { display: grid; gap: 2px; line-height: 1.5; }
.cta-box-text b { font-size: clamp(18px, 3.2vw, 22px); }
.cta-box-text b .num { font-size: 1.45em; margin-inline: 4px; }
.cta-box-text span { font-size: 13.5px; font-weight: 600; }
.cta-box .cta-note { color: #fff; font-weight: 600; margin-top: 0; }
.post-body strong .num, .cta-box b { background: none; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; font-size: 13px; font-weight: 700; color: var(--sub); }
.share-btn { font: inherit; font-size: 13px; font-weight: 800; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--red); }

/* footer / sticky bar */
.site-foot { padding-block: 32px 24px; font-size: 12px; color: var(--sub); line-height: 1.8; }
.site-foot p + p { margin-top: 10px; }
.disclose { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); font-size: 13px; }
.bar-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 16px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.bar-cta span { font-weight: 800; font-size: 14px; line-height: 1.3; }
.bar-cta span b { color: var(--red-deep); }
.bar-cta .btn { padding: 12px 24px; font-size: 15px; box-shadow: 0 4px 0 var(--red-deep); white-space: nowrap; }

@media (max-width: 820px) {
  .hero-grid, .sim { grid-template-columns: 1fr; }
  .hero-grid { gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .steps li::before { margin: 0; grid-row: 1 / span 2; }
  .steps li::after { top: 52px; left: 24.5px; width: 3px; height: calc(100% - 32px); }
}
@media (max-width: 520px) {
  .site-head .btn { display: none; }
  .bar-cta span { display: none; }
  .bar-cta .btn { width: 100%; }
  .sim-inputs, .sim-result { padding: 20px 16px; }
  .profile { grid-template-columns: 1fr; }
  th, td { padding: 10px 10px; font-size: 14px; }
  thead th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
