/* Google Fonts は functions.php の wp_enqueue_style で読み込む（@import は廃止） */

/* ========================================
   1. Design Tokens
   - 参考サイトの実測値を基準にした明るい編集レイアウト
   ======================================== */
:root {
    --black: #171717;
    --white: #fff;
    --off-white: #f7f6f3;
    --gray: #767676;
    --line: #d8d8d8;
    --coral: #ff5b45;
    --blue: #175bd8;
    --font-jp: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    --font-en: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    --side: 90px;
    --section-y: 100px;
    --content-edge: max(var(--side), calc((100vw - 1260px) / 2));
}

/* ======================================== 2. Reset / Base ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    /* iOS Safari 対策: body だけの overflow-x では html 側が横スクロールし得るため html にも clip（sticky を壊さない） */
}

/* 左揃えで自然に折り返す本文は両端揃え（全ページ共通）。中央/右寄せ・<br>改行・単一行は影響を受けない。最終行は左のまま。 */
body {
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: .02em;
    text-align: justify;
}

body.is-menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd {
    margin-top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    transform: translateY(-200%);
    padding: 8px 14px;
    background: #000;
    color: #fff;
}

.skip-link:focus {
    transform: none;
}

.container {
    width: calc(100% - (var(--side) * 2));
    max-width: 1260px;
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.section--soft {
    background: var(--off-white);
}

.eyebrow,
.section-side__label {
    display: inline-block;
    margin: 0;
    border-bottom: 1px solid currentColor;
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.text-link,
.link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 100px;
    margin-top: 34px;
    border-bottom: 1px solid;
    padding-bottom: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.text-link span,
.link-arrow__mark {
    margin-left: 26px;
}

.text-dot,
.brand__dot {
    color: inherit;
}

/* ======================================== 3. Header / Navigation ======================================== */
.site-header {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: 100%;
    padding: 34px var(--side) 0;
    transition: padding .3s ease;
}

.site-header__inner {
    position: relative;
    display: flex;
    height: 46px;
    align-items: flex-start;
    justify-content: space-between;
}

.brand {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.brand--v2,
.brand--footer {
    display: inline-flex;
    flex-direction: column;
}

.brand>span:not(.brand__dot) {
    margin-top: 5px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .02em;
}

.site-nav {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.site-nav__list {
    display: flex;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.site-nav a {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.site-nav a:hover {
    border-bottom: 1px solid;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
    display: block;
    width: 26px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform .3s ease, background-color .3s ease;
}

.menu-toggle__lines {
    position: relative;
}

.menu-toggle__lines::before {
    position: absolute;
    top: -7px;
}

.menu-toggle__lines::after {
    position: absolute;
    top: 7px;
}

.menu-toggle.is-active {
    color: var(--black);
}

.menu-toggle.is-active .menu-toggle__lines {
    background: transparent;
}

.menu-toggle.is-active .menu-toggle__lines::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__lines::after {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header.is-scrolled .site-nav {
    border-radius: 999px;
    padding: 17px 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 10px rgba(0, 0, 0, .04);
    backdrop-filter: blur(10px);
}

.site-header.is-scrolled .site-nav {
    top: -9px;
}

.site-header.is-scrolled .brand {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav {
    position: fixed;
    z-index: 70;
    inset: 0;
    visibility: hidden;
    padding: 130px var(--side) 36px;
    opacity: 0;
    background: var(--off-white);
    color: var(--black);
    transition: opacity .32s ease, visibility .32s step-end;
}

.mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .32s ease, visibility 0s;
}

.mobile-nav__list {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    border-top: 1px solid var(--black);
    list-style: none;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(23, 23, 23, .35);
    font-family: var(--font-en);
    font-size: clamp(12px, 4vw, 19px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.mobile-nav__link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

/* ======================================== 4. Top Hero ======================================== */
.v2-hero {
    position: relative;
    min-height: 920px;
    padding: 230px var(--side) 0;
}

.v2-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 605px) minmax(0, 554px);
    gap: 101px;
    max-width: 1260px;
    margin-inline: auto;
}

/* 左=ビジュアル / 右=テキスト（DOM順は維持しCSSで左右入替） */
.v2-hero__text {
    grid-column: 2;
    grid-row: 1;
    height: 455px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.v2-hero__title {
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

.v2-hero__en {
    margin: 0 0 24px;
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.v2-hero__body {
    max-width: 554px;
    margin: 0;
    line-height: 2;
}

.v2-hero__text .text-link {
    margin-top: auto;
}

.v2-hero__visual {
    grid-column: 1;
    grid-row: 1;
    width: 605px;
    height: 455px;
    margin: 0;
    overflow: hidden;
}

.v2-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-axis {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: block;
    width: 1px;
    height: 140px;
    background: var(--black);
}

.section-axis::after {
    position: absolute;
    top: 38px;
    left: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--black);
    content: "";
}

/* ======================================== 5. Mission ======================================== */
.v2-mission {
    position: relative;
    min-height: 700px;
    padding: 92px var(--side) 180px;
    text-align: center;
}

.v2-mission h1 {
    margin: 48px auto 60px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .02em;
}

.v2-mission p {
    margin-bottom: 24px;
    line-height: 2;
}

.v2-mission .section-axis {
    height: 142px;
}

.page-top .v2-hero .section-axis,
.page-top .v2-mission .section-axis {
    display: none;
}

/* ======================================== 6. Projects ======================================== */
.v2-projects {
    position: relative;
    padding: 115px 0 105px;
}

.v2-projects__viewport {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.v2-projects__viewport::-webkit-scrollbar {
    display: none;
}

.v2-projects__track {
    display: flex;
    width: max-content;
    gap: 20px;
    padding-left: max(0px, calc((100vw - 1700px) / 2));
    transform: translateX(-130px);
}

.v2-project {
    position: relative;
    display: block;
    width: 340px;
    flex: 0 0 340px;
}

.v2-project img {
    width: 340px;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    transition: filter .35s ease, transform .55s ease;
}

.v2-project span,
.v2-project strong {
    display: block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.v2-project span {
    margin-top: 10px;
    color: var(--gray);
    font-family: var(--font-en);
    font-size: 9px;
    line-height: 1.5;
    text-transform: uppercase;
}

.v2-project strong {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.5;
}

.v2-project:hover img {
    filter: brightness(.96);
    transform: scale(.99);
}

.v2-project:hover span,
.v2-project:hover strong {
    opacity: 1;
    transform: none;
}

.v2-projects__more {
    margin-left: var(--side);
}

/* Projects の足元：左＝一覧リンク / 右＝表示入替ボタン */
.v2-projects__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-right: var(--side);
}

/* 表示入替ボタン（.text-link と同じ見た目に揃える） */
.v2-projects__shuffle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    border: 0;
    border-bottom: 1px solid;
    padding: 0 0 3px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.v2-projects__shuffle span {
    display: inline-flex;
}

/* 画像の読み込み待ち（連打防止） */
.v2-projects__shuffle[disabled] {
    opacity: .45;
    cursor: default;
}

@media (hover: hover) {
    .v2-projects__shuffle:not([disabled]):hover {
        color: var(--gray);
    }
}

/* Projects マーキー（自動スクロール・PC3段 / SP4段・1段ごとに逆方向） */
.v2-marquee {
    margin: 0 0 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v2-marquee__row {
    overflow: hidden;
}

.v2-marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.v2-marquee__item {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
}

.v2-marquee__item img {
    display: block;
    width: 300px;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    transition: filter .35s ease;
}

.v2-marquee__item:hover img {
    filter: brightness(.96);
}

.v2-marquee__row--ltr .v2-marquee__track {
    animation: hbr-marquee-left 55s linear infinite;
}

.v2-marquee__row--rtl .v2-marquee__track {
    animation: hbr-marquee-right 55s linear infinite;
}

/* PC=3段×6枚 を表示 / SP版は隠す（モバイルで入替） */
.v2-marquee--sp {
    display: none;
}

/* 移動量は「1セット分」＝ トラック全体の 1/3（front-page.php の $hbr_marquee_sets = 3 と対）。
   セット数を変えたら、この 3 も必ず同じ数に合わせること。 */
@keyframes hbr-marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% / 3));
    }
}

@keyframes hbr-marquee-right {
    from {
        transform: translateX(calc(-100% / 3));
    }

    to {
        transform: translateX(0);
    }
}

/* 動きを減らす設定ではマーキーを静止させる。
   通常時の指定（.v2-marquee__row--ltr .v2-marquee__track）と同じ詳細度にし、後に書くことで上書きする。
   クラス1つだと詳細度で負けて効かず、下の全体リセット（.01ms）と重なって超高速ループになっていた */
@media (prefers-reduced-motion: reduce) {
    .v2-marquee__row .v2-marquee__track {
        animation: none;
    }
}

@media (max-width: 767px) {
    .v2-marquee {
        gap: 12px;
    }

    /* SP=4段×4枚 に入替 */
    .v2-marquee--pc {
        display: none;
    }

    .v2-marquee--sp {
        display: flex;
    }

    .v2-marquee__item {
        width: 210px;
        margin-right: 12px;
    }

    .v2-marquee__item img {
        width: 210px;
    }
}

/* ======================================== 7. Split Service ======================================== */
.v2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 900px;
    background: var(--off-white);
}

.v2-split__content {
    padding: 135px 90px 100px var(--content-edge);
}

.v2-service-list {
    margin: 62px 0 0;
    padding: 0;
    list-style: none;
}

.v2-service-list li {
    margin-bottom: 42px;
}

.v2-service-list h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 2;
}

.v2-service-list h3 small {
    margin-left: 10px;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
}

.v2-service-list p {
    margin: 0;
    line-height: 2;
}

.v2-split__visual {
    min-width: 0;
    height: 900px;
    margin: 0;
    overflow: hidden;
}

.v2-split__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
}

/* ======================================== 8. About facts ======================================== */
.v2-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 720px;
}

.v2-about__text {
    padding: 130px 90px 130px var(--content-edge);
}

.v2-about__text h2 {
    margin: 58px 0 34px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.8;
}

.v2-about__text p {
    max-width: 520px;
}

.v2-about__facts {
    display: flex;
    align-items: center;
    padding: 100px var(--content-edge) 100px 90px;
    background: var(--off-white);
}

.v2-about__facts dl {
    width: 100%;
    margin: 0;
}

.v2-about__facts dl>div {
    display: grid;
    grid-template-columns: 52px 1fr;
    padding: 28px 0;
    border-top: 1px solid rgba(23, 23, 23, .25);
    align-items: baseline;
}

/* 番号(dt)をタイトル(strong)の先頭行にベースラインで揃える */
.v2-about__facts dl>div:last-child {
    border-bottom: 1px solid rgba(23, 23, 23, .25);
}

.v2-about__facts dt {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 700;
}

.v2-about__facts dd {
    margin: 0;
}

.v2-about__facts strong,
.v2-about__facts span {
    display: block;
}

.v2-about__facts strong {
    margin-bottom: 7px;
    font-size: 16px;
}

.v2-about__facts span {
    color: #444;
}

/* ======================================== 9. Contact / Footer ======================================== */
.v2-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 1024px;
    background: var(--off-white);
}

.v2-contact__content {
    padding: 105px 90px 70px;
}

.v2-contact__content h2 {
    margin: 42px 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.8;
}

.v2-contact__content>p {
    margin-bottom: 38px;
}

.v2-contact__visual {
    height: 1024px;
    margin: 0;
    overflow: hidden;
}

.v2-contact__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
}

.v2-form {
    max-width: 468px;
}

.v2-form label {
    display: grid;
    gap: 4px;
    margin-top: 17px;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
    font-size: 12px;
}

.v2-form em {
    display: inline;
    margin-left: 5px;
    color: var(--gray);
    font-size: 9px;
    font-style: normal;
}

.v2-form input,
.v2-form select,
.v2-form textarea {
    width: 100%;
    min-height: 28px;
    padding: 2px 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.v2-form textarea {
    min-height: 80px;
    resize: vertical;
}

.v2-form>p {
    margin: 18px 0 0;
    color: var(--gray);
    font-size: 10px;
    line-height: 1.8;
}

.v2-form>p a {
    border-bottom: 1px solid;
}

.v2-form button {
    display: flex;
    min-width: 120px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.v2-form button:hover {
    color: var(--blue);
}

.v2-footer__bottom {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1fr auto;
    gap: 40px;
    align-items: end;
    min-height: 170px;
    padding: 46px var(--side);
    background: #fff;
}

.brand--footer {
    align-self: center;
}

.v2-footer__bottom nav {
    display: flex;
    gap: 34px;
    align-self: center;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
}

.v2-footer__bottom p,
.v2-footer__bottom small {
    margin: 0;
    font-size: 10px;
    line-height: 1.8;
}

/* ======================================== 10. Lower pages ======================================== */
.site-header--solid {
    position: fixed;
    background: rgba(255, 255, 255, .94);
}

.breadcrumbs {
    padding: 132px var(--side) 0;
    font-family: var(--font-en);
    font-size: 10px;
}

.breadcrumbs .container {
    width: 100%;
    max-width: none;
}

.breadcrumbs ol {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li+li::before {
    margin-right: 10px;
    content: "/";
}

.page-intro {
    width: calc(100% - (var(--side) * 2));
    max-width: 1260px;
    margin-inline: auto;
    padding: 92px 0 130px;
}

.page-title {
    margin: 0;
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.03em;
}

/* eyebrow 削除に伴いタイトルを上げる（上マージン42px→0） */
.page-title__jp {
    display: block;
    margin-top: 10px;
    font-family: var(--font-jp);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
}

.page-intro__copy {
    max-width: 760px;
    margin: 65px 0 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.8;
}

.page-intro__text {
    max-width: 620px;
    margin: 32px 0 0;
    color: #444;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading__title,
.about-message__statement,
.faq-cta__title {
    margin: 45px 0 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.8;
}

.section-heading__intro {
    margin-top: 24px;
}

.section-side {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 60px;
}

.about-message {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-message__body,
.about-ai__body {
    margin: 0;
}

.about-ai {
    background: var(--off-white);
}

.about-ai .section-side {
    grid-template-columns: minmax(150px, 190px) minmax(0, 760px);
    gap: clamp(3rem, 7vw, 8rem);
}

.about-ai .section-side>div:last-child {
    max-width: 760px;
}

.page-about section[aria-labelledby="company-heading"] .section-side {
    grid-template-columns: 1fr;
    gap: 44px;
}

.values-list,
.service-steps,
.process-list,
.line-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list {
    margin-top: 40px;
}

.values-list__item,
.process-list__item,
.line-list li {
    display: grid;
    grid-template-columns: 60px 220px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.values-list__number,
.process-list__number {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 700;
}

.values-list__item {
    align-items: baseline;
}

/* 番号・タイトル・本文の先頭行をベースラインで揃える（フォントサイズ差の天地ズレ解消） */
.process-list__number {
    align-self: center;
}

/* 番号を行の天地センターに */
.line-list .flow-number {
    line-height: 32px;
}

/* 番号をラベル（strong 16px×2=32px）の行に天地で揃える（1行・2行どちらも先頭行に一致） */
.values-list__title,
.process-list__title {
    margin: 0;
    font-size: 16px;
}

.values-list__text,
.process-list__text {
    margin: 0;
}

.company-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
}

/* PRICE セクションの見出し（単発プラン／パッケージプラン）に上マージン */
section[aria-labelledby="price-heading"] h3 {
    margin-top: 20px;
}

.company-table th,
.company-table td,
.price-table th,
.price-table td {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.company-table th,
.price-table th {
    width: 30%;
    font-weight: 500;
}

/* 会社情報: 左に代表写真、右に表の2カラム */
.company-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: stretch;
}
.company-layout__visual {
    min-width: 0;
    margin: 0;
}
.company-layout__visual img {
    display: block;
    width: 100%;
    height: auto;
    /* 表示比率は 10:16 に固定（画像側も同比率で書き出し済み。差し替え時のズレ防止） */
    aspect-ratio: 10 / 16;
    object-fit: cover;
}
/* 表側は2カラム化で幅が狭くなるため、見出し列の比率を上げて折返しを防ぐ */
.company-layout .company-table th {
    width: 26%;
}
/* 写真の高さ（幅340px × 10:16 = 544px）に合わせて表を伸ばし、上下端を揃える。
   余った高さは各行に配分される */
.company-layout .company-table {
    height: 100%;
}
/* 肩書きは語の途中（「／」の前）で折り返さず、ひとまとまりで次行へ送る */
.company-table__nobreak {
    display: inline-block;
}

.price-table td:last-child {
    text-align: right;
}

.service-steps {
    counter-reset: steps;
}

.service-step {
    position: relative;
    display: grid;
    grid-template-columns: 90px 190px 1fr 260px;
    gap: 30px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.service-step__number {
    font-size: 11px;
}

/* 行ボックスを en（11px/22px）に合わせ、番号「01」を DISCOVER と天地で揃える（glyph は ::before の10pxのまま） */
.service-step__number::before {
    counter-increment: steps;
    content: "0" counter(steps);
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 700;
}

.service-step__en {
    margin: 0;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
}

.service-step__title {
    margin: 0;
    font-size: 18px;
}

.service-step__copy {
    margin: 0;
}

.service-step__list {
    margin: 0;
    padding-left: 18px;
}

.service-step__note {
    margin: 0;
    color: var(--gray);
    font-size: 11px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.plan-card {
    padding: 36px;
    background: #fff;
}

.plan-card__en {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 700;
}

.plan-card__title {
    font-size: 18px;
}

.plan-card__price {
    font-weight: 700;
}

.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.works-filter__button {
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--black);
    /* iOS Safari は色未指定の button を青系ティントで描画するため黒を明示 */
    font-family: var(--font-en);
    font-size: 11px;
    cursor: pointer;
}

.works-filter__button.is-active {
    border-color: var(--black);
}

.work-card[hidden] {
    display: none;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px 20px;
}

.work-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.work-card:hover img {
    transform: scale(1.02);
}

.work-card__meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    color: var(--gray);
    font-family: var(--font-en);
    font-size: 9px;
}

.work-card__title {
    margin: 4px 0 0;
    font-size: 13px;
}

.works-pagination {
    display: flex;
    gap: 18px;
    margin-top: 70px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.works-pagination__button {
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 0 0 3px;
    background: transparent;
    color: var(--gray);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.works-pagination__button:hover,
.works-pagination__button.is-current {
    border-bottom-color: var(--black);
    color: var(--black);
}

.work-detail__hero {
    width: calc(100% - (var(--side) * 2));
    max-width: 1260px;
    margin-inline: auto;
    padding-top: 100px;
}

.work-detail__hero img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.work-detail__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-top: 100px;
    padding-bottom: 120px;
}

.work-detail__title {
    font-size: 24px;
}

.work-detail__meta {
    padding: 0;
    list-style: none;
}

.work-detail__url {
    margin: 18px 0 0;
}

.work-detail__url a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: opacity .2s ease;
}

.work-detail__url a:hover {
    opacity: .6;
}

.work-detail__body h2 {
    font-size: 24px;
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-figure {
    margin: 0;
}

.gallery-figure__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gallery-figure__caption {
    margin-top: 8px;
    color: var(--gray);
    font-size: 11px;
    line-height: 1.6;
}

/* ギャラリー拡大表示（ライトボックス／FVと同じ大きさ） */
.gallery-lightbox {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px var(--side);
    background: rgba(23, 23, 23, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease;
}

.gallery-lightbox__figure {
    margin: 0;
    width: min(1260px, 100%);
    max-height: 100%;
}

.gallery-lightbox__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 200px);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #fff;
}

.gallery-lightbox__caption {
    margin-top: 14px;
    color: #fff;
    opacity: .75;
    font-size: 12px;
    line-height: 1.6;
}

.gallery-lightbox__caption[hidden] {
    display: none;
}

.gallery-lightbox__close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s ease;
}

.gallery-lightbox__nav:hover {
    opacity: 1;
}

/* 棒のない矢印（シェブロン）: 正方形の2辺だけ描いて45度回転 */
.gallery-lightbox__nav::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border: solid #fff;
    border-width: 0;
    transform: rotate(45deg);
}

.gallery-lightbox__nav--prev::before {
    border-left-width: 2px;
    border-bottom-width: 2px;
    margin-left: 5px;
}

.gallery-lightbox__nav--next::before {
    border-top-width: 2px;
    border-right-width: 2px;
    margin-right: 5px;
}

.gallery-lightbox__nav--prev {
    left: 22px;
}

.gallery-lightbox__nav--next {
    right: 22px;
}

body.is-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    /* 会社情報: SPは写真を上、表を下に積む */
    .company-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .company-layout__visual {
        width: 200px;
        margin-inline: auto;
    }
    /* SPは縦積みのため高さ合わせは不要に戻す */
    .company-layout .company-table {
        height: auto;
    }
    .company-layout .company-table th {
        width: 30%;
    }

    .gallery-lightbox {
        padding: 70px 23px;
    }

    .gallery-lightbox__img {
        max-height: calc(100vh - 170px);
    }

    .gallery-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .gallery-lightbox__nav--prev {
        left: 6px;
    }

    .gallery-lightbox__nav--next {
        right: 6px;
    }
}

.client-voice {
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.client-voice__client {
    margin-bottom: 44px;
}

.client-voice__client-label {
    margin-bottom: 16px;
}

.client-voice__client-name {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.work-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 100px;
}

.faq-cta {
    padding: 70px;
    background: #eef4fb;
}

.privacy-content h2 {
    margin-top: 60px;
    font-size: 18px;
}

/* 404: 導線リンクの横並び（.text-link 自身が margin-top を持つため、間隔は横方向のみ指定） */
.notfound-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 44px;
}

.site-footer:not(.v2-footer) {
    background: var(--white);
}

.contact-panel {
    padding-top: 100px;
    padding-bottom: 100px;
}

.contact-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-panel__heading {
    margin: 45px 0 30px;
    font-size: 24px;
    line-height: 1.8;
}

.contact-panel__copy {
    max-width: 450px;
}

.contact-form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.contact-form__field {
    display: grid;
    min-width: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
}

/* CF7 のフィールドラッパーも縮小可能に（textarea cols=40 による min-content はみ出し防止） */
.contact-form .wpcf7-form-control-wrap {
    display: block;
    min-width: 0;
}

.contact-form label {
    font-size: 11px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 32px;
    padding: 2px 0;
    border: 0;
    background: transparent;
}

/* 「選択してください」をラベル（項目名）と同じ 11px・やや薄いグレーに */
.contact-form select {
    font-size: 11px;
    color: var(--gray);
}

.contact-form textarea {
    min-height: 90px;
}

/* 送信ボタンをサイトのCTA（下線＋矢印＋font 11px/600）に合わせる。上の input リセットで消えた下線を復活 */
.contact-form .wpcf7-submit {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    width: auto;
    min-height: 0;
    margin-top: 28px;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .06em;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease;
}

.contact-form .wpcf7-submit:hover {
    color: var(--blue);
}

.contact-form__note {
    color: var(--gray);
    font-size: 10px;
}

.contact-form__consent {
    font-size: 12px;
    line-height: 1.6;
}

.contact-form__consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.contact-form__consent .wpcf7-list-item {
    display: block;
    margin: 0;
}

.contact-form__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    min-height: 0;
    margin-top: 3px;
    accent-color: var(--black);
}

.contact-form__consent a {
    border-bottom: 1px solid currentColor;
}

.contact-form__consent a:hover {
    opacity: .6;
}

.btn {
    display: inline-flex;
    width: fit-content;
    margin-top: 24px;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid;
    background: transparent;
    color: inherit;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid var(--line);
}

.site-footer__links {
    display: flex;
    gap: 26px;
}

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   Service page refinements
   - 4 Steps: 左に概要、右に工程情報を集約
   - Flow: 番号・工程名・説明を明示的な3列に固定
   ======================================== */
@media (min-width: 900px) {
    .page-service main>.section--soft:first-of-type .container {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 90px;
        align-items: start;
    }

    .page-service main>.section--soft:first-of-type .section-heading {
        position: sticky;
        top: 110px;
        margin-bottom: 0;
    }

    .page-service main>.section--soft:first-of-type .section-heading__title {
        margin-top: 38px;
        font-size: 23px;
    }

    .page-service .service-steps {
        border-bottom: 1px solid var(--line);
    }

    .page-service .service-step {
        grid-template-columns: 48px 105px 190px minmax(0, 1fr);
        grid-template-areas:
            "number en title copy"
            ". . list copy"
            ". . note note";
        gap: 16px 22px;
        min-height: 0;
        padding: 42px 0 46px;
        align-items: baseline;
        /* 番号・en・タイトル・本文の先頭行をベースラインで揃える */
    }

    .page-service .service-step__number {
        grid-area: number;
    }

    .page-service .service-step__en {
        grid-area: en;
    }

    .page-service .service-step__title {
        grid-area: title;
    }

    .page-service .service-step__copy {
        grid-area: copy;
    }

    .page-service .service-step__list {
        grid-area: list;
        margin-top: 20px;
    }

    .page-service .service-step__note {
        grid-area: note;
        margin-top: 8px;
    }

    .page-service .service-step__copy {
        max-width: 330px;
        justify-self: end;
    }

    .page-service .service-step__list li {
        margin-bottom: 3px;
    }

    .page-service .line-list li {
        display: grid;
        grid-template-columns: 70px 220px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
        padding: 30px 0 34px;
    }

    .page-service .line-list .flow-number {
        font-family: var(--font-en);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .08em;
    }

    .page-service .line-list strong {
        font-size: 16px;
        line-height: 1.8;
    }

    .page-service .line-list li>span:last-child {
        color: #444;
        line-height: 2;
    }
}

/* ======================================== 11. Responsive ======================================== */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

@media (max-width: 1100px) {
    :root {
        --side: 46px;
    }

    .site-nav__list {
        gap: 22px;
    }

    .v2-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .v2-hero__visual {
        width: 100%;
    }

    .v2-contact__content {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 767px) {
    :root {
        --side: 23px;
    }

    body {
        font-size: 14px;
    }

    /* スマホ時の見出しフォントサイズ */
    .section-heading__title,
    .about-message__statement,
    .faq-cta__title,
    .contact-panel__heading,
    .work-detail__title,
    .work-detail__body h2 {
        font-size: 20px;
    }

    /* iOS Safari 対策: 入力欄の font-size が 16px 未満だとフォーカス時にオートズームが発生し、
       画面が左右にずれて入力欄が画面幅より広く見える。16px 指定でズームを抑止する。
       select はネイティブピッカーが開きズームしないため対象外（下でラベルと同じ 11px に統一）。 */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .site-header {
        padding: 35px var(--side) 0;
    }

    .site-header__inner {
        height: 40px;
    }

    .brand {
        font-size: 21px;
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 90;
        display: inline-flex;
        margin: -8px -7px 0 0;
    }

    .site-header.is-scrolled {
        padding-top: 18px;
    }

    .site-header.is-scrolled .brand {
        opacity: 0;
        pointer-events: none;
    }

    .site-header.is-scrolled .menu-toggle {
        margin-left: auto;
    }

    .container {
        width: calc(100% - 46px);
    }

    .section {
        padding: 90px 0;
    }

    .v2-hero {
        min-height: auto;
        padding: 150px var(--side) 150px;
    }

    .v2-hero__inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .v2-hero__visual {
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .v2-hero__text {
        order: 2;
        height: auto;
        margin-top: 58px;
    }

    .v2-hero__title {
        margin-bottom: 10px;
        font-size: 28px;
        line-height: 1.45;
    }

    .v2-hero__en {
        margin-bottom: 30px;
        font-size: 15px;
    }

    .v2-hero__body {
        line-height: 2;
    }

    .v2-hero__text .text-link {
        margin-top: 34px;
    }

    .section-axis {
        height: 142px;
    }

    .v2-mission {
        padding: 100px var(--side);
    }

    .v2-mission h1 {
        margin: 62px 0 36px;
        font-size: 22px;
        line-height: 1.95;
    }

    .v2-mission p {
        text-align: left;
    }

    .v2-mission p br {
        display: none;
    }

    .v2-projects {
        padding: 105px 0 115px;
    }

    .v2-projects__track {
        gap: 10px;
        padding-left: 23px;
        transform: none;
    }

    .v2-project {
        width: 175px;
        flex-basis: 175px;
    }

    .v2-project img {
        width: 175px;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .v2-project span,
    .v2-project strong {
        opacity: 1;
        transform: none;
    }

    .v2-projects__more {
        margin-left: 23px;
    }

    .v2-split {
        display: flex;
        min-height: auto;
        flex-direction: column;
    }

    .v2-split__visual {
        order: 1;
        width: 100%;
        height: 520px;
    }

    .v2-split__content {
        order: 2;
        padding: 90px 23px 105px;
    }

    .v2-service-list {
        margin-top: 58px;
    }

    .v2-service-list li {
        margin-bottom: 38px;
    }

    .v2-service-list h3 {
        font-size: 17px;
    }

    .v2-about {
        grid-template-columns: 1fr;
    }

    .v2-about__text,
    .v2-about__facts {
        padding: 90px 23px;
    }

    .v2-about__text h2 {
        font-size: 20px;
    }

    .v2-contact {
        grid-template-columns: 1fr;
    }

    .v2-contact__content {
        padding: 90px 23px 100px;
    }

    .v2-contact__visual {
        height: 520px;
    }

    .v2-footer__bottom {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 52px 23px;
    }

    .v2-footer__bottom nav {
        flex-wrap: wrap;
        gap: 18px 26px;
    }

    .breadcrumbs {
        padding: 112px 23px 0;
    }

    .page-intro {
        width: calc(100% - 46px);
        padding: 70px 0 100px;
    }

    .page-title {
        font-size: 42px;
    }

    .page-intro__copy {
        margin-top: 50px;
        font-size: 22px;
    }

    .section-side,
    .about-message {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-ai .section-side {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .values-list__item,
    .process-list__item,
    .line-list li {
        grid-template-columns: 42px 1fr;
    }

    .values-list__text,
    .process-list__text {
        grid-column: 2;
    }

    .service-step {
        grid-template-columns: 44px 1fr;
        gap: 12px 18px;
    }

    .service-step__title,
    .service-step__copy,
    .service-step__list,
    .service-step__note {
        grid-column: 2;
    }

    .page-service .line-list li {
        grid-template-columns: 42px 1fr;
        gap: 8px 18px;
        padding: 24px 0 28px;
    }

    .page-service .line-list .flow-number {
        grid-column: 1;
        grid-row: 1;
        font-family: var(--font-en);
        font-size: 10px;
        font-weight: 700;
    }

    .page-service .line-list strong {
        grid-column: 2;
        grid-row: 1;
        font-size: 16px;
    }

    .page-service .line-list li>span:last-child {
        grid-column: 2;
        grid-row: 2;
        color: #444;
    }

    .plan-grid,
    .works-grid,
    .work-detail__intro,
    .gallery-grid,
    .contact-panel__grid {
        grid-template-columns: 1fr;
    }

    .works-grid {
        gap: 65px;
    }

    .work-card__image {
        aspect-ratio: 16 / 10;
    }

    .contact-panel__grid {
        gap: 70px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        /* 無限ループのアニメーションが「.01ms で無限周回」にならないよう、1回で終わらせる */
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}