/**
 * デザインシステム（/design/。page-design.php・template-parts/design/）
 *
 * デザイン: Bocek Design System（Sample_ver11）.dc (1) の Design System の部分。値はデザインのインラインのスタイルのまま。
 * サイト共通の site.css は読み込まない（ヘッダー・フッターがサイトと別のため）。
 * デザインは 100vh の中で本文だけをスクロールする作りなので、ここではページ全体をスクロールし、ヘッダーとサイドバーを sticky で止めて同じ見え方にしている。
 * デザインにスマホの画面はないので、1023px 以下・767px 以下の見え方はこのファイルで決めている（下の @media）。
 */

/* ── 色・文字（デザインの body の変数） ── */
.ds-body {
    --ds-font: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --accent: #E3262E;
    --ink: #0D0D0D;
    --bg: #FFFFFF;
    --bg-sub: #F7F7F7;
    --bg-card: #FCFCFC;
    --fill: #ECECEC;
    --text2: #5D5D5D;
    --text3: #8A8A8A;
    --border: #E3E3E3;
    --border-strong: #CCCCCC;
    --ds-header-h: 72px;
    --ds-top: 0px; /* 管理バーの高さ（ログイン中だけ） */

    margin: 0;
    font-family: var(--ds-font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.admin-bar.ds-body {
    --ds-top: 32px;
}

@media (max-width: 782px) {
    .admin-bar.ds-body {
        --ds-top: 46px;
    }
}

.ds-body a {
    color: var(--ink);
}

.ds-body a:hover {
    color: var(--accent);
}

.ds-body a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── ヘッダー（デザインの「DSヘッダー」） ── */
.ds-header {
    position: sticky;
    top: var(--ds-top);
    z-index: 5;
    height: var(--ds-header-h);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid #EEEEEE;
    background: var(--bg);
}

/*
 * ロゴ画像（高さ36px）の右に「Design System」の文字（2026-11-28 のユーザーの見本の画像どおり）。
 * 画像の下 5.2px（314px 中 45px）が余白なので、画像をその分だけ下げ、画像の中の「Bocek」と文字を同じ線（ベースライン）にそろえる。
 * 画像の右にも余白（約11px）があるので、文字は少し左へ寄せ、見本と同じく「k」から約10px 空ける。
 * 親の font-size・line-height を 0 にして、行の高さを画像の 36px のままにする（ヘッダーの上下中央からずれないように）
 */
.ds-header__logo {
    display: block;
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
    text-decoration: none;
}

.ds-header__logo img {
    display: inline-block;
    width: auto;
    height: 36px;
    vertical-align: -5.2px;
}

.ds-body .ds-header__logo-text {
    margin-left: -2px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .02em;
    color: #000000;
}

.ds-header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.ds-body .ds-header__link {
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink);
}

.ds-body .ds-header__link.is-current,
.ds-body .ds-header__link:hover {
    color: var(--accent);
}

.ds-header__link--ext {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-header__link--ext svg {
    display: block;
}

/* ── サイドバー（デザインの「DSサイドバー」。ガイドのページだけ） ── */
.ds-wrap {
    display: flex;
    min-height: calc(100vh - var(--ds-header-h) - var(--ds-top));
}

.ds-side {
    position: sticky;
    top: calc(var(--ds-top) + var(--ds-header-h));
    align-self: flex-start;
    width: 232px;
    height: calc(100vh - var(--ds-header-h) - var(--ds-top));
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 32px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    background: var(--bg);
}

.ds-side__group {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #5D5D5D;
}

.ds-side__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ds-body .ds-side__link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--ink);
}

.ds-body .ds-side__link.is-current,
.ds-body .ds-side__link:hover {
    color: var(--accent);
}

/* ── 本文の枠（ホームは中央寄せ、ガイドはサイドバーの右に左寄せ） ── */
.ds-main {
    position: relative;
    flex: 1;
    min-width: 0;
    background: var(--bg);
}

.ds-guide {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.ds-guide--home {
    max-width: 1069px;
    margin: 0 auto;
    padding: 64px 32px 32px;
}

.ds-guide--page {
    max-width: 1133px;
    margin: 0;
    padding: 64px 72px 32px;
}

.ds-foot {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.ds-foot__copy {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--text2);
    text-align: right;
}

/* ── ホーム（デザインの「00 Home」） ── */
.ds-home {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.ds-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ds-hero__label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    color: var(--accent);
}

.ds-hero__title {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--ink);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.ds-hero__lead {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: .02em;
    color: var(--ink);
}

.ds-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ds-block--explore {
    gap: 24px;
}

.ds-block__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-block__title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
}

.ds-block__sub {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: .02em;
    color: var(--ink);
}

.ds-block__sub--gray {
    color: var(--text2);
}

/* What We Value in Design */
.ds-concepts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.ds-concept {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ds-concept__visual {
    position: relative;
    height: 280px;
    box-sizing: border-box;
    border-radius: 6px;
    overflow: hidden;
}

.ds-concept__visual--sort {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 36px;
    background: var(--bg-sub);
}

.ds-concept__lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    opacity: .55;
}

.ds-concept__lines span {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: var(--border-strong);
}

.ds-concept__arrow {
    display: block;
    margin: 0 20px;
}

.ds-concept__sorted {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ds-concept__sorted span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--ink);
}

.ds-concept__sorted span:nth-child(1) {
    width: 80%;
    height: 16px;
    border-radius: 4px;
    background: var(--accent);
}

.ds-concept__sorted span:nth-child(2) {
    width: 100%;
}

.ds-concept__sorted span:nth-child(3) {
    width: 62%;
}

.ds-concept__visual--hover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    cursor: default;
}

.ds-concept__hover {
    position: absolute;
    left: 28px;
    top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .55);
}

.ds-concept__shape {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    transition: border-radius .7s cubic-bezier(.34, 1.56, .64, 1), transform .7s cubic-bezier(.34, 1.56, .64, 1);
}

.ds-concept__shape:hover {
    border-radius: 18px;
    transform: rotate(135deg) scale(1.18);
}

.ds-concept__mark {
    position: absolute;
    right: 28px;
    bottom: 22px;
    font-family: 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: #FFFFFF;
}

.ds-concept__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ds-concept__label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--accent);
}

.ds-concept__title {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--ink);
}

.ds-concept__text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: .04em;
    color: var(--ink);
    text-wrap: pretty;
}

/* Design Philosophy */
.ds-philosophy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.ds-philosophy__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 32px;
    text-align: center;
}

.ds-philosophy__item:nth-child(2) {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.ds-philosophy__num {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--accent);
}

.ds-philosophy__title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--ink);
}

.ds-philosophy__text {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: .04em;
    color: var(--ink);
    white-space: pre-line;
}

/* Explore the Guidelines */
.ds-explore {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ds-body .ds-explore__card {
    position: relative;
    height: 150px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.ds-body .ds-explore__card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--ink);
}

.ds-explore__icon {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.ds-explore__label {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .02em;
}

/* ── ガイドのページの共通部品 ── */
.ds-page__title {
    margin: 0 0 16px;
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: .02em;
}

.ds-page__lead {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: .02em;
    color: var(--text2);
    text-wrap: pretty;
}

.ds-page__lead--48 {
    margin-bottom: 48px;
}

.ds-page__lead--40 {
    margin-bottom: 40px;
}

.ds-page__h2 {
    margin: 56px 0 20px;
    font-size: 24px;
    font-weight: 600;
}

/* カラーの Text・Background・Border・Status（見出しと色見本の間を詰める） */
.ds-page__h2--palette {
    margin: 48px 0 8px;
}

.ds-grid + .ds-page__h2--palette {
    margin-top: 56px;
}

.ds-page__note {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--text2);
}

.ds-page__text {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--text2);
}

.ds-page__text--mb20 {
    margin-bottom: 20px;
}

.ds-page__text--mt24 {
    margin-top: 24px;
}

.ds-grid {
    display: grid;
    gap: 16px;
}

.ds-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.ds-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.ds-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.ds-grid--gap24 {
    gap: 24px;
}

.ds-cap__name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

.ds-cap__name--sm {
    margin-top: 8px;
}

.ds-cap__note {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text2);
}

/* ── ロゴ ── */
.ds-logo-box {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #FFFFFF;
}

.ds-logo-box--white {
    border: 0;
    background: #0D0D0D;
}

/* 正方形の画像の中央にロゴがあるので、枠より大きく出して余白を切る */
.ds-logo-box img,
.ds-isolation__area img {
    display: block;
    width: 170%;
    max-width: none;
    height: auto;
    flex-shrink: 0;
}

.ds-isolation {
    display: flex;
    justify-content: center;
    padding: 48px;
    border-radius: 6px;
    background: var(--bg-sub);
}

.ds-isolation__area {
    width: 320px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 56px;
    overflow: hidden;
    border: 1.5px dashed var(--border-strong);
}

.ds-ng {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #F5F5F5;
}

.ds-ng img {
    display: block;
    width: 150%;
    max-width: none;
    height: auto;
    flex-shrink: 0;
}

.ds-ng--stretch img {
    transform: scaleX(1.5);
}

.ds-ng--rotate img {
    transform: rotate(-14deg);
}

.ds-ng--recolor img {
    filter: invert(.4) sepia(1) saturate(20) hue-rotate(190deg);
}

.ds-ng--contrast {
    background: #4A4A4A;
}

.ds-ng__mark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #C62828;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

.ds-ng__label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text2);
}

/* ── カラー ── */
.ds-brand-color {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.ds-brand-color__swatch {
    height: 120px;
}

.ds-brand-color__body {
    padding: 20px 24px;
}

.ds-brand-color__row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ds-brand-color__name {
    font-size: 16px;
    font-weight: 600;
}

.ds-brand-color__hex {
    font-size: 13px;
    color: var(--text3);
}

.ds-brand-color__text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 22px;
    color: var(--text2);
}

.ds-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.ds-swatch {
    height: 64px;
    border-radius: 6px;
}

.ds-swatch--light {
    border: 1px solid var(--border);
}

.ds-swatch__hex {
    font-size: 12px;
    color: var(--text3);
}

/* ── タイポグラフィ ── */
.ds-font {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.ds-font__use {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--accent);
}

.ds-font__name {
    font-size: 36px;
    font-weight: 500;
}

.ds-font__sub {
    margin-top: 4px;
    font-size: 22px;
}

.ds-font__sub--jp {
    font-family: 'Noto Sans JP', sans-serif;
}

.ds-font__sample {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text2);
}

.ds-font--meiryo .ds-font__name {
    font-family: Meiryo, 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 34px;
    font-weight: 600;
}

.ds-font--meiryo .ds-font__sub,
.ds-font--meiryo .ds-font__sample {
    font-family: Meiryo, sans-serif;
}

/* 表（タイプスケール・ボタンのサイズとホバー。デザインの等幅の列＋列の間 24px） */
.ds-table-wrap {
    overflow-x: auto;
}

.ds-table-wrap--buttons {
    margin-top: 40px;
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    color: var(--ink);
}

.ds-table th,
.ds-table td {
    padding: 16px 24px 16px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}

.ds-table th {
    padding-top: 14px;
    padding-bottom: 14px;
    color: var(--text2);
}

.ds-table th:last-child,
.ds-table td:last-child {
    padding-right: 0;
}

.ds-dot-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-dot {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
}

/* ── 余白 ── */
.ds-space {
    display: flex;
    flex-direction: column;
}

.ds-space__row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.ds-space__value {
    width: 56px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

.ds-space__bar {
    width: 96px;
    flex-shrink: 0;
    display: flex;
}

.ds-space__bar span {
    display: block;
    height: 20px;
    border-radius: 1.5px;
    background: var(--accent);
}

.ds-space__use {
    font-size: 13px;
    color: var(--text2);
}

/* ── レイアウト ── */
.ds-spec {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.ds-spec__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text3);
}

.ds-spec__value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 600;
}

.ds-spec__value span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text2);
}

.ds-columns {
    padding: 24px 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
}

.ds-columns__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.ds-columns__grid div {
    height: 96px;
    border-radius: 3px;
    background: var(--fill);
}

/* ── 角丸 ── */
.ds-radius {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.ds-radius__row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.ds-radius__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ds-radius__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.ds-radius__sub {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text2);
}

.ds-radius__samples {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 40px;
}

.ds-radius__sample {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-radius__box {
    width: 120px;
    height: 88px;
    border: 1px solid var(--border-strong);
    background: var(--bg-sub);
}

.ds-radius__pill {
    width: 160px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: #1C1C1C;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .05em;
}

.ds-radius__cap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ds-radius__cap span:first-child {
    font-size: 14px;
    font-weight: 600;
}

.ds-radius__cap span:last-child {
    font-size: 12px;
    color: var(--text2);
}

/* ── ボタン（見本。カーソルを乗せるとホバーの見え方になる） ── */
.ds-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    height: 48px;
    box-sizing: border-box;
    padding: 16px 24px;
    border-radius: 100px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .3s;
}

.ds-btn--black {
    background: #1C1C1C;
}

.ds-btn--black:hover {
    background: var(--accent);
}

.ds-btn--accent {
    background: var(--accent);
}

.ds-btn--accent:hover {
    background: #1C1C1C;
}

.ds-btn--lg {
    gap: 40px;
    height: 68px;
    padding: 24px 32px 24px 40px;
    background: #1C1C1C;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    letter-spacing: .03em;
    transition: background .3s, gap .3s;
}

.ds-btn--lg:hover {
    gap: 52px;
    background: var(--accent);
}

.ds-btn--lg svg {
    display: block;
}

/* ── 影 ── */
.ds-elev {
    padding: 24px;
    border-radius: 6px;
}

.ds-elev--0 {
    border: 1px solid var(--border);
}

.ds-elev--1 {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.ds-elev--2 {
    background: var(--bg-card);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.ds-elev__name {
    font-size: 13px;
    font-weight: 600;
}

.ds-elev__use {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text2);
}

/* ── タブレット（1023px 以下）: サイドバーを本文の上の横並びにする ── */
@media (max-width: 1023px) {
    .ds-header {
        padding: 0 24px;
    }

    .ds-header__nav {
        gap: 24px;
    }

    .ds-body .ds-header__link {
        font-size: 14px;
        line-height: 14px;
    }

    .ds-wrap {
        flex-direction: column;
    }

    .ds-side {
        position: static;
        width: auto;
        height: auto;
        align-self: stretch;
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 20px 40px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .ds-side__group {
        flex-shrink: 0;
    }

    .ds-side__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    .ds-body .ds-side__link {
        white-space: nowrap;
    }

    .ds-guide--home,
    .ds-guide--page {
        max-width: none;
        padding: 48px 40px 32px;
    }
}

/* ── スマホ（767px 以下）: ヘッダーは2段（ロゴ／ナビ）、カードの列を減らす ── */
@media (max-width: 767px) {
    .ds-header {
        position: static;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }

    .ds-header__nav {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .ds-wrap {
        min-height: 0;
    }

    .ds-side {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .ds-side__nav {
        gap: 12px 20px;
    }

    .ds-guide {
        gap: 48px;
    }

    .ds-guide--home,
    .ds-guide--page {
        padding: 40px 20px 24px;
    }

    .ds-home {
        gap: 64px;
    }

    .ds-hero__title {
        font-size: clamp(24px, 7vw, 34px);
    }

    /* 2行目が画面幅を超えて「デ／ザイン」のように切れないよう、言葉の区切りで折り返す（Chrome・Edge） */
    .ds-hero__lead {
        word-break: auto-phrase;
    }

    .ds-block__title {
        font-size: 26px;
        line-height: 32px;
    }

    .ds-concepts {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ds-concept__visual {
        height: 220px;
    }

    .ds-concept__visual--sort {
        padding: 0 24px;
    }

    .ds-philosophy {
        grid-template-columns: 1fr;
    }

    .ds-philosophy__item {
        padding: 24px 0;
    }

    .ds-philosophy__item:nth-child(2) {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .ds-explore {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-body .ds-explore__card {
        height: 128px;
    }

    .ds-page__title {
        font-size: 34px;
        line-height: 44px;
    }

    .ds-page__h2 {
        margin-top: 48px;
    }

    .ds-grid--2,
    .ds-grid--3 {
        grid-template-columns: 1fr;
    }

    .ds-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-isolation {
        padding: 24px;
    }

    .ds-isolation__area {
        width: 200px;
        height: 64px;
        padding: 24px 32px;
    }

    .ds-table {
        font-size: 13px;
    }

    .ds-table th,
    .ds-table td {
        padding-right: 12px;
    }

    .ds-table--5 {
        min-width: 560px;
    }

    .ds-table--3 {
        min-width: 440px;
    }

    .ds-space__row {
        gap: 16px;
    }

    .ds-spec__value {
        font-size: 24px;
    }

    .ds-columns {
        padding: 16px;
    }

    .ds-columns__grid {
        gap: 6px;
    }

    .ds-columns__grid div {
        height: 64px;
    }

    .ds-radius__row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ds-concept__shape,
    .ds-body .ds-explore__card,
    .ds-btn {
        transition: none;
    }
}
