@charset "utf-8";

html {
    scroll-behavior: smooth;
}

/* ==================== hero ======================== */
.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: linear-gradient(180deg, #e9d5bf 0%, #f6efe6 48%, #9fb0b8 100%);
}

/* ノイズ */
.hero_noise {
    position: absolute;
    inset: 0;
    background-image: url(../images/noise.png);
    background-repeat: repeat;
    opacity: .08;
    pointer-events: none;
    z-index: 1;
}

/* 　装飾　*/
.hero_deco {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.deco {
    position: absolute;
    max-width: none;
}

/* 惑星 */
.deco_planet {
    width: clamp(400px, 60vw, 900px);
    right: 4%;
    filter: blur(0.5px);
}

.float-star--1 {
    animation: float 3.6s ease-in-out infinite;
}

.float-star--2 {
    animation: float 4.2s ease-in-out infinite;
}

.float-star--3 {
    animation: float 3.9s ease-in-out infinite;
}


.star_1 {
    top: 22%;
    right: 18%;
    width: 26px;
}

.star_2 {
    top: 56%;
    left: 16%;
    width: 18px;
}

.star_3 {
    top: 62%;
    right: 30%;
    width: 22px;
}

.star_5 {
    top: 20%;
    left: 20%;
    width: 13px;
}

.hero_inner {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: clamp(100px, 18vh, 180px) 24px clamp(60px, 10vh, 120px);
    transform: translate(-6%, 28%);
}

/* 肩書き */
.hero_role {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: .14em;
}

.hero_title {
    font-family: "Skia", sans-serif;
    font-weight: 400;
    margin: 0;
    font-size: clamp(52px, 7vw, 92px);
    color: #fff;
    opacity: 0.8;
    letter-spacing: -0.09em;
    -webkit-text-stroke: 1.5px rgba(91, 47, 18, .9);
}

.hero_name {
    margin: 10px 0 0;
    font-size: 14px;
    letter-spacing: .12em;
}

/* 右下固定のTOPボタン */
.toTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    display: grid;
    justify-items: center;
    gap: 6px;
    text-decoration: none;
    color: #6b645e;
}

/* 星（回転させる対象） */
.toTop__star {
    width: 56px;
    height: auto;
    display: block;
    transform-origin: 50% 50%;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* top文字 */
.toTop__text {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: lowercase;
}

.toTop:hover .toTop__star {
    transform: rotate(15deg) scale(1.05);
    transition: transform .3s ease;
}

/* ==================== header nav======================== */
/* header内を内側固定 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.header__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 16px clamp(14px, 3vw, 32px);
}

/* ハンバーガー（初期は非表示） */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(92, 74, 61, 0.35);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: rgba(92, 74, 61, 0.75);
    transform: translateX(-50%);
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

/* スマホメニュー */
/* ✅ 全画面オーバーレイ */
.spMenu {
    position: fixed;
    inset: 0;
    background: #f6efe6;
    display: none;
    z-index: 9999;
}

/* 開いたら表示 */
.header.is-menuOpen .spMenu {
    display: block;
}

/* 中身を中央寄せ */
.spMenu__nav {
    height: 100%;
    display: grid;
    place-content: center;
    gap: 22px;
    text-align: center;
}

/* リンクの見た目 */
.spMenu__link {
    font-size: 18px;
    letter-spacing: .10em;
    color: #6b5b4a;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
}

.spMenu__link:hover {
    background: rgba(191, 165, 138, 0.18);
}

/* ✅ ×ボタン（丸を消す） */
.spMenu__close {
    position: absolute;
    top: 18px;
    right: 18px;

    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;

    font-size: 28px;
    line-height: 1;
    color: rgba(92, 74, 61, 0.8);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* iOSのボタン見た目対策（必要なら） */
.spMenu__close,
.hamburger {
    -webkit-tap-highlight-color: transparent;
}

/* 開いた状態 */
.header.is-menuOpen .spMenu {
    display: block;
}

.header.is-menuOpen .hamburger span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.header.is-menuOpen .hamburger span:nth-child(2) {
    opacity: 0;
}

.header.is-menuOpen .hamburger span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ✅スマホから切り替え */
@media (max-width: 600px) {
    .nav {
        display: none;
    }

    /* ←ここで通常ナビを消す */
    .hamburger {
        display: block;
    }

    /* ←ここでハンバーガーを出す */
}

.nav {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #6b5b4a;
    position: relative;
    padding: 4px 0;
}


.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ==================== about ======================== */

.about {
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
    background: #f9f6f2;
}

.about__noise {
    position: absolute;
    inset: 0;
    background: url("../images/noise.png") repeat;
    opacity: .100;
    pointer-events: none;
    z-index: 1;
    background-size: 160px 160px;
    opacity: .3;
    mix-blend-mode: overlay;
}

.about__inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

/* ABOUT見出し */
.about__title {
    font-size: clamp(44px, 6vw, 64px);
    font-family: "Skia", sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
    color: #fff;
    opacity: 0.8;
    letter-spacing: -0.09em;
    -webkit-text-stroke: 1.5px rgba(91, 47, 18, .9);
    text-stroke: 2px #8b6b52;
}

/* 本文 */
.about__text {
    font-size: 14px;
    line-height: 2.1;
    color: #4a4038;
    margin: 0 auto 40px;
}

/* 横線 */
.about__line {
    width: min(720px, 90%);
    height: 1px;
    background: rgba(139, 107, 82, .45);
    margin: 0 auto 28px;
}

.about__meta {
    width: min(760px, 92%);
    margin: 0 auto;
    font-size: 12px;
    line-height: 2.0;
    color: #4a4038;
}


.about__row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about__meta dt {
    font-weight: 600;
}

.about__meta dd {
    margin: 0;
}


/* ==================== works ======================== */

.works {
    position: relative;
    padding: 120px 24px 140px;
    overflow: hidden;
    background: #f2e6da;
}

.works__inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.works__title {
    font-size: clamp(44px, 6vw, 64px);
    font-family: "Skia", sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
    color: #fff;
    opacity: 0.8;
    letter-spacing: -0.09em;
    -webkit-text-stroke: 1.5px rgba(91, 47, 18, .9);
    text-stroke: 2px #8b6b52;
    text-align: center;
}

.works__noise {
    position: absolute;
    inset: 0;
    background: url("../images/noise.png") repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ==================== woks card ======================== */
/* 1) 全体：矢印 + 中身 */
.worksCarousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* ← [矢印][作品][矢印] */
    align-items: center;
    gap: 16px;
}

/* 2) 見える窓：ここからはみ出た分は隠す */
.works__viewport {
    overflow: hidden;
}

/* 3) 横一列に並べる（折り返し無し） */
.works__list {
    display: flex;
    /* ←横並び */
    flex-wrap: nowrap;
    /* ←折り返し禁止 */
    gap: 28px;
    overflow-x: auto;
    /* ←JSでスクロールさせる */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    /* ←パチッと止まる */
    padding: 8px;
    /* 影が切れやすいなら少し余白 */
    margin: 0;
    list-style: none;

    /* 触ってスクロールも可能にするなら */
    -webkit-overflow-scrolling: touch;
}

/* スクロールバー非表示（好み） */
.works__list::-webkit-scrollbar {
    display: none;
}

.works__list {
    scrollbar-width: none;
}

/* 4) 1枚の幅：PCは2枚見える = 50%（gap分を引く） */
.works__item {
    flex: 0 0 calc((100% - 28px) / 2);
    /* ←2枚 + gap1つ */
    scroll-snap-align: start;
    /* ←先頭でスナップ */
}

/* 5) タブレット：1枚見える */
@media (max-width: 900px) {
    .works__item {
        flex-basis: 100%;
    }
}

/* 6) 矢印ボタン（見た目） */
.worksCarousel__btn {
    border: 1px solid rgba(92, 74, 61, 0.35);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.worksCarousel__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* =========================
     作品カード（イラレ寄せ）
  ========================= */

.workCard {
    background: rgba(255, 255, 255, 0.55);
    /* 白ベタじゃなく“透け” */
    border-radius: 24px;
    /* 角丸（イラレの丸さに近い） */
    padding: 28px;
    /* カード内の余白 */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    /* ふわっと浮く影 */
    backdrop-filter: blur(8px);
    /* 背景が少し滲む（対応ブラウザのみ） */
    -webkit-backdrop-filter: blur(8px);
    /* Safari用 */
    border: 1px solid rgba(255, 255, 255, 0.55);
    /* 輪郭をほんのり */
}

/* hoverで少し浮かせる（イラレの“やわらかさ”） */
.workCard:hover {
    transform: translateY(-2px);
    /* ちょい上に */
    transition: transform .25s ease;
    /* なめらか */
}

/* サムネの白枠（イラレの「画像＋白フチ」） */
/* 画像枠（小窓） */
.workCard__thumb {
    height: 260px;
    /* 枠の高さは固定（好きな高さに） */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 中の画像：切らずに全部見せる */
.workCard__thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 作品名（タイトル） */
.workCard__name {
    margin: 18px 0 6px;
    /* 上下余白 */
    font-size: 18px;
    /* 文字サイズ */
    font-weight: 600;
    /* 少ししっかり */
    color: #5c4a3d;
    /* 真っ黒より少しブラウン寄り */
    letter-spacing: .02em;
}

.works_name_small {
    font-size: 15px;
}

/* カテゴリ（サブ） */
.workCard__meta {
    margin: 0 0 16px;
    /* 下にボタン余白 */
    font-size: 13px;
    /* 小さめ */
    color: rgba(92, 74, 61, 0.65);
    /* タイトルより薄く */
    letter-spacing: .03em;
    /* イラレっぽく軽く広げる */
}

/* ボタン（くわしく見る） */
.workCard__btn {
    appearance: none;
    /* OSデフォ見た目を消す */
    border: 1px solid rgba(92, 74, 61, 0.35);
    /* 細い線 */
    background: transparent;
    /* 透明 */
    color: rgba(92, 74, 61, 0.9);
    /* 文字色 */
    border-radius: 999px;
    /* 完全な丸み */
    padding: 8px 18px;
    /* 内側余白 */
    font-size: 13px;
    /* 文字サイズ */
    letter-spacing: .08em;
    /* 字間 */
    cursor: pointer;
    /* クリックできる表示 */
    transition: background .25s ease, transform .25s ease;
    /* 変化をなめらかに */
}

/* hoverでふわっと */
.workCard__btn:hover {
    background: rgba(191, 165, 138, 0.18);
    /* ほんのりベージュ */
    transform: translateY(-1px);
    /* ちょい浮かす */
}

/* =========================
     モーダル（イラレ寄せ）
  ========================= */

.modal {
    position: fixed;
    /* 画面に固定 */
    inset: 0;
    /* 全面 */
    display: none;
    /* 初期は非表示（JSで表示） */
    z-index: 999;
    /* 最前面 */
}

/* 表示中 */
.modal.is-open {
    display: block;
    /* 表示 */
}

/* 背景 */
.modal__overlay {
    position: absolute;
    /* 全面 */
    inset: 0;
    background: rgba(30, 30, 30, 0.35);
    /* 暗くしすぎない */
}

/* 本体 */
.modal__panel {
    position: relative;
    width: min(900px, 92vw);
    max-height: 90vh;
    margin: 5vh auto 0;
    overflow-y: auto;

    background: rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 閉じる */
.modal__close {
    position: absolute;
    /* 右上固定 */
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: rgba(92, 74, 61, 0.65);
}

/* タイトル */
.modal__title {
    margin: 6px 0 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: rgba(92, 74, 61, 0.85);
    letter-spacing: .06em;
}

/* 画像 */
/* モーダル内の画像ラッパー */
.modal__imageWrap {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 60vh;
    /* モーダル内で暴れないように */
    overflow: hidden;
}

/* モーダル内の画像サイズ制御 */
.modal__image {
    max-width: 100%;
    max-height: 45vh;
    height: auto;
    object-fit: contain;
}


.modal__image.is-mobile {
    max-width: 260px;
}

.modal__image.is-pc {
    max-width: 560px;
}

/* 説明文 */
.modal__desc {
    margin: 16px 0 18px;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(92, 74, 61, 0.75);
    text-align: center;
}

/* Role/Tools */
.modal__dl {
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(92, 74, 61, 0.25);
}

.modal__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    /* dtの幅を固定 */
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: rgba(92, 74, 61, 0.75);
}

.modal__row dt {
    color: rgba(92, 74, 61, 0.6);
}

/* リンク */
.modal__link {
    display: inline-block;
    margin-top: 14px;
    text-align: center;
    width: 100%;
    color: rgba(92, 74, 61, 0.9);
    text-decoration: none;
    letter-spacing: .06em;
}

.modal__link:hover {
    text-decoration: underline;
}

.worksPager {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.worksPager__btn {
    border: 1px solid rgba(92, 74, 61, 0.35);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.worksPager__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ==================== contact ======================== */

.contact {
    position: relative;
    padding: 120px 24px 140px;
    background: linear-gradient(180deg, #cbd6d7 0%, #f1e2cc 100%);
    overflow: hidden;
}

.contact__noise {
    position: absolute;
    inset: 0;
    background: url("../images/noise.png") repeat;
    opacity: 0.25;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 3;
}

.contact__inner {
    position: relative;
    z-index: 4;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.contact__title {
    font-size: clamp(44px, 6vw, 64px);
    font-family: "Skia", sans-serif;
    font-weight: 400;
    margin-bottom: 24px;
    color: #fff;
    opacity: 0.8;
    letter-spacing: -0.09em;
    -webkit-text-stroke: 1.5px rgba(91, 47, 18, .9);
}

.contact__text {
    font-size: 14px;
    line-height: 2;
    color: #4a4038;
    margin-bottom: 40px;
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid rgba(92, 74, 61, 0.35);
    color: rgba(92, 74, 61, 0.9);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: .08em;
    background: rgba(255, 255, 255, 0.5);
    transition: background .25s ease, transform .25s ease;
}

.contact__btn:hover {
    background: rgba(191, 165, 138, 0.25);
    transform: translateY(-2px);
}

/* ===== 光デコ（朝日：上半分だけ見せる） ===== */
.contact__light {
    position: absolute;
    left: 50%;
    bottom: -80px;
    transform: translateX(-50%) scaleY(0.6);
    width: min(1000px, 140vw);
    opacity: 0;
    filter: blur(1px);
    transition: opacity 1.4s ease, transform 1.4s ease;
    z-index: 1;
}

.contact.is-inview .contact__light {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
}

/* ===== 星 ===== */
.contact__deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contact__star {
    position: absolute;
    width: 34px;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 1s ease, transform 1s ease;
}

/* 位置：イラレの配置っぽく調整してOK */
.contact__star--1 {
    top: 22%;
    right: 18%;
    width: 26px;
}

.contact__star--2 {
    top: 56%;
    left: 16%;
    width: 18px;
}

.contact__star--3 {
    top: 62%;
    right: 30%;
    width: 22px;
}

/* 表示 */
.contact.is-inview .contact__star {
    opacity: 1;
    transform: translateY(0) scale(1);
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1);
    }
}


/* =========================
   Tablet (<=1024px)
========================= */
@media (max-width: 1024px) {

    /* header */
    .header {
        padding: 12px 20px;
    }

    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: 12px;
    }

    /* hero */
    .hero_inner {
        transform: translate(-4%, 22%);
        padding: clamp(90px, 16vh, 160px) 20px clamp(50px, 9vh, 100px);
    }

    /* works：1枚＋チラ見せ */
    .worksCarousel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* 矢印は下に回す（横の圧迫を減らす） */
    .worksCarousel__btn--prev,
    .worksCarousel__btn--next {
        display: none;
        /* いったん非表示でOK（スワイプで見れる） */
    }

    .works__item {
        flex: 0 0 84%;
    }

    .workCard {
        padding: 24px;
    }

    .workCard__thumb {
        height: 220px;
    }

    /* modal */
    .modal__panel {
        width: 92vw;
        max-width: 820px;
        padding: 32px 24px;
        margin-top: 4vh;
    }

    .modal__image.is-mobile {
        max-width: 240px;
    }

    .modal__image.is-pc {
        max-width: 520px;
    }
}

/* =========================
   Mobile (<=600px)
========================= */
@media (max-width: 600px) {

    /* header */
    .header {
        padding: 10px 14px;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* hero */
    .hero_inner {
        transform: translate(0, 18%);
        padding: 110px 16px 80px;
    }

    .hero_role,
    .hero_name {
        font-size: 12px;
    }

    .toTop {
        right: 14px;
        bottom: 14px;
    }

    .toTop__star {
        width: 48px;
    }

    /* about */
    .about {
        padding: 90px 16px;
    }

    .about__text {
        font-size: 13px;
        line-height: 2.0;
    }

    /* works */
    .works {
        padding: 90px 16px 110px;
    }

    .works__item {
        flex: 0 0 92%;
    }

    .workCard {
        padding: 20px;
        border-radius: 20px;
    }

    .workCard__thumb {
        height: 190px;
    }

    .workCard__name {
        font-size: 16px;
    }

    /* modal：画面ジャスト */
    .modal__panel {
        width: 92vw;
        max-height: 86vh;
        margin: 6vh auto 0;
        padding: 20px 18px;
    }

    .modal__title {
        font-size: 14px;
    }

    .modal__desc {
        font-size: 13px;
        line-height: 1.85;
    }

    .modal__row {
        grid-template-columns: 70px 1fr;
        font-size: 12px;
    }

    .modal__imageWrap {
        max-height: 48vh;
    }

    .modal__image.is-mobile {
        max-width: 220px;
    }

    .modal__image.is-pc {
        max-width: 100%;
    }

    /* contact */
    .contact {
        padding: 100px 16px 120px;
    }

    .contact__text {
        font-size: 13px;
    }

    .contact__light {
        width: 160%;
        bottom: -160px;
    }
}