@charset "UTF-8";

/* ============================================================
   LANGUAGE SWITCHING
   ============================================================ */

[data-lang="ja"] .lang-en { display: none; }
[data-lang="en"] .lang-ja { display: none; }

/* lang ボタンのリセット（見た目は .header__lang-link を継承） */

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    height: clamp(600px, 65vw, 1080px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Blob: 4段階グラデーション＋大きめサイズで円エッジが bg に完全に溶け込む */
.hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(700px, 120vw, 1600px);
    height: clamp(700px, 120vw, 1600px);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--color-primary-main)              0%,
        var(--color-primary-supplementary)     20%,
        var(--color-secondary-supplementary)   42%,
        var(--color-bg)                        62%
    );
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(60px, 6vw, 72px);
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
}

.hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5.5vw, 80px);
    line-height: var(--lh-heading);
    display: flex;
    align-items: center;
    gap: clamp(2px, 1vw, 4px);
}

.hero__sparkle {
    display: block;
    width: clamp(40px, 4vw, 80px);
    height: clamp(40px, 4vw, 80px);
    flex-shrink: 0;
}

.hero__sub {
    font-family: var(--font-body-en);
    font-size: clamp(16px, 1.6vw, 28px);
    color: var(--color-text-main);
    line-height: normal;
}

.hero__accent {
    color: var(--color-primary-accent);
    font-weight: 500;
}




/* ============================================================
   TEXT ACCENT (共通コンポーネント)
   ============================================================ */

.text-accent {
    color: var(--color-primary-main);
    font-weight: 500;
}


/* ============================================================
   ABOUT
   ============================================================ */

.about {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
    background-color: transparent;
}

.about__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 48px);
    align-items: flex-start;
}

.about__photo {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 1;
}

.about__photo-img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about__body {
    padding-top: clamp(0px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 20px);
    width: 100%;
}

.about__name {
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 0;
}

.about__name::before,
.about__name::after {
    content: none;
}

.about__sub {
    font-family: var(--font-body-en);
    font-size: clamp(14px, 2vw, 16px);
    color: var(--color-text-sub);
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.about__desc {
    font-family: var(--font-body-ja);
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--color-text-main);
}

@media screen and (min-width: 768px) {
    .about__inner {
        flex-direction: row;
        gap: 64px;
        align-items: stretch;
    }

    .about__photo {
        flex: 1;
        min-width: 0;
        position: relative;
        display: block;
    }

    .about__photo-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: inherit;
    }

    .about__body {
        flex: 1;
        min-width: 0;
        gap: 24px;
    }
}


/* ============================================================
   WORKS — WEB DESIGN
   ============================================================ */

.works-web {
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
}

.works-web__inner {
    display: flex;
    flex-direction: column;
}

.works-web .section-heading {
    justify-content: center;
    text-align: center;
}

.skills .section-heading {
    justify-content: flex-start;
    text-align: left;
}



/* ── Grid: 1col → 2col ── */
.works-web__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 64px);
}

/* 5枚目以降はデフォルト非表示 */
.works-web__grid .work-card:nth-child(n+5) {
    display: none;
}

/* is-expanded クラスで全件表示 */
.works-web__grid.is-expanded .work-card:nth-child(n+5) {
    display: block;
}

/* ── Card ── */
.work-card__link {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.5vw, 24px);
    color: inherit;
}

.work-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

.work-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.work-card__link:hover .work-card__img {
    transform: scale(1.03);
}

/* title left / cta right / desc below */
.work-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: clamp(8px, 1vw, 16px);
    align-items: start;
}

.work-card__title {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-body-en);
    font-size: clamp(16px, 2.4vw, 26px);
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary-main);
}

.work-card__desc {
    grid-column: 1;
    grid-row: 2;
    font-family: var(--font-body-ja);
    letter-spacing: 0.04em;
    font-size: clamp(12px, 2vw, 16px);
    color: var(--color-text-sub);
    line-height: 1.5;
}

/* グリッド配置のみ（ボタン本体は .tertiary-button として common.css に定義） */
.work-card .tertiary-button {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* ── View More button ── */
.works-web__more {
    text-align: center;
    margin-top: clamp(32px, 5vw, 80px);
}


@media screen and (min-width: 768px) {
    .works-web__grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}


/* ============================================================
   WORKS — BANNER DESIGN
   ============================================================ */

.works-banner {
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
}

.works-banner__inner {
    display: flex;
    flex-direction: column;
}

.works-banner .section-heading {
    justify-content: flex-start;
    text-align: left;
}

/* PC: 3カラム / gap 64px */
.works-banner__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}

/* バナー用 image: 白背景 + contain */
.work-card__image--banner {
    background-color: #F7EEED;
    aspect-ratio: 1 / 1;
    position: relative;
    padding: 0;
}

.work-card__image--banner .work-card__img {
    position: absolute;
    top: clamp(16px, 4.44vw, 64px);
    left: clamp(16px, 4.44vw, 64px);
    width: calc(100% - 2 * clamp(16px, 4.44vw, 64px));
    height: calc(100% - 2 * clamp(16px, 4.44vw, 64px));
    object-fit: contain;
    object-position: center;
}

/* SP: 横スクロールスナップ（works-banner 専用、works-web には影響しない） */
@media screen and (max-width: 767px) {
    .works-banner__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 24px;
        padding-bottom: 16px;
        scrollbar-width: none;
    }

    .works-banner__grid::-webkit-scrollbar {
        display: none;
    }

    .works-banner__grid .work-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-width: 0;
    }

}


/* ============================================================
   WORKS — PRODUCT DESIGN
   ============================================================ */

.works-product {
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
}

.works-product__inner {
    display: flex;
    flex-direction: column;
}


/* ── Product card: stacked mobile / side-by-side desktop ── */
.product-card {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
    color: inherit;
    text-decoration: none;
}

.product-card__body {
    margin: clamp(16px, 4vw, 32px) 0;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 32px);
}

.product-card__num {
    font-family: var(--font-body-en);
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 500;
    color: var(--color-text-sub);
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 56px);
    font-style: italic;
    font-weight: 500;
    color: var(--color-text-main);
}

.product-card__desc {
    font-family: var(--font-body-ja);
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.8;
    color: var(--color-text-main);
    letter-spacing: 0.04em;
}

.product-card__desc span {
    color: var(--color-primary-main);
    font-weight: 500;
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__tag {
    font-family: var(--font-body-en);
    font-size: clamp(12px, 2vw, 16px);
    color: var(--color-text-sub);
    letter-spacing: 0.04em;
    border: 1px solid var(--color-divider);
    padding: clamp(8px, 0.5vw, 12px) clamp(10px, 1.2vw, 16px);
    border-radius: 4px;
    line-height: normal;
}

.product-card__image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (min-width: 768px) {
    .product-card {
        display: grid;
        grid-template-columns: 5fr 7fr;
        align-items: stretch;
        gap: 64px;
    }

    .product-card__image {
        height: 100%;
        aspect-ratio: unset;
    }

    .product-card__img {
        height: 100%;
    }
}


/* ============================================================
   WORK PROCESS
   ============================================================ */

.process {
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
}

.process__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 3.5vw, 64px);
    align-items: flex-start;
}

/* section-heading と sub をまとめる縦積みラッパー */
.process__header {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 16px);
}

/* section-heading の margin-bottom をリセット（gap で制御） */
.process .section-heading {
    margin-bottom: 0;
    justify-content: flex-start;
}

/* Subtitle */
.process__sub {
    font-family: var(--font-body-en);
    font-size: clamp(14px, 2vw, 22px);
    color: var(--color-text-sub);
    line-height: 1.3;
    letter-spacing: 0.03em;
}

/* ── Steps ── */
.process__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
    margin-top: clamp(16px, 3vw, 32px);
    width: clamp(300px, 48vw, 808px);
    margin-left: auto;
}

/* Each step: [number] [body] in 2-col grid */
.process__step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: clamp(12px, 2vw, 28px);
    align-items: start;
}

.process__step-number {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 60px);
    color: var(--color-text-main);
    line-height: 1;
}

.process__step-body {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 32px);
}

.process__step-name {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 46px);
    font-style: italic;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.1;
    text-align: right;
    border-bottom: 1px solid var(--color-secondary-accent);
    padding-bottom: 4px;
}

/* Description */
.process__step-desc {
    font-family: var(--font-body-ja);
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--color-text-main);
    line-height: 1.6;
    letter-spacing: 0.04em;
    text-align: right;
    margin-left: auto;
}

@media screen and (min-width: 769px) {
    .process__step-desc {
        max-width: 428px;
    }
}


/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
}

.timeline__inner {
    display: flex;
    flex-direction: column;
}

/* section-heading の margin-bottom をリセット */
.timeline .section-heading {
    margin-bottom: 0;
}

/* ── List: 中央縦ライン ── */
.timeline__list {
    list-style: none;
    position: relative;
}

/* 縦ライン: 上100pxはprimaryMain、以降はsecondaryMain */
.timeline__list::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--timeline-line-top, clamp(120px, 12.7vw, 160px));
    bottom: var(--timeline-line-bottom, clamp(20px, 12.7vw, 40px));
    width: clamp(4px, 0.4vw, 6px);
    background: linear-gradient(
        to bottom,
        var(--color-primary-main)           0px,
        var(--color-primary-main)           100px,
        var(--color-secondary-main)         100px,
        var(--color-secondary-main)         calc(100% - 100px),
        var(--color-primary-main)           calc(100% - 100px),
        var(--color-primary-main)           100%
    );
    z-index: 2; /* ドット(1)の上・年号(3)の下 */
}

/* ── Year marker: 年号 + ドット を縦積み ── */
/* z-index を外して stacking context を作らない → 子要素が同じ階層で比較される */
.timeline__year-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: clamp(20px, 5vw, 40px);
}

/* 年号テキスト: bg色でラインをマスク */
.timeline__year {
    position: relative;
    z-index: 3; /* ライン(2)の上 */
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 52px);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    padding-inline: clamp(16px, 2vw, 32px);
    line-height: 1;
    padding-bottom: clamp(16px, 2vw, 24px);
}

/* ── Marker dot: blob(88px) + pink dot(16px) ── */
.timeline__marker-dot {
    position: relative;
    z-index: 1; /* ライン(2)の下・背景に馴染む */
    width: clamp(56px, 6.1vw, 88px);
    height: clamp(56px, 6.1vw, 88px);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #EA9B8D              0%,
        #F3CEC9             40%,
        rgba(245, 239, 235, 0.5) 68%,
        transparent         100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

/* ピンクドット (16px) */
.timeline__marker-dot::after {
    content: '';
    width: clamp(10px, 1.1vw, 16px);
    height: clamp(10px, 1.1vw, 16px);
    border-radius: 50%;
    background-color: var(--color-primary-main);
}

/* ── Item body: photo + content 左右交互 ── */
.timeline__item-body {
    display: flex;
    gap: clamp(80px, 10vw, 152px);
    align-items: center;
    padding-bottom: clamp(24px, 5vw, 56px);
}

.timeline__photo {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

.timeline__photo-img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ── Content: テキスト階層 ── */
.timeline__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.1vw, 16px);
}

.timeline__date {
    font-family: var(--font-body-en);
    font-style: italic;
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 500;
    color: var(--color-text-main);
}

.timeline__title {
    font-family: var(--font-body-ja);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.4;
}

.timeline__title--en {
    font-family: var(--font-body-en);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 600;
}

.timeline__location {
    font-family: var(--font-body-en);
    font-size: clamp(12px, 2vw, 16px);
    color: var(--color-text-sub);
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-top: -8px;
}

.timeline__desc {
    font-family: var(--font-body-ja);
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.8;
    color: var(--color-text-main);
}

/* reverse item: コンテンツを右寄せ */
.timeline__item--reverse .timeline__content {
    text-align: right;
}

/* ── Mobile: mobile.css に移動 ── */


/* ============================================================
   SKILLS
   ============================================================ */

.skills {
    padding-top: 0;
    padding-bottom: var(--section-py);
    padding-inline: var(--container-px);
}

.skills__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
}


/* section-heading の margin-bottom をリセット */
.skills .section-heading {
    margin-bottom: 0;
}

/* 4-card grid: 2col desktop / 1col mobile */
.skills__groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 32px);
    width: 100%;
}

/* Card */
.skills__group {
    min-width: 0;
    overflow: hidden;
    padding: clamp(16px, 2vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid #F5EFEB;
    background-color: rgba(249, 245, 236, 0.20);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 32px);
}

/* Card title with pink highlight band */
.skills__group-title {
    width: fit-content;
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 42px);
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    isolation: isolate; /* ::before z-index を title 内に閉じる */
    display: inline-block;
    line-height: 1;
}

/* ピンク帯（テキストの後ろ） */
.skills__group-title::before {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: clamp(2px, 0.2vw, 3px);
    height: clamp(6px, 0.83vw, 12px);
    background-color: var(--color-primary-supplementary);
    z-index: -1;
}

/* Item list */
.skills__item-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 16px);
}

/* Each item: flex row — name · · · level */
.skills__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skills__item-name {
    order: 1;
    flex-shrink: 1;
    min-width: 0;
    font-family: var(--font-body-en);
    font-size: clamp(13px, 1.4vw, 20px);
    font-weight: 600;
    color: var(--color-text-main);
    white-space: nowrap;
    line-height: normal;
}

/* ドット線（order で name と level の間に挿入） */
.skills__item::after {
    content: '';
    order: 2;
    flex: 1;
    height: 1px;
    background-image: radial-gradient(circle, var(--color-secondary-accent) 1px, transparent 1px);
    background-size: 5px 1px;
    background-repeat: repeat-x;
    background-position: center;
    min-width: 8px;
}

.skills__item-level {
    order: 3;
    flex-shrink: 1;
    min-width: 0;
    font-family: var(--font-body-ja);
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 400;
    color: var(--color-text-main);
    white-space: nowrap;
    letter-spacing: 0.04em;
}

/* Mobile: mobile.css に移動 */
