/* ============================================================
   SPIRIT MOTOR - style.css
   共通スタイルシート
   ============================================================ */

/* --- CSS変数 --- */
:root {
    --primary: #FF4500;
    --primary-grad: linear-gradient(135deg, #FF8C00 0%, #D32F2F 100%);
    --primary-light: #fff5f0;
    --white: #ffffff;
    --black: #1a1a1a;
    --header-height: 80px;
    --transition-slow: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- リセット・ベース --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ============================================================
   ヘッダー（共通）
   ============================================================ */
header {
    position: fixed; top: 0; left: 0;
    width: 100%; height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img { height: 50px; width: auto; }

/* ヘッダー検索窓 */
.header-search {
    display: flex; align-items: center;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 0 12px; height: 40px; width: 220px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.header-search:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-search input {
    border: none; background: none; outline: none;
    width: 100%; font-size: 0.85rem;
}
.header-search button {
    border: none; background: none;
    cursor: pointer; color: #999;
    transition: 0.3s;
    display: flex; align-items: center;
}
.header-search button:hover { color: var(--primary); }

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-icon {
    font-size: 45px;
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
    display: flex; align-items: center;
}
.header-icon:hover { transform: translateY(-2px); opacity: 0.7; }

/* メニューボタン */
.nav-trigger {
    width: 50px; height: 50px;
    background: var(--primary-grad);
    border-radius: 50%;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    border: none;
    position: relative; z-index: 10001;
}
.nav-trigger svg {
    width: 24px; stroke: #fff; stroke-width: 2.5; fill: none;
    position: absolute; transition: 0.3s;
}
.nav-trigger .icon-close { opacity: 0; transform: scale(0.5); }
.is-active.nav-trigger .icon-close { opacity: 1; transform: scale(1); }
.is-active.nav-trigger .icon-menu { opacity: 0; transform: scale(0.5); }

/* ============================================================
   ナビゲーション画面（共通）
   ============================================================ */
#nav-screen {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100dvh;
    background: rgba(255,255,255,0.98);
    z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    visibility: hidden; opacity: 0;
    transition: 0.4s;
}
#nav-screen.is-open { visibility: visible; opacity: 1; }
#nav-screen a {
    font-size: 2rem; font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    margin: 15px 0;
    transition: 0.3s;
}
#nav-screen a:hover { letter-spacing: 0.1em; }

/* ============================================================
   スクロールアニメーション（共通）
   ============================================================ */
.reveal { opacity: 0; transition: var(--transition-slow); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal.active { opacity: 1; transform: translate(0, 0); }

/* ============================================================
   セクション共通
   ============================================================ */
section { padding: 100px 8%; }

.sec-title { margin-bottom: 60px; text-align: center; }
.sec-title h2 {
    font-size: 2.2rem; font-weight: 900;
    position: relative; display: inline-block;
    padding-bottom: 15px;
}
.sec-title h2::after {
    content: "";
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--primary-grad);
}

/* ============================================================
   フッター（共通）
   ============================================================ */
footer {
    background: var(--primary-grad);
    color: #fff;
    padding: 60px 8%;
    text-align: center;
    margin-top: 0;
}
.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ============================================================
   メインビジュアル（ページ共通）
   ============================================================ */
.page-hero {
    height: 50dvh; margin-top: var(--header-height);
    background-size: cover; background-position: center;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: #fff;
}
.page-hero span {
    font-family: 'Times New Roman Bold', serif;
    color: var(--primary);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    padding: 0 5%;
}

/* ============================================================
   事業内容（サービスカード）全体スモーク＆ズーム演出
   ============================================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
    cursor: pointer;
    color: #fff;
}

/* 背景画像コンテナ */
.service-bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* スモークレイヤー（常に薄いスモークをかける） */
.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: background 0.4s ease;
}

/* テキストコンテンツ（スモークより前面へ） */
.service-card h3,
.service-card p {
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.service-card p strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}
.service-card {
    text-decoration: none;
}

.service-card:visited,
.service-card:hover,
.service-card:active {
    color: #fff;
}
/* --- ホバーアクション --- */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.service-card:hover .service-bg-photo {
    transform: scale(1.1);
}
.service-card:hover::after {
    background: rgba(0, 0, 0, 0.6);
}

/* ============================================================
   index.php 固有スタイル
   ============================================================ */

/* 背景スライダーステージ */
.fixed-bg-stage {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}
.bg-layer {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease;
}
.bg-layer.is-active { opacity: 1; }

/* ヒーロースライダー */
.hero-slider-box {
    position: relative;
    height: calc(100dvh - var(--header-height));
    margin-top: var(--header-height);
    overflow: hidden;
}
.slider-inner {
    display: flex;
    width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.slide-img {
    min-width: 100%; height: 100%;
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: rgba(0,0,0,0);
    padding-bottom: 30px;
}
.neon-text {
    font-family: "Times New Roman", "Times", "Liberation Serif", "Nimbus Roman", serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    color: #fff;
    -webkit-text-stroke: 1px #7ed957;
    text-shadow:
        0 0 10px rgba(255,255,255,0.8),
        0 0 30px rgba(0,0,0,0.5),
        0 0 60px rgba(50,50,50,0.3);
    letter-spacing: 0.1em;
}
.slide-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: #fff;
    border: none; font-size: 1.5rem;
    padding: 15px 20px; cursor: pointer;
    z-index: 10; transition: 0.3s;
    backdrop-filter: blur(5px);
    border-radius: 8px;
}
.slide-btn:hover { background: var(--primary); }
.btn-prev { left: 20px; }
.btn-next { right: 20px; }

/* パネル（セクション） */
.panel {
    position: relative;
    z-index: 10;
    padding: 100px 8%;
    background: rgba(255, 255, 255, 0.8);
}

.panel:nth-child(even) {
    background: rgba(253, 253, 253, 0.8);
}
.sec-header { margin-bottom: 60px; }
.sec-header span {
    font-family: 'Cinzel', serif;
    color: var(--primary); font-weight: 900;
    letter-spacing: 0.3em; display: block;
    margin-bottom: 8px; font-size: 0.85rem;
}
.sec-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
}

/* 新着情報（RSS表示切り替え） */
.news-pc-only { display: block; }
.news-mobile-only { display: none; }

/* 会社概要リスト */
.info-list { border: 1px solid #eee; border-radius: 15px; overflow: hidden; }
.info-row {
    display: grid; grid-template-columns: 130px 1fr;
    border-bottom: 1px solid #eee;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    padding: 20px 25px;
    background: var(--primary-light);
    font-weight: 700; color: var(--primary);
    font-size: 0.9rem;
}
.info-value { padding: 20px 25px; font-size: 0.95rem; }

/* お問い合わせセクション */
.contact-section {
    position: relative; z-index: 10;
    padding: 100px 8%;
    background: var(--primary-light);
}
.contact-form { max-width: 700px; margin: 0 auto; }
.form-input {
    width: 100%; padding: 16px 20px;
    border: 1px solid #ddd; border-radius: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem; margin-bottom: 20px;
    transition: 0.3s; outline: none;
    background: #fff;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,69,0,0.1); }
.form-btn {
    width: 100%; padding: 20px;
    background: var(--primary-grad); color: #fff;
    border: none; border-radius: 50px;
    font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}
.form-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,69,0,0.4); }

/* reveal-gap（セクション間スペーサー） */
.reveal-gap { height: 0; }

/* ============================================================
   フィーチャーカード（販売・買取共通）
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature-card {
    padding: 40px; border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: 0.4s;
    border-top: 5px solid var(--primary);
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; display: block; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 900; }

/* ============================================================
   フロー（販売・買取共通）
   ============================================================ */
.flow-container { max-width: 800px; margin: 0 auto; }
.flow-step {
    display: flex; gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}
.flow-num {
    width: 60px; height: 60px;
    background: var(--primary-grad); color: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-family: 'Cinzel'; font-weight: 900; font-size: 1.5rem;
    flex-shrink: 0;
}
.flow-text h4 {
    font-size: 1.3rem; font-weight: 900;
    margin-bottom: 5px; color: var(--primary);
}

/* ============================================================
   news.php 固有スタイル
   ============================================================ */
.page-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100dvh;
    z-index: -1;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1920');
    background-size: cover; background-position: center;
}
.news-container {
    margin-top: var(--header-height);
    min-height: 100vh;
    padding: 80px 8%;
    position: relative; z-index: 10;
}
.news-header { margin-bottom: 60px; text-align: center; }
.news-header span {
    font-family: 'Cinzel', serif;
    color: var(--primary); font-weight: 900;
    letter-spacing: 0.3em; display: block;
    margin-bottom: 10px;
}
.news-header h1 {
    font-size: 3rem; font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}
.news-body {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 1000px; margin: 0 auto;
}

/* ============================================================
   purchase.php 固有スタイル
   ============================================================ */
.logic-box {
    background: #fdfdfd; border: 1px solid #eee;
    border-radius: 30px; padding: 50px;
    text-align: center; max-width: 1000px; margin: 0 auto;
}
.logic-visual {
    display: flex; justify-content: space-around;
    align-items: center; margin: 40px 0;
}
.logic-item { flex: 1; padding: 20px; }
.logic-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; display: block; }
.arrow-icon { font-size: 2rem; color: #ccc; }

/* ============================================================
   about.php 固有スタイル
   ============================================================ */
.message-container {
    max-width: 900px; margin: 0 auto;
    display: flex; gap: 60px; align-items: center;
}
.message-text h3 {
    font-size: 1.8rem; font-weight: 900;
    color: var(--primary); margin-bottom: 25px;
}
.message-signature { margin-top: 30px; text-align: right; }
.message-signature span { font-size: 0.9rem; opacity: 0.7; }
.message-signature p { font-size: 1.5rem; font-weight: 900; }

.info-table { width: 100%; border-collapse: collapse; max-width: 900px; margin: 0 auto; }
.info-table th, .info-table td { padding: 25px; border-bottom: 1px solid #eee; text-align: left; }
.info-table th { width: 30%; font-weight: 900; color: var(--primary); }

.map-container {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 1000px; margin: 0 auto;
    line-height: 0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 900px) {
    .header-search { width: 180px; }
}

@media screen and (max-width: 768px) {
    /* ヘッダー */
    .logo-img { height: 35px; width: auto; }
    .header-search { display: none; }
    .header-right { gap: 15px; }
    .header-icon { font-size: 38px; }

    /* セクション */
    section { padding: 60px 5%; }
    .panel { padding: 60px 5%; }
    .contact-section { padding: 60px 5%; }

    /* ヒーロー */
    .neon-text { font-size: 2.5rem; }

    /* 新着情報 RSS切り替え */
    .news-pc-only { display: none; }
    .news-mobile-only { display: block; }

    /* ニュースページ */
    .news-header h1 { font-size: 2rem; }
    .news-body { padding: 15px; border-radius: 10px; }

    /* 買取ページ */
    .logic-visual { flex-direction: column; gap: 20px; }
    .arrow-icon { transform: rotate(90deg); }

    /* フロー */
    .flow-step { flex-direction: column; gap: 15px; text-align: center; align-items: center; }

    /* about */
    .message-container { flex-direction: column; gap: 40px; text-align: center; }
    .info-table th, .info-table td { display: block; padding: 10px 15px; }
    .info-table th { padding-bottom: 5px; }
    .info-table td { padding-top: 5px; }

    /* サービスカード */
    .service-card { height: 300px; }
}

/* ============================================================
   ① スプリットテキスト
   ============================================================ */
.split-char {
    display: inline-block;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-char.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   ② 水平スクロールナビ（PC・モバイル共通）
   ============================================================ */
.hero-nav {
    position: relative; z-index: 10;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(176, 176, 176, 0.2);
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; cursor: grab;
}
.hero-nav::-webkit-scrollbar { display: none; }
.hero-nav.grabbing { cursor: grabbing; }
.hero-nav-track { display: flex; width: max-content; }
.hero-nav-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    padding: 18px 36px; text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease; white-space: nowrap;
    position: relative; min-width: 130px;
}
.hero-nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 1px;
    background: #b0b0b0; transition: width 0.3s ease;
}
.hero-nav-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
.hero-nav-item:hover::after { width: 60%; }
.hero-nav-item i { font-size: 1.3rem; color: rgba(176,176,176,0.8); transition: transform 0.3s; }
.hero-nav-item:hover i { transform: translateY(-3px); color: #fff; }
.hero-nav-item span { font-size: 0.65rem; letter-spacing: 0.2em; font-weight: 700; font-family: 'Cinzel', serif; }
.hero-nav-item small { font-size: 0.6rem; opacity: 0.4; }

/* ============================================================
   ③ グラスモーフィズム（既存の背景値を強化するのみ）
   ============================================================ */
.panel {
    background: rgba(255, 255, 255, 0.55) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.panel:nth-child(even) {
    background: rgba(253, 253, 253, 0.55) !important;
}
.contact-section {
    background: rgba(255, 245, 240, 0.6) !important;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
}
.info-list {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04),
                inset 0 1px 0 rgba(255,255,255,0.9) !important;
    position: relative; overflow: hidden;
}
.info-list::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: glass-shimmer 5s infinite; pointer-events: none; z-index: 0;
}
@keyframes glass-shimmer { 0% { left: -100%; } 100% { left: 200%; } }

/* ============================================================
   ④ 詳細ボタン（ラグジュアリーボーダー）
   ============================================================ */
.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 34px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    border: 1px solid var(--primary);
    background: transparent;
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
    overflow: hidden;
}
.detail-btn::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--primary-grad);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}
.detail-btn:hover { color: #fff; }
.detail-btn:hover::before { left: 0; }
.detail-btn i { font-size: 0.7rem; transition: transform 0.3s; }
.detail-btn:hover i { transform: translateX(4px); }

/* sec-header-rowレイアウト */
.sec-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}
.sec-header-row .sec-header { margin-bottom: 0; }
.sec-header-row .detail-btn { margin-top: 0; }

/* service-card内のdetail-btn */
.service-card .detail-btn,
.service-card span.detail-btn {
    border-color: rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.9);
    position: relative; z-index: 3;
    margin-top: 16px;
}
.service-card .detail-btn::before,
.service-card span.detail-btn::before {
    background: rgba(255,255,255,0.12);
}
.service-card:hover .detail-btn,
.service-card:hover span.detail-btn {
    border-color: rgba(176,176,176,0.8);
}

/* ============================================================
   レスポンシブ追加
   ============================================================ */
@media screen and (max-width: 768px) {
    .hero-nav-item { min-width: 100px; padding: 14px 20px; }
    .hero-nav-item span { font-size: 0.6rem; }
    .sec-header-row { flex-direction: column; align-items: flex-start; }
    .detail-btn { margin-top: 10px; padding: 11px 26px; font-size: 0.75rem; }
}
