/*
 * Sample site: 佐伯 真帆 Maho Saeki (a fictional independent recruiter, made by Tobico).
 * Its own identity, deliberately unlike Tobico (washi, navy, moss, rounded pills):
 * white, near-black and cobalt; square corners and hairlines; big English section words over Japanese titles;
 * numbered sections and mono micro-labels, after Japanese HR / professional sites (RGF, GRUST, Waris, Agent Seven).
 */
:root {
  --bg: #FFFFFF;
  --soft: #F4F5F7;
  --ink: #0F1115;       /* 18.9:1 on white */
  --muted: #5A5F69;     /* 6.4:1 on white, 5.9:1 on soft */
  --line: #E3E5EA;
  --cobalt: #2340E8;    /* 7.1:1 on white, both ways */
  --on-ink: #FFFFFF;
  --on-ink-muted: #A9B3BF; /* 8.9:1 on ink */
  --cobalt-light: #9AA6FF; /* 8.3:1 on ink */
  --display: "Inter Tight", "Noto Sans JP", system-ui, sans-serif;
  --body: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 0.25rem + 4vw, 4rem);
  --head: 4.5rem;

  --s-bg: var(--bg); --s-ink: var(--ink); --s-muted: var(--muted); --s-line: var(--line);
  --s-accent: var(--cobalt); --s-focus: #2340E8; --s-flag-bg: #0F1115; --s-flag-ink: #FFFFFF;
}
html[lang="ja"] { --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }

body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
html[lang="ja"] body { font-size: 0.95rem; line-height: 2; letter-spacing: 0.06em; font-feature-settings: "palt"; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; text-wrap: balance; }
html[lang="ja"] :is(h1, h2, h3) { line-height: 1.6; letter-spacing: 0.06em; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
html[lang="ja"] h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); }
a { color: var(--ink); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.r-wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.r-nobr { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 0; }

/* Section head: number + giant English word (decorative), then the real title */
.r-sec-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.r-sec-no { display: grid; gap: 0.35rem; font-family: var(--display); font-weight: 600; font-size: clamp(3.25rem, 2rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--ink); }
.r-sec-no span { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1; color: var(--cobalt); }
.r-sec-no span::after { content: ""; display: inline-block; width: 2.5rem; height: 1px; margin-left: 0.75rem; vertical-align: middle; background: currentColor; }
.r-sec-head h2 { max-width: 36rem; }
.r-sec-lead { color: var(--muted); }

/* Buttons: square, arrow on the right */
.r-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 3.5rem; min-width: 15rem; padding: 0 1.25rem 0 1.5rem;
  border: 1px solid var(--ink); border-radius: 0; font: 600 0.95rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.r-btn i, .r-more i, .r-cta::after { width: 1.1rem; height: 0.6rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s; }
.r-btn:hover i, .r-more:hover i { transform: translateX(4px); }
.r-btn-fill { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.r-btn-fill:hover { background: var(--ink); border-color: var(--ink); }
.r-btn-line { background: #fff; color: var(--ink); }
.r-btn-line:hover { background: var(--ink); color: #fff; }
.r-more { display: inline-flex; align-items: center; gap: 0.9rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); align-self: start; justify-self: start; }
.r-more:hover { color: var(--cobalt); border-color: var(--cobalt); }

/* Header */
.r-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.r-header-row { display: flex; align-items: center; gap: 1.5rem; min-height: var(--head); padding-left: var(--gutter); flex-wrap: wrap; }
.r-logo { display: inline-flex; align-items: center; gap: 0.75rem; margin-right: auto; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.r-mark { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--ink); color: #fff; font: 600 0.85rem/1 var(--display); letter-spacing: 0.02em; flex: none; }
.r-logo-text { display: grid; line-height: 1.25; }
.r-logo b { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
html[lang="ja"] .r-logo b { letter-spacing: 0.14em; }
.r-logo small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); }
.r-nav ul { list-style: none; padding: 0; display: flex; gap: 0 1.75rem; }
.r-nav a { display: grid; justify-items: center; min-height: 2.75rem; align-content: center; text-decoration: none; color: var(--muted); font-size: 0.72rem; font-weight: 500; line-height: 1.3; }
.r-nav-en { font-family: var(--display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.r-nav a:hover .r-nav-en { color: var(--cobalt); }
.r-head-cta { display: flex; align-self: stretch; }
.r-cta { position: relative; display: grid; align-content: center; gap: 0.1rem; padding: 0 3rem 0 1.4rem; min-width: 11.5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.r-cta small { font-size: 0.7rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.06em; }
.r-cta::after { content: ""; position: absolute; right: 1.2rem; top: 50%; margin-top: -0.3rem; }
.r-cta:hover::after { transform: translateX(3px); }
.r-cta-job { background: var(--cobalt); }
.r-cta-hire { background: var(--ink); }
.r-cta:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.s-lang { border-radius: 0; border-color: var(--line); }
.s-lang a { border-radius: 0; }
.r-menu-btn { display: none; }

@media (max-width: 79.99rem) {
  .r-nav { order: 10; flex: 1 0 100%; margin-left: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 1px solid var(--line); }
  html.js .r-menu-btn { display: inline-grid; justify-items: center; align-content: center; gap: 0.5rem; order: 3; width: 4.5rem; align-self: stretch; padding: 0; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink); font: 500 0.62rem/1 var(--mono); letter-spacing: 0.08em; cursor: pointer; }
  .r-burger { position: relative; width: 1.4rem; height: 1px; margin-block: 6px; background: currentColor; }
  .r-burger::before, .r-burger::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform 0.2s; }
  .r-burger::before { top: -6px; } .r-burger::after { top: 6px; }
  .r-menu-btn[aria-expanded="true"] .r-burger { background: transparent; }
  .r-menu-btn[aria-expanded="true"] .r-burger::before { transform: translateY(6px) rotate(45deg); }
  .r-menu-btn[aria-expanded="true"] .r-burger::after { transform: translateY(-6px) rotate(-45deg); }
  .r-lang { order: 1; }
  .r-head-cta { order: 2; }
  html.js .r-nav:not(.is-open) { display: none; }
  .r-nav ul { flex-direction: column; gap: 0; padding-block: 0.5rem 1.25rem; }
  .r-nav li + li { border-top: 1px solid var(--line); }
  .r-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; font-size: 0.85rem; }
  .r-nav-en { font-size: 1.35rem; }
  html:not(.js) .r-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .r-nav li + li { border: 0; }
  html:not(.js) .r-nav a { min-height: 2.75rem; }
}
@media (max-width: 51.99rem) { .r-head-cta { display: none; } .r-header-row { gap: 0.75rem; } }
@media (max-width: 26rem) { .r-logo small { display: none; } .r-mark { width: 2.1rem; height: 2.1rem; } html.js .r-menu-btn { width: 3.75rem; } .r-header .s-lang a { padding: 0 0.55rem; } }

/* Hero */
.r-hero { padding-block: 0; border-bottom: 1px solid var(--line); }
.r-hero-grid { display: grid; }
.r-hero-copy { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--gutter) clamp(2.5rem, 1.5rem + 3vw, 4rem); display: grid; align-content: center; }
.r-micro { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.r-micro span { color: var(--muted); }
.r-hero-name { margin-top: 1.25rem; font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 2rem + 10vw, 10rem); line-height: 0.86; letter-spacing: -0.055em; }
.r-hero h1 { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 30rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
html[lang="ja"] .r-hero h1 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); }
.r-lead { margin-top: 1rem; max-width: 32rem; color: var(--muted); }
.r-hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.r-portrait { position: relative; min-height: 26rem; background: var(--soft); }
.r-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 22%; }
.r-vertical { position: absolute; top: 1.5rem; right: 1.25rem; writing-mode: vertical-rl; padding: 1rem 0.55rem; background: #fff; color: var(--ink); font: 500 0.8rem/1 "Noto Sans JP", sans-serif; letter-spacing: 0.35em; }
.r-portrait figcaption { position: absolute; left: 0; bottom: 0; display: flex; gap: 1rem; padding: 0.7rem 1.1rem; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.r-portrait figcaption span + span { color: var(--on-ink-muted); }
.r-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.r-facts div { padding: 1.1rem var(--gutter); display: grid; gap: 0.2rem; align-content: start; }
.r-facts div:nth-child(even) { border-left: 1px solid var(--line); }
.r-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
.r-facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); }
.r-facts dd { font-weight: 600; font-size: 0.92rem; line-height: 1.5; }
@media (min-width: 52rem) {
  .r-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .r-facts div + div { border-left: 1px solid var(--line); }
  .r-facts div:nth-child(n+3) { border-top: 0; }
  .r-facts div { padding-inline: 1.5rem; }
  .r-facts div:first-child { padding-left: var(--gutter); }
}
@media (min-width: 64rem) {
  .r-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: min(calc(100svh - var(--head) - 6rem), 52rem); }
  .r-portrait { min-height: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 63.99rem) { .r-portrait { aspect-ratio: 4 / 4.2; min-height: 0; } }

/* Service */
.r-two { display: grid; border-top: 1px solid var(--ink); }
.r-col { display: grid; gap: 1.25rem; align-content: start; padding-block: 2.25rem; }
.r-col + .r-col { border-top: 1px solid var(--line); }
.r-col-for { display: grid; gap: 0.15rem; font-weight: 700; font-size: 0.92rem; }
.r-col-for .r-col-en { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); }
.r-col h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
html[lang="ja"] .r-col h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }
.r-list { list-style: none; padding: 0; display: grid; }
.r-list li { position: relative; padding: 0.75rem 0 0.75rem 1.6rem; border-bottom: 1px solid var(--line); }
.r-list li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 0.6rem; height: 1px; background: var(--cobalt); }
.r-fee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 1.2rem; background: var(--soft); }
.r-fee dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.r-fee dd { font-weight: 700; font-size: 1.05rem; }
.r-fee small { display: block; font-weight: 500; font-size: 0.82rem; color: var(--muted); }
.r-areas { margin-top: 3rem; display: grid; gap: 1rem; }
.r-areas h3 { display: flex; align-items: baseline; gap: 1rem; font-size: 1rem; }
.r-areas h3 span, html[lang="en"] .r-areas h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.r-areas ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.r-areas li { padding: 0.35rem 0.85rem; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; }
.r-areas p { font-size: 0.92rem; color: var(--muted); }
@media (min-width: 52rem) {
  .r-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-col { padding: 2.5rem 3rem 2.5rem 0; }
  .r-col + .r-col { border-top: 0; border-left: 1px solid var(--line); padding: 2.5rem 0 2.5rem 3rem; }
}

/* Works: placements table + voices */
.r-works { background: var(--soft); }
.r-table-wrap { border-top: 1px solid var(--ink); }
.r-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.r-table thead th { padding: 0.9rem 1rem 0.9rem 0; text-align: left; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid #D6D9E0; }
.r-table tbody th, .r-table td { padding: 1.25rem 1.5rem 1.25rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid #D6D9E0; }
.r-table tbody th { font-weight: 700; width: 30%; }
.r-table td { color: var(--muted); }
.r-table td:last-child { color: var(--cobalt); font-weight: 500; }
@media (max-width: 47.99rem) {
  .r-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .r-table, .r-table tbody, .r-table tr, .r-table th, .r-table td { display: block; width: auto; }
  .r-table tbody th { width: auto; }
  .r-table tr { padding: 1.1rem 0; border-bottom: 1px solid #D6D9E0; }
  .r-table tbody th, .r-table td { padding: 0; border: 0; }
  .r-table td { margin-top: 0.2rem; font-size: 0.9rem; }
}
.r-voices { margin-top: 3.5rem; display: grid; gap: 1.25rem; }
.r-voice { position: relative; padding: 2.75rem 1.75rem 1.5rem; background: #fff; }
.r-voice::before { content: "“"; position: absolute; top: 0.4rem; left: 1.5rem; font: 600 3.5rem/1 var(--display); color: var(--cobalt); }
.r-voice blockquote { margin: 0; }
.r-voice p { font-weight: 500; font-size: 1.05rem; line-height: 1.8; }
.r-voice figcaption { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
@media (min-width: 52rem) { .r-voices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Flow */
.r-steps { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.r-steps li { display: grid; gap: 0.4rem; align-content: start; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.r-step-no { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--cobalt); }
.r-steps h3 { font-size: 1.1rem; }
.r-steps p:not(.r-step-no) { color: var(--muted); font-size: 0.93rem; }
@media (min-width: 64rem) {
  .r-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .r-steps li { padding: 2rem 1.75rem 2.25rem 0; }
  .r-steps li + li { border-left: 1px solid var(--line); padding-left: 1.75rem; }
}

/* Profile */
.r-profile { background: var(--soft); }
.r-profile-grid { display: grid; gap: 3rem; align-items: start; }
.r-profile-copy > p { max-width: 36rem; }
.r-profile-copy > p + p { margin-top: 1rem; }
.r-profile-photo { position: relative; }
.r-profile-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.r-profile-photo figcaption { position: absolute; right: 0; bottom: 0; padding: 0.5rem 0.9rem; background: #fff; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; }
.r-creds { margin-top: 2rem; max-width: 36rem; border-top: 1px solid var(--ink); }
.r-creds div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid #D6D9E0; }
.r-creds dt { font-size: 0.85rem; font-weight: 700; }
.r-creds dd { font-size: 0.93rem; }
@media (min-width: 64rem) { .r-profile-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } .r-profile-photo { margin-top: 9rem; } .r-profile-photo img { aspect-ratio: 3 / 4; } }

/* FAQ */
.r-faq-grid { display: grid; }
.r-qa { border-top: 1px solid var(--ink); }
.r-qa details { border-bottom: 1px solid var(--line); }
.r-qa summary { position: relative; display: flex; align-items: baseline; gap: 1.1rem; min-height: 4rem; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.r-qa summary::-webkit-details-marker { display: none; }
.r-qa summary::before, .r-qa summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.9rem; height: 1px; background: var(--ink); transition: transform 0.2s; }
.r-qa summary::after { transform: rotate(90deg); }
.r-qa details[open] summary::after { transform: rotate(0deg); }
.r-q { flex: none; width: 1rem; font: 600 1.15rem/1 var(--display); color: var(--cobalt); }
.r-a { display: flex; align-items: baseline; gap: 1.1rem; padding: 0 2.5rem 1.5rem 0; }
.r-a .r-q { color: var(--muted); }
.r-a p { color: var(--muted); max-width: 42rem; }
@media (min-width: 64rem) { .r-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } .r-faq-grid .r-sec-head { margin-bottom: 0; align-self: start; } }

/* Contact: dark band, form on white */
.r-contact { background: var(--ink); color: var(--on-ink); }
.r-contact-grid { display: grid; gap: 3rem; align-items: start; }
.r-contact-word { font-family: var(--display); font-weight: 600; font-size: clamp(3.25rem, 2rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.r-contact h2 { color: var(--on-ink); }
.r-contact-intro > p:not(.r-contact-word):not(.sample-note) { margin-top: 1rem; color: var(--on-ink-muted); max-width: 28rem; }
.r-contact .sample-note { color: var(--on-ink-muted); }
.r-contact .sample-tag { background: #fff; color: var(--ink); }
.r-contact :focus-visible { outline-color: var(--cobalt-light); }
.r-form { display: grid; gap: 1.4rem; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: #fff; color: var(--ink); }
.r-form :focus-visible { outline-color: var(--cobalt); }
.r-field { display: grid; gap: 0.45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.r-field[hidden] { display: none; }
.r-field label, .r-field legend { font-weight: 700; font-size: 0.92rem; padding: 0; }
.r-field legend { margin-bottom: 0.5rem; }
.r-req { margin-left: 0.5rem; padding: 0.1rem 0.4rem; background: var(--cobalt); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 0.1em; }
.r-opt { margin-left: 0.5rem; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.r-field input[type="text"], .r-field input[type="email"], .r-field textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; border: 0; border-bottom: 1.5px solid #8C929C; border-radius: 0; background: var(--soft); color: var(--ink); font: inherit; }
.r-field textarea { min-height: 8.5rem; resize: vertical; }
.r-field input:focus-visible, .r-field textarea:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 0; border-bottom-color: var(--cobalt); }
.r-field [aria-invalid="true"] { border-bottom-color: #B42318; background: #FEF3F2; }
.r-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); }
.r-choice { position: relative; display: grid; }
.r-choice + .r-choice { border-left: 1px solid var(--ink); }
.r-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.r-choice span { display: grid; align-content: center; gap: 0.1rem; min-height: 3.75rem; padding: 0.5rem 1rem; font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.r-choice small { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.r-choice input:checked + span { background: var(--ink); color: #fff; }
.r-choice input:checked + span small { color: var(--on-ink-muted); }
.r-choice input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: -4px; }
.r-hint { font-size: 0.85rem; color: var(--muted); }
.r-error { font-size: 0.88rem; font-weight: 600; color: #B42318; }
.r-error:empty { display: none; }
.r-submit { justify-self: start; }
.r-stop { padding: 1rem 1.1rem; border-left: 3px solid var(--cobalt); background: var(--soft); }
.r-stop b { display: block; }
@media (min-width: 64rem) { .r-contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; } }

/* Footer */
.r-footer { padding-block: 3rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.r-footer-grid { display: grid; gap: 2rem; }
.r-footer-name { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; }
.r-license { margin-top: 1rem; }
.r-license small { display: block; font-size: 0.78rem; }
.r-footer-meta { display: grid; gap: 0.6rem; justify-items: start; }
.r-footer a { color: var(--ink); }
@media (min-width: 52rem) { .r-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; } }

/* Shared sample bits, in this site's language: square tag and note */
.sample-note, .sample-tag { border-radius: 0; }

/* Japanese: break between phrases; no one-word last lines in short blocks */
html[lang="ja"] :is(p, li, dd, summary, b, span, td, th) { word-break: auto-phrase; }
:is(.r-facts dd, .r-creds dd, .r-table th, .r-table td, .r-qa summary, .r-voice p, .r-hero h1, h2) { text-wrap: balance; }
.r-areas h3 small { font-family: var(--body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; }
@media (max-width: 30rem) { .r-hero-cta .r-btn { width: 100%; min-width: 0; } }
/* Small phones (QA 2026-10-27): logo, 日本語/EN and Menu on one row down to 320px */
@media (max-width: 26rem) { .r-header-row { gap: 0.4rem; } .r-logo { gap: 0.5rem; } .r-logo b { font-size: 0.95rem; letter-spacing: 0.02em; } html[lang="ja"] .r-logo b { letter-spacing: 0.06em; } }

/* First screen (Tim, 2026-10-27): both hero buttons visible without scrolling, laptops to small phones.
   The name scales with the window height as well as its width; on phones it sits on one line. */
.r-hero-copy { padding-block: clamp(1.5rem, 4.5vh, 4.5rem) clamp(1.75rem, 4vh, 3.5rem); }
.r-hero-name { margin-top: clamp(0.75rem, 1.6vh, 1.25rem); font-size: clamp(3.5rem, min(10vw, 13vh), 10rem); }
.r-hero h1 { margin-top: clamp(1rem, 2.6vh, 2.25rem); }
.r-hero-cta { margin-top: clamp(1.25rem, 3vh, 2rem); }
@media (max-width: 39.99rem) {
  .r-hero-name br { display: none; }
  .r-hero-name { font-size: clamp(2.5rem, 12.5vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
  .r-hero-copy { padding-block: 1.5rem 2rem; }
  .r-micro span { display: none; }
  .r-hero h1 { margin-top: 0.9rem; }
  .r-lead { margin-top: 0.75rem; }
  .r-hero-cta { margin-top: 1.25rem; gap: 0.6rem; }
  .r-hero-cta .r-btn { min-height: 3.25rem; }
}
/* Service columns share rows (Tim, 2026-10-27): label, title, list, fee box and link line up across the two columns */
@media (min-width: 52rem) {
  .r-two { grid-template-rows: repeat(5, auto); row-gap: 1.25rem; }
  .r-col { grid-row: span 5; grid-template-rows: subgrid; gap: inherit; align-content: stretch; }
  .r-fee { align-self: stretch; align-items: center; }
  .r-more { align-self: end; }
}
