/* 株式会社KMシステム — モダン・コンサルティング
 * 設計方針：タイポグラフィ主体・装飾排除・左揃え・余白で語る
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
    --ink:        #0a0e14;
    --ink-soft:   #4b5563;
    --muted:      #9ca3af;
    --line:       #e5e7eb;
    --line-bold:  #d1d5db;
    --bg:         #ffffff;
    --bg-soft:    #f6f7f9;
    --bg-dark:    #0a0e14;
    --accent:     #4f46e5;
    --accent-hi:  #6366f1;
    --accent-soft: rgba(79, 70, 229, .08);
    --font:       'Inter', 'Noto Sans JP', '游ゴシック', 'Yu Gothic', sans-serif;
    --max-w:      1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "palt";
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; display: block; }

/* ───── ヘッダー ───── */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 8px 32px 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
}
.brand__img {
    display: block;
    height: 44px;
    width: auto;
    flex-shrink: 0;
}
.brand__text-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.25;
}
.brand__text {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
    color: var(--ink);
    white-space: nowrap;
}
.brand__sub {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--muted);
    white-space: nowrap;
}
@media (max-width: 720px) {
    .brand { gap: 10px; }
    .brand__img { height: 36px; }
    .brand__text { font-size: 14px; }
    .brand__sub { font-size: 9.5px; letter-spacing: .04em; }
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}
.site-nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}
.site-nav a.is-current { color: var(--accent); }
.site-nav__cta {
    background: var(--ink);
    color: #fff !important;
    padding: 9px 18px;
    font-size: 12.5px;
    letter-spacing: .04em;
    border-radius: 2px;
    transition: background .15s;
}
.site-nav__cta:hover { background: var(--accent); }
@media (max-width: 720px) {
    .site-nav ul { gap: 16px; }
    .site-nav li:nth-child(-n+3) { display: none; }
}

/* ───── ヒーロー ───── */
.hero {
    padding: 56px 32px 80px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: .18em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 28px;
    padding: 7px 16px;
    background: var(--accent-soft);
    border-radius: 100px;
}
.hero__title {
    font-weight: 700;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0 0 28px;
    max-width: 900px;
}
.hero__title em {
    font-style: normal;
    color: var(--accent);
}
.hero__lead {
    font-size: 16px;
    line-height: 1.95;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 0 36px;
}
.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff !important;
    border-radius: 2px;
    transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn--ghost {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--line-bold);
}
.btn--ghost:hover {
    background: var(--ink);
    color: #fff !important;
    border-color: var(--ink);
}
.btn--lg {
    padding: 18px 36px;
    font-size: 15px;
}

/* ───── 数字ストリップ（What we believe） ───── */
.creed {
    background: var(--bg-soft);
    padding: 56px 32px;
    border-bottom: 1px solid var(--line);
}
.creed__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 720px) {
    .creed__inner { grid-template-columns: repeat(3, 1fr); }
}
.creed__item {
    border-left: 2px solid var(--accent);
    padding: 6px 0 6px 22px;
}
.creed__h {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 6px;
    letter-spacing: -.005em;
}
.creed__p {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.85;
}

/* ───── 共通セクション ───── */
.section {
    padding: 96px 32px;
}
.section__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.section__head {
    margin-bottom: 64px;
    max-width: 760px;
}
.section__kicker {
    font-size: 16px;
    letter-spacing: .18em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.section__title {
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.3;
    letter-spacing: -.01em;
    margin: 0 0 20px;
}
.section__lead {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.95;
    margin: 0;
    max-width: 640px;
}
.section--dark {
    background: var(--bg-dark);
    color: #fff;
}
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: #c0c5cf; }
.section--dark .section__kicker { color: #a5b4fc; }
.section--dark .approach__step { border-top-color: #2a3140; }
.section--dark .approach__step:last-child { border-bottom-color: #2a3140; }
.section--dark .approach__step::before { color: #a5b4fc; }
.section--dark .approach__h { color: #fff; }
.section--dark .approach__p { color: #c0c5cf; }

/* ───── サービス（3 軸） ───── */
.pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}
@media (min-width: 980px) {
    .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
@media (min-width: 980px) {
    .pillar {
        padding: 48px 36px 56px;
        border-bottom: none;
        border-right: 1px solid var(--line);
    }
    .pillar:first-child { padding-left: 0; }
    .pillar:last-child { padding-right: 0; border-right: none; }
}
.pillar__num {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: 20px;
}
.pillar__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -.005em;
    margin: 0 0 16px;
}
.pillar__desc {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin: 0 0 22px;
}
.pillar__list {
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.pillar__list li {
    font-size: 13.5px;
    color: var(--ink);
    padding: 6px 0 6px 18px;
    position: relative;
    line-height: 1.7;
}
.pillar__list li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--accent);
    font-weight: 700;
}

/* ───── アプローチ（プロセス） ───── */
.approach {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    counter-reset: step;
}
.approach__step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.approach__step:last-child { border-bottom: 1px solid var(--line); }
.approach__step::before {
    content: counter(step, decimal-leading-zero);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -.01em;
    color: var(--accent);
    line-height: 1;
}
.approach__h {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.4;
}
.approach__p {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin: 0;
    max-width: 720px;
}

/* ───── About 抜粋（ブロック型） ───── */
.about-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 880px) {
    .about-preview { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.about-preview__title {
    font-weight: 700;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.35;
    letter-spacing: -.01em;
    margin: 0 0 24px;
}
.about-preview__p {
    font-size: 15px;
    line-height: 2;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

/* ───── 大きな CTA ───── */
.big-cta {
    background: var(--bg-dark);
    color: #fff;
    padding: 96px 32px;
    text-align: left;
}
.big-cta__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 880px) {
    .big-cta__inner { grid-template-columns: 1fr auto; gap: 64px; }
}
.big-cta__title {
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.3;
    letter-spacing: -.01em;
    margin: 0 0 14px;
    color: #fff;
}
.big-cta__lead {
    font-size: 15px;
    line-height: 1.9;
    color: #c0c5cf;
    margin: 0;
    max-width: 580px;
}
.btn--accent {
    background: var(--accent);
    border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

/* ───── ページ見出し（下層共通） ───── */
.page-head {
    padding: 80px 32px 64px;
    border-bottom: 1px solid var(--line);
}
.page-head__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.page-head__kicker {
    font-size: 16px;
    letter-spacing: .18em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.page-head__title {
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0;
}

/* ───── サービス詳細（縦積み） ───── */
.service-detail {
    padding: 64px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 880px) {
    .service-detail { grid-template-columns: 200px 1fr; gap: 80px; }
}
.service-detail__num {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .18em;
    color: var(--accent);
}
.service-detail__title {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -.005em;
    margin: 0 0 20px;
}
.service-detail__p {
    font-size: 15px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin: 0 0 14px;
    max-width: 720px;
}
.service-detail__sub {
    margin: 40px 0 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 14px;
}
.service-detail__sub::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.service-detail__callout {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    padding: 24px 28px;
    margin: 16px 0 0;
}
.service-detail__callout--ai {
    border-left-color: var(--accent-hi);
}
.service-detail__callout h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: .04em;
    color: var(--ink);
    line-height: 1.5;
}
.service-detail__callout h3::before {
    content: attr(data-tag);
    display: block;
    font-size: 10px;
    letter-spacing: .25em;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 700;
}
.service-detail__callout--ai h3::before {
    color: var(--accent-hi);
}
.service-detail__callout p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-soft);
}
.service-detail__callout dl {
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 0;
    font-size: 13px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
@media (min-width: 720px) {
    .service-detail__callout dl {
        grid-template-columns: 130px 1fr;
        gap: 8px 24px;
    }
}
.service-detail__callout dt {
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: .04em;
    line-height: 1.7;
}
.service-detail__callout dd {
    margin: 0;
    color: var(--ink);
    line-height: 1.7;
}
.service-detail__list {
    list-style: none;
    padding: 22px 0 0;
    margin: 22px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}
@media (min-width: 720px) {
    .service-detail__list { grid-template-columns: 1fr 1fr; gap: 4px 32px; }
}
.service-detail__list li {
    font-size: 13.5px;
    color: var(--ink);
    padding: 8px 0 8px 20px;
    position: relative;
}
.service-detail__list li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent);
    font-weight: 700;
}

/* ───── About ───── */
.bio {
    max-width: 820px;
    margin: 0 auto;
}
.bio__name-en {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .25em;
    margin-bottom: 6px;
}
.bio__name {
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 6px;
    letter-spacing: -.005em;
}
.bio__role {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 22px;
    letter-spacing: .04em;
}
.bio__p {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin: 0 0 12px;
}
.bio__divider-h {
    font-size: 14px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--accent-hi);
    text-transform: uppercase;
    margin: 32px 0 14px;
}
.bio__career {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 22px;
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}
.bio__career dt {
    color: #9aa2ad;
    font-weight: 600;
    letter-spacing: .04em;
}
.bio__career dd {
    margin: 0;
    color: #c0c5cf;
}
.bio__cred-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 2.0;
    color: #c0c5cf;
}
.bio__cred-list li {
    padding-left: 16px;
    position: relative;
}
.bio__cred-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .85em;
    width: 8px;
    height: 1px;
    background: var(--accent-hi);
}

.fact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.fact-table th, .fact-table td {
    padding: 18px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.fact-table tr:first-child th,
.fact-table tr:first-child td { border-top: 1px solid var(--line); }
.fact-table th {
    font-weight: 600;
    width: 28%;
    color: var(--ink-soft);
    letter-spacing: .03em;
    font-size: 13px;
}

/* ───── Contact フォーム ───── */
.form {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}
.form__row {
    display: grid;
    gap: 8px;
}
.form__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .03em;
}
.form__label .req {
    color: var(--accent);
    font-size: 11px;
    margin-left: 6px;
    font-weight: 700;
}
.form__hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.form__input,
.form__textarea {
    padding: 14px 16px;
    border: 1px solid var(--line-bold);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    border-radius: 2px;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
}
.form__row--two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 720px) {
    .form__row--two { grid-template-columns: 1fr 1fr; }
}
.form__consent {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.8;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.form__consent input { margin-top: 5px; }
.form__notice {
    background: #fef7ef;
    border-left: 3px solid #c47a3a;
    padding: 18px 22px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-soft);
    border-radius: 0 2px 2px 0;
}
.form__notice strong {
    color: #a85a16;
    font-weight: 700;
}
.form__notice__title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: .04em;
}
.form__honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ───── 法務ページ（利用規約・プライバシーポリシー） ───── */
.legal {
    max-width: 820px;
    margin: 0 auto;
}
.legal__lead {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin: 0 0 36px;
}
.legal__article {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
.legal__article:last-of-type { border-bottom: none; }
.legal__h {
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 16px;
    letter-spacing: .04em;
    line-height: 1.5;
    color: var(--ink);
}
.legal__h-num {
    color: var(--accent);
    font-weight: 700;
    margin-right: 12px;
    letter-spacing: .08em;
    font-size: 14px;
}
.legal__article p {
    font-size: 14.5px;
    line-height: 2;
    color: var(--ink-soft);
    margin: 0 0 12px;
}
.legal__article ol,
.legal__article ul {
    font-size: 14px;
    line-height: 1.95;
    color: var(--ink-soft);
    padding-left: 22px;
    margin: 0 0 12px;
}
.legal__article li { margin-bottom: 4px; }
.legal__article li ol,
.legal__article li ul { margin: 4px 0 8px; }
.legal__meta {
    font-size: 13px;
    color: var(--muted);
    text-align: right;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.site-footer__copy a {
    color: #c0c5cf;
    text-decoration: none;
}
.site-footer__copy a:hover { color: var(--accent-hi); }
.site-footer__copy span { display: inline-block; }
.form__submit {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    justify-self: start;
}
.form__submit:hover { background: var(--accent); }

/* ───── フッター ───── */
.site-footer {
    background: var(--bg-dark);
    color: #c0c5cf;
    padding: 64px 32px 32px;
    font-size: 13.5px;
}
.site-footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
@media (min-width: 720px) {
    .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer h3 {
    font-size: 14px;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: .02em;
    font-weight: 700;
}
.site-footer p { line-height: 1.8; margin: 0 0 8px; color: #9aa2ad; }
.site-footer a { color: #c0c5cf; }
.site-footer a:hover { color: var(--accent-hi); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer__brand {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    letter-spacing: .02em;
    margin-bottom: 4px;
}
.site-footer__brand-en {
    font-size: 9.5px;
    color: var(--muted);
    letter-spacing: .25em;
    margin: 0 0 14px;
    font-weight: 600;
}
.site-footer__copy {
    max-width: var(--max-w);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1f2530;
    font-size: 11.5px;
    letter-spacing: .12em;
    color: #6b7480;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
