/* =========================================
   BASE SETTINGS
   ========================================= */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --text-main: #111111;
    --text-sub: #666666;
    --line-color: rgba(0, 0, 0, 0.1);
    --accent: #000000;
    --error: #e60012;
    --font-display: 'Jost', sans-serif;
    --font-main: 'Jost', 'Zen Kaku Gothic New', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
li { list-style: none; }

/* =========================================
   CUSTOM CURSOR（菱形・単体・フォロワーなし）
   ========================================= */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 11px; height: 11px;
    background: #fff;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(45deg);
    mix-blend-mode: difference; /* 明暗どちらの背景でも自動で映える */
    transition: width 0.18s ease, height 0.18s ease, opacity 0.15s ease;
}

/* ボタン・リンクホバー時：少し拡大 */
body.cursor-hover .cursor {
    width: 18px;
    height: 18px;
}

/* テキスト入力エリアホバー時：カスタムカーソルを非表示にしてIビームを見せる */
body.cursor-text .cursor {
    opacity: 0;
}

/* 入力欄はネイティブカーソルに戻す */
input, textarea {
    cursor: text !important;
}
select {
    cursor: pointer !important;
}

@media screen and (max-width: 768px) {
    .cursor { display: none; }
    *, *::before, *::after { cursor: auto; }
    input, textarea { cursor: text; }
    select { cursor: pointer; }
}

/* =========================================
   GRID LINES
   ========================================= */
.grid-lines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    display: flex; justify-content: space-around;
}
.gl {
    width: 1px; height: 100%;
    background: rgba(0, 0, 0, 0.04);
}

/* =========================================
   LOADER
   ========================================= */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.loader-text {
    font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.2em;
    color: #000; animation: blink 1s infinite alternate;
}
.loader.loaded { transform: translateY(-100%); }
@keyframes blink { 0%{opacity:1;} 100%{opacity:0.3;} }

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px; z-index: 1000;
    color: #fff;
    transition: all 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* FVを過ぎたら上にスライドアウトして非表示 */
.header.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(calc(-100% - 30px));
    pointer-events: none;
}

/* ロゴ画像 */
.logo img {
    height: 32px;
    width: auto;
    display: block;
    transition: filter 0.4s;
    /* FV時（暗い背景）：黒いロゴを白に反転 */
    filter: brightness(0) invert(1);
}

/* スクロール後（白背景）：元の色に戻す */
.header.scrolled .logo img {
    filter: none;
}

/* フッターロゴ画像：黒背景なので白に反転 */
.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.header-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .header { width: 92%; padding: 0 20px; height: 56px; }
    .header-label { font-size: 0.6rem; letter-spacing: 0.1em; }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 動画背景 */
.video-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.video-wrap video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 30px;
    animation: fadeUp 1s forwards 0.5s ease-out;
    opacity: 0;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 50px;
}

.ht-line {
    display: block;
    font-family: var(--font-display);
    font-size: 11vw;
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: textReveal 1.5s forwards ease-out;
}

.ht-line--1 {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    transform: translateX(-4vw);
    --final-x: -4vw;
    animation-delay: 0.8s;
}

.ht-line--2 {
    color: #fff;
    transform: translateX(4vw);
    --final-x: 4vw;
    animation-delay: 1s;
}

@keyframes textReveal {
    0% { opacity: 0; transform: translate(var(--final-x), 40px); }
    100% { opacity: 1; transform: translate(var(--final-x), 0); }
}

.hero-sub {
    font-family: var(--font-main);
    font-size: 0.9rem;
    line-height: 2;
    color: rgba(255,255,255,0.65);
    animation: fadeUp 1s forwards 1.4s ease-out;
    opacity: 0;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    right: 50px;
    z-index: 10;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    gap: 10px;
    padding-bottom: 20px;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
}

.si-line {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.si-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    transform: translateY(-100%);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@media screen and (max-width: 768px) {
    .ht-line { font-size: 18vw; }
    .hero-sub br.br-pc { display: none; }
    .scroll-indicator { right: 15px; }
    .si-line { height: 60px; }
}

/* STEP2以降：即座に非表示（余白を残さない） */
.hero.hero--hidden {
    display: none;
}

/* =========================================
   STEP BAR
   ========================================= */
.step-bar-wrap {
    position: sticky;
    top: 0; /* FVを過ぎると自然に最上部へ吸着。STEP2以降も同じ位置 */
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-color);
    padding: 20px 5%;
}

.step-bar {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-connector {
    flex: 1;
    height: 1px;
    background: var(--line-color);
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0;
    background: #000;
    transition: width 0.6s ease;
}

.step-connector.done::after { width: 100%; }

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.3;
    transition: opacity 0.4s;
    cursor: default;
}

.step-item.active, .step-item.done {
    opacity: 1;
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #000;
    width: 32px; height: 32px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s;
    background: #fff;
}

.step-item.active .step-num {
    background: #000;
    color: #fff;
    border-color: #000;
}

.step-item.done .step-num {
    background: #000;
    color: #fff;
    border-color: #000;
    font-size: 0;
}

.step-item.done .step-num::before {
    content: '✓';
    font-size: 0.75rem;
}

.step-label {
    font-family: var(--font-main);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    white-space: nowrap;
}

.step-item.active .step-label { color: #000; font-weight: 600; }

@media screen and (max-width: 768px) {
    .step-bar-wrap { top: 0; padding: 12px 3%; }
    .step-label { display: none; }
    .step-num { width: 28px; height: 28px; font-size: 0.6rem; }
    .step-connector { margin: 0 4px; }
}

/* =========================================
   FORM SECTION
   ========================================= */
.form-section {
    padding: 80px 5% 120px;
    position: relative;
    z-index: 2;
}

.form-container {
    max-width: 760px;
    margin: 0 auto;
}

/* ステップパネル */
.form-step {
    display: none;
    animation: stepFadeIn 0.5s ease-out;
}

.form-step.active { display: block; }

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ステップヘッダー */
.step-header {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 20px;
    margin-bottom: 60px;
}

.step-header-num {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #999;
    margin-right: 20px;
}

.step-header-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
    .step-header-title { font-size: 1.8rem; }
}

/* =========================================
   FIELD STYLES
   ========================================= */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

.field {
    position: relative;
}

.field-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 10px;
}

.field-hint {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: var(--font-main);
}

/* バッジ */
.badge {
    font-size: 0.65rem;
    padding: 2px 7px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: var(--font-main);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.badge--required {
    color: var(--error);
    border: 1px solid var(--error);
}

.badge--optional {
    color: #aaa;
    border: 1px solid #ddd;
    background: #f8f8f8;
}

/* インプット */
.field-input-wrap {
    position: relative;
}

.field-input-wrap input,
.field-input-wrap textarea,
.field-input-wrap select {
    width: 100%;
    background: transparent;
    border: none;
    color: #000;
    font-size: 1.1rem;
    font-family: var(--font-main);
    padding: 10px 0;
    outline: none;
    line-height: 1.7;
}

.field-input-wrap textarea {
    resize: vertical;
    min-height: 80px;
}

.field-input-wrap input::placeholder,
.field-input-wrap textarea::placeholder {
    color: rgba(0,0,0,0.25);
    font-size: 0.88rem;
    font-family: var(--font-main);
}

/* セレクト */
.select-wrap {
    position: relative;
}

.select-wrap select {
    appearance: none;
    cursor: pointer;
    border-radius: 0;
}

.select-wrap::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #999;
    pointer-events: none;
}

/* ボーダーライン */
.field-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background: rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.field-input-wrap input:focus ~ .field-line,
.field-input-wrap textarea:focus ~ .field-line,
.field-input-wrap select:focus ~ .field-line {
    background: #000;
    height: 2px;
}

/* エラー */
.field-error {
    display: none;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 6px;
    font-family: var(--font-main);
}

.field.has-error .field-error { display: block; }
.field.has-error .field-line { background: var(--error) !important; height: 2px; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { color: inherit; }

/* =========================================
   CHECKBOX GRID
   ========================================= */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.checkbox-grid--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: #444;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #000 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position 0.35s cubic-bezier(0.8, 0, 0.2, 1), color 0.25s, border-color 0.25s;
}

.check-label:hover {
    background-position: left center;
    color: #fff;
    border-color: #000;
}

.check-label input[type="checkbox"] {
    display: none;
}

.check-custom {
    width: 18px; height: 18px;
    border: 1px solid rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    background: #fff;
}

.check-label:hover .check-custom {
    border-color: rgba(255,255,255,0.5);
    background: transparent;
}

.check-label input:checked ~ .check-custom {
    background: #000;
    border-color: #000;
}

.check-label:hover input:checked ~ .check-custom {
    background: #fff;
    border-color: #fff;
}

.check-custom::after {
    content: '';
    width: 5px; height: 9px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
    margin-top: -2px;
}

.check-label input:checked ~ .check-custom::after {
    transform: rotate(45deg) scale(1);
}

.check-label:hover input:checked ~ .check-custom::after {
    border-color: #000;
}


/* チェックボックスエラー */
.checkbox-grid.has-error + .field-error { display: block; }
#design_taste_error { display: none; }
#design_taste_error.show { display: block; }

@media screen and (max-width: 768px) {
    .checkbox-grid { grid-template-columns: 1fr; }
    .checkbox-grid--compact { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   PRIVACY AGREE
   ========================================= */
.privacy-agree {
    margin: 50px 0;
    text-align: center;
}

.privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: #333;
}

.privacy-label input[type="checkbox"] {
    display: none;
}

.check-custom--lg {
    width: 22px; height: 22px;
    flex-shrink: 0;
    border: 1px solid #aaa;
    transition: all 0.3s;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.privacy-label input:checked ~ .check-custom--lg {
    background: #000;
    border-color: #000;
}

.check-custom--lg::after {
    content: '';
    width: 5px; height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
    margin-top: -2px;
}

.privacy-label input:checked ~ .check-custom--lg::after {
    transform: rotate(45deg) scale(1);
}

.privacy-text a {
    text-decoration: underline;
    color: #000;
}

#privacy_error { display: none; margin-top: 8px; }
#privacy_error.show { display: block; }

.privacy-agree.has-error .check-custom--lg {
    border-color: var(--error);
}

/* =========================================
   NAVIGATION BUTTONS
   ========================================= */
.step-nav {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 60px;
}

.step-nav--final {
    justify-content: space-between;
}

.btn-next, .btn-prev, .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-size: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
    cursor: pointer;
}

.btn-next:hover, .btn-submit:hover { color: #fff; }
.btn-prev:hover { color: #fff; }

.btn-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    transform: translateY(101%);
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: -1;
}

.btn-next:hover .btn-bg,
.btn-prev:hover .btn-bg,
.btn-submit:hover .btn-bg {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.3s;
}
.btn-next:hover .btn-arrow { transform: translateX(4px); }
.btn-prev:hover .btn-arrow { transform: translateX(-4px); }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.btn-prev {
    border-color: rgba(0,0,0,0.2);
    color: #999;
}
.btn-prev .btn-bg { background: rgba(0,0,0,0.7); }

/* 送信中 */
.btn-submit.sending {
    pointer-events: none;
    opacity: 0.6;
}

@media screen and (max-width: 768px) {
    .step-nav { flex-direction: column-reverse; }
    .step-nav--final { flex-direction: column-reverse; }
    .btn-next, .btn-prev, .btn-submit { width: 100%; justify-content: center; padding: 16px; }
}

/* =========================================
   FORM MESSAGE
   ========================================= */
.form-message {
    margin-top: 30px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 16px;
}

.form-message.error {
    color: var(--error);
    background: rgba(230, 0, 18, 0.04);
    border: 1px solid rgba(230, 0, 18, 0.2);
}

/* =========================================
   CONFIRMATION TABLE (STEP6)
   ========================================= */
.confirm-table {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    border-top: 1px solid var(--line-color);
}

.confirm-row {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-color);
    align-items: flex-start;
}

.confirm-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #999;
    flex-shrink: 0;
    width: 200px;
    padding-top: 3px;
}

.confirm-value {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: #111;
    flex: 1;
    white-space: pre-wrap;
    line-height: 1.8;
}

.confirm-value.empty {
    color: #bbb;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .confirm-row { flex-direction: column; gap: 6px; }
    .confirm-label { width: auto; }
}

/* =========================================
   FOOTER（黒背景・白文字）
   ========================================= */
.footer {
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.footer-info {
    width: 40%;
    padding-right: 40px;
}

.footer-logo {
    margin-bottom: 0; /* img側の margin-bottom で制御 */
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}
.footer-address a {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-links {
    width: 55%;
    display: flex;
    justify-content: space-between;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.1em;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    display: inline-block;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(10px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
    .footer { padding: 60px 5% 30px; }
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-info { width: 100%; padding-right: 0; }
    .footer-links { width: 100%; flex-wrap: wrap; gap: 30px 0; }
    .footer-col { width: 50%; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .form-section { padding: 60px 5% 80px; }
}
