@charset "UTF-8";

/* =========================================
   1. Variables & Base Settings
   ========================================= */
:root {
    /* Color Palette: High-End Business */
    --color-primary: #0A2440;      /* Darker Navy */
    --color-primary-light: #1B3A5E;
    --color-secondary: #F8F9FA;    /* Ultra Light Grey */
    --color-accent: #D4AF37;       /* Metallic Gold */
    --color-accent-hover: #B59328;
    --color-text: #2C2C2C;
    --color-text-light: #5F6368;
    --color-white: #FFFFFF;
    
    /* Fonts */
    --font-main: 'Noto Sans JP', 'Helvetica Neue', 'Arial', sans-serif;
    --font-en: 'Roboto', 'Helvetica Neue', sans-serif;
    
    /* Spacing & Layout */
    --spacing-md: 40px;
    --spacing-lg: 100px;
    --border-radius: 6px;
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.08);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-white);
    letter-spacing: 0.03em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. Utilities (Helper Classes)
   ========================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-white {
    color: var(--color-white) !important;
}

.bg-light {
    background-color: var(--color-secondary);
}

.bg-navy {
    background-color: var(--color-primary);
    color: white;
}

/* Margins & Spacers */
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.spacer-40 { height: 40px; }

/* Responsive Utilities */
.sp-only { display: block; }
.pc-only { display: none; }

/* Section Common Styles */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 1.7rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-desc {
    font-size: 1rem;
    margin-bottom: 50px;
    color: var(--color-text-light);
}

/* ボタンを含むエリアは、画面サイズに関わらず常に中央揃えにする */
.sample-action {
    margin-top: -20px;
    text-align: center;
}

.section-text{
    text-align: center;
    padding: 20px;
}

.section-title-white {
    color: var(--color-white);
}

@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-only { display: block; }
}

@media (max-width: 768px) {
    .section {
    padding: var(--spacing-md) 0;
    }

    .section-text {
        text-align: left;
    }

}

/* =========================================
   3. Components (Buttons)
   ========================================= */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.cta-button.primary {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    color: white;
}

.cta-button.secondary {
    
    background-color: white;
    border: 1px solid #ddd;
    color: var(--color-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cta-button.secondary:hover {
    background-color: #f9f9f9;
    color: var(--color-primary);
}

.cta-button.small {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 24px;
    font-size: 0.9rem;
}

.cta-button.small-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(10, 36, 64, 0.3);
}

.cta-button.full-width {
    width: 100%;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    z-index: 1010;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    max-width: 70px;
}

@media (max-width: 768px) {
    .logo {
    max-width: 60px;
}
}

.nav-menu { display: none; }
.header-cta { display: none; }

/* Hamburger Menu */
.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Mobile Menu Overlay Background */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding-top: 80px; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active { right: 0; }
.mobile-menu ul li { margin: 20px 0; padding-left: 30px; border-bottom: 1px solid #f0f0f0; }
.mobile-menu ul li a { display: block; padding-bottom: 20px; font-weight: 500; }
.mobile-menu .mobile-cta { margin: 20px; width: calc(100% - 40px); text-align: center; }

/* Desktop Navigation Media Query */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .nav-menu { display: block; }
    
    .nav-menu ul {
        display: flex;
        gap: 30px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text);
        position: relative;
    }
    
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--color-primary);
        transition: width 0.3s;
    }
    
    .nav-menu a:hover { color: var(--color-primary); }
    .nav-menu a:hover::after { width: 100%; }
    
    .header-cta { display: block; }
    .mobile-menu { display: none; }
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 90vh; /* 画像が入るため少し高さを確保 */
    display: flex;
    align-items: center;
    /* justify-content: flex-start; は削除し、内部のコンテナで制御します */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 画像が見えやすいように、グラデーションの白領域を少し広げました */
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.4) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    /* PC画面で横並びにする設定 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* --- Left Side: Text --- */
.hero-text { 
    flex: 1; /* 余白に合わせて伸縮 */
    max-width: 550px; 
}

.hero-label-sub {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    background: var(--color-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--color-text);
    margin-bottom: 24px;
    font-weight: 900;
    line-height: 1.3;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.hero-sub_buttom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 10px;
}

.hero-sub_under {
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}



/* --- Mobile / Tablet Styles --- */
@media (max-width: 991px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        display: block; /* フレックス解除 */
    }

        .hero-visual {
        max-width: 100%; 
        margin: 0 auto;
        padding: 0 20px;
        justify-content: center; /* スマホでも中央寄せ */
    }
    
    .visual-badge {
        right: 5px; /* スマホでは端すぎないように少し調整 */
    }

    .hero-content {
        flex-direction: column; /* 縦並びにする */
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center; /* スマホでは中央揃えが見やすい */
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%; /* 横幅いっぱい使う */
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-overlay { 
        background: rgba(255,255,255,0.9); /* スマホでは文字を読みやすくするため背景を濃く */
    }

    .hero h1 { font-size: 1.7rem; }
}

/* PC画面（幅992px以上）の時だけ、チャートの位置を強制的に移動させる設定 */
@media (min-width: 992px) {
    .hero-visual {
        /* 左へ140px、下へ120px 移動（赤枠の手元あたりへ） */
        transform: translate(-60%, 120px) !important;
        
        /* 他の要素より手前に表示 */
        position: relative;
        z-index: 10;
    }
    
    /* 画像自体の影を強くして、背景から浮き上がらせる */
    .hero-visual img {
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25) !important;
    }
}

/* =========================================
   6. Authority & Trust Section
   ========================================= */
.authority-section {
    position: relative;
    overflow: hidden;
    background-color: #0A2440;
}

.authority-bar {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.authority-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.authority-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 64, 0.85); 
    z-index: 1;
}

.authority-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: #888;
    font-weight: bold;
    font-size: 0.9rem;
}

.logo-item i {
    margin-right: 6px;
    color: var(--color-primary);
}

/* =========================================
   7. Problem Section
   ========================================= */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: fit-content;
    margin: 0 auto;
}

.problem-card {
    max-width: 265px;
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.problem-card:hover { transform: translateY(-5px); }

.card-number {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: #F4F6F8;
    z-index: 0;
    font-family: var(--font-en);
}

.icon-line {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.problem-card h3 { 
    position: relative;
    z-index: 1;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.problem-card p {
    position: relative;
    z-index: 1;
    max-width: 248px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.strong-text {
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 16px;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

@media (min-width: 768px) {
    .problem-grid { 
        max-width: 900px;
        margin: 0 auto;
        grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   8. Solution Section
   ========================================= */
.solution-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.solution-top-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.solution-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.feature-list li {
    margin-bottom: 20px;
    line-height: 1.8;
}

.solution-li {
    color: var(--color-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
    min-width: 210px;
    margin-right: 10px;
    display: inline-block;
}

.solution-span{
    display: block;
}

@media (min-width: 768px) {
    .solution-top-area {
        flex-direction: row;
        align-items: center;
    }
    .solution-text {
        flex: 1;
        max-width: 480px;
        margin: 0 auto;
    }
    .solution-image {
        flex: 1;
    }
}

/* Comparison Table */
.comparison-box {
    margin-top: 50px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: var(--border-subtle);
}

.comp-body {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 16px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

th {
    background: #fafafa;
    font-weight: 700;
    color: var(--color-primary);
}

th.highlight {
    background: var(--color-accent);
    color: white;
}

td.highlight-cell {
    background: rgba(212, 175, 55, 0.05);
    font-weight: 700;
    color: var(--color-primary);
}

/* =========================================
   9. Steps & Overview Section
   ========================================= */
.steps-container {
    display: flex;
    flex-direction: column; /* 常に縦並びにする */
    gap: 20px;
    max-width: 800px; /* 縦並びの際に読みやすい幅に制限 */
    margin: 0 auto;   /* 中央寄せ */
}

.step-card {
    background: white;
    padding: 30px 30px 30px 80px; /* 左パディングを調整（番号のスペース確保） */
    border: var(--border-subtle);
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.step-num {
    position: absolute;
    top: 30px; /* 位置を微調整 */
    left: 20px;
    font-size: 1.8rem;
    font-weight: 900;
    color: #e0e0e0;
    font-family: var(--font-en);
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.overview-container {
    max-width: 100%;
}

.overview-p {
    margin-top: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8; /* 行間を少し広げて読みやすく */
}

.overview-p small {
    color: #999;
    font-size: 0.85rem;
}

/* 以前ここにあった flex-direction: row の指定を削除しました */
@media (min-width: 768px) {
    /* 必要であればPC固有の調整をここに記述 */
}

/* =========================================
   10. CEFR Section
   ========================================= */
.cefr-section {
    background-color: #EDF5F9;
}

.cefr-intro {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: left;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.9;
}

.cefr-levels {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cefr-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.cefr-levels img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .cefr-intro {
        font-size: 0.9rem;
    }
    .cefr-levels {
        text-align: left;
    }
}

/* =========================================
   11. Demo Section
   ========================================= */
.demo-visual-wrapper {
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.demo-screen {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
}

.demo-header-bar {
    background: #f1f3f5;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    border-bottom: 1px solid #e0e0e0;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.demo-content-placeholder {
    height: 350px;
    display: flex;
    background: #f8f9fa;
}

.d-sidebar { width: 20%; background: #fff; border-right: 1px solid #eee; }
.d-main { width: 80%; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.d-question-box { display: flex; gap: 15px; }
.d-avatar { width: 50px; height: 50px; background: #ddd; border-radius: 50%; }
.d-bubble { flex: 1; height: 80px; background: #fff; border-radius: 10px; border: 1px solid #eee; }
.d-mic-ui { height: 60px; background: #fff; border-radius: 30px; display: flex; align-items: center; padding: 0 10px; justify-content: space-between; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.d-wave { height: 20px; width: 60%; background: repeating-linear-gradient(90deg, #ccc 0, #ccc 2px, transparent 2px, transparent 6px); }
.d-btn { width: 40px; height: 40px; background: #ff5f56; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: bold; }

.demo-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10,36,64,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================================
   12. Case Studies Section
   ========================================= */
.case-study {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: var(--border-subtle);
    border-left: 4px solid var(--color-primary);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.case-tag {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
}

.case-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Charts & Maps within Cases */
.chart-container {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 6px;
    width: 100%;
}

.chart-title { font-weight: 700; margin-bottom: 12px; }
.bar-bg { background: #e0e0e0; height: 24px; border-radius: 4px; overflow: hidden; }
.bar-fill {
    height: 100%;
    background: #999;
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding-left: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}
.bar-fill.highlight { background: var(--color-accent); }

.map-container { text-align: center; }
.map-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.map-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .case-body { flex-direction: row; }
    .case-desc { flex: 1; }
    .case-visual { flex: 1; }
    .map-image img { max-width: 80%; }
}

/* =========================================
   13. Pricing Section
   ========================================= */
.pricing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    background: white;
    padding: 40px;
    border: var(--border-subtle);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.pricing-card.recommended {
    border: 2px solid var(--color-accent);
    box-shadow: var(--shadow-card);
}

.badge {
    background: var(--color-primary);
    color: white;
    display: inline-block;
    padding: 4px 16px; 
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.badge-recommended { background: var(--color-accent); }

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 20px 0;
    font-family: var(--font-en);
}

.unit {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-left: 4px;
}

@media (min-width: 768px) {
    .pricing-wrapper { flex-direction: row; }
    .pricing-card { width: 320px; }
}

/* =========================================
   14. FAQ Section
   ========================================= */
details {
    background: white;
    margin-bottom: 16px;
    border-radius: 6px;
    padding: 20px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.2s;
}

details:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

summary {
    font-weight: 700;
    color: var(--color-primary);
    outline: none;
}

.faq-answer {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* =========================================
   15. Footer & CTA Section
   ========================================= */

/* --- CTA Section (Old Footer Style) --- */
/* #contact セクション固有の調整 */
#contact .footer-cta-wrapper {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.section-cta{
    padding: 40px 0;
}

.contact-text{
    text-align-last: center;
}

/* 補足テキストの微調整 */
.mt-10 { margin-top: 10px; }


/* --- New Footer (Links & Copyright) --- */
.site-footer {
    text-align: center;
    background-color: var(--color-white); /* 背景を白にして区別 */
    color: var(--color-text);
    padding: 40px 0;
    border-top: 1px solid #eee; /* 上部に薄い線を入れて区切りを明確に */
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: color 0.3s;
    text-decoration: none;
    position: relative;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* スマホ表示でのリンク調整（縦並び防止・適度な間隔） */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column; /* スマホでは縦並びで見やすく */
        gap: 15px;
    }

    .contact-text{
    text-align-last: left;
}
}

.copyright {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
}

/* スマホでCTAのテキストを中央寄せにしたい場合のユーティリティ */
@media (max-width: 768px) {
    /* もしCTAのテキストも中央揃えにしたい場合はこのクラスを使用 */
    .text-center-mobile-override {
        text-align: center !important;
    }
}

/* =========================================
   16. Animations
   ========================================= */
.fade-in, .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* =========================================
   17. Page Top Button
   ========================================= */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary); 
    color: white;
    border-radius: 50%; /* 丸くする */
    text-align: center;
    line-height: 50px; /* アイコンを上下中央に */
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4); /* ふんわりした影 */
    z-index: 2000; /* 他の要素より手前に */
    opacity: 0; /* 最初は隠す */
    visibility: hidden;
    transform: translateY(20px); /* 少し下に配置 */
    transition: all 0.3s ease; /* アニメーション設定 */
    cursor: pointer;
}

/* 表示状態のクラス */
.page-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ホバー時の動き */
.page-top-btn:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-5px); /* 少し浮き上がる */
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.6);
}

/* スマホでの位置調整 */
@media (max-width: 768px) {
    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 1rem;
    }
}