:root {
    --bg: #f5f3ef;
    --ink: #242521;
    --muted: #62635c;
    --header-height: 94px;
    --pink-ink: #87545d;
    --line: #d8d7d0;
    --pink: #b9818a;
    --hero-name-size: 24px;
    --hero-copy-size: clamp(28px, 2.2vw, 32px);
    --hero-label-size: 18px;
    --hero-cta-size: 15px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

:lang(ja) {
    font-family: 'Noto Sans JP', sans-serif;
}

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

button {
    font: inherit;
}

::selection {
    background: #dec7c9;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--pink-ink);
    outline-offset: 5px;
}

.section-pad {
    padding-left: clamp(24px, 6vw, 108px);
    padding-right: clamp(24px, 6vw, 108px);
}

/* =========================================================
   SVG アイコン（絵文字の代替）
   ========================================================= */
.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon {
    display: block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    overflow: visible;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(24px, 6vw, 108px);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
    font: 800 30px 'Roboto', sans-serif;
    letter-spacing: -.03em;
}

.brand-dot,
.period {
    color: var(--pink);
}

.brand small {
    font-size: 24px;
    letter-spacing: -1px;
    margin-left: 3px;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 2.6vw, 37px);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
    line-height: 1.5;
}

.nav>a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}

.nav>a:not(.nav-contact):hover {
    color: var(--pink-ink);
}

.nav-contact {
    border: 1px solid var(--ink);
    padding: 10px 19px;
    border-radius: 40px;
}

.nav-contact span {
    margin-left: 22px;
}

.nav-contact:hover {
    background: var(--ink);
    color: var(--bg);
}

/* ハンバーガー / 閉じる：同サイズの SVG で表示（☰ ✕ の文字は非表示） */
.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0;
    color: transparent;
    cursor: pointer;
}

.menu-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242521' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}

/* nav.open の直後の要素がボタン */
.nav.open+.menu-toggle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242521' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
}

.eyebrow,
.hero-foot,
.micro-label,
.footer {
    font-size: 14px;
    letter-spacing: .03em;
    line-height: 1.6;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    min-height: 680px;
    scroll-margin-top: 94px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-top,
.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 27px;
}

.hero-top {
    justify-content: flex-start;
    align-items: flex-start;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    margin-right: 9px;
}

.hero-main {
    padding: 36px 0 30px;
}

.hero-focus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 52%);
    align-items: center;
    gap: clamp(16px, 2.5vw, 36px);
}

.hero-copy {
    min-width: 0;
}

.hero-app-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    width: 100%;
    /* Three ~450px tall phones, including their 6px frames. */
    max-width: 665px;
    min-height: 450px;
    margin-inline: auto;
    animation: hero-mockup-arrive 900ms cubic-bezier(.22, 1, .36, 1) both;
}

.hero-device {
    min-width: 0;
    width: 100%;
    padding: 5px;
    border: 1px solid #3c3d38;
    border-radius: 30px;
    background: #292b28;
    box-shadow: 0 14px 30px rgba(36, 37, 33, .14), 0 3px 8px rgba(36, 37, 33, .08);
}

.hero-device-screen {
    width: 100%;
    aspect-ratio: 1119 / 2431;
    overflow: hidden;
    border-radius: 23px;
    background: #f8f7f3;
}

.hero-device-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes hero-mockup-arrive {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    display: flex;
    flex-direction: column;
    font-size: var(--hero-label-size);
    font-weight: 500;
    letter-spacing: .03em;
    gap: 5px;
    margin: 0 0 20px;
    line-height: 1;
    overflow-wrap: anywhere;
    font-family: 'Roboto', sans-serif;
}

.hero-kicker-name {
    font-size: var(--hero-name-size);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
}

.hero-location {
    display: block;
    margin-left: 16px;
}

/* 見出し共通 */
.hero h1,
.section-heading h2,
.about h2,
.journal h2,
.contact h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero h1 em,
.section-heading h2 em,
.about h2 em,
.journal h2 em,
.contact h2 em {
    font-family: 'Libre Bodoni', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-weight: 400;
    letter-spacing: -.065em;
    font-size: clamp(72px, 10.7vw, 174px);
    line-height: .93;
    margin: 0;
}

.hero h1 em {
    letter-spacing: -.045em;
    font-size: 156px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 34px;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-bottom p {
    max-width: 660px;
    font-size: var(--hero-copy-size);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: .01em;
    color: #5d5e57;
    margin: 0;
}

.hero-bottom p>span {
    display: block;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Hero CTA ---------- */
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
    padding: 13px 22px;
    border: 1px solid var(--ink);
    border-radius: 40px;
    font-size: var(--hero-cta-size);
    font-weight: 500;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
}

.hero-cta span {
    display: inline-block;
    color: var(--pink);
    font-size: 18px;
    transition: color 250ms ease, transform 250ms ease;
}

.hero-cta:hover {
    background: var(--ink);
    color: #fff;
}

.hero-cta-primary {
    background: var(--ink);
    color: var(--bg);
}

.hero-cta-primary:hover {
    background: #3b3c38;
    border-color: #3b3c38;
}

.hero-cta-primary span,
.hero-cta:hover span {
    color: #e6c5c9;
}

.hero-cta-secondary {
    color: var(--ink);
    border-color: var(--ink);
}

.hero-cta-secondary:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: #e8e1dd;
}

.hero-cta-secondary:hover span {
    color: var(--pink-ink);
}

/* 矢印の向きごとの hover 移動：↗ 斜め / → 右 / ↓ 下 */
.hero-cta:hover span {
    transform: translate(3px, -3px);
}

.hero-cta:hover .icon-wrap.is-right {
    transform: translate(3px, 0);
}

.hero-cta:hover .icon-wrap.is-down {
    transform: translate(0, 3px);
}

.hero-foot {
    justify-content: center;
    text-align: center;
    padding: 10px 0 16px;
    color: var(--muted);
}

.hero-foot a {
    cursor: pointer;
}

/* =========================================================
   Works / Products
   ========================================================= */
#work {
    /* Header clearance is already provided by html's scroll-padding-top. */
    scroll-margin-top: 24px;
}

.works,
.products {
    padding-top: 140px;
    padding-bottom: 150px;
    background: #e8e1dd;
}

.products {
    background: var(--bg);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 64px;
    gap: 30px;
}

.section-heading h2 {
    font-size: clamp(45px, 5.6vw, 86px);
    line-height: 1.1;
    margin: 35px 0 0;
}

.section-heading>p {
    font-size: 17px;
    line-height: 1.8;
    color: #696a65;
    min-width: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
}

.work-card {
    min-width: 0;
}

.work-visual-panel {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    padding: 28px;
    overflow: hidden;
    border-radius: 40px;
    background: #ffffff;
}

.project-image-panel {
    position: relative;
    color: var(--muted);
    background: #f2f2f2;
    text-align: center;
    font-size: 14px;
}

.project-image-panel>img {
    position: absolute;
    inset: 28px;
    width: calc(100% - 56px);
    height: calc(100% - 56px);
    object-fit: contain;
    object-position: center;
}

/* 製品カードのモックアップ：画像比率に関係なく画面をフレーム内側に固定 */
.work-mockup-phone {
    position: relative;
    width: 56%;
    aspect-ratio: 9 / 19.5;
    padding: 6px;
    overflow: hidden;
    border: 1px solid #3d3e39;
    border-radius: 40px;
    background: #292b28;
    box-shadow: 0 16px 34px rgba(36, 37, 33, .13), 0 4px 10px rgba(36, 37, 33, .07);
}

.work-mockup-screen {
    position: absolute;
    inset: 6px; /* = .work-mockup-phone の padding */
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 34px;
    background: #f8f7f3;
}

.work-mockup-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.work-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
    gap: 20px;
}

.work-caption h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 10px 0 6px;
}

.work-caption-index {
    display: block;
    color: var(--muted);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.5;
}

.work-caption p {
    font-size: 17px;
    color: #7c7c76;
    margin: 0;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    letter-spacing: .03em;
}

/* ---------- View project ボタン（About MK Design ボタン基準で統一） ---------- */
.work-link-label {
    display: inline-flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.work-link-arrow {
    display: inline-block;
    transition: transform 250ms ease, color 250ms ease;
}

.work-card .work-link-label:hover {
    background: #e8e1dd;
}

.work-card .work-link-label:hover .work-link-arrow {
    transform: translate(3px, -3px);
    color: var(--pink-ink);
}

/* Works はセクション背景が #e8e1dd のため一段濃く */
.works .work-card .work-link-label:hover {
    background: #ddd4cf;
}

.text-link {
    display: inline-block;
    margin-top: 65px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
}

.text-link span {
    margin-left: 90px;
}

/* =========================================================
   About
   ========================================================= */
.about {
    padding-top: 130px;
    padding-bottom: 155px;
    background-color: #F9F9F9;
}

.about-top {
    display: flex;
    justify-content: space-between;
}

.asterisk {
    font-size: 64px;
    color: var(--pink);
    line-height: .5;
}

.asterisk .icon {
    width: 1.25em;
    height: 1.25em;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 40fr);
    column-gap: 5%;
    align-items: start;
    margin-top: 35px;
}

.about h2 {
    font-size: clamp(50px, 6.2vw, 100px);
    line-height: 1.12;
    margin: 0;
}

.about-expertise {
    margin: 70px 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.about-intro,
.about-copy {
    min-width: 0;
}

.about-copy {
    max-width: 680px;
}

.micro-label {
    color: var(--pink-ink);
}

.about-copy>p {
    font-size: 17px;
    line-height: 1.8;
    color: #6b6c65;
}

.about-copy>.about-lead {
    font-size: clamp(20px, 2vw, 29px);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.8;
    margin: 29px 0;
}

.about-facts {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 26px;
    display: flex;
    gap: 45px;
    flex-wrap: wrap;
}

.about-facts div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-facts strong {
    font-size: 25px;
    font-weight: 500;
}

.about-facts span {
    font-size: 14px;
    letter-spacing: .03em;
    color: var(--muted);
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* =========================================================
   Journal
   ========================================================= */
.journal {
    --j-ink: #22231f;
    --j-sub: #6f6a66;
    --j-line: #c9c1bc;
    --j-accent: #c4919b;
    padding-top: 140px;
    padding-bottom: 150px;
    background-color: #e8e1dd;
}

.journal-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px 64px;
}

.journal h2 {
    font-size: clamp(55px, 6.7vw, 105px);
    line-height: 1.12;
    margin: 35px 0;
}

.journal p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
}

.journal-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.journal-topics li {
    font-size: 13px;
    letter-spacing: .04em;
    padding: 6px 14px;
    border: 1px solid var(--j-line);
    border-radius: 999px;
    color: var(--j-ink);
}

/* 円形バッジ */
.journal-badge {
    position: relative;
    width: 220px;
    height: 220px;
    color: var(--j-ink);
}

.journal-badge-ring {
    display: block;
    width: 100%;
    height: 100%;
    animation: journal-spin 24s linear infinite;
}

.journal-badge-ring circle {
    fill: none;
    stroke: #ada4a0;
    stroke-width: .6;
}

.journal-badge-ring text {
    font-family: "Roboto", sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .32em;
    fill: currentColor;
}

.journal-badge-star {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 36px;
    height: 36px;
    color: var(--j-accent);
}

@keyframes journal-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 公開予定の記事 */
.journal-upcoming {
    margin-top: 64px;
    border-top: 1px solid var(--j-line);
}

.journal-upcoming-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    padding: 20px 0 8px;
    letter-spacing: .08em;
}

.journal-upcoming ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.journal-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--j-line);
}

.journal-num {
    font-size: 13px;
    color: var(--j-sub);
}

.journal-item h3 {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--j-ink);
}

.journal-cat {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--j-sub);
}

.journal-status {
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--j-accent);
    white-space: nowrap;
}

/* =========================================================
   Contact section
   ========================================================= */
.contact {
    background: #292b28;
    color: #f5f3ef;
    padding-top: 120px;
    padding-bottom: 135px;
}

.contact h2 {
    font-size: clamp(70px, 10vw, 160px);
    line-height: 1.02;
    margin: 35px 0;
}

.contact h2 em {
    color: #d3adb0;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 180px;
    border-radius: 50px;
    background: #f5f3ef;
    color: #292b28;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    border: 1px solid transparent;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.contact-button:hover {
    background: #292b28;
    color: #ffffff;
    border-color: #ffffff;
}

.contact-button span {
    font-size: 23px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px clamp(24px, 6vw, 108px);
    gap: 20px;
    letter-spacing: .04em;
}

.footer-brand {
    font-size: 22px;
}

.footer-brand small {
    font-size: 17.6px;
    letter-spacing: -.7333px;
    margin-left: 2.2px;
}

.footer>div:nth-child(2) {
    color: var(--muted);
}

.footer>a:hover {
    color: var(--pink);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1100px) {
    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:850px) {
    :root {
        --header-height: 76px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line);
        gap: 8px;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 620px;
        scroll-margin-top: 76px;
    }

    .hero-focus {
        grid-template-columns: 1fr;
    }

    .hero-app-stack {
        min-height: 0;
        margin: 20px auto 0;
    }

    .hero h1 {
        font-size: clamp(57px, 10vw, 100px);
    }

    .hero-bottom {
        margin-top: 40px;
        align-items: flex-start;
    }

    .section-heading {
        display: block;
    }

    .section-heading>p {
        margin-top: 24px;
    }

    .footer {
        flex-wrap: wrap;
    }

    .hero-foot {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width:768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-copy {
        max-width: 620px;
    }

    .journal-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .journal-badge {
        justify-self: end;
        width: 180px;
        height: 180px;
    }

    .journal-upcoming {
        margin-top: 48px;
    }

    .journal-item {
        grid-template-columns: 32px 1fr;
        gap: 4px 12px;
    }

    .journal-status {
        grid-column: 2;
    }
}

@media (max-width:600px) {
    :root {
        --hero-copy-size: clamp(20px, 5vw, 24px);
    }

    .hero {
        min-height: calc(100svh - var(--header-height));
    }

    .hero-main {
        padding: 56px 0;
    }

    .hero-app-stack {
        margin-top: 16px;
    }

    .hero-device,
    .work-mockup-phone {
        border-radius: 18px;
    }

    .hero-device-screen,
    .work-mockup-screen,
    .work-mockup-screen img {
        border-radius: 12px;
    }

    .hero h1 {
        font-size: clamp(40px, 10.8vw, 65px);
    }

    .hero h1 em {
        font-size: 60px;
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-bottom p>span {
        display: inline;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-foot {
        gap: 12px;
    }

    .works,
    .products,
    .about,
    .journal {
        padding-top: 90px;
        padding-bottom: 95px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .section-heading h2,
    .about h2,
    .journal h2 {
        font-size: clamp(40px, 9vw, 54px);
    }

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

    .contact h2 {
        font-size: clamp(38px, 10.5vw, 63px);
    }

    .footer {
        font-size: 13px;
    }

    .footer>div:nth-child(2) {
        order: 3;
        width: 100%;
    }

    .text-link span {
        margin-left: 16px;
    }

    .section-heading>p,
    .about-copy>p,
    .journal p {
        font-size: 16px;
    }
}

/* =========================================================
   Scroll reveal（script.js が付与）
   Content stays visible unless the observer has successfully been installed.
   ========================================================= */
span.scroll-reveal,
.contact h2>.scroll-reveal {
    display: inline-block;
}

.scroll-reveal.reveal-pending {
    opacity: 0;
    transform: translateY(30px) rotate(var(--reveal-rotation, 0deg));
}

.scroll-reveal.reveal-visible {
    animation: scroll-reveal 800ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both;
}

@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(var(--reveal-rotation, 0deg));
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--reveal-rotation, 0deg));
    }
}

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

    .scroll-reveal.reveal-pending,
    .scroll-reveal.reveal-visible {
        opacity: 1;
        transform: rotate(var(--reveal-rotation, 0deg));
    }

    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }
}
/* ---------- Products: モーショングラフィックス（横長ブロック） ---------- */
.motion-feature {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    margin-top: 96px;
    padding-top: 64px;
    border-top: 1px solid var(--line);
}

.motion-frame {
    position: relative;
    padding: 6px;
    border: 1px solid #3d3e39;
    border-radius: 28px;
    background: #292b28;
    box-shadow: 0 16px 34px rgba(36, 37, 33, .13), 0 4px 10px rgba(36, 37, 33, .07);
}

.motion-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #111;
    object-fit: cover;
}

/* 再生・停止 / 音声 ボタン */
.motion-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
}

.motion-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(17, 17, 17, .55);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 200ms ease, border-color 200ms ease;
}

.motion-btn:hover {
    background: rgba(17, 17, 17, .8);
    border-color: #fff;
}

.motion-btn svg {
    width: 16px;
    height: 16px;
}

.motion-btn .is-on { display: none; }
.motion-btn[aria-pressed="true"] .is-on { display: block; }
.motion-btn[aria-pressed="true"] .is-off { display: none; }

.motion-copy h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 10px 0 18px;
}

.motion-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
}

.motion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.motion-tags li {
    font-size: 13px;
    letter-spacing: .04em;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

@media (max-width: 850px) {
    .motion-feature {
        grid-template-columns: 1fr;
        margin-top: 64px;
        padding-top: 48px;
    }
}

@media (max-width: 600px) {
    .motion-frame { border-radius: 18px; }
    .motion-frame video { border-radius: 12px; }
    .motion-controls { right: 14px; bottom: 14px; }
}
/* ---------- Journal：公開済み / 準備中 の2リスト ---------- */
.journal-list {
    margin-top: 64px;
    border-top: 1px solid var(--j-line);
}

.journal-list + .journal-list {
    margin-top: 56px;
}

.journal-list ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 準備中は一段控えめに */
.journal-list:last-of-type .journal-item h3 {
    color: var(--j-sub);
}

/* 公開済み（リンク付き） */
.journal-item:has(.journal-link) {
    display: block;
    padding: 0;
}

.journal-link {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: baseline;
    padding: 22px 0;
    transition: opacity 200ms ease;
}

.journal-link:hover {
    opacity: .65;
}

.journal-link .journal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--j-ink);
}

.journal-link .journal-status .icon-wrap {
    color: var(--j-accent);
    transition: transform 250ms ease;
}

.journal-link:hover .journal-status .icon-wrap {
    transform: translate(3px, -3px);
}

@media (max-width: 768px) {
    .journal-list {
        margin-top: 48px;
    }

    .journal-link {
        grid-template-columns: 32px 1fr;
        gap: 4px 12px;
    }

    .journal-link .journal-status {
        grid-column: 2;
    }
}
/* Journal：各リストの最後の項目の下線を消す */
.journal-list .journal-item:last-child {
    border-bottom: 0;
}