@charset "UTF-8";

/* =========================================================
   woofa Inc. corporate site
   ========================================================= */
:root {
    --c-bg: #f4efec;
    --c-bg-soft: #f6f2ee;
    --c-card: #fbf7f2;
    --c-text: #25211d;
    --c-text-sub: #7b756e;
    --c-line: #d9d2c9;
    --c-gold: #d8a866;
    --c-gold-light: #e9c98c;
    --c-navy: #16223f;
    --c-navy-deep: #101a31;
    --c-white: #fff;

    --f-en: "Tenor Sans", serif;
    /* 見出し用ディスプレイ */
    --f-en-it: "Cormorant Garamond", serif;
    /* イタリックアクセント */
    --f-ui: "Poppins", sans-serif;
    /* ナビ・日付・ラベル等のUI英字 */
    --f-logo: "Poppins", sans-serif;
    --f-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

    /* type scale */
    --fs-xs: 0.6875rem;
    --fs-s: 0.78125rem;
    --fs-ui: 0.8125rem;
    --fs-body: 0.9375rem;
    --fs-lead: clamp(1rem, 1.5vw, 1.125rem);

    /* spacing rhythm */
    --sec-pad: clamp(96px, 11vw, 144px);
    --sec-pad-l: clamp(112px, 13vw, 176px);
    --head-gap: clamp(40px, 5vw, 64px);

    --ease-out: cubic-bezier(.22, .8, .3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--f-ja);
    font-weight: 400;
    font-size: var(--fs-body);
    color: var(--c-text);
    background:
        radial-gradient(1200px 600px at 85% 8%, #f7f1ea 0%, transparent 60%),
        var(--c-bg);
    line-height: 1.9;
    letter-spacing: .05em;
    -webkit-font-smoothing: antialiased;
}

/* ---------- three.js threads canvas ---------- */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--c-gold-light);
    color: var(--c-text);
}

.en {
    font-family: var(--f-en);
    font-weight: 400;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    position: relative;
}

/* ---------- paper grain ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: .035;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2"/></filter><rect width="160" height="160" filter="url(%23n)"/></svg>');
}

/* ---------- skip link ---------- */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 300;
    padding: 10px 18px;
    background: var(--c-text);
    color: #fff;
    font-size: var(--fs-ui);
    border-radius: 4px;
    transform: translateY(-200%);
    transition: transform .25s;
}

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

/* ---------- intro ---------- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: var(--c-bg);
    display: grid;
    place-items: center;
    pointer-events: none;
    animation: introHide .8s var(--ease-out) 1.7s forwards;
}

.intro__logo {
    font-family: var(--f-logo);
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 40px);
    opacity: 0;
    animation: introLogo 1.3s var(--ease-out) .1s forwards;
}

.intro__thread {
    position: absolute;
    left: 50%;
    top: calc(50% + 44px);
    width: 0;
    height: 1px;
    background: var(--c-gold);
    transform: translateX(-50%);
    animation: introThread .9s var(--ease-out) .45s forwards;
}

@keyframes introLogo {
    from {
        opacity: 0;
        letter-spacing: .34em;
    }

    to {
        opacity: 1;
        letter-spacing: .06em;
    }
}

@keyframes introThread {
    to {
        width: 140px;
    }
}

@keyframes introHide {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ---------- custom cursor ---------- */
.cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1500;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(216, 168, 102, .85);
    pointer-events: none;
    opacity: 0;
    transition: width .3s, height .3s, opacity .3s, background-color .3s;
    translate: -50% -50%;
}

.cursor.is-on {
    opacity: 1;
}

.cursor.is-hover {
    width: 56px;
    height: 56px;
    background: rgba(216, 168, 102, .12);
}

@media (hover: none),
(pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* ---------- section heading ---------- */
.sec-title {
    font-family: var(--f-en);
    font-size: clamp(44px, 5.4vw, 78px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .02em;
}

.sec-title-ja {
    margin-top: 14px;
    font-size: var(--fs-ui);
    letter-spacing: .16em;
    color: var(--c-text-sub);
}

/* ---------- header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background .35s, box-shadow .35s, transform .45s var(--ease-out);
}

.header.is-scrolled {
    background: rgba(244, 239, 236, .88);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.header.is-hidden {
    transform: translateY(-100%);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 3.5vw, 48px);
}

.header__logo {
    font-family: var(--f-logo);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: .02em;
}

.gnav {
    display: flex;
    gap: clamp(14px, 2.2vw, 32px);
}

.gnav a {
    font-family: var(--f-ui);
    font-size: var(--fs-ui);
    letter-spacing: .06em;
    position: relative;
    padding: 10px 4px;
}

.gnav a::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease-out);
}

.gnav a:hover::after,
.gnav a.is-current::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-btn {
    width: 44px;
    height: 44px;
    margin-left: clamp(14px, 2vw, 28px);
    border: none;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform .3s;
}

.menu-btn:hover {
    transform: scale(1.08);
}

.menu-btn span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--c-text);
    transition: transform .3s, opacity .3s;
}

.menu-btn.is-open span:nth-child(1) {
    transform: translateY(3.25px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
    transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- drawer ---------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(244, 239, 236, .97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s, visibility .45s;
}

.drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer__nav {
    display: grid;
    gap: 14px;
    text-align: center;
}

.drawer__nav li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.drawer.is-open .drawer__nav li {
    opacity: 1;
    transform: none;
}

.drawer.is-open .drawer__nav li:nth-child(1) {
    transition-delay: .06s;
}

.drawer.is-open .drawer__nav li:nth-child(2) {
    transition-delay: .12s;
}

.drawer.is-open .drawer__nav li:nth-child(3) {
    transition-delay: .18s;
}

.drawer.is-open .drawer__nav li:nth-child(4) {
    transition-delay: .24s;
}

.drawer.is-open .drawer__nav li:nth-child(5) {
    transition-delay: .3s;
}

.drawer.is-open .drawer__nav li:nth-child(6) {
    transition-delay: .36s;
}

.drawer__nav a {
    font-family: var(--f-en);
    font-size: 28px;
    display: grid;
    gap: 4px;
    padding: 8px 24px;
}

.drawer__nav small {
    font-family: var(--f-ja);
    font-size: var(--fs-xs);
    color: var(--c-text-sub);
    letter-spacing: .16em;
}

/* ---------- MV ---------- */
.mv {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.mv__inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4vw;
    padding: 120px clamp(20px, 6vw, 90px) 80px;
}

.mv__title {
    font-family: var(--f-en);
    font-weight: 400;
    font-size: clamp(56px, 8.6vw, 124px);
    line-height: 1.12;
    letter-spacing: .015em;
    display: grid;
}

.mv__title em {
    font-family: var(--f-en-it);
    font-style: italic;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: .01em;
}

.mv__line {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}

.mv__line-in {
    display: inline-block;
    transform: translateY(115%);
    animation: mvUp 1.1s var(--ease-out) 1.5s forwards;
}

.mv__line--2 {
    margin-left: .55em;
}

.mv__line--3 {
    margin-left: 1.45em;
}

.mv__line--4 {
    margin-left: 1.05em;
}

.mv__line--2 .mv__line-in {
    animation-delay: 1.62s;
}

.mv__line--3 .mv__line-in {
    animation-delay: 1.74s;
}

.mv__line--4 .mv__line-in {
    animation-delay: 1.86s;
}

@keyframes mvUp {
    to {
        transform: none;
    }
}

.mv__copy {
    font-size: clamp(12px, 1.05vw, 15px);
    letter-spacing: .3em;
    white-space: nowrap;
    margin-top: 8vh;
    padding-right: clamp(0px, 3vw, 50px);
    opacity: 0;
    transform: translateY(14px);
    animation: mvCopy 1.2s var(--ease-out) 2.3s forwards;
}

@keyframes mvCopy {
    to {
        opacity: 1;
        transform: none;
    }
}

.scroll-sign {
    position: absolute;
    right: clamp(14px, 2.4vw, 34px);
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: mvCopy 1s 2.6s forwards;
}

.scroll-sign span {
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: .32em;
    color: var(--c-text-sub);
    font-family: var(--f-ui);
}

.scroll-sign i {
    width: 1px;
    height: 64px;
    background: var(--c-text-sub);
    display: block;
    position: relative;
    overflow: hidden;
}

.scroll-sign i::after {
    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    background: var(--c-bg);
    animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }

    55% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* ---------- more link ---------- */
.more {
    display: flex;
    justify-content: flex-end;
    margin-top: clamp(40px, 5vw, 56px);
}

.more__link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 6px 0;
}

.more__label {
    font-size: var(--fs-ui);
    letter-spacing: .14em;
    font-family: var(--f-ui);
}

.circle-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2b2825;
    color: #fff;
    display: grid;
    place-items: center;
    transition: transform .35s var(--ease-out), background .3s;
    position: relative;
    overflow: hidden;
}

.circle-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform .35s var(--ease-out);
}

.more__link:hover .circle-arrow {
    transform: scale(1.1);
    background: #000;
}

.more__link:hover .circle-arrow svg {
    transform: translateX(3px);
}

/* ---------- Who We Are ---------- */
.who {
    padding: var(--sec-pad) 0;
}

.who__body {
    margin-top: var(--head-gap);
}

.who__catch {
    font-size: clamp(19px, 1.9vw, 26px);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.7;
}

.who__text {
    margin: clamp(28px, 3.4vw, 44px) 0 0 clamp(0px, 6vw, 90px);
    display: grid;
    gap: 18px;
    max-width: 46em;
}

.who__text p {
    font-size: var(--fs-body);
    line-height: 2;
}

/* ---------- Services ---------- */
.services {
    padding: var(--sec-pad) 0;
    background: rgba(252, 248, 243, .45);
    /* 半透過：背後のスレッドが透ける */
}

.service-list {
    margin: var(--head-gap) 0 0 clamp(0px, 14vw, 210px);
    display: grid;
    gap: clamp(40px, 5vw, 68px);
    position: relative;
}

.service-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.service-item__dot {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ecc795, var(--c-gold));
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(216, 168, 102, .45);
    position: relative;
}

.service-item__dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(216, 168, 102, .5);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .4s, transform .5s var(--ease-out);
}

.service-item:hover .service-item__dot::after {
    opacity: 1;
    transform: none;
}

.service-item__title {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 400;
    line-height: 1.35;
}

.service-item__desc {
    margin-top: 14px;
    font-size: 0.875rem;
    line-height: 2;
    color: #55504a;
    max-width: 44em;
}

/* ---------- Works ---------- */
.works {
    padding: var(--sec-pad) 0;
}

.works__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: var(--head-gap);
}

.works__intro {
    font-size: 0.875rem;
    line-height: 2;
}

.works__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    font-family: var(--f-ja);
    font-size: var(--fs-s);
    letter-spacing: .06em;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #c8c1b8;
    background: transparent;
    color: var(--c-text);
    transition: background .25s, color .25s, border-color .25s, transform .2s;
}

.filter-btn:hover {
    border-color: var(--c-text);
    transform: translateY(-1px);
}

.filter-btn.is-active {
    background: #2b2825;
    border-color: #2b2825;
    color: #fff;
}

.works__grid {
    margin-top: clamp(32px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(18px, 2.2vw, 28px);
}

.work-card {
    grid-column: span 2;
}

.work-card--lg {
    grid-column: span 3;
}

.work-card.is-hidden {
    display: none;
}

.work-card a {
    display: block;
    background: var(--c-card);
    border-radius: 14px;
    padding: 10px 10px 16px;
    height: 100%;
    box-shadow: 0 6px 24px rgba(60, 50, 40, .06);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.work-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(60, 50, 40, .13);
}

.work-card__img {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.work-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

.work-card a:hover .work-card__img img {
    transform: scale(1.06);
}

.work-card__title {
    font-size: 0.90625rem;
    font-weight: 700;
    margin: 16px 10px 0;
    line-height: 1.6;
}

.work-card__tag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 10px 2px;
    font-size: var(--fs-s);
    color: var(--c-text-sub);
}

.work-card__tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b6afa6;
}

/* ---------- News ---------- */
.news {
    padding: var(--sec-pad) 0 var(--sec-pad-l);
}

.news-list {
    margin-top: var(--head-gap);
    border-top: 1px solid var(--c-line);
}

.news-item {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 38px);
    padding: 28px clamp(4px, 1vw, 14px);
    border-bottom: 1px solid var(--c-line);
    transition: background .25s, padding .3s var(--ease-out);
}

.news-item:hover {
    background: rgba(255, 255, 255, .55);
    padding-left: clamp(10px, 1.6vw, 22px);
}

.news-item time {
    font-family: var(--f-ui);
    font-size: var(--fs-ui);
    letter-spacing: .08em;
    flex: 0 0 auto;
}

.news-item__cat {
    flex: 0 0 auto;
    font-size: var(--fs-xs);
    letter-spacing: .08em;
    background: #2b2825;
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
}

.news-item__title {
    font-size: 0.90625rem;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.8;
}

.news-item__arrow {
    flex: 0 0 auto;
    transition: transform .3s var(--ease-out);
}

.news-item:hover .news-item__arrow {
    transform: translateX(6px);
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    overflow: hidden;
    padding: var(--sec-pad-l) 0;
    background: linear-gradient(165deg, #20232a 0%, #181b20 50%, #111317 100%);
    color: #f2f0ec;
}

.contact .sec-title-ja {
    color: #a8a5a0;
}

.contact__deco {
    position: absolute;
    pointer-events: none;
    background-size: cover;
    background-repeat: no-repeat;
}

.contact__deco--tr {
    top: 0;
    right: 0;
    width: min(675px, 55vw);
    aspect-ratio: 675 / 460;
    background-image: url("../assets/circuit-dark.png");
    mask-image: radial-gradient(115% 115% at 100% 0%, #000 38%, transparent 72%);
    -webkit-mask-image: radial-gradient(115% 115% at 100% 0%, #000 38%, transparent 72%);
    mix-blend-mode: screen;
    opacity: .95;
}

.contact__deco--bl {
    bottom: 0;
    left: 0;
    width: min(420px, 40vw);
    aspect-ratio: 420 / 384;
    background-image: url("../assets/circuit-dark-bl.png");
    mask-image: radial-gradient(115% 115% at 0% 100%, #000 30%, transparent 68%);
    -webkit-mask-image: radial-gradient(115% 115% at 0% 100%, #000 30%, transparent 68%);
    mix-blend-mode: screen;
    opacity: .9;
}

.contact__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 24%, rgba(255, 255, 255, .7), transparent),
        radial-gradient(1px 1px at 38% 62%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 64% 18%, rgba(233, 201, 140, .65), transparent),
        radial-gradient(1px 1px at 82% 74%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(1px 1px at 24% 86%, rgba(255, 255, 255, .4), transparent),
        radial-gradient(1.5px 1.5px at 52% 42%, rgba(255, 255, 255, .35), transparent);
    background-size: 720px 720px;
    animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: .5;
    }

    to {
        opacity: 1;
    }
}

.contact__body {
    position: relative;
    margin-top: var(--head-gap);
}

.contact__lead {
    font-size: var(--fs-lead);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 2;
}

.contact__note {
    margin-top: 24px;
    font-size: 0.84375rem;
    line-height: 2.1;
    color: #bdbab5;
}

.contact__btn {
    margin-top: clamp(36px, 4.4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(440px, 100%);
    border: 1px solid var(--c-gold);
    color: #eccf9b;
    padding: 24px 28px;
    font-family: var(--f-ui);
    font-size: var(--fs-body);
    letter-spacing: .12em;
    position: relative;
    overflow: hidden;
    transition: color .35s;
}

.contact__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease-out);
}

.contact__btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.contact__btn:hover {
    color: #15130f;
}

.contact__btn span {
    position: relative;
}

.contact__btn-arrow {
    transition: transform .3s var(--ease-out);
}

.contact__btn:hover .contact__btn-arrow {
    transform: translateX(6px);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--c-white);
    padding: clamp(60px, 8vw, 100px) 0 0;
}

.footer__main {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 6vw, 90px);
    padding-bottom: clamp(50px, 6vw, 80px);
}

.footer__brand {
    flex: 0 0 auto;
    max-width: 280px;
}

.footer__logo {
    font-family: var(--f-logo);
    font-weight: 500;
    font-size: 30px;
}

.footer__tagline {
    margin-top: 20px;
    font-size: var(--fs-s);
    line-height: 2;
    color: #5d5852;
}

.footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding: 13px 26px;
    border: 1px solid #2b2825;
    border-radius: 999px;
    font-size: var(--fs-s);
    letter-spacing: .1em;
    transition: background .3s, color .3s;
}

.footer__cta:hover {
    background: #2b2825;
    color: #fff;
}

.footer__nav {
    flex: 1 1 480px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 36px 20px;
}

.footer__head {
    font-family: var(--f-ui);
    font-size: 0.9375rem;
    margin-bottom: 18px;
}



.footer__col li + li {
    margin-top: 6px;
}

.footer__col a {
    font-size: var(--fs-s);
    color: #5d5852;
    transition: color .25s;
    line-height: 1.7;
    display: inline-block;
    padding: 4px 0;
}

a.bbb {
    font-size: var(--fs-s);
    color: #5d5852;
    transition: color .25s;
    line-height: 1.7;
    display: inline-block;
    padding: 4px 0;
    font-size: 16px;
}

.footer__col a:hover {
    color: var(--c-text);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    padding: 22px 0 26px;
    border-top: 1px solid #e5e1db;
}

.footer__copy small {
    font-size: var(--fs-xs);
    color: #8a847c;
    font-family: var(--f-ui);
    letter-spacing: .04em;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: auto;
}

.footer__links li {
    display: flex;
    align-items: center;
}

.footer__links li + li::before {
    content: "";
    width: 1px;
    height: 11px;
    background: #cfc9c1;
    margin: 0 14px;
}

.footer__links a {
    font-size: var(--fs-xs);
    color: #5d5852;
    padding: 6px 0;
    display: inline-block;
}

.footer__links a:hover {
    color: var(--c-text);
}

.footer__sns {
    display: flex;
    gap: 10px;
}

.footer__sns a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #2b2825;
    display: grid;
    place-items: center;
    transition: background .3s, color .3s, transform .3s;
}

.footer__sns a:hover {
    background: #2b2825;
    color: #fff;
    transform: translateY(-2px);
}

.footer__sns svg {
    width: 14px;
    height: 14px;
}

/* ---------- pagetop ---------- */
.pagetop {
    position: fixed;
    right: clamp(16px, 2.4vw, 32px);
    bottom: clamp(16px, 2.4vw, 32px);
    z-index: 80;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--c-white);
    color: var(--c-text);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .35s, visibility .35s, transform .35s var(--ease-out), background .3s, color .3s;
}

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

.pagetop:hover {
    background: #2b2825;
    color: #fff;
}

.pagetop svg {
    width: 18px;
    height: 18px;
}

/* ---------- fade-in ---------- */
.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--d, 0s);
}

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

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

    .fadein,
    .mv__line-in,
    .mv__copy,
    .scroll-sign,
    .intro,
    .intro__logo,
    .intro__thread {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .intro {
        display: none !important;
    }

    .cursor {
        display: none !important;
    }

    .contact__stars {
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
    .gnav {
        display: none;
    }

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

    .work-card,
    .work-card--lg {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 80px;
    }

    body {
        line-height: 1.85;
        letter-spacing: .04em;
    }

    .header__inner {
        padding: 16px 20px;
    }

    .sec-title-ja {
        margin-top: 10px;
    }

    .mv__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;
        padding-top: 100px;
    }

    .mv__copy {
        margin-top: 0;
        letter-spacing: .2em;
    }

    .mv__line--2 {
        margin-left: .35em;
    }

    .mv__line--3 {
        margin-left: .9em;
    }

    .mv__line--4 {
        margin-left: .6em;
    }

    .who__text {
        margin-left: 0;
    }

    .service-list {
        margin-left: 0;
    }

    .works__grid {
        grid-template-columns: 1fr;
    }

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

    .news-item {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .news-item__title {
        flex-basis: 100%;
        order: 3;
    }

    .news-item__arrow {
        margin-left: auto;
        order: 2;
    }

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .footer__links {
        margin-left: 0;
    }

    .pagetop {
        width: 44px;
        height: 44px;
    }
}

/* =========================================================
   Sub pages
   ========================================================= */
.page-hero {
    position: relative;
    padding: clamp(150px, 18vw, 230px) 0 clamp(50px, 7vw, 84px);
}

.page-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.page-hero__title {
    font-family: var(--f-en);
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: .02em;
}

.page-hero__title .mv__line-in,
.page-hero__title {
    overflow: visible;
}

.page-hero__ja {
    margin-top: 16px;
    font-size: var(--fs-ui);
    letter-spacing: .18em;
    color: var(--c-text-sub);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-ui);
    font-size: var(--fs-s);
    color: var(--c-text-sub);
}

.breadcrumb a:hover {
    color: var(--c-text);
}

.breadcrumb span {
    opacity: .5;
}

.page-section {
    padding: clamp(40px, 6vw, 80px) 0;
}

.page-section--soft {
    background: rgba(252, 248, 243, .5);
}

.page-foot-nav {
    padding: clamp(70px, 9vw, 120px) 0;
    text-align: center;
}

.page-foot-nav__label {
    font-family: var(--f-en);
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 28px;
}

/* lead block */
.lead-block {
    max-width: 760px;
}

.lead-block__en {
    font-family: var(--f-en);
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.4;
}

.lead-block__big {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .08em;
    margin-bottom: 26px;
}

.lead-block p + p {
    margin-top: 16px;
}

.lead-block .txt {
    font-size: var(--fs-body);
    line-height: 2.1;
    color: #4d4842;
}

/* company table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.info-table th,
.info-table td {
    text-align: left;
    vertical-align: top;
    padding: 22px 8px;
    border-bottom: 1px solid var(--c-line);
    font-weight: 400;
}

.info-table th {
    width: 30%;
    font-size: var(--fs-ui);
    letter-spacing: .08em;
    color: #564f48;
}

.info-table td {
    font-size: var(--fs-body);
    line-height: 1.9;
}

@media (max-width: 640px) {

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 4px 0;
    }

    .info-table th {
        padding-top: 20px;
        color: var(--c-text-sub);
    }

    .info-table tr {
        display: block;
        border-bottom: 1px solid var(--c-line);
        padding-bottom: 16px;
    }
}

/* two column intro */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
}

.split--rev > :first-child {
    order: 2;
}

.split__media {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 14px 40px rgba(60, 50, 40, .1);
}

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

.split__media--toned {
    background: linear-gradient(150deg, #20232a, #111317);
    display: grid;
    place-items: center;
}

.split__media--toned span {
    font-family: var(--f-en);
    font-size: clamp(30px, 4vw, 54px);
    color: #e9c98c;
    opacity: .9;
}

@media (max-width: 760px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split--rev > :first-child {
        order: 0;
    }
}

/* service detail blocks */
.svc-detail {
    padding: clamp(50px, 7vw, 96px) 0;
    border-bottom: 1px solid var(--c-line);
}

.svc-detail__no {
    font-family: var(--f-en);
    font-size: var(--fs-ui);
    letter-spacing: .2em;
    color: var(--c-gold);
}

.svc-detail__title {
    font-family: var(--f-en);
    font-size: clamp(26px, 3.4vw, 44px);
    margin: 10px 0 6px;
    line-height: 1.25;
}

.svc-detail__title-ja {
    font-size: var(--fs-ui);
    letter-spacing: .12em;
    color: var(--c-text-sub);
    margin-bottom: 24px;
}

.svc-detail__desc {
    font-size: var(--fs-body);
    line-height: 2.1;
    color: #4d4842;
    max-width: 640px;
}

.svc-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.svc-features li {
    font-size: var(--fs-s);
    padding: 8px 16px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
}

/* works grid (list page reuses .work-card) */
.works-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
    margin-top: clamp(30px, 4vw, 48px);
}

.works-page-grid .work-card {
    grid-column: auto;
}

@media (max-width: 900px) {
    .works-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .works-page-grid {
        grid-template-columns: 1fr;
    }
}

/* news list (full) */
.newslist {
    border-top: 1px solid var(--c-line);
}

.newslist .news-item {
    gap: clamp(16px, 2.6vw, 38px);
}

/* contact form */
.form {
    max-width: 720px;
    margin-top: clamp(36px, 5vw, 60px);
}

.form__row {
    margin-bottom: 26px;
}

.form__label {
    display: block;
    font-size: var(--fs-ui);
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.form__label .req {
    color: #c0552f;
    font-size: var(--fs-xs);
    margin-left: 8px;
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    font: inherit;
    font-size: var(--fs-body);
    padding: 15px 16px;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    color: var(--c-text);
    transition: border-color .25s, box-shadow .25s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(216, 168, 102, .18);
}

.form__textarea {
    min-height: 160px;
    resize: vertical;
}

.form__note {
    font-size: var(--fs-s);
    color: var(--c-text-sub);
    margin-top: 6px;
}

.form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-s);
    line-height: 1.7;
}

.form__check input {
    margin-top: 4px;
}

.form__check a {
    text-decoration: underline;
}

.form__submit {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 40px;
    border: none;
    border-radius: 999px;
    background: #2b2825;
    color: #fff;
    font-family: var(--f-ui);
    font-size: var(--fs-body);
    letter-spacing: .08em;
    position: relative;
    overflow: hidden;
    transition: transform .3s;
}

.form__submit:hover {
    transform: translateY(-2px);
}

.form__submit span {
    position: relative;
}

.contact-info {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.contact-info dt {
    font-family: var(--f-en);
    font-size: var(--fs-ui);
    letter-spacing: .12em;
    color: var(--c-text-sub);
}

.contact-info dd {
    font-size: var(--fs-body);
}



.works-empty {
    padding: 120px 0 160px;
}

.works-empty__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.works-empty__label {
    margin-bottom: 24px;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: #9a918a;
}

.works-empty__title {
    margin: 0 0 28px;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #292522;
}

.works-empty__text {
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.08em;
    color: #6f6862;
}
