:root {
    --c-black: #030303;
    --c-dark: #0d0d0d;
    --c-gray: #1a1a1a;
    --c-text: #f0f0f0;
    --c-muted: #6b6b6b;
    --c-gold: #d4af37;
    --c-gold-dark: #b8941f;
}

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

body {
    background: var(--c-black);
    color: var(--c-text);
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    line-height: 1.8;
}

/* フォント設定 */
h1, h2, h3, .serif {
    font-family: 'Shippori Mincho', serif;
    font-weight: 800;
}

.mono {
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.1em;
}

::selection {
    background: var(--c-gold);
    color: #000;
}

html { scroll-behavior: smooth; }

/* 画像エフェクト */
.img-reveal {
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
}

.img-reveal img {
    transition: transform 0.8s ease, filter 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-reveal:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
    border-color: #d4af37 !important;
}

.img-reveal:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1) !important;
}

/* ローダー */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 999;
    transition: right 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

/* スクロールプログレスバー */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-gold-dark));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* モーダル類 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--c-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    color: white;
}

header a { color: inherit; text-decoration: none; }

.logo-container { display: flex; align-items: center; gap: 0.75rem; }

.logo-icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    color: white;
}

.logo-icon-svg:hover { color: #d4af37; transform: scale(1.1); }
.logo-icon-svg svg { width: 100%; height: 100%; }

nav { display: none; gap: 2rem; font-size: 0.75rem; letter-spacing: 0.15em; }

@media (min-width: 768px) { nav { display: flex; } }

nav a { padding: 0.5rem 0; position: relative; }
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-gold);
    transition: width 0.4s ease;
}
nav a:hover::after { width: 100%; }

.contact-btn {
    color: var(--c-gold);
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}
.contact-btn:hover { background: var(--c-gold); color: black; }

.menu-toggle {
    display: flex; flex-direction: column; gap: 0.375rem; align-items: flex-end;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.menu-toggle span { display: block; height: 1.5px; background: white; transition: all 0.3s ease; }
.menu-toggle span:nth-child(1) { width: 2rem; }
.menu-toggle span:nth-child(2) { width: 1.5rem; }
.menu-toggle span:nth-child(3) { width: 2rem; }
.menu-toggle:hover span { width: 2.5rem; }

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #030303, transparent, rgba(3,3,3,0.6)); }

.hero-content {
    position: relative; z-index: 10; max-width: 90%; margin: 0 auto; width: 100%; max-width: 80rem;
}
.hero-text { margin-bottom: 4rem; }
.hero-subtitle { color: var(--c-gold); font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 1.5rem; }
.hero-title { font-size: 2rem; line-height: 1.4; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
.hero-description { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
@media (min-width: 768px) { .hero-description { font-size: 1rem; } }

/* セクション共通 */
section { padding: 8rem 1.5rem; position: relative; }
@media (min-width: 768px) { section { padding: 12rem 3rem; } }
.section-container { max-width: 80rem; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-label { color: var(--c-gold); font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
.section-title { font-size: 2rem; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

/* ページタイトル（下層ページ用・固定ヘッダーに隠れないよう余白確保） */
.page-head { padding-top: 10rem; padding-bottom: 0; }
@media (min-width: 768px) { .page-head { padding-top: 14rem; } }

/* 理念セクション */
.philosophy-grid { display: grid; gap: 5rem; }
@media (min-width: 768px) { .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 8rem; } }
.philosophy-content { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 3rem; }
.gold-line { width: 0.25rem; height: 5rem; background: var(--c-gold); }
.philosophy-text { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; font-size: 1.1rem; letter-spacing: 0.05em; }
.philosophy-highlight { color: var(--c-gold); font-weight: 500; }

/* 強みセクション */
.strengths-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .strengths-grid { grid-template-columns: repeat(3, 1fr); } }
.strength-card { display: flex; flex-direction: column; }
.strength-image { aspect-ratio: 1; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.25rem; }
.strength-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.strength-number { font-size: 3rem; color: rgba(212, 175, 55, 0.3); font-weight: 300; }
.strength-title { font-size: 1.5rem; }
.strength-description { color: rgba(255,255,255,0.7); line-height: 1.8; }

/* 事業内容 */
.business-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 3rem 0; transition: background 0.3s ease; }
.business-item:hover { background: rgba(10,10,10,0.5); }
.business-content { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .business-content { flex-direction: row; justify-content: space-between; align-items: center; } }
.business-header { display: flex; align-items: center; gap: 1.5rem; }
.business-number { font-size: 2rem; color: rgba(212, 175, 55, 0.4); font-weight: 300; }
.business-title { font-size: 1.75rem; transition: color 0.3s ease; }
@media (min-width: 768px) { .business-title { font-size: 2rem; } }
.business-item:hover .business-title { color: var(--c-gold); }
.business-subtitle { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; margin-top: 0.5rem; }
.business-description { color: rgba(255,255,255,0.7); line-height: 1.8; max-width: 32rem; }

/* ページ移動リンク（business-item をリンクとして使うための追加） */
a.business-item { display: block; text-decoration: none; color: inherit; }
a.business-item .business-title { color: var(--c-text); }
a.business-item:hover .business-title { color: var(--c-gold); }

/* ===== SNSセクション ===== */
.social { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.social-intro { color: rgba(255,255,255,0.7); line-height: 2; margin-top: 1.5rem; max-width: 40rem; font-size: 1.05rem; }
.social-grid { display: grid; gap: 2rem; margin-top: 4rem; }
@media (min-width: 900px) { .social-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.social-card {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.01);
    transition: border-color 0.4s ease, transform 0.4s ease;
    text-decoration: none;
    color: inherit;
}
@media (min-width: 768px) { .social-card { padding: 3rem; } }
.social-card:hover { border-color: var(--c-gold); transform: translateY(-4px); }

.social-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.social-icon {
    width: 3rem; height: 3rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 0.4rem;
    transition: all 0.4s ease;
}
.social-card:hover .social-icon { background: var(--c-gold); color: #000; }
.social-icon svg { width: 1.5rem; height: 1.5rem; }
.social-card-platform { font-size: 0.7rem; color: var(--c-gold); letter-spacing: 0.2em; }
.social-card-handle { font-size: 1.25rem; color: white; }
.social-card-desc { color: rgba(255,255,255,0.7); line-height: 1.9; font-size: 0.95rem; }

.social-card-link {
    margin-top: 1.75rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--c-gold); font-size: 0.75rem; letter-spacing: 0.15em;
    transition: gap 0.3s ease;
}
.social-card:hover .social-card-link { gap: 1.1rem; }

/* 埋め込みプレビュー */
.social-embed-wrap { margin-top: 3rem; }
.social-embed-label { color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.social-embed-label::before { content: ''; width: 24px; height: 1px; background: var(--c-gold); }
.social-embed-grid { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 900px) { .social-embed-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.social-embed-box {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.4rem;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    min-height: 400px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tiktok-embed, .instagram-media { margin: 0 auto !important; }

/* リクルート */
.recruit { background: var(--c-dark); text-align: center; padding: 10rem 1.5rem; }
.recruit-content { max-width: 56rem; margin: 0 auto; }
.recruit-title { font-size: 2.5rem; margin-bottom: 2rem; line-height: 1.4; }
@media (min-width: 768px) { .recruit-title { font-size: 4rem; } }
.recruit-description { color: rgba(255,255,255,0.7); line-height: 2; font-size: 1.125rem; margin-bottom: 3rem; }
.recruit-btn {
    display: inline-flex; align-items: center; gap: 0.75rem; border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 1.25rem 3rem; font-size: 0.875rem; letter-spacing: 0.15em; transition: all 0.3s ease; text-decoration: none; color: white;
}
.recruit-btn:hover { background: var(--c-gold); color: black; border-color: var(--c-gold); }

/* お問い合わせ */
.contact-grid { display: grid; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.map-container { height: 25rem; position: relative; }
@media (min-width: 1024px) { .map-container { height: auto; min-height: 40rem; } }

.map-container iframe { width: 100%; height: 100%; border: 0; filter: none; }

.contact-form-container { padding: 3rem; }
@media (min-width: 1024px) { .contact-form-container { padding: 6rem; } }
.contact-info { margin-bottom: 4rem; }
.phone-number {
    font-size: 2rem; color: var(--c-gold); letter-spacing: 0.1em; font-weight: 300; padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; display: block; transition: color 0.3s ease;
}
@media (min-width: 768px) { .phone-number { font-size: 2.5rem; } }
.phone-number:hover { color: var(--c-gold-dark); }
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; letter-spacing: 0.1em; }
.form-input, .form-textarea {
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0; color: white; font-size: 1rem; transition: border-color 0.3s ease;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--c-gold); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-textarea { resize: none; }
.submit-btn {
    background: var(--c-gold); color: black; border: none; padding: 1.25rem 3rem; font-size: 0.875rem;
    letter-spacing: 0.15em; font-weight: bold; cursor: pointer; transition: all 0.3s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.submit-btn:hover { background: var(--c-gold-dark); }

/* 会社概要 */
.company { background: var(--c-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.company-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .company-grid { grid-template-columns: 1fr 1fr; } }
.company-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.company-items { display: flex; flex-direction: column; gap: 1.5rem; }
.company-item { display: flex; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.company-label { width: 8rem; color: rgba(255,255,255,0.5); font-size: 0.875rem; flex-shrink: 0; }
.company-value { color: rgba(255,255,255,0.9); }

/* フッター */
footer { background: black; padding: 3rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.footer-content { max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .footer-content { flex-direction: column; justify-content: center; align-items: center; } }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.copyright { font-size: 0.625rem; color: rgba(255,255,255,0.4); letter-spacing: 0.15em; }

/* フッターSNS */
.footer-social { display: flex; gap: 1rem; justify-content: center; }
.footer-social a {
    width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--c-gold); color: #000; border-color: var(--c-gold); transform: translateY(-3px); }
.footer-social svg { width: 1.1rem; height: 1.1rem; }

/* フッターのページリンク */
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; font-size: 0.7rem; letter-spacing: 0.15em; }
.footer-nav a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--c-gold); }

/* SNSセクション スマホ最適化 */
@media (max-width: 600px) {
    .social-card { padding: 2rem 1.5rem; }
    .social-card-head { gap: 0.85rem; }
    .social-card-handle { font-size: 1.1rem; word-break: break-all; }
    .social-intro { font-size: 0.95rem; }
    .social-grid { gap: 1.5rem; }
    .social-embed-grid { gap: 1.5rem; margin-left: -0.5rem; margin-right: -0.5rem; }
    .social-embed-box { padding: 0.5rem; min-height: 0; }
}

/* フェードインアニメーション */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- マウスストーカーのスタイル --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--c-gold);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.1s ease;
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-gold);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.15s ease-out;
}
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
}
