/* ================================================
   Contact Page — お問い合わせ
   ================================================ */
:root {
    --ct-bg: #0f0f11;
    --ct-surface: #141416;
    --ct-surface-2: #1a1a1e;
    --ct-border: #2a2a2e;
    --ct-green: #00c853;
    --ct-green-dim: rgba(0, 200, 83, 0.15);
    --ct-text: #e5e7eb;
    --ct-text-dim: #9ca3af;
    --ct-font-en: 'Inter', sans-serif;
    --ct-font-jp: 'Noto Sans JP', sans-serif;
    --ct-radius: 8px;
}

.ct-page { background: var(--ct-bg); }

/* スクロールリビール */
.ct-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ct-fade.ct-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   HERO
   ================================================ */
.ct-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 80px;
    background: var(--ct-bg);
    overflow: hidden;
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--ct-bg) 0%, rgba(15, 15, 17, 0.6) 100%);
    z-index: 1;
}

.ct-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
    z-index: 2;
}

/* ウォーターマーク */
.ct-hero-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}
.ct-wm-line {
    display: block;
    font-family: var(--ct-font-en);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.85;
    user-select: none;
}
.ct-wm-1 { font-size: clamp(6rem, 15vw, 18rem); letter-spacing: -4px; }

.ct-wm-base .ct-wm-line {
    color: var(--ct-surface);
    -webkit-text-stroke: 1px #1e1e22;
    paint-order: stroke fill;
}
.ct-wm-draw { position: absolute; top: 0; left: 0; width: 100%; }
.ct-wm-draw .ct-wm-line {
    color: #12131a;
    -webkit-text-stroke: 1px var(--ct-green);
    paint-order: stroke fill;
    clip-path: inset(0 100% 0 0);
    animation: ctWmReveal 3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards;
}
@keyframes ctWmReveal { to { clip-path: inset(-5% -15% -5% -5%); } }

/* ヒーローコンテンツ */
.ct-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.ct-hero-label {
    display: inline-block;
    font-family: var(--ct-font-en);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ct-green);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-left: 2px;
}

.ct-hero-title {
    font-family: var(--ct-font-jp);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1.2rem;
}

.ct-hero-lead {
    font-size: 1rem;
    color: var(--ct-text-dim);
    line-height: 1.8;
    margin: 0;
}

/* ================================================
   導入カード
   ================================================ */
.ct-intro {
    padding: 80px 60px 0;
    background: var(--ct-bg);
}

.ct-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ct-intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ct-intro-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.ct-intro-card:hover {
    border-color: var(--ct-green);
    transform: translateY(-4px);
}

.ct-intro-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ct-green-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--ct-green);
}

.ct-intro-card h3 {
    font-family: var(--ct-font-jp);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.ct-intro-card p {
    font-size: 0.9rem;
    color: var(--ct-text-dim);
    line-height: 1.7;
    margin: 0;
}

/* ================================================
   フォームセクション
   ================================================ */
.ct-form-section {
    padding: 80px 60px 120px;
    background: var(--ct-bg);
}

.ct-form-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

/* フォームヘッダー */
.ct-form-header {
    margin-bottom: 40px;
}

.ct-form-label {
    display: inline-block;
    font-family: var(--ct-font-en);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ct-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ct-form-title {
    font-family: var(--ct-font-jp);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.8rem;
}

.ct-form-note {
    font-size: 0.85rem;
    color: var(--ct-text-dim);
    margin: 0;
}

.ct-required {
    color: var(--ct-green);
    font-weight: 700;
}

/* フォームフィールド */
.ct-field {
    margin-bottom: 28px;
}

.ct-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ct-text);
    margin-bottom: 8px;
}

.ct-input,
.ct-textarea,
.ct-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    color: #fff;
    font-family: var(--ct-font-jp);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.ct-input::placeholder,
.ct-textarea::placeholder {
    color: #555;
}

.ct-input:focus,
.ct-textarea:focus,
.ct-select:focus {
    border-color: var(--ct-green);
    box-shadow: 0 0 0 3px var(--ct-green-dim);
}

.ct-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.ct-textarea {
    resize: vertical;
    min-height: 140px;
}

/* ラジオボタン */
.ct-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ct-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ct-text);
    transition: border-color 0.3s, background 0.3s;
}

.ct-radio:hover {
    border-color: rgba(0, 200, 83, 0.4);
}

.ct-radio input {
    display: none;
}

.ct-radio-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ct-border);
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.ct-radio-mark::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ct-green);
    transform: scale(0);
    transition: transform 0.2s;
}

.ct-radio input:checked + .ct-radio-mark {
    border-color: var(--ct-green);
}

.ct-radio input:checked + .ct-radio-mark::after {
    transform: scale(1);
}

.ct-radio input:checked ~ * {
    color: #fff;
}

/* チェックボックス */
.ct-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ct-text-dim);
}

.ct-checkbox input { display: none; }

.ct-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ct-border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.3s, background 0.3s;
}

.ct-checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 6px; height: 10px;
    border: solid var(--ct-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.ct-checkbox input:checked + .ct-checkbox-mark {
    border-color: var(--ct-green);
    background: var(--ct-green-dim);
}

.ct-checkbox input:checked + .ct-checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}

.ct-privacy-link {
    color: var(--ct-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 送信ボタン */
.ct-submit-wrap {
    margin-top: 16px;
}

.ct-submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--ct-green);
    color: #0f0f11;
    font-family: var(--ct-font-jp);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--ct-radius);
    cursor: pointer;
    transition: background 0.3s, transform 0.15s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.ct-submit-btn:hover {
    background: #00e676;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.25);
}

.ct-submit-btn:active {
    transform: translateY(0);
}

.ct-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ct-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ct-submit-loading svg {
    animation: ctSpin 1s linear infinite;
}

@keyframes ctSpin { to { transform: rotate(360deg); } }

/* 送信完了 */
.ct-success {
    text-align: center;
    padding: 80px 20px;
}

.ct-success-icon {
    margin-bottom: 24px;
}

.ct-success-icon svg {
    animation: ctCheckPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ctCheckPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ct-success-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
}

.ct-success-text {
    font-size: 1rem;
    color: var(--ct-text-dim);
    line-height: 1.8;
    margin: 0 0 32px;
}

.ct-success-back {
    display: inline-block;
    padding: 14px 36px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    color: var(--ct-text);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.3s;
}

.ct-success-back:hover {
    border-color: var(--ct-green);
}

/* ================================================
   サイドバー
   ================================================ */
.ct-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ct-sidebar-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 28px 24px;
}

.ct-sidebar-card-label {
    font-family: var(--ct-font-jp);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ct-green);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ct-border);
}

/* 電話カード */
.ct-sidebar-tel {
    border-color: rgba(0, 200, 83, 0.3);
    background: linear-gradient(135deg, var(--ct-surface) 0%, rgba(0, 200, 83, 0.05) 100%);
}

.ct-tel-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ct-font-en);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.ct-tel-number svg {
    color: var(--ct-green);
}

.ct-tel-number:hover {
    color: var(--ct-green);
}

.ct-tel-hours {
    font-size: 0.8rem;
    color: var(--ct-text-dim);
    margin: 8px 0 0;
}

/* 会社情報 */
.ct-info-list {
    margin: 0;
}

.ct-info-list dt {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ct-text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ct-info-list dd {
    font-size: 0.9rem;
    color: var(--ct-text);
    line-height: 1.6;
    margin: 0 0 16px;
}

.ct-info-list dd:last-child {
    margin-bottom: 0;
}

/* お約束 */
.ct-promise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-promise-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.88rem;
    color: var(--ct-text);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ct-promise-list li:last-child { margin-bottom: 0; }

.ct-promise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ct-green);
    opacity: 0.6;
}

/* バリデーション状態 */
.ct-field-valid .ct-input,
.ct-field-valid .ct-textarea {
    border-color: var(--ct-green);
}

.ct-field-error .ct-input,
.ct-field-error .ct-textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.ct-field-focus {
    position: relative;
}

.ct-filled .ct-input,
.ct-filled .ct-textarea {
    border-color: rgba(255, 255, 255, 0.15);
}

/* エラーメッセージ */
.ct-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--ct-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ct-error p {
    color: #fca5a5;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.ct-error a {
    color: #fff;
    text-decoration: underline;
}

/* ================================================
   レスポンシブ
   ================================================ */
@media screen and (max-width: 1024px) {
    .ct-form-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ct-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 767px) {
    .ct-hero {
        min-height: 40vh;
        padding: 0 20px 50px;
    }

    .ct-hero-title { font-size: 1.8rem; }
    .ct-hero-lead { font-size: 0.9rem; }
    .ct-hero-lead br { display: none; }

    .ct-wm-1 { font-size: clamp(3.5rem, 14vw, 8rem); }

    .ct-intro { padding: 50px 20px 0; }

    .ct-intro-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ct-form-section { padding: 50px 20px 80px; }

    .ct-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ct-radio-group {
        flex-direction: column;
    }

    .ct-sidebar {
        grid-template-columns: 1fr;
    }
}
