/* --- A'sAXIS Full LP CSS (All-in-One) --- */

:root {
    --as-primary: #81d8d0;          /* アクセントカラー (ティファニーブルー系) */
    --as-bg: #050505;               /* 背景色 (ほぼ黒) */
    --as-glass-bg: rgba(20, 20, 25, 0.6);   /* グラスモーフィズム背景 */
    --as-glass-border: rgba(129, 216, 208, 0.2); /* グラスモーフィズム枠線 */
    --as-text-main: #f0f0f0;        /* メインテキスト色 */
    --as-text-muted: #888;          /* サブテキスト色 */
}

/* =========================================
   Base Layout & Reset
   ========================================= */

/* LP全体を包むラッパー: 全幅強制表示のハック */
#as-axis-lp-root {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    background-color: var(--as-bg);
    color: var(--as-text-main);
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
    line-height: 1.8;
    box-sizing: border-box;
}

#as-axis-lp-root *,
#as-axis-lp-root *::before,
#as-axis-lp-root *::after {
    box-sizing: inherit;
}

/* コンテナ（コンテンツ幅制限） */
#as-axis-lp-root .as-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* 画像のレスポンシブ対応 */
#as-axis-lp-root img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* リンクの基本スタイル除去 */
#as-axis-lp-root a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================================
   Background Elements (Fixed)
   ========================================= */

/* Three.js キャンバス配置 */
#as-three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none; /* クリックを透過 */
}

/* ノイズテクスチャ（フィルムグレイン） */
#as-axis-lp-root .as-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.05;
    pointer-events: none;
    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");
}

/* セクション共通設定 */
#as-axis-lp-root .as-section {
    position: relative;
    z-index: 10;
}

/* 余白ユーティリティ */
.as-py-medium { padding: 80px 0; }
.as-py-large { padding: 120px 0; }
.as-mb-medium { margin-bottom: 2rem; }
.as-mb-large { margin-bottom: 4rem; }
.as-text-center { text-align: center; }

/* =========================================
   HERO SECTION
   ========================================= */
#as-axis-lp-root .as-hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.as-hero-content {
    margin-bottom: 2rem;
}

.as-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--as-text-muted);
    margin-bottom: 1.5rem;
}

.as-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #fff;
}

.as-text-accent {
    color: var(--as-primary);
    text-shadow: 0 0 15px rgba(129, 216, 208, 0.4);
}

.as-gradient-text {
    background: linear-gradient(to right, #ffffff, #666666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
}

.as-divider {
    width: 80px;
    height: 1px;
    background-color: var(--as-primary);
    margin: 2rem auto;
}

.as-hero-description {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    font-weight: 300;
}

/* スクロールインジケーター */
.as-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: asBounce 2s infinite;
}
.as-scroll-indicator span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}
.as-arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* =========================================
   COMPONENTS: Cards & UI
   ========================================= */

/* グラスモーフィズムカード */
.as-glass-card {
    background: var(--as-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--as-glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 8px;
    transition: all 0.4s ease;
}
.as-glass-card:hover {
    border-color: rgba(129, 216, 208, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(129, 216, 208, 0.1);
}

.as-p-large { padding: 4rem; }
.as-p-medium { padding: 2rem; }

/* 見出しスタイル */
.as-headline-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    color: var(--as-primary);
    margin-bottom: 0.5rem;
}
.as-sub-jp {
    font-size: 0.875rem;
    color: var(--as-text-muted);
}

/* =========================================
   MISSION SECTION
   ========================================= */
.as-section-label {
    display: block;
    color: var(--as-primary);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.as-section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.as-border-bottom {
    border-bottom: 1px solid var(--as-primary);
    padding-bottom: 2px;
}
.as-text-body {
    color: #ccc;
    line-height: 2;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.as-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.as-service-card {
    padding: 2rem;
    overflow: hidden;
}

.as-card-image {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.as-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
    filter: grayscale(100%);
}
.as-service-card:hover .as-card-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* 画像オーバーレイ */
.as-overlay {
    position: absolute;
    inset: 0;
    background: var(--as-primary);
    opacity: 0.1;
    transition: opacity 0.3s;
}
.as-service-card:hover .as-overlay { opacity: 0; }

.as-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.as-icon {
    color: var(--as-primary);
    width: 24px;
    height: 24px;
}
.as-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}
.as-text-small {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.8;
}

/* =========================================
   DRIVER MESSAGE SECTION (Split Layout)
   ========================================= */
.as-split-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .as-split-layout {
        flex-direction: row;
        gap: 4rem;
    }
}

.as-split-image { flex: 1; }
.as-split-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    filter: grayscale(100%);
    transition: filter 0.5s;
}
.as-split-image:hover img { filter: grayscale(0%); }

.as-split-text { flex: 1; text-align: left; }

.as-message-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.as-title-line {
    width: 3rem;
    height: 1px;
    background: var(--as-primary);
    display: block;
}

.as-message-lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}
.as-message-body {
    color: var(--as-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}
.as-message-body p { margin-bottom: 1rem; }

/* 矢印付きテキストリンク */
.as-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--as-primary);
    border-bottom: 1px solid var(--as-primary);
    padding-bottom: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}
.as-link-arrow:hover {
    color: #fff;
    border-color: #fff;
    gap: 1rem;
}

/* =========================================
   COMPANY SECTION
   ========================================= */
.as-bg-dim { background-color: rgba(0,0,0,0.4); }

.as-dl-list {
    display: grid;
    gap: 1.5rem;
    font-size: 0.95rem;
}
/* PCのみ横並び */
@media (min-width: 768px) {
    .as-dl-row {
        display: grid;
        grid-template-columns: 150px 1fr;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1rem;
    }
    .as-dl-row:last-child { border-bottom: none; }
}
.as-dl-row dt { color: var(--as-text-muted); margin-bottom: 0.5rem; font-weight: bold; }
.as-dl-row dd { margin: 0; }

/* =========================================
   CONTACT SECTION
   ========================================= */
.as-contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.as-contact-desc {
    color: #aaa;
    margin-bottom: 3rem;
}

.as-btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .as-btn-group { flex-direction: row; }
}

/* ボタン共通 */
.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 2px;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

/* プライマリボタン */
.as-btn-primary {
    background: linear-gradient(45deg, #0f4c5c, #81d8d0);
    color: #000;
    border: none;
}
.as-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(129, 216, 208, 0.4);
}

/* アウトラインボタン */
.as-btn-outline {
    background: transparent;
    border: 1px solid var(--as-primary);
    color: var(--as-primary);
}
.as-btn-outline:hover {
    background: rgba(129, 216, 208, 0.1);
    color: #fff;
}

.as-contact-note {
    font-size: 0.75rem;
    color: var(--as-text-muted);
}
.as-contact-note a { color: #888; text-decoration: underline; }
.as-contact-note a:hover { color: #fff; }

/* =========================================
   FOOTER
   ========================================= */
.as-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #111;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #555;
    position: relative;
    z-index: 10;
}

/* =========================================
   ANIMATION & UTILITIES
   ========================================= */

/* フェードアップアニメーション */
.as-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.as-fade-up.as-show {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延ユーティリティ */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* SPのみ/PCのみ表示 */
@media (max-width: 768px) {
    .as-sp-only { display: block; }
    .as-p-large { padding: 2rem; }
}
@media (min-width: 769px) {
    .as-sp-only { display: none; }
}

/* バウンスアニメーション */
@keyframes asBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}