/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Animations */
.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #1a1a1a;
}

/**
    * Clickable labels
    */
label[for] {
    cursor: pointer;
}

.font-en {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
}

@keyframes pathmove {
    0% {
        height: 0;
        top: 0;
        opacity: 0;
    }

    30% {
        height: 60%;
        opacity: 1;
    }

    100% {
        height: 0;
        top: 100%;
        opacity: 0;
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        transform: translate3d(0, 3em, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/*//////////////////////////////////////////////////////////////////////////*/
.evt {
    visibility: hidden;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

:root {
    --header-h: 90px;
}

/* 実際の固定ヘッダー高に合わせて */
section[id] {
    scroll-margin-top: var(--header-h);
}

html {
    box-sizing: border-box;
    height: 100%;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #252935;
    line-height: 1.6;
    letter-spacing: 0.01rem;
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.jost {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* カードホバー時のアイコンアニメーション */
.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #1a1a1a;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

html *,
html *::before,
html *::after {
    box-sizing: inherit;
}

main {
    position: relative;
}

body {
    height: 100%;
    /*　基本のフォントサイズは16px */
    font-size: 0.16rem;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.8;
    background-color: transparent;
    /* 背景色を透明にして、背面のグラデーションを表示 */
}

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

h2 {
    font-size: 0.36rem;
    font-weight: 600;
    text-align: center;
    color: #1F3B90;
    padding-bottom: 0.6rem;
}



/* アニメーション（オプション：背景をゆっくり動かす） */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP&family=Inter:wght@300;400&display=swap');

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

h1,
h2 {
    font-weight: 400;
    letter-spacing: 0.05em;
}

.header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 120px 24px 60px;
}

.site-title {
    font-size: 2.4rem;
}

.site-sub {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #777;
}



/* Gradient Background 
   サイト全体に適用するため fixed で固定し、z-index を下げて最背面に配置
*/
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #F9E4D4;
    /* ベースのベージュ色 */

    /* 複数のグラデーションを重ねてメッシュのような質感を出す */
    background-image:
        radial-gradient(at 80% 40%, rgba(135, 156, 235, 0.6) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(255, 255, 255, 0.8) 0px, transparent 50%),
        radial-gradient(at 20% 20%, rgba(245, 200, 180, 0.4) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(240, 200, 220, 0.3) 0px, transparent 50%);

    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
    transition: opacity 0.3s ease;
    /* スクロール時の透明度変化を滑らかに */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===============================
   Hero Text
================================ */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-sub {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.18em;
}

.hero-lead {
    opacity: 0.85;
}

.hero img {
    width: 100%;
    height: auto;
}



/* ===============================
   Gradient Animation
================================ */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.name {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.name span {
    display: block;
    font-size: 0.8rem;
    color: #777;
}

.policy-list {
    list-style: none;
}

.policy-list li {
    margin-bottom: 16px;
}

/* ===============================
   Works Section
================================ */
.works {
    max-width: 1080px;
    margin: 160px auto;
    padding: 0 24px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
}

.work-card {
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.work-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.work-card:hover {
    transform: translateY(-6px);
}

.work-thumb {
    overflow: hidden;
}

.work-thumb img {
    transition: transform 0.6s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.work-title {
    margin-top: 16px;
    font-size: 0.18rem;
    letter-spacing: 0.04em;
}

.work-meta {
    font-size: 0.13rem;
    color: #777;
}

/* ===============================
   Work Modal (拡張)
================================ */
.work-slider {
    position: relative;
    margin-bottom: 32px;
}

.work-slider img {
    width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
}

#prev {
    left: 8px;
}

#next {
    right: 8px;
}

.modal-title {
    font-size: 0.24rem;
    margin-bottom: 8px;
}

.modal-meta {
    font-size: 0.14rem;
    color: #777;
    margin-bottom: 24px;
}

.modal-desc {
    font-size: 0.15rem;
    line-height: 1.8;
}

.link,
.mail {
    display: inline-block;
    margin-top: 32px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.small {
    font-size: 0.9rem;
    color: #555;
}

.footer {
    text-align: center;
    padding: 80px 0;
    font-size: 0.8rem;
    color: #777;
}

/* fade animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Color Theme（Instagram寄り）
================================ */
:root {
    --accent: #2f2f2f;
    --bg: #fafafa;
    --line: rgba(0, 0, 0, 0.15);
}


/* ===============================
   Reveal
================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Work Modal
================================ */
.work-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.work-modal.active {
    display: block;
}

.work-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.work-modal__content {
    position: relative;
    max-width: 600px;
    margin: 10vh auto;
    background: #fff;
    padding: 48px;
    z-index: 101;
}

.work-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 7rem);
    letter-spacing: 0.2em;
}

.section-title {
    font-size: 3rem;
    letter-spacing: 0.1em;
}

.works-card-title {
    font-size: 1.1rem;
}