/* TradeRail LP
   ヒーローはエディトリアルな文字組みと書類のビジュアル、
   以降のセクションは白基調+薄い青のカードで構成する。 */

.tr-landing-body {
    --tr-white: #ffffff;
    --tr-blue-50: #f3f8fd;
    --tr-blue-100: #e7f1fb;
    --tr-blue-200: #d3e6f7;
    --tr-blue-400: #8bbfe8;
    --tr-brand: #2d5aa0;
    --tr-brand-deep: #1d3f78;
    --tr-ink: #0f2440;
    --tr-body: #3d4b5c;
    --tr-muted: #6b7a8c;
    --tr-line: #dbe7f3;
    --tr-line-soft: #edf2f8;
    --tr-cyan: #30b9c4;
    --tr-amber: #a86a12;
    --tr-amber-bg: #fff4de;
    --tr-amber-line: rgba(168, 106, 18, 0.26);
    --tr-error: #b3261e;
    --tr-radius: 18px;
    --tr-shadow-sm: 0 1px 2px rgba(29, 63, 120, 0.05), 0 10px 28px -14px rgba(29, 63, 120, 0.18);
    --tr-shadow-md: 0 2px 4px rgba(29, 63, 120, 0.04), 0 22px 48px -22px rgba(29, 63, 120, 0.26);
    color: var(--tr-body);
    background: var(--tr-white);
    overflow-x: clip;
}

/* 共通ヘッダー: 背景のグラデーションだけ白基調に合わせる */
.tr-landing-body header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66) 58%, rgba(255, 255, 255, 0));
}

.tr-page {
    position: relative;
    overflow-x: clip;
}

.tr-page section {
    padding: 0;
}

/* 日本語の改行を文節単位にする(1字だけの行を避ける) */
.tr-page :is(p, h1, h2, h3, h4, li, dd, summary, label, legend) {
    word-break: auto-phrase;
    overflow-wrap: break-word;
}

.tr-page a:focus-visible,
.tr-page summary:focus-visible,
.tr-page button:focus-visible {
    outline: 2px solid var(--tr-brand);
    outline-offset: 3px;
}

.tr-shell {
    width: min(100%, 1248px);
    margin: 0 auto;
    padding-inline: clamp(20px, 5vw, 64px);
}

.tr-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.tr-eyebrow {
    margin-bottom: 18px;
    color: var(--tr-brand);
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.22em;
}

.tr-card {
    background: var(--tr-white);
    border: 1px solid var(--tr-line);
    border-radius: var(--tr-radius);
    box-shadow: var(--tr-shadow-sm);
}

/* Buttons */
.tr-btn {
    position: relative;
    min-width: 228px;
    min-height: 58px;
    padding: 16px 22px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    border: 1px solid var(--tr-brand);
    border-radius: 2px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.6s var(--ease-expo), background-color 0.6s var(--ease-expo), border-color 0.6s var(--ease-expo), opacity 0.4s var(--ease-expo);
}

.tr-btn .material-symbols-rounded {
    font-size: 1.15rem;
    transition: transform 0.6s var(--ease-expo);
}

.tr-btn--primary {
    color: var(--tr-white);
    background: var(--tr-brand);
}

.tr-btn--primary:hover:not(:disabled) {
    border-color: var(--tr-brand-deep);
    background: var(--tr-brand-deep);
}

.tr-btn--primary:hover .material-symbols-rounded {
    transform: translateX(5px);
}

/* Tags */
.tr-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}

.tr-tag .material-symbols-rounded {
    font-size: 13px;
}

.tr-tag--warn {
    color: var(--tr-amber);
    background: var(--tr-amber-bg);
    border-color: var(--tr-amber-line);
}

.tr-tag--ok {
    color: var(--tr-brand);
    background: var(--tr-blue-100);
}

.tr-ok {
    color: var(--tr-cyan);
}

/* Header logo (TradeRail) */
.tr-landing-body .logo {
    gap: 10px;
}

.tr-landing-body .logo .tr-logo-icon {
    display: block;
    width: 32px;
    height: 32px;
}

.tr-logo-name {
    color: #0f2440;
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Logo mark */
.tr-mark {
    display: block;
    flex: none;
    object-fit: contain;
}

.tr-mark--md {
    width: 30px;
    height: 30px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.tr-page .tr-hero {
    --hero-progress: 0;
    --hero-scroll-opacity: 1;
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--tr-white) 0%, var(--tr-white) 28%, var(--tr-blue-50) 100%);
    overflow: clip;
}

.tr-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
    padding-top: clamp(120px, 15vh, 170px);
    padding-bottom: clamp(96px, 12vh, 140px);
}

.tr-hero h1 {
    color: var(--tr-ink);
    font-size: clamp(2rem, 4.3vw, 3.3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.tr-hero__line {
    display: block;
    white-space: nowrap;
}

.tr-hero__lead {
    max-width: 36em;
    margin-top: clamp(28px, 4vh, 44px);
    color: var(--tr-body);
    font-size: clamp(0.96rem, 1.12vw, 1.08rem);
    line-height: 2;
}

.tr-hero__lead span {
    display: block;
}

.tr-hero__actions {
    margin-top: clamp(32px, 4.5vh, 48px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tr-hero__note {
    margin-top: 28px;
    color: var(--tr-muted);
    font-size: 0.84rem;
    line-height: 1.8;
}

.tr-hero__note span {
    display: block;
}

/* 縦書きの SCROLL 表示。参照実装 /services/ と同じく左下に置き、線は下へ消えていく */
.tr-hero__scroll {
    position: absolute;
    left: clamp(18px, 2.4vw, 38px);
    bottom: clamp(30px, 5vh, 56px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    opacity: var(--hero-scroll-opacity);
}

.tr-hero__scroll::after {
    content: '';
    width: 1px;
    height: 62px;
    background: linear-gradient(180deg, var(--tr-blue-400), rgba(139, 191, 232, 0));
    transform-origin: top;
}

/* Hero visual: Excel のシートに3枚の書類が重なる */
.tr-hero__visual {
    container-type: inline-size;
    min-width: 0;
}

.tr-stack {
    position: relative;
    aspect-ratio: 1 / 0.92;
    font-size: 1.72cqw;
    color: var(--tr-body);
}

.tr-sheet {
    position: absolute;
    top: 1em;
    left: 0;
    width: 76%;
    overflow: hidden;
    border: 1px solid var(--tr-blue-200);
    border-radius: 4px;
    background: var(--tr-white);
}

.tr-sheet__bar {
    height: 2.8em;
    padding: 0 1.1em;
    display: flex;
    align-items: center;
    gap: 0.6em;
    border-bottom: 1px solid var(--tr-line);
    color: var(--tr-ink);
    font-size: 1em;
    font-weight: 500;
    background: var(--tr-blue-50);
}

.tr-sheet__bar .material-symbols-rounded {
    color: var(--tr-brand);
    font-size: 1.4em;
}

.tr-sheet__grid {
    display: grid;
    grid-template-columns: 2.4em 6em 9.6em 4em 3.6em minmax(0, 1fr);
    font-size: 0.95em;
}

.tr-sheet__grid span {
    height: 2.5em;
    padding: 0 0.6em;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid var(--tr-blue-100);
    border-bottom: 1px solid var(--tr-blue-100);
    white-space: nowrap;
}

.tr-sheet__grid .is-head,
.tr-sheet__grid .is-row {
    justify-content: center;
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.86em;
    background: var(--tr-blue-50);
}

.tr-sheet__grid .is-label {
    color: var(--tr-ink);
    font-weight: 600;
}

.tr-sheet__grid .is-num {
    justify-content: flex-end;
    font-family: 'Inter', sans-serif;
}

.tr-paper {
    --fan-x: 0em;
    --fan-y: 0em;
    position: absolute;
    width: 22em;
    height: 31em;
    padding: 2.1em 1.9em 1.8em;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    border: 1px solid var(--tr-blue-200);
    border-top: 0.32em solid var(--tr-blue-400);
    border-radius: 3px;
    background: var(--tr-white);
    box-shadow: 0 1.6em 3em -2.4em rgba(15, 36, 64, 0.22);
    transform: translate3d(calc(var(--hero-progress) * var(--fan-x)), calc(var(--hero-progress) * var(--fan-y)), 0);
}

.tr-paper--1 {
    --fan-x: -1.6em;
    --fan-y: -1.2em;
    top: 9.5em;
    left: 20em;
    rotate: -3deg;
}

.tr-paper--2 {
    --fan-x: -0.6em;
    --fan-y: -0.4em;
    top: 14em;
    left: 27em;
    rotate: -1.2deg;
}

.tr-paper--3 {
    --fan-x: 0.8em;
    --fan-y: 0.6em;
    top: 18.5em;
    left: 34em;
    rotate: 0.8deg;
    border-top-color: var(--tr-brand);
}

.tr-paper__head {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    padding-bottom: 0.9em;
    border-bottom: 1px solid var(--tr-line);
}

.tr-paper__title {
    color: var(--tr-ink);
    font-family: 'Inter', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tr-paper__ja {
    color: var(--tr-muted);
    font-size: 0.8em;
}

.tr-skel {
    display: block;
    flex-shrink: 0;
    width: var(--w, 70%);
    height: 0.5em;
    border-radius: 1px;
    background: var(--tr-blue-100);
}

.tr-paper__meta {
    display: grid;
}

.tr-paper__meta div {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    padding: 0.32em 0;
    border-bottom: 1px dashed var(--tr-line);
    font-family: 'Inter', sans-serif;
}

.tr-paper__meta dt {
    color: var(--tr-muted);
    font-size: 0.78em;
}

.tr-paper__meta dd {
    color: var(--tr-ink);
    font-size: 0.82em;
    font-weight: 600;
}

.tr-paper__table {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    font-size: 0.8em;
}

.tr-paper__table span {
    padding: 0.45em 0.3em;
    border-bottom: 1px solid var(--tr-line);
    color: var(--tr-ink);
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
}

.tr-paper__table .is-th {
    color: var(--tr-muted);
    font-size: 0.9em;
    font-weight: 500;
    border-bottom-color: var(--tr-blue-400);
}

.tr-paper__table span:nth-child(3n + 1) {
    padding-right: 0.8em;
    white-space: nowrap;
}

.tr-paper__table .is-r {
    text-align: right;
    white-space: nowrap;
}

.tr-paper__table em {
    display: block;
    margin-top: 0.25em;
    color: var(--tr-brand);
    font-size: 0.88em;
    font-style: normal;
}

.tr-paper__foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tr-chip {
    padding: 0.25em 0.6em;
    border-radius: 2px;
    color: var(--tr-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--tr-brand);
}
/* ==========================================================================
   Documents band: ヒーローの下端の薄い青から続く帯
   ========================================================================== */
.tr-page .tr-docs {
    position: relative;
    padding-block: clamp(40px, 4.4vw, 60px);
    background: var(--tr-blue-50);
    border-top: 1px solid var(--tr-line);
    border-bottom: 1px solid var(--tr-line);
}

.tr-docs__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.tr-docs__head {
    flex: none;
}

.tr-docs__title {
    color: var(--tr-ink);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tr-docs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    list-style: none;
}

.tr-doc-chip {
    padding: 12px 28px 12px 12px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--tr-line);
    border-radius: 999px;
    background: var(--tr-white);
    box-shadow: var(--tr-shadow-sm);
}

.tr-doc-chip__icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tr-brand);
    background: var(--tr-blue-100);
}

.tr-doc-chip__text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.tr-doc-chip__text b {
    color: var(--tr-ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.tr-doc-chip__text span {
    margin-top: 2px;
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.tr-docs__note {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tr-muted);
    font-size: 0.86rem;
}

.tr-docs__note .material-symbols-rounded {
    color: var(--tr-brand);
    font-size: 18px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.tr-page .tr-section {
    padding-block: clamp(96px, 11vw, 152px);
    background: var(--tr-white);
}

.tr-page .tr-section--tint {
    background: var(--tr-blue-50);
}

.tr-head {
    margin-bottom: clamp(48px, 6vw, 76px);
    text-align: center;
}

.tr-head .reveal-title {
    max-width: 100%;
}

.tr-head h2 {
    color: var(--tr-ink);
    font-size: clamp(1.75rem, 3.1vw, 2.7rem);
    line-height: 1.38;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.tr-head .reveal-title__line {
    width: 56px;
    margin: 22px auto 0;
    transform-origin: center;
}

.tr-head__lead {
    margin-top: 26px;
    color: var(--tr-body);
    line-height: 1.95;
}

.tr-head__lead span {
    display: block;
}

/* Problems */
.tr-problems__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    list-style: none;
}

.tr-problem {
    padding: 32px 28px 34px;
}

.tr-problem__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--tr-brand);
    background: linear-gradient(145deg, var(--tr-blue-50), var(--tr-blue-100));
    box-shadow: inset 0 0 0 1px var(--tr-line);
}

.tr-problem__icon .material-symbols-rounded {
    font-size: 26px;
}

.tr-problem__title {
    margin-top: 26px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--tr-ink);
    font-size: 1.16rem;
    line-height: 1.4;
}

.tr-problem__num {
    color: var(--tr-blue-400);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.tr-page .tr-problem p {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.tr-problem p {
    margin-top: 12px;
    color: var(--tr-body);
    font-size: 0.95rem;
    line-height: 1.85;
}

/* How it works */
.tr-how {
    scroll-margin-top: 0;
}

.tr-steps {
    --tr-step-gap: clamp(20px, 2.4vw, 32px);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tr-step-gap);
    list-style: none;
}

.tr-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc((100% - var(--tr-step-gap) * 2) / 6);
    right: calc((100% - var(--tr-step-gap) * 2) / 6);
    height: 1px;
    background: var(--tr-blue-400);
    transform-origin: left center;
}

.tr-step {
    position: relative;
    display: flex;
    flex-direction: column;
}

.tr-step__marker {
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
}

.tr-step__num {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tr-blue-400);
    border-radius: 50%;
    color: var(--tr-brand);
    background: var(--tr-white);
    box-shadow: 0 0 0 7px var(--tr-blue-50);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tr-step__card {
    flex: 1;
    padding: 22px 22px 32px;
}

.tr-step__art {
    height: 176px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tr-line-soft);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 0%, rgba(211, 230, 247, 0.55), transparent 70%),
        #f7fafd;
    font-size: 11px;
    line-height: 1.4;
}

.tr-step__art .material-symbols-rounded {
    font-size: 14px;
}

.tr-step__title {
    margin-top: 26px;
    color: var(--tr-ink);
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.tr-step__text {
    margin-top: 10px;
    color: var(--tr-body);
    font-size: 0.94rem;
    line-height: 1.85;
}

.tr-step__text span {
    display: block;
}

/* step art: upload */
.tr-art-upload {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.tr-art-upload__drop {
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px dashed var(--tr-blue-400);
    border-radius: 10px;
    background: var(--tr-white);
}

.tr-art-upload__drop .material-symbols-rounded {
    color: var(--tr-brand);
    font-size: 22px;
}

.tr-art-upload__file {
    color: var(--tr-ink);
    font-weight: 600;
    white-space: nowrap;
}

.tr-art-upload__map {
    display: grid;
    gap: 5px;
}

.tr-art-upload__map > span {
    padding: 4px 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--tr-line);
    border-radius: 8px;
    color: var(--tr-brand-deep);
    background: var(--tr-white);
    font-family: 'Inter', 'IBM Plex Sans JP', sans-serif;
}

.tr-art-upload__map b {
    min-width: 30px;
    color: var(--tr-ink);
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-weight: 600;
}

.tr-art-upload__map i {
    color: var(--tr-blue-400);
    font-style: normal;
}

.tr-step__art .tr-art-upload__map .tr-ok,
.tr-step__art .tr-art-upload__map .tr-warn-icon {
    margin-left: auto;
    font-size: 15px;
}

.tr-art-upload__map .tr-ok {
    color: var(--tr-cyan);
}

.tr-art-upload__map > span.is-warn {
    border-color: var(--tr-amber-line);
    background: var(--tr-amber-bg);
}

.tr-art-upload__map .tr-warn-icon {
    color: var(--tr-amber);
}

/* step art: review */
.tr-art-review {
    gap: 10px;
}

.tr-art-review__src {
    width: 72px;
    padding: 9px 8px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--tr-line);
    border-radius: 8px;
    background: var(--tr-white);
}

.tr-art-review__src i {
    height: 9px;
    border-radius: 3px;
    background: var(--tr-line);
}

.tr-art-review__src i.is-focus {
    background: var(--tr-blue-400);
}

.tr-step__art .tr-art-review__arrow {
    color: var(--tr-blue-400);
    font-size: 18px;
}

.tr-art-review__doc {
    flex: 1;
    max-width: 156px;
    padding: 11px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--tr-line);
    border-radius: 8px;
    background: var(--tr-white);
    box-shadow: var(--tr-shadow-sm);
}

.tr-art-review__line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 16px;
}

.tr-art-review__line i {
    height: 7px;
    border-radius: 3px;
    background: var(--tr-blue-200);
}

.tr-art-review__line b {
    margin-left: auto;
}

.tr-art-review__line .tr-tag {
    margin-left: auto;
    padding: 0 6px;
    font-size: 9.5px;
}

.tr-art-review__line.is-flag i {
    background: #f2dcb2;
}

.tr-art-review__btn {
    align-self: flex-end;
    margin-top: 2px;
    padding: 2px 10px;
    border-radius: 6px;
    color: var(--tr-white);
    background: var(--tr-brand);
    font-size: 10px;
    font-weight: 600;
}

/* step art: output */
.tr-art-output {
    flex-direction: column;
    gap: 14px;
}

.tr-art-output__pdfs {
    display: flex;
    gap: 8px;
}

.tr-art-output__pdfs span {
    width: 64px;
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--tr-line);
    border-radius: 8px;
    background: var(--tr-white);
    box-shadow: var(--tr-shadow-sm);
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
}

.tr-art-output__pdfs span:nth-child(2) {
    transform: translateY(-6px);
}

.tr-step__art .tr-art-output__pdfs i {
    color: var(--tr-brand);
    font-size: 26px;
    font-style: normal;
}

.tr-art-output__log {
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--tr-line);
    border-radius: 999px;
    background: var(--tr-white);
    color: var(--tr-ink);
    font-weight: 600;
}

.tr-art-output__log > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tr-step__art .tr-art-output__log i {
    color: var(--tr-brand);
    font-size: 15px;
    font-style: normal;
}

.tr-art-output__time {
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Features */
.tr-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.tr-feature + .tr-feature {
    margin-top: clamp(72px, 9vw, 128px);
}

.tr-feature--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.tr-feature--reverse .tr-feature__copy {
    grid-column: 2;
    grid-row: 1;
}

.tr-feature--reverse .tr-feature__visual {
    grid-column: 1;
    grid-row: 1;
}

.tr-feature__copy {
    max-width: 480px;
}

.tr-feature__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tr-brand);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.tr-feature__kicker .material-symbols-rounded {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--tr-blue-100);
    font-size: 18px;
}

.tr-feature__title {
    margin-top: 20px;
    color: var(--tr-ink);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.42;
    letter-spacing: -0.03em;
}

.tr-feature__text {
    margin-top: 18px;
    color: var(--tr-body);
    font-size: 1rem;
    line-height: 2;
}

.tr-feature__text span {
    display: block;
}

@media (min-width: 901px) {
    .tr-feature__text span {
        text-wrap: balance;
    }
}

.tr-feature__visual {
    min-height: 380px;
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(211, 230, 247, 0.7), transparent 75%),
        var(--tr-blue-50);
    border: 1px solid var(--tr-line-soft);
}

.tr-snip {
    width: 100%;
    padding: 20px 22px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.tr-snip .material-symbols-rounded {
    font-size: 16px;
}

.tr-snip__label {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tr-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.tr-snip__label .material-symbols-rounded {
    color: var(--tr-brand);
}

/* snippet: learning master */
.tr-snip-learn {
    align-items: stretch;
}

.tr-snip-learn__edit {
    width: 80%;
    align-self: flex-start;
}

.tr-snip-learn__before {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tr-snip-learn__before s {
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
}

.tr-snip-learn__field {
    margin-top: 10px;
    padding: 9px 12px;
    border: 1.5px solid var(--tr-brand);
    border-radius: 8px;
    color: var(--tr-ink);
    box-shadow: 0 0 0 4px rgba(45, 90, 160, 0.12);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
}

.tr-caret {
    display: inline-block;
    width: 1.5px;
    height: 15px;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--tr-brand);
}

.tr-snip-learn__save {
    margin-top: 12px;
    padding: 5px 12px 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    color: var(--tr-white);
    background: var(--tr-brand);
    font-size: 12px;
    font-weight: 600;
}

.tr-snip-learn__flow {
    position: relative;
    align-self: center;
    margin: 26px 0;
    padding: 6px 14px 6px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--tr-blue-400);
    border-radius: 999px;
    color: var(--tr-brand-deep);
    background: var(--tr-white);
    font-size: 12px;
    font-weight: 600;
}

.tr-snip-learn__flow::before,
.tr-snip-learn__flow::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 22px;
    background: var(--tr-blue-400);
}

.tr-snip-learn__flow::before {
    bottom: 100%;
}

.tr-snip-learn__flow::after {
    top: 100%;
}

.tr-snip-learn__flow .material-symbols-rounded {
    color: var(--tr-brand);
    font-size: 16px;
}

.tr-snip-learn__master {
    width: 94%;
    align-self: flex-end;
}

.tr-master {
    overflow: hidden;
    border: 1px solid var(--tr-line);
    border-radius: 10px;
}

.tr-master__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--tr-line-soft);
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
}

.tr-master__row:last-child {
    border-bottom: 0;
}

.tr-master__row--head {
    color: var(--tr-muted);
    background: #fafcfe;
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
}

.tr-master__row > span:first-child {
    color: var(--tr-muted);
}

.tr-master__row--head > span:first-child {
    color: inherit;
}

.tr-master__row--new {
    background: rgba(48, 185, 196, 0.08);
    box-shadow: inset 3px 0 0 var(--tr-cyan);
}

.tr-master__row--new > span:nth-child(2) {
    color: var(--tr-ink);
    font-weight: 600;
}

.tr-master__badge {
    margin-left: auto;
    padding: 1px 8px 1px 5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
    color: #17808a;
    background: rgba(48, 185, 196, 0.16);
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}

.tr-snip .tr-master__badge .material-symbols-rounded {
    font-size: 12px;
}

.tr-snip-learn__next {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tr-brand-deep);
    font-size: 12px;
    font-weight: 600;
}

.tr-snip-learn__next .material-symbols-rounded {
    color: var(--tr-cyan);
}

/* snippet: AI check */
.tr-snip-check {
    max-width: 480px;
}

.tr-snip-check__head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tr-snip-check__head .tr-snip__label {
    margin-bottom: 0;
}

.tr-snip-check__filters {
    display: flex;
    gap: 6px;
}

.tr-snip-check__filters span {
    padding: 2px 10px;
    border-radius: 999px;
    color: var(--tr-muted);
    background: #f1f5fa;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.tr-snip-check__filters .is-active {
    color: var(--tr-white);
    background: var(--tr-brand-deep);
}

.tr-snip-check__filters .tr-snip-check__warn {
    color: var(--tr-amber);
    background: var(--tr-amber-bg);
}

.tr-snip-check__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid var(--tr-line);
    border-radius: 12px;
}

.tr-snip-check__row + .tr-snip-check__row {
    margin-top: 8px;
}

.tr-snip-check__src {
    color: var(--tr-muted);
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
}

.tr-snip-check__dst {
    grid-row: 2;
    color: var(--tr-ink);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
}

.tr-snip-check__row .tr-tag {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.tr-snip-check__row.is-flag {
    border-color: var(--tr-amber-line);
    background: #fffaf0;
}

/* snippet: rules */
.tr-snip-rules {
    align-items: center;
}

.tr-snip-rules__card {
    width: 76%;
}

.tr-snip-rules__name {
    margin-bottom: 10px;
    color: var(--tr-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.tr-snip-rules__list div {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--tr-line-soft);
    font-size: 12.5px;
}

.tr-snip-rules__list dt {
    color: var(--tr-muted);
}

.tr-snip-rules__list dd {
    color: var(--tr-ink);
    font-weight: 600;
    text-align: right;
}

/* snippet: browser only */
.tr-snip-browser {
    max-width: 480px;
    padding: 26px 22px 22px;
}

.tr-snip-browser__flow {
    display: flex;
    align-items: center;
}

.tr-snip-browser__node {
    flex: 1;
    min-width: 0;
    padding: 18px 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--tr-line);
    border-radius: 14px;
    background: #f8fbfe;
    text-align: center;
}

.tr-snip .tr-snip-browser__node > .material-symbols-rounded {
    color: var(--tr-muted);
    font-size: 28px;
}

.tr-snip-browser__node b {
    color: var(--tr-ink);
    font-size: 13px;
    font-weight: 700;
}

.tr-snip-browser__node--brand b {
    font-family: 'Inter', sans-serif;
}

.tr-snip-browser__node small {
    color: var(--tr-muted);
    font-size: 11px;
}

.tr-snip-browser__node--brand {
    border-color: var(--tr-blue-400);
    background: var(--tr-white);
    box-shadow: var(--tr-shadow-sm);
}

.tr-snip-browser__link {
    position: relative;
    flex: 0 0 72px;
    height: 0;
    border-top: 1.5px dashed var(--tr-blue-400);
}

.tr-snip-browser__link span {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 1px 8px;
    border: 1px solid var(--tr-line);
    border-radius: 999px;
    color: var(--tr-brand);
    background: var(--tr-white);
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    transform: translate(-50%, -50%);
}

.tr-snip-browser__chips {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tr-snip-browser__chips li {
    padding: 5px 12px 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    color: var(--tr-brand-deep);
    background: var(--tr-blue-100);
    font-size: 12px;
    font-weight: 600;
}

/* Onboarding timeline */
.tr-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 36px);
    list-style: none;
}

.tr-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--tr-blue-400) 0%, var(--tr-blue-400) 78%, rgba(139, 191, 232, 0));
    transform-origin: left center;
}

.tr-timeline__item {
    position: relative;
    padding-top: 40px;
}

.tr-timeline__dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 17px;
    height: 17px;
    border: 2px solid var(--tr-brand);
    border-radius: 50%;
    background: var(--tr-white);
    box-shadow: 0 0 0 6px var(--tr-blue-50);
}

.tr-timeline__item:last-child .tr-timeline__dot {
    border-style: dashed;
}

.tr-timeline__step {
    min-height: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--tr-brand);
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.tr-timeline__badge {
    padding: 2px 10px 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--tr-line);
    border-radius: 999px;
    color: var(--tr-brand-deep);
    background: var(--tr-white);
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0;
}

.tr-timeline__badge .material-symbols-rounded {
    color: var(--tr-brand);
    font-size: 15px;
}

.tr-timeline__title {
    margin-top: 12px;
    color: var(--tr-ink);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.tr-timeline__text {
    margin-top: 10px;
    color: var(--tr-body);
    font-size: 0.94rem;
    line-height: 1.85;
}

/* FAQ */
.tr-faq__shell {
    max-width: 920px;
}

.tr-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-faq__item {
    border: 1px solid var(--tr-line);
    border-radius: 16px;
    background: var(--tr-white);
    transition: box-shadow 0.5s var(--ease-expo), border-color 0.5s var(--ease-expo);
}

.tr-faq__item[open] {
    border-color: var(--tr-blue-200);
    box-shadow: var(--tr-shadow-sm);
}

.tr-faq__item summary {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    color: var(--tr-ink);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
}

.tr-faq__item summary::-webkit-details-marker {
    display: none;
}

.tr-faq__q {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tr-brand);
    background: var(--tr-blue-100);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
}

.tr-faq__question {
    flex: 1;
    min-width: 0;
}

.tr-faq__icon {
    flex: none;
    color: var(--tr-muted);
    transition: transform 0.5s var(--ease-expo);
}

.tr-faq__item[open] .tr-faq__icon {
    transform: rotate(180deg);
}

.tr-faq__answer {
    padding: 0 24px 24px 72px;
    color: var(--tr-body);
    font-size: 0.96rem;
    line-height: 1.9;
}

.tr-faq__answer span {
    display: block;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.tr-contact {
    scroll-margin-top: 0;
}

.tr-contact__grid {
    max-width: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
}

.tr-contact__intro {
    text-align: center;
}

.tr-contact__title h2 {
    color: var(--tr-ink);
    font-size: clamp(1.75rem, 3.1vw, 2.7rem);
    line-height: 1.38;
    letter-spacing: -0.035em;
}

.tr-contact__title .reveal-title__line {
    width: 56px;
    margin: 22px auto 0;
}

/* Form */
.tr-form {
    padding: clamp(28px, 3.6vw, 48px) clamp(22px, 3.6vw, 48px) clamp(32px, 4vw, 52px);
    border-radius: 24px;
    box-shadow: var(--tr-shadow-md);
}

.tr-form__title {
    color: var(--tr-ink);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.tr-form__status {
    margin-top: 6px;
    color: var(--tr-body);
    font-size: 0.86rem;
    line-height: 1.7;
}

.tr-form__status:focus {
    outline: none;
}

.tr-form__status:empty {
    display: none;
}

.tr-form__notice {
    margin-top: 16px;
    padding: 14px 18px;
    border: 1px solid var(--tr-amber-line);
    border-radius: 12px;
    color: var(--tr-ink);
    background: var(--tr-amber-bg);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.8;
}

.tr-form__notice[hidden] {
    display: none;
}

.tr-form__notice a,
.tr-form__privacy a,
.tr-consent__label a {
    color: var(--tr-brand);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.tr-form__fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tr-field {
    min-width: 0;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    border: 0;
}

.tr-field > label {
    display: flex;
    align-items: center;
    color: var(--tr-ink);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.tr-field input[type='text'],
.tr-field input[type='email'],
.tr-field select,
.tr-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #c8d8ea;
    border-radius: 10px;
    color: var(--tr-ink);
    background: var(--tr-white);
    font: inherit;
    font-size: 1rem;
    line-height: 1.6;
    transition: border-color 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo);
}

.tr-field textarea {
    min-height: 180px;
    resize: vertical;
}

.tr-field input:focus,
.tr-field select:focus,
.tr-field textarea:focus {
    border-color: var(--tr-brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 90, 160, 0.14);
}

.tr-form__fields:disabled input,
.tr-form__fields:disabled select,
.tr-form__fields:disabled textarea {
    background: #f6f9fc;
}

.tr-field [aria-invalid='true'] {
    border-color: var(--tr-error);
}

.tr-select {
    position: relative;
}

.tr-field select {
    padding-right: 48px;
    appearance: none;
    cursor: pointer;
}

.tr-field select:invalid {
    color: var(--tr-muted);
}

.tr-form__fields:disabled select {
    cursor: default;
}

.tr-select__icon {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--tr-brand);
    font-size: 24px;
    pointer-events: none;
    transform: translateY(-50%);
}

.tr-field__error {
    color: var(--tr-error);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.6;
}

.tr-field__error[hidden] {
    display: none;
}

.tr-consent__label input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--tr-brand);
}

.tr-form__privacy {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--tr-line-soft);
    color: var(--tr-muted);
    font-size: 0.82rem;
    line-height: 1.8;
}

.tr-consent {
    margin-top: 14px;
}

.tr-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tr-ink);
    font-size: 0.92rem;
    line-height: 1.6;
    cursor: pointer;
}

.tr-consent__label input {
    margin-top: 0.1em;
}

.tr-form__verification {
    margin-top: 22px;
}

.tr-form__verification:empty {
    display: none;
}

.tr-form__submit {
    width: 100%;
    margin-top: 28px;
    justify-content: center;
    border-radius: 999px;
    font-size: 1rem;
}

.tr-form__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tr-form__retry {
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tr-brand);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.3em;
    cursor: pointer;
}

.tr-form__retry[hidden] {
    display: none;
}

/* 受付後はフォームを完了表示に置き換える */
.tr-form.is-done :is(.tr-form__fields, .tr-form__retry, .tr-form__notice) {
    display: none;
}

.tr-form.is-done .tr-form__status,
.tr-form.is-unavailable .tr-form__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.tr-form__done {
    margin-top: 28px;
    display: grid;
    justify-items: start;
}

.tr-form__done[hidden] {
    display: none;
}

.tr-form__done-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tr-white);
    background: var(--tr-brand);
    box-shadow: 0 14px 28px -12px rgba(45, 90, 160, 0.6);
}

.tr-form__done-icon .material-symbols-rounded {
    font-size: 34px;
}

.tr-form__done-title {
    margin-top: 22px;
    color: var(--tr-ink);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.tr-form__done-title:focus {
    outline: none;
}

.tr-form__done-message {
    margin-top: 12px;
    color: var(--tr-body);
    font-size: 0.96rem;
    line-height: 1.9;
}



/* Footer: 共通の新フッターに合わせる(services と同じ指定) */
.tr-landing-body footer {
    padding: 120px 0 40px;
    color: #ffffff;
    background: #0a1526;
    font-size: 15px;
    line-height: 1.75;
}

.tr-landing-body footer .footer-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.tr-landing-body footer .footer-links,
.tr-landing-body footer .footer-links:first-child {
    flex: 0 0 auto;
    margin-right: 0;
}

.tr-landing-body footer .footer-links h3 {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 700;
}

.tr-landing-body footer .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-landing-body footer .footer-links li {
    margin-bottom: 0;
}

.tr-landing-body footer .footer-links a {
    padding-bottom: 2px;
    color: #ffffff;
    font-size: 0.875rem;
    background-image: linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.tr-landing-body footer .footer-links a:hover {
    color: #ffffff;
    background-size: 100% 1px;
}

.tr-landing-body footer .copyright {
    max-width: 1120px;
    margin: 80px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-align: left;
}

/* ==========================================================================
   Motion: html.tr-motion-ready の下でだけ初期状態を隠す。
   JS 無効時や prefers-reduced-motion: reduce では readyClass が付かないので最終状態で表示される。
   ========================================================================== */
.tr-motion-ready .tr-hero h1,
.tr-motion-ready .tr-hero__lead,
.tr-motion-ready .tr-hero__actions,
.tr-motion-ready .tr-hero__note {
    animation: tr-rise 1.4s var(--ease-expo) both;
}

.tr-motion-ready .tr-hero h1 { animation-delay: 0.32s; --enter-y: 24px; }
.tr-motion-ready .tr-hero__lead { animation-delay: 0.56s; --enter-y: 18px; }
.tr-motion-ready .tr-hero__actions { animation-delay: 0.72s; --enter-y: 16px; }
.tr-motion-ready .tr-hero__note { animation-delay: 0.86s; --enter-y: 12px; }

.tr-motion-ready .tr-sheet {
    animation: tr-fade 1.2s var(--ease-expo) 0.3s both;
}

.tr-motion-ready .tr-paper {
    animation: tr-paper-in 1.5s var(--ease-expo) both;
}

.tr-motion-ready .tr-paper--1 { animation-delay: 0.55s; }
.tr-motion-ready .tr-paper--2 { animation-delay: 0.7s; }
.tr-motion-ready .tr-paper--3 { animation-delay: 0.85s; }

/* backwards: 入場後は --hero-scroll-opacity によるスクロール連動の opacity に戻す */
.tr-motion-ready .tr-hero__scroll {
    animation: tr-fade 1.1s var(--ease-expo) 1.1s backwards;
}

.tr-motion-ready .tr-hero__scroll::after {
    animation: page-scroll-line 2.8s var(--ease-expo) infinite;
}

.tr-motion-ready .tr-caret {
    animation: tr-blink 1.1s steps(1) infinite;
}

@keyframes tr-rise {
    from { opacity: 0; transform: translateY(var(--enter-y, 20px)); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tr-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 紙は個別の translate で入れる。transform はスクロールで扇状に広げるのに使う */
@keyframes tr-paper-in {
    from { opacity: 0; translate: -1.8em 2.2em; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes tr-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Desktop: スクロール進捗 --tr-progress によるスクラブ */
@media (min-width: 901px) {
    .tr-motion-ready [data-tr-scrub] {
        --tr-progress: 0;
    }

    .tr-motion-ready [data-tr-scrub] .tr-reveal {
        --tr-item: clamp(0, calc((var(--tr-progress) - var(--d, 0)) * 2.2), 1);
        opacity: var(--tr-item);
        transform: translate3d(0, calc((1 - var(--tr-item)) * 24px), 0);
    }

    .tr-motion-ready [data-tr-scrub] .reveal-title__text {
        --tr-title: clamp(0, calc((var(--tr-progress) - 0.06) * 2.2), 1);
        transform: translate3d(0, calc((1 - var(--tr-title)) * 102%), 0);
    }

    .tr-motion-ready [data-tr-scrub] .reveal-title__line {
        --tr-line: clamp(0, calc((var(--tr-progress) - 0.3) * 2.2), 1);
        transform: scaleX(var(--tr-line));
    }

    .tr-motion-ready .tr-steps::before,
    .tr-motion-ready .tr-timeline::before {
        transform: scaleX(clamp(0, calc((var(--tr-progress) - 0.12) * 1.6), 1));
    }
}

/* 900px 以下: page-motion.js が付ける .is-visible で時間ベースに出す */
@media (max-width: 900px) {
    .tr-motion-ready [data-tr-scrub] .tr-reveal {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
        transition: opacity 1.1s var(--ease-slow) calc(var(--d, 0) * 1s),
                    transform 1.3s var(--ease-slow) calc(var(--d, 0) * 1s);
    }

    .tr-motion-ready [data-tr-scrub].is-visible .tr-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-page *,
    .tr-page *::before,
    .tr-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .tr-docs__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-docs__list {
        justify-content: flex-start;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .tr-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .tr-hero__scroll {
        display: none;
    }

    .tr-page .tr-hero {
        min-height: 0;
        display: block;
    }

    .tr-hero__inner {
        max-width: 760px;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(48px, 10vw, 72px);
        padding-top: 112px;
        padding-bottom: clamp(72px, 14vw, 104px);
    }

    .tr-hero h1 {
        font-size: clamp(2rem, 9.6vw, 4rem);
        line-height: 1.16;
    }

    .tr-hero__lead {
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .tr-steps {
        max-width: 600px;
        margin: 0 auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .tr-steps::before {
        top: 22px;
        bottom: 60px;
        left: 22px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .tr-step {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .tr-step__marker {
        margin-bottom: 0;
    }

    .tr-feature,
    .tr-feature--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .tr-feature--reverse .tr-feature__copy,
    .tr-feature--reverse .tr-feature__visual {
        grid-column: 1;
        grid-row: auto;
    }

    .tr-feature__copy {
        max-width: none;
    }

    .tr-feature__visual {
        min-height: 0;
    }

    .tr-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 48px;
    }

    .tr-timeline::before {
        display: none;
    }

}

@media (max-width: 768px) {
    .tr-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tr-hero__actions .tr-btn {
        width: 100%;
        min-width: 0;
    }

    .tr-docs__list {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .tr-doc-chip {
        border-radius: 16px;
    }

    .tr-page .tr-section {
        padding-block: 88px;
    }

    .tr-head {
        margin-bottom: 44px;
    }

    .tr-head h2,
    .tr-contact__title h2 {
        font-size: clamp(1.55rem, 6.6vw, 2.1rem);
    }

    .tr-head__lead {
        font-size: 0.94rem;
    }

    .tr-step__card {
        padding: 18px 18px 26px;
    }

    .tr-step__art {
        height: 164px;
        padding: 14px;
    }

    .tr-feature + .tr-feature {
        margin-top: 72px;
    }

    .tr-feature__text {
        font-size: 0.96rem;
        line-height: 1.95;
    }

    .tr-feature__visual {
        padding: 24px 14px;
        border-radius: 20px;
    }

    .tr-snip {
        padding: 16px 16px;
    }

    .tr-snip-learn__edit,
    .tr-snip-learn__master,
    .tr-snip-rules__card {
        width: 94%;
    }

    .tr-master__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        font-size: 11.5px;
    }

    .tr-master__row--head {
        display: none;
    }

    .tr-snip-check__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-snip-browser__link {
        flex-basis: 34px;
    }

    .tr-snip-browser__link span {
        display: none;
    }

    .tr-snip-browser__node b {
        font-size: 12px;
    }

    .tr-timeline {
        max-width: 560px;
        margin: 0 auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .tr-timeline::before {
        display: block;
        top: 8px;
        bottom: 24px;
        left: 8px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--tr-blue-400) 0%, var(--tr-blue-400) 80%, rgba(139, 191, 232, 0));
    }

    .tr-timeline__item {
        padding: 0 0 40px 44px;
    }

    .tr-timeline__item:last-child {
        padding-bottom: 0;
    }

    .tr-faq__item summary {
        padding: 18px 18px;
        gap: 12px;
        font-size: 0.96rem;
    }

    .tr-faq__answer {
        padding: 0 18px 20px 62px;
        font-size: 0.92rem;
    }

    .tr-form {
        border-radius: 20px;
    }

    .tr-landing-body footer {
        padding: 80px 0 32px;
    }

    .tr-landing-body footer .footer-container {
        flex-direction: column;
        gap: 48px;
    }

    .tr-landing-body .menu-overlay {
        z-index: 999;
    }
}

@media (max-width: 760px) {
    .tr-problems__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tr-problem {
        padding: 22px 20px 24px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
        align-items: start;
    }

    .tr-problem__icon {
        width: 44px;
        height: 44px;
        grid-row: span 2;
        border-radius: 12px;
    }

    .tr-problem__icon .material-symbols-rounded {
        font-size: 22px;
    }

    .tr-problem__title {
        margin-top: 8px;
    }

    .tr-problem p {
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .tr-stack {
        font-size: 1.78cqw;
    }
}
