/* ==========================================================================
   1. Reset & Base Styles (全ページ共通のベース設定)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* 英語・日本語ともに、丸みと先進性を持たせたフォントシステム */
    font-family: "Quicksand", "Nunito", "Hiragino Maru Gothic ProN", "Corporate Logo Rounded", "Meiryo", sans-serif;
    color: #222222;
    background-color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* 背景キャンバスの設定 */
#geo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* コンテンツの邪魔をしない */
    opacity: 0.4;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* テキストグラデーション */
.text-gradient {
    background: linear-gradient(135deg, #ff6b00, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   2. Header & Logo Area (新しいロゴマーク画像＋右側に丸みフォントテキスト)
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ全体のラッパー */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* ロゴと文字の間隔 */
}

/* 新しいロゴマーク（文字の高さと同等に自動調整） */
.logo-img {
    height: 38px; /* 右側の上下2段テキストと綺麗に揃うジャストサイズ */
    width: auto;
    display: block;
}

/* テキストグループ（英語＋日本語） */
.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 英語：Reminiscence（丸みを持たせた英字） */
.logo-en {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #2b2b2b;
    line-height: 1.1;
    font-family: "Quicksand", "Nunito", "Arial Rounded MT Bold", sans-serif;
}

/* 日本語：株式会社レミニセンス */
.logo-ja {
    font-size: 10px;
    font-weight: 700;
    color: #777777;
    letter-spacing: 1px;
    margin-top: 2px;
    line-height: 1;
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    color: #444444;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b00, #ff007f);
    transition: width 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #111111;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   3. Abstract Objects (幾何学背景オブジェクト)
   ========================================================================== */
.geo-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(255,0,127,0.06));
    filter: blur(40px);
    z-index: 2;
    pointer-events: none;
}
.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
}
.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
}
.shape-mini {
    width: 150px;
    height: 150px;
    top: -30px;
    right: 10%;
    background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,0,127,0.1));
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-sub {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b00;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.4;
    font-weight: 800;
    color: #111111;
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 16px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 640px;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00, #ff007f);
    color: #ffffff;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.25);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: #ff6b00;
    border: 2px solid #ff6b00;
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #ff6b00, #ff007f);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.25);
}

/* ==========================================================================
   6. Home Services Section
   ========================================================================== */
.home-services {
    padding: 120px 24px;
}

.section-title {
    font-size: 32px;
    text-align: center;
    letter-spacing: 3px;
    color: #111111;
    font-weight: 800;
}

.section-subtitle {
    font-size: 13px;
    text-align: center;
    color: #ff007f;
    font-weight: 700;
    margin-bottom: 70px;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 50px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff007f);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.1);
    background-color: #ffffff;
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,0,127,0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111111;
    font-weight: 700;
}

.service-card p {
    font-size: 14px;
    color: #555555;
    line-height: 1.7;
}

.center-btn {
    text-align: center;
}

/* ==========================================================================
   7. Page Common Header
   ========================================================================== */
.page-header {
    background-color: #0f0f11;
    color: #ffffff;
    padding: 160px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 800;
}

.page-header p {
    color: #ff6b00;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==========================================================================
   8. Services Detail Page (左右交互のジグザグ配置)
   ========================================================================== */
.services-detail {
    padding: 100px 24px;
}

.detail-row {
    display: flex;
    align-items: center; /* 縦中央揃え */
    gap: 60px;
    margin-bottom: 100px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.detail-row:last-child {
    margin-bottom: 0;
}

/* 左右を反転させる設定 */
.detail-row.reverse {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1;
}

.detail-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 埋め込まれた幾何学SVGのサイズ制御 */
.detail-visual svg {
    width: 85%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(255, 107, 0, 0.08));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-row:hover .detail-visual svg {
    transform: scale(1.05) rotate(2deg);
}

.detail-num {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b00, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.detail-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #111111;
    font-weight: 700;
}

.detail-text p {
    color: #444444;
    margin-bottom: 25px;
}

.feature-list {
    margin-left: 5px;
}

.feature-list li {
    margin-bottom: 12px;
    color: #444444;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #ff007f;
    transform: rotate(45deg);
}

/* ==========================================================================
   9. Company Page (会社概要テーブル)
   ========================================================================== */
.company-section {
    padding: 100px 24px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.company-table th, .company-table td {
    padding: 28px 35px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.company-table th {
    width: 25%;
    background-color: #fcfcfd;
    font-weight: 700;
    color: #111111;
}

.company-table td ul {
    list-style-type: none;
}

.company-table td li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}
.company-table td li::before {
    content: '▪';
    color: #ff6b00;
    position: absolute;
    left: 0;
}

/* ==========================================================================
   10. Contact Page (問い合わせフォーム)
   ========================================================================== */
.contact-section {
    padding: 100px 24px;
    max-width: 850px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.tel-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

.tel-text span {
    background: linear-gradient(135deg, #ff6b00, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    margin-left: 12px;
    font-weight: 800;
}

.contact-form {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111111;
}

.form-group .required {
    color: #ff007f;
    font-size: 12px;
    margin-left: 8px;
    background-color: rgba(255, 0, 127, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fafafa;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #ff6b00;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer {
    background-color: #0f0f11;
    color: #999999;
    padding: 80px 24px 40px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
}

.footer-info h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 6px;
}

.copyright {
    font-size: 12px;
}

/* ==========================================================================
   12. Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   13. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }
    
    .nav ul {
        gap: 20px;
    }
    
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .detail-row, .detail-row.reverse {
        flex-direction: column;
        gap: 40px;
        padding: 40px 24px;
    }

    .detail-visual svg {
        width: 65%;
        max-width: 240px;
    }
    
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        background-color: #f3f3f5;
        padding: 12px 20px;
    }
    
    .company-table td {
        padding: 24px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}