/*
Theme Name: kingworks-2026
Theme URI: https://kingworks.co.jp
Author: KING works
Author URI: https://kingworks.co.jp
Description: 株式会社KING works 公式サイトテーマ 2026
Version: 2026.1.0
License: Proprietary
Text Domain: kingworks-2026
*/

/* =============================================
   Custom Styles
   ============================================= */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.hero-text-glow {
    text-shadow:
        0 0 20px rgba(250, 250, 250, 1),
        0 0 10px rgba(250, 250, 250, 0.8),
        0 0 5px rgba(250, 250, 250, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAFAFA;
    color: #1A1A1A;
    scroll-behavior: smooth;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.material-text {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(176, 141, 87, 0.12);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.dark .material-text {
    -webkit-text-stroke: 1px rgba(176, 141, 87, 0.08);
}

.v-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(176, 141, 87, 0.15) 50%, transparent);
    pointer-events: none;
}

.huge-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5.7rem, 14vw, 11rem);
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(176, 141, 87, 0.15);
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(176, 141, 87, 0.4);
    pointer-events: none;
    transition: top 0.1s linear;
}

.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.35em;
    color: #B08D57;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #B08D57;
}

#header-logo {
    filter: invert(1);
    transition: filter 0.5s;
}

#main-header.scrolled #header-logo {
    filter: invert(0);
}

#main-header.scrolled {
    background-color: #B08D57 !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .nav-link,
#main-header.scrolled #logo-text,
#main-header.scrolled .material-symbols-outlined,
#main-header.scrolled .member-page-text {
    color: #FAFAFA !important;
}

#main-header.scrolled .nav-link:hover,
#main-header.scrolled .member-page-text:hover {
    color: #1a1a1a !important;
    opacity: 1;
}

#main-header.scrolled .header-divider {
    background-color: rgba(250, 250, 250, 0.3) !important;
}

#main-header.scrolled .header-subtext {
    color: rgba(250, 250, 250, 0.8) !important;
}

#mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #FAFAFA;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.mobile-nav-link:hover {
    color: #B08D57;
    padding-left: 1rem;
}

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

.animate-fadeIn {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.scanline-animation {
    animation: scanline 10s linear infinite;
}

.info-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(176, 141, 87, 0.1);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.faq-item details summary::-webkit-details-marker {
    display: none;
}

.faq-item details[open] summary .expand-icon {
    transform: rotate(45deg);
}

#pagetop {
    position: fixed;
    right: 24px;
    bottom: 32px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9000;
}

#pagetop.visible {
    opacity: 1;
    pointer-events: auto;
}

#pagetop:hover circle {
    fill: #8B6F3A;
}

#pagetop circle {
    transition: fill 0.2s ease;
}

/* ============================================
   Contact Form 7 カスタムスタイル
   ============================================ */

.cf7-kingworks .wpcf7-form {
    margin: 0;
}

/* 2カラムグリッド */
.cf7-kingworks .kw-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .cf7-kingworks .kw-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* フォームグループ */
.cf7-kingworks .kw-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.cf7-kingworks .kw-form-grid .kw-form-group {
    margin-bottom: 0;
}

/* ラベル */
.cf7-kingworks label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #B08D57;
}

/* テキスト・メール・電話 */
.cf7-kingworks input[type="text"],
.cf7-kingworks input[type="email"],
.cf7-kingworks input[type="tel"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    box-shadow: none;
}

.cf7-kingworks input[type="text"]:focus,
.cf7-kingworks input[type="email"]:focus,
.cf7-kingworks input[type="tel"]:focus {
    border-bottom-color: #B08D57;
}

.cf7-kingworks input::placeholder,
.cf7-kingworks textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* セレクト */
.cf7-kingworks select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    appearance: none;
    cursor: pointer;
}

.cf7-kingworks select:focus {
    border-bottom-color: #B08D57;
    background: #1E1E1E;
}

.cf7-kingworks select option {
    background: #1E1E1E;
    color: #fff;
}

/* テキストエリア */
.cf7-kingworks textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    border-radius: 0;
}

.cf7-kingworks textarea:focus {
    border-bottom-color: #B08D57;
}

/* プライバシー同意チェックボックス */
.cf7-kingworks .kw-form-acceptance {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cf7-kingworks .kw-form-acceptance input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    accent-color: #B08D57;
    flex-shrink: 0;
    cursor: pointer;
    /* Tailwind formsプラグインのappearance:noneを上書きしてaccent-colorを有効にする */
    -webkit-appearance: auto;
    appearance: auto;
}

.cf7-kingworks .kw-form-acceptance .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.cf7-kingworks .kw-form-acceptance .wpcf7-list-item-label {
    font-size: 0.75rem;
    color: #9ca3af;
    letter-spacing: 0.1em;
}

.cf7-kingworks .kw-form-acceptance a {
    text-decoration: underline;
    color: #9ca3af;
    transition: color 0.2s;
}

.cf7-kingworks .kw-form-acceptance a:hover {
    color: #B08D57;
}

/* 送信ボタン */
.cf7-kingworks .kw-form-submit {
    text-align: center;
    padding-top: 3rem;
}

.cf7-kingworks input[type="submit"] {
    background: #B08D57;
    color: #FAFAFA;
    border: 1px solid #B08D57;
    padding: 1.5rem 6rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .cf7-kingworks input[type="submit"] {
        width: auto;
    }
}

.cf7-kingworks input[type="submit"]:hover {
    background: #8B6F3A;
    border-color: #8B6F3A;
}

.cf7-kingworks input[type="submit"]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* バリデーションエラー */
.cf7-kingworks .wpcf7-not-valid-tip {
    font-size: 0.7rem;
    color: #f87171;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

/* 送信結果メッセージ */
.cf7-kingworks .wpcf7-response-output {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
}

.cf7-kingworks .wpcf7-mail-sent-ok {
    border-color: #B08D57 !important;
    color: #B08D57 !important;
}

.cf7-kingworks .wpcf7-mail-sent-ng,
.cf7-kingworks .wpcf7-aborted {
    border-color: #f87171 !important;
    color: #f87171 !important;
}

/* CF7 display制御クラス（wpcf7_load_css無効化時に必要） */
.wpcf7-display-none {
    display: none;
}

/* スクリーンリーダー専用（視覚的に非表示） */
.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

/* スピナー：デフォルト非表示、送信中のみ表示 */
.cf7-kingworks .wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #B08D57;
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 16px;
    position: relative;
}

.cf7-kingworks .wpcf7-spinner.is-active {
    visibility: visible;
}
