@charset "UTF-8";

/* ==========================================================================
   Pattern 12: Organic Sumi (和風・墨・余白と円形)
   Designer: "和の精神性を持つUIクリエイター"
   Concept: 墨色（Sumi）、和紙のようなオフホワイト背景、縦書き、かすれフィルター
   ========================================================================== */

:root {
    --c-ink: #1D1B1B;
    /* 墨色。純黒より少し柔らかい */
    --c-ink-light: #5B5A5A;
    /* 薄墨 */
    --c-paper: #F8F6F0;
    /* 和紙のような温かみのある白 */
    --c-accent: #8E2B2B;
    /* 臙脂（えんじ）色。朱印のようなアクセント */

    --font-ja: 'Shippori Mincho', serif;
    --font-en: 'Noto Serif JP', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--font-ja);
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    /* 背景にうっすらと和紙風のノイズを乗せるテクニック */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.04"/></svg>');
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    font-feature-settings: "palt";
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    display: block;
    filter: saturate(0.8) contrast(1.1);
}

/* 少し彩度を落として和風に */
ul {
    list-style: none;
}

/* =========================================
   Typography & Masks
========================================= */
.c-logo {
    font-size: 28px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.c-logo .en {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--c-ink-light);
}

.c-circle-mask {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.c-circle-mask--large {
    width: clamp(300px, 40vw, 600px);
    aspect-ratio: 1;
}

.c-circle-mask--md {
    width: 100%;
    aspect-ratio: 1;
}

.c-circle-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 筆かすれ風のマスク表現（SVGフィルター呼び出し） */
.c-brush-mask {
    position: relative;
    overflow: hidden;
    filter: url(#brush-filter);
    /* HTML側のSVGフィルター */
}

.c-brush-mask img {
    width: 100%;
    height: auto;
}

.c-btn-sumi {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    background-color: transparent;
    border: 1px solid var(--c-ink);
    color: var(--c-ink);
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
}

.c-btn-sumi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--c-ink);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.c-btn-sumi:hover {
    color: var(--c-paper);
}

.c-btn-sumi:hover::before {
    transform: translateX(100%);
}

/* 縦書き要素 */
.c-vertical-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--c-ink-light);
    margin-right: 40px;
}

.c-title-vert {
    writing-mode: vertical-rl;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.5;
    letter-spacing: 0.1em;
}

/* =========================================
   Layout
========================================= */
.l-wrapper {
    overflow: hidden;
}

.l-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.l-section {
    padding: 150px 0;
}

/* =========================================
   Header
========================================= */
.l-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.l-header__nav ul {
    display: flex;
    gap: 40px;
}

.l-header__nav a {
    font-size: 15px;
    letter-spacing: 0.1em;
}

/* =========================================
   Hero
========================================= */
.p-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
}

/* 半分だけ背景色を微妙に変えてアシンメトリーにする */
.p-hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.02);
    z-index: -1;
}

.p-hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 50px;
}

.p-hero__text-area {
    padding-top: 100px;
}

/* メインタイトル縦書き */
.p-hero__title {
    writing-mode: vertical-rl;
    font-size: clamp(50px, 8vw, 80px);
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.p-hero__subtitle {
    margin-top: 40px;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    color: var(--c-ink-light);
}

.p-hero__visual {
    position: relative;
}

/* スクロールダウンインジケーター */
.p-hero__scroll {
    position: absolute;
    bottom: 40px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    writing-mode: vertical-rl;
}

.p-hero__scroll .text {
    font-size: 12px;
    letter-spacing: 0.1em;
}

.p-hero__scroll .line {
    width: 1px;
    height: 60px;
    background-color: var(--c-ink);
    transform-origin: top;
    animation: scroll-line 2s infinite ease-in-out;
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =========================================
   About
========================================= */
.p-about__inner {
    display: flex;
    align-items: center;
    gap: 100px;
}

.p-about__visual {
    flex: 4;
}

.p-about__text {
    flex: 6;
    display: flex;
    align-items: flex-start;
}

.c-text-horiz {
    margin-right: 60px;
    /* 縦書きの横並びなので margin-right で間隔をあける */
    padding-top: 20px;
}

.c-text-horiz p {
    margin-bottom: 30px;
    color: var(--c-ink-light);
}

/* =========================================
   Works
========================================= */
.p-works {
    background-color: rgba(0, 0, 0, 0.02);
}

.p-works__header {
    text-align: center;
    margin-bottom: 100px;
}

.p-works__header h2 {
    font-size: 32px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.p-works__header p {
    font-family: var(--font-en);
    color: var(--c-ink-light);
}

.p-works__grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.p-work-item {
    flex: 1;
    text-align: center;
}

/* 真ん中を下げる千鳥配置 */
.p-work-item--offset {
    margin-top: 80px;
}

.p-work-item__info {
    margin-top: 40px;
}

.p-work-item__info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* 筆で引いたような赤線のアクセント */
.p-work-item__info h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-accent);
    filter: url(#brush-outline);
}

.p-work-item__info p {
    font-size: 14px;
    color: var(--c-ink-light);
    text-align: left;
    display: inline-block;
}

/* =========================================
   CTA
========================================= */
.p-cta__inner {
    text-align: center;
    padding: 100px 0;
    position: relative;
}

/* かすれた枠線 */
.c-brush-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--c-ink);
    filter: url(#brush-outline);
    pointer-events: none;
}

.p-cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 0.2em;
}

.p-cta p {
    margin-bottom: 40px;
    color: var(--c-ink-light);
}

/* =========================================
   Footer
========================================= */
.l-footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(29, 27, 27, 0.1);
}

.l-footer__inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.l-footer__info p {
    margin-top: 15px;
    font-size: 14px;
    color: var(--c-ink-light);
}

.l-footer__nav {
    display: flex;
    gap: 60px;
}

.l-footer__nav ul li {
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.l-footer__copy {
    text-align: center;
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--c-ink-light);
    letter-spacing: 0.1em;
}

/* =========================================
   Animations
========================================= */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.js-fade-up.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive
========================================= */
@media screen and (max-width: 900px) {
    .l-header {
        padding: 20px;
    }

    .l-header__nav {
        display: none;
    }

    .p-hero__inner {
        flex-direction: column;
        justify-content: center;
        padding: 0 20px;
        text-align: center;
    }

    .p-hero__text-area {
        padding-top: 0;
        margin-bottom: 40px;
    }

    .p-hero__title {
        writing-mode: horizontal-tb;
        font-size: 40px;
    }

    /* SPは横書きに */
    .p-hero__visual {
        width: 100%;
    }

    .c-circle-mask--large {
        width: 80vw;
        margin: 0 auto;
    }

    .p-about__inner {
        flex-direction: column;
        gap: 50px;
    }

    .p-about__visual {
        width: 100%;
    }

    .p-about__text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .c-vertical-label {
        writing-mode: horizontal-tb;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .c-title-vert {
        writing-mode: horizontal-tb;
        margin-bottom: 30px;
        font-size: 28px;
    }

    .c-text-horiz {
        margin-right: 0;
        text-align: left;
    }

    .p-works__grid {
        flex-direction: column;
    }

    .p-work-item--offset {
        margin-top: 0;
    }

    .c-circle-mask--md {
        width: 80%;
        margin: 0 auto;
    }

    .l-footer__inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .l-footer__nav {
        justify-content: center;
    }
}

/* --- Hover Interaction Updates --- */
.p-work-item { transition: opacity 0.4s, transform 0.4s; }
.p-work-item:hover { transform: translateY(-5px); }
.p-work-item:hover .c-circle-mask--md img { transform: scale(1.08); filter: saturate(1.2) contrast(1.1); }
.p-about__visual .c-brush-mask:hover img { transform: scale(1.03); filter: saturate(1.2) contrast(1.1); }
.c-circle-mask img, .c-brush-mask img { transition: transform 0.8s, filter 0.8s; }
