/* Tokyo IT — site visual system */
:root {
    --ink: #121820;
    --ink-soft: #2a3441;
    --muted: #5c6775;
    --line: #d5dbe3;
    --paper: #eef1f4;
    --paper-deep: #e4e9ef;
    --surface: #f7f8fa;
    --sea: #1a5f7a;
    --sea-deep: #0f3d52;
    --signal: #c2410c;
    --signal-hover: #9a3412;
    --ok: #0f766e;
    --white: #ffffff;
    --hero-overlay: linear-gradient(
        105deg,
        rgba(18, 24, 32, 0.88) 0%,
        rgba(18, 24, 32, 0.72) 42%,
        rgba(15, 61, 82, 0.45) 100%
    );
    --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
    --space: clamp(1.25rem, 3vw, 2.5rem);
    --section-y: clamp(3.5rem, 8vw, 6.5rem);
    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(18, 24, 32, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 24, 32, 0.03) 1px, transparent 1px),
        radial-gradient(ellipse at 0% 0%, rgba(26, 95, 122, 0.08), transparent 45%),
        radial-gradient(ellipse at 100% 20%, rgba(194, 65, 12, 0.05), transparent 40%);
    background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--sea);
}

a:hover {
    color: var(--sea-deep);
}

section[id],
header[id] {
    scroll-margin-top: 5.5rem;
}

.site-wrap {
    overflow-x: clip;
}

.container-ti {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

/* ----- Nav ----- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 248, 250, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.site-nav__brand img {
    height: 40px;
    width: auto;
    display: block;
}

.site-nav__toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 0.45rem 0.75rem;
    font: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.site-nav__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s var(--ease);
}

.site-nav__links a:hover {
    color: var(--sea);
}

.site-nav__links a.is-cta {
    color: var(--white);
    background: var(--ink);
    padding: 0.45rem 0.95rem;
    border-radius: 2px;
}

.site-nav__links a.is-cta:hover {
    background: var(--sea);
    color: var(--white);
}

@media (max-width: 960px) {
    .site-nav__toggle {
        display: inline-flex;
    }

    .site-nav__links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0 1rem;
        gap: 0.75rem;
    }

    .site-nav__links.is-open {
        display: flex;
    }

    .site-nav__inner {
        flex-wrap: wrap;
    }
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: grid;
    align-items: end;
    color: var(--white);
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: hero-drift 28s var(--ease) infinite alternate;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hero-overlay);
}

.hero__content {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 7rem 0 4.5rem;
}

.hero__brand {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 4.35rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.04em;
    animation: rise 0.9s var(--ease) both;
}

.hero__headline {
    margin: 0 0 1rem;
    max-width: 18em;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.03em;
    animation: rise 0.9s var(--ease) 0.12s both;
}

.hero__lead {
    margin: 0 0 2rem;
    max-width: 34em;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    animation: rise 0.9s var(--ease) 0.22s both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    animation: rise 0.9s var(--ease) 0.32s both;
}

.btn-ti {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-ti:active {
    transform: translateY(1px);
}

.btn-ti--signal {
    background: var(--signal);
    color: var(--white);
}

.btn-ti--signal:hover {
    background: var(--signal-hover);
    color: var(--white);
}

.btn-ti--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ti--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-ti--ink {
    background: var(--ink);
    color: var(--white);
    width: 100%;
}

.btn-ti--ink:hover {
    background: var(--sea);
    color: var(--white);
}

@keyframes hero-drift {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Sections ----- */
.section {
    padding: var(--section-y) 0;
}

.section--band {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.section--ink {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.92);
    border: none;
}

.section__head {
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: var(--ink);
}

.section--ink .section__title {
    color: var(--white);
}

.section__lead {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 1rem;
}

.section--ink .section__lead {
    color: rgba(255, 255, 255, 0.72);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Offer strip (AI / SEC) ----- */
.offer-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

@media (min-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.offer-item {
    display: grid;
    gap: 0.65rem;
    padding: 1.5rem 1.35rem;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s var(--ease);
}

.offer-item:hover {
    background: var(--paper-deep);
    color: inherit;
}

.offer-item__label {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.offer-item__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

.offer-item__desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.offer-item__more {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sea);
}

/* ----- Metrics ----- */
.metric-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .metric-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.metric {
    padding-block: 0.25rem;
    border-top: 2px solid var(--sea);
    padding-top: 1rem;
}

.metric__value {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.metric__label {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ----- Features ----- */
.feature-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
    .feature-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
    .feature {
        padding: 1.75rem 1.5rem 1.75rem 0;
        border-bottom: none;
        border-right: 1px solid var(--line);
    }

    .feature:last-child {
        border-right: none;
        padding-right: 0;
        padding-left: 1.5rem;
    }

    .feature:nth-child(2) {
        padding-inline: 1.5rem;
    }
}

.feature__index {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--sea);
    font-weight: 600;
}

.feature__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
}

.feature__subtitle {
    margin: 0 0 0.85rem;
    font-weight: 600;
    color: var(--sea-deep);
}

.feature__text {
    margin: 0;
    color: var(--muted);
}

/* ----- Approach ----- */
.approach-intro {
    margin: 0 0 2rem;
    max-width: 48rem;
    color: var(--muted);
}

.approach-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 900px) {
    .approach-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.approach-block {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.approach-block__concern {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.approach-block__response {
    padding: 1rem 0 0;
    border-top: 1px dashed var(--line);
}

.approach-block__response-title {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sea-deep);
}

.approach-block__response-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.commitments {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.commitments__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.commitments__grid {
    display: grid;
    gap: 1rem 1.75rem;
}

@media (min-width: 768px) {
    .commitments__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.commitments__grid p {
    margin: 0;
    padding-left: 0.9rem;
    border-left: 2px solid var(--sea);
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* ----- Services ----- */
.service-stack {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
    .service-row {
        grid-template-columns: 14rem 1fr;
        gap: 2rem;
        align-items: baseline;
    }
}

.service-row__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.service-row__text {
    margin: 0;
    color: var(--muted);
}

.service-row--primary .service-row__title {
    color: var(--sea-deep);
}

/* ----- Benefits ----- */
.benefit-grid {
    display: grid;
    gap: 1.25rem 1.75rem;
    counter-reset: benefit;
}

@media (min-width: 700px) {
    .benefit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .benefit-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.benefit {
    counter-increment: benefit;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.benefit::before {
    content: counter(benefit, decimal-leading-zero);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--sea);
    font-weight: 600;
}

.benefit__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.benefit__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ----- Projects ----- */
.project-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.project-table tr {
    border-bottom: 1px solid var(--line);
}

.project-table td {
    padding: 1.1rem 0;
    vertical-align: top;
}

.project-table__tag {
    width: 9.5rem;
    padding-right: 1rem !important;
    white-space: nowrap;
}

.project-category-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--sea-deep);
    font-weight: 600;
}

.project-table__body h6 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.project-table__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .project-table,
    .project-table tbody,
    .project-table tr,
    .project-table td {
        display: block;
        width: 100%;
    }

    .project-table__tag {
        padding-bottom: 0.25rem !important;
    }

    .project-table tr {
        padding: 1rem 0;
    }
}

.saas-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.saas-block__label {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}

.saas-list {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.saas-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s var(--ease);
}

.saas-link:hover {
    background: var(--paper-deep);
    color: inherit;
}

.saas-link img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.saas-link__sub {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.saas-link__title {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
}

/* ----- Company ----- */
.company-dl {
    margin: 0;
    border-top: 1px solid var(--line);
}

.company-dl__row {
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
    .company-dl__row {
        grid-template-columns: 12rem 1fr;
        gap: 1.5rem;
    }
}

.company-dl__row dt {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}

.company-dl__row dd {
    margin: 0;
    color: var(--ink-soft);
}

.company-dl__row ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.company-dl__row li + li {
    margin-top: 0.25rem;
}

/* ----- Contact ----- */
.contact-panel {
    max-width: 34rem;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
}

.contact-panel .form-control,
.contact-panel .form-check-input {
    border-radius: 2px;
    border-color: var(--line);
}

.contact-panel .form-control {
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
}

.contact-panel .form-control:focus {
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.contact-panel .form-check-label {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.contact-lead {
    margin: 0 auto 1.75rem;
    max-width: 36rem;
    text-align: center;
    color: var(--muted);
}

.alert {
    border-radius: 2px;
}

/* ----- Footer ----- */
.site-footer {
    padding: 2.5rem 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer p {
    margin: 0.35rem 0;
}

/* ----- Policy page ----- */
.policy-hero {
    padding: 3.5rem 0 1.5rem;
}

.policy-hero h1 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.policy-body {
    max-width: 44rem;
}

.policy-body h2 {
    margin: 2rem 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}

.policy-body p,
.policy-body li {
    color: var(--ink-soft);
}

.policy-body ul {
    padding-left: 1.2rem;
}

.policy-back {
    margin: 2.5rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero__media img,
    .reveal,
    .hero__brand,
    .hero__headline,
    .hero__lead,
    .hero__actions {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
