@charset "UTF-8";

/* ==========================================================================
   基本設定：色・フォント・余白をまとめて変更できます
   ========================================================================== */
:root {
    /* カスタムカーソルの大きさ */
    --cursor-size: 20px;
    --cursor-hover-size: 60px;
    
    /* サイト全体の配色 */
    --text-main: #e0e0e0; /* メイン文字色 */
    --text-sub: #a0a0a0;  /* 補足文字色 */
    --bg-body: #121212;   /* ページ背景色 */
    --bg-footer: #080808; /* フッター背景色 */
    --accent-color: #4dabf7; /* ボタン・線・強調表示の色 */
    
    /* フォントと左右余白 */
    --font-main: 'Montserrat', 'Noto Sans JP', sans-serif;
    --spacing-container: 24px;      /* スマホの左右余白 */
    --spacing-container-tab: 48px;  /* タブレットの左右余白 */
    --spacing-container-pc: 96px;   /* PCの左右余白 */
}

/* ==========================================================================
   共通スタイル
   ========================================================================== */

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

html {
    background-color: var(--bg-body);
    overscroll-behavior-y: none;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    cursor: none; 
    overscroll-behavior-y: none;
}

body.modal-open {
    overflow: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
ul { list-style: none; }

@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    #custom-cursor { display: none; }
}

/* カスタムカーソル：サイズは :root、色は --accent-color で変更できます */
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: normal; 
    background-color: transparent;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                background-color 0.3s ease;
}
#custom-cursor.hovered {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    background-color: rgba(77, 171, 247, 0.2);
    border-color: var(--accent-color);
}

/* ローディング画面：表示文字や背景色を調整するエリアです */
#loader {
    position: fixed; inset: 0;
    background-color: #000;
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    color: var(--accent-color);
}
#loader.is-hidden { display: none; }
.loader-text-wrapper { overflow: hidden; }
.loader-text {
    font-size: 1.5rem; font-weight: 300; letter-spacing: 0.3em;
    transform: translateY(100%); opacity: 0;
}

body.animation-fallback .reveal-text span {
    transform: translateY(0);
    opacity: 1;
}

body.animation-fallback .line-anim {
    transform: scaleX(1);
}

/* 共通の左右余白 */
.container-padding {
    padding-left: var(--spacing-container);
    padding-right: var(--spacing-container);
}
/* タブレット以上の左右余白 */
@media (min-width: 769px) {
    .container-padding {
        padding-left: var(--spacing-container-tab);
        padding-right: var(--spacing-container-tab);
    }
}
/* PC以上の左右余白 */
@media (min-width: 1025px) {
    .container-padding {
        padding-left: var(--spacing-container-pc);
        padding-right: var(--spacing-container-pc);
    }
}

/* 各セクションの上下余白 */
.section-py { 
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}

/* PCではセクション間の余白を広めにします */
@media (min-width: 1025px) {
    .section-py { 
        padding-top: 8rem; 
        padding-bottom: 8rem; 
    }
}

/* ヒーローセクション：高さ・上下余白・背景アニメーション周りを調整します */
.hero-section {
    min-height: 42vh;
    min-height: 42svh; 
    display: flex; flex-direction: column; justify-content: flex-start;
    
    padding-top: 3rem; 
    padding-bottom: 2rem; 
    
    position: relative; width: 100%;
    overflow: hidden; 
}

/* タブレット以上のヒーロー上余白 */
@media (min-width: 769px) {
    .hero-section {
        padding-top: 6rem;
    }
}

/* PCのヒーロー高さ */
@media (min-width: 1025px) {
    .hero-section {
        min-height: 70vh;
        min-height: 70svh;
        padding-top: 6rem;
    }
}

/* ヒーロー背景の線アニメーション表示エリア */
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; 
    pointer-events: none;
    opacity: 0.6; 
}

.parallax-bg {
    position: absolute; right: -5%; top: 10%;
    font-weight: bold; 
    color: #252525; 
    user-select: none; 
    opacity: 1; 
    mix-blend-mode: normal; 
    pointer-events: none; 
    z-index: 0; 
    white-space: nowrap;
    line-height: 0.8; font-size: 15vw;
    transform: translateY(0); will-change: transform;
}
@media (max-width: 768px) {
    .parallax-bg { font-size: 20vw; opacity: 1; top: 10%; right: -10%; }
}

.hero-content { position: relative; z-index: 10; max-width: 1024px; width: 100%; }

.hero-label {
    font-size: 0.75rem; margin-bottom: 2rem;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--accent-color); 
    font-weight: 500;
}
@media (min-width: 769px) { .hero-label { font-size: 0.875rem; } }

.hero-title {
    font-size: 2.5rem; 
    font-weight: 800; letter-spacing: 0rem;
    margin-bottom: 3rem; 
    mix-blend-mode: normal; 
    width: 100%; word-break: break-word; line-height: 1.1;
}

.hero-title .reveal-text span {
    background: linear-gradient(90deg, 
        #12c2e9, #c471ed, #f64f59, #12c2e9);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientMove 3s ease infinite;
    display: block;
}

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

/* ヒーロータイトルの文字サイズ */
@media (min-width: 769px) { .hero-title { font-size: 5rem; } }
@media (min-width: 1025px) { .hero-title { font-size: 6.5rem; } }

.separator-line {
    width: 4rem; height: 2px; 
    background-color: var(--accent-color); 
    margin-bottom: 3rem; transform-origin: left; transform: scaleX(0);
}
@media (min-width: 769px) { .separator-line { width: 6rem; } }

.hero-copy {
    font-size: 0.875rem; line-height: 2; font-weight: 500;
    color: #fdfdfd;
    letter-spacing: 0.025em; max-width: 42rem;
}
@media (min-width: 769px) { 
    .hero-copy { font-size: 1.25rem; } 
}

.reveal-text {
    overflow: hidden; display: inline-block;
    vertical-align: bottom; 
    padding-right: 1.5em; margin-right: -1.5em; 
    padding-left: 0.5em; margin-left: -0.5em;
    padding-bottom: 0.5em; margin-bottom: -0.5em;
    padding-top: 0.2em; margin-top: -0.2em;
}
.reveal-text span { display: block; transform: translateY(100%); opacity: 0; }

/* Section 01：画像ギャラリーの見た目を調整します */
.section01-section { 
    background-color: var(--bg-body); 
    position: relative; 
    z-index: 20;
    padding-top: 2rem;
}

.section-header {
    position: relative;
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: none; 
    padding-bottom: 1.5rem;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-header.is-visible::after {
    transform: scaleX(1);
}

.section02-content-wrapper,
.section03-content-wrapper,
.contact-grid,
.footer-bottom {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.section02-content-wrapper.is-visible,
.section03-content-wrapper.is-visible,
.contact-grid.is-visible,
.footer-bottom.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* タブレット以上のセクション見出し下の余白 */
@media (min-width: 769px) {
    .section-header {
        margin-bottom: 6rem;
    }
}

.section-title { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: #e0e0e0; }
@media (min-width: 769px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1025px) { .section-title { font-size: 3rem; } }

.section-number {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent-color); 
    margin-bottom: 0.25rem;
}
@media (min-width: 769px) { .section-number { font-size: 0.75rem; } }

/* 画像グリッド：スマホ1列、タブレット2列、PC3列 */
#section01-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 769px) { #section01-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1025px) { #section01-grid { grid-template-columns: repeat(3, 1fr); } }

.section01-item {
    position: relative; width: 100%;
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease; 
}
.section01-item.is-visible { opacity: 1; transform: translateY(0); }

.section01-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #1a1a1a;
}

.section01-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform; display: block;
}
.section01-item:hover img { transform: scale(1.05); }

.section01-overlay {
    position: absolute; inset: 0; background-color: #000;
    opacity: 0; transition: opacity 0.5s ease;
}
.section01-item:hover .section01-overlay { opacity: 0.4; }
.section01-caption {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s ease; z-index: 3;
}
.section01-item:hover .section01-caption { opacity: 1; }

.section01-item-title {
    margin-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section01-item-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 1024px) {
    .section01-item:hover img { transform: none; }
    .section01-item:hover .section01-overlay { opacity: 0; }
    .section01-item:hover .section01-caption { opacity: 0; }
}

@media (min-width: 1025px) {
    .section01-item-title {
        display: none;
    }
}

.placeholder-image {
    background-color: #2a2a2a;
}

.placeholder-size-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.35rem 0.55rem;
    background-color: rgba(0,0,0,0.55);
    border: 1px solid rgba(224,224,224,0.25);
    color: #e0e0e0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    pointer-events: none;
}

.view-btn {
    color: var(--accent-color); 
    font-size: clamp(1.5rem, 2.2vw, 2.25rem); letter-spacing: 0.02em; font-weight: 600;
    line-height: 1.3;
    text-align: center;
    padding: 0 1rem;
}

/* Section 02：紹介文と背景画像の見た目を調整します */
.section02-section { 
    background-color: var(--bg-body); 
    position: relative; 
    z-index: 20; 
    overflow: hidden; 
}

.section02-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Section 02の背景画像を変更する場合は、このURLを差し替えます */
    background-image: url('../../assets/img/image7.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; 
    z-index: 0;
    pointer-events: none;
}

.section02-bg-label {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 0;
    padding: 0.35rem 0.55rem;
    background-color: rgba(0,0,0,0.55);
    border: 1px solid rgba(224,224,224,0.25);
    color: #e0e0e0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    pointer-events: none;
}

.section02-section .section-header,
.section02-content-wrapper {
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section02-section .section-header {
        margin-bottom: 4rem;
    }
}

.section02-content-wrapper {
    max-width: 960px;
    margin: 0 auto; 
}

.section02-body {
    font-size: 0.95rem;
    line-height: 2.2;
    color: #fdfdfd;
    white-space: pre-line;
    font-weight: 400;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
}
@media (max-width: 768px) {
    .section02-body { text-align: left; }
}
@media (min-width: 769px) {
    .section02-body { font-size: 1.05rem; }
}

/* Section 03：Step表示と下向き矢印の装飾を調整します */
.section03-section {
    background-color: var(--bg-body);
    position: relative;
    z-index: 20;
}

.section03-content-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    min-width: 0;
}

.process-list {
    list-style: none;
    border-top: none;
    min-width: 0;
}

.process-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: none;
    min-width: 0;
}

.process-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    opacity: 0.75;
    transform: translateX(-50%) rotate(45deg);
    animation: processArrowMove 1.6s ease-in-out infinite;
}

@keyframes processArrowMove {
    0%, 100% {
        opacity: 0.45;
        transform: translateX(-50%) translateY(-3px) rotate(45deg);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(3px) rotate(45deg);
    }
}

.process-step {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.process-content {
    min-width: 0;
    max-width: 100%;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.process-text {
    font-size: 0.95rem;
    line-height: 2;
    color: #fdfdfd;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-break: anywhere;
}

@media (max-width: 768px) {
    .section03-section .section-header {
        gap: 1rem;
    }

    .section03-section .section-number {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .process-text {
        word-break: break-all;
    }
}

@media (min-width: 769px) {
    .process-item {
        grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr);
        gap: 2rem;
        padding: 2.5rem 0;
    }

    .process-step {
        font-size: 0.75rem;
    }

    .process-title {
        font-size: 1.75rem;
    }

    .process-text {
        font-size: 1.05rem;
    }
}

/* Contact / Footer：問い合わせ導線とフッターの見た目を調整します */
.contact-section {
    background-color: var(--bg-footer); color: #e0e0e0; 
    position: relative; padding-bottom: 3rem;
}
.contact-inner { max-width: 1280px; margin: 0 auto; }

/* コンタクトエリアの2カラム表示 */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem;
}
@media (min-width: 769px) { 
    .contact-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 5rem;
    } 
}

.contact-label {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-sub); margin-bottom: 2rem;
}
.contact-heading {
    font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em;
    margin-bottom: 3rem; line-height: 1.2;
}
@media (min-width: 769px) { .contact-heading { font-size: 3rem; } }
@media (min-width: 1025px) { .contact-heading { font-size: 3.75rem; } }

.contact-links-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.links-list { display: flex; flex-direction: column; gap: 1.5rem; }
.link-item { border-bottom: 1px solid #333; padding-bottom: 1rem; position: relative; }
.link-anchor {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.25rem; font-weight: 300; transition: all 0.3s ease; width: 100%;
    color: #e0e0e0; 
}
@media (min-width: 769px) { .link-anchor { font-size: 1.5rem; } }
.link-anchor:hover { padding-left: 1rem; color: var(--accent-color); }

.link-label { transition: color 0.3s; }
.link-anchor:hover .link-label { color: var(--accent-color); }
.link-arrow { font-size: 0.75rem; opacity: 0; transition: opacity 0.3s; color: var(--accent-color); }
.link-anchor:hover .link-arrow { opacity: 1; }

.footer-bottom {
    margin-top: 8rem; padding-top: 2rem; border-top: 1px solid #333;
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: flex-start; font-size: 10px; color: var(--text-sub);
    text-transform: uppercase; letter-spacing: 0.1em; gap: 1rem;
}
@media (min-width: 769px) { .footer-bottom { flex-direction: row; align-items: flex-end; } }

/* 画像モーダル：拡大画像・説明文・閉じるボタンを調整します */
#image-modal {
    position: fixed; inset: 0; 
    z-index: 15000; 
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(0, 0, 0, 0.95); 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    
    cursor: auto; 
}

#image-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

body.animation-fallback #image-modal.is-open {
    opacity: 1;
}

body.animation-fallback #image-modal.is-open #modal-image {
    opacity: 1;
    transform: scale(1);
}

#modal-image {
    max-width: min(100%, 720px); max-height: 62svh; object-fit: contain;
    transform: scale(0.95); opacity: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: auto; 
}

.modal-image-frame {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: auto;
}

.modal-text {
    max-width: min(100%, 720px);
    flex-shrink: 0;
}

.modal-title {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
    text-align: center;
}

.modal-image-box {
    position: relative;
    max-width: 100%;
    max-height: 62svh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-size-label {
    z-index: 1;
}

.modal-description {
    color: #e0e0e0;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: center;
}

@media (min-width: 769px) {
    .modal-image-frame {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        max-width: min(100%, 1120px);
    }

    .modal-text {
        width: 320px;
        max-width: 320px;
    }

    .modal-title,
    .modal-description {
        text-align: left;
    }

    .modal-title {
        font-size: 1.875rem;
    }

    .modal-description {
        font-size: 1rem;
    }
}

.close-btn {
    appearance: none;
    padding: 0;
    position: fixed; 
    top: max(1.5rem, env(safe-area-inset-top)); 
    right: max(1.5rem, env(safe-area-inset-right));
    z-index: 20000; 
    cursor: pointer;
    width: 48px; height: 48px;
    background-color: rgba(30, 30, 30, 0.8); 
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #444;
}
.close-btn:hover { background-color: var(--accent-color); border-color: var(--accent-color); }
.close-btn svg { transition: transform 0.5s ease; width: 24px; height: 24px; }
.close-btn path { stroke: #e0e0e0; } 
.close-btn:hover path { stroke: #fff; }
.close-btn:hover svg { transform: rotate(90deg); }

.modal-content-wrapper {
    width: 100%; height: 100%; padding: 1rem;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    cursor: auto;
}
@media (min-width: 769px) { .modal-content-wrapper { padding: 4rem; } }
