/* Common Styles - 全ページ共通のスタイル */

/* ========================================
   Base Styles & Variables
======================================== */
:root {
    /* Colors */
    --primary-color: #003B83;
    --secondary-color: #0F2350;
    --accent-color: #FF7800;
    --light-bg: #F5F8FB;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    
    /* Fonts */
    --main-font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout */
    --container-width: 1400px;
    --sidebar-width: 320px;
    --content-width: calc(var(--container-width) - var(--sidebar-width) - 40px);
    --header-height: 64px;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
}

/* ========================================
   Container & Layout
======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Common Elements
======================================== */
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
    color: var(--text-color);
}

.more-link-container {
    text-align: center;
    margin-top: 30px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.more-link i {
    margin-left: 8px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #002c6a;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f0f5ff;
}

/* Labels */
.blue-label {
    display: block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 15px auto;
}

.free-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 10px;
}

/* ========================================
   Header
======================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
}

.header-logo-area {
    flex: 0 0 auto;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Navigation */
.global-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-list li a:hover {
    color: var(--primary-color);
}

/* Header Contact */
.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-tel {
    display: none; /* PCでは非表示、必要に応じてモバイルで表示 */
}

.header-tel a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.header-time {
    font-size: 12px;
    color: var(--light-text);
    font-weight: 400;
    margin-top: 2px;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.header-buttons .btn {
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
}

.header-buttons .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.header-buttons .btn-secondary:hover {
    background: #f0f5ff;
}

.header-buttons .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.header-buttons .btn-primary:hover {
    background: #0050b3;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 7px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle span:last-child {
    margin-bottom: 0;
}

/* Mobile Global Navigation */
.mobile-global-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #222;
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    animation: fadeIn 0.2s;
}

.mobile-global-nav.active {
    display: flex;
}

.mobile-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.menu-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin: 32px 0 0 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-list li a {
    font-size: 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    width: 100vw;
    text-align: center;
    transition: color 0.3s ease;
}

.mobile-nav-list li a:hover {
    color: var(--accent-color);
}

.mobile-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 80%;
    margin: 32px auto 0 auto;
}

.mobile-header-buttons .btn {
    width: 100%;
    font-size: 18px;
    padding: 14px 0;
    border-radius: 24px;
}

/* ========================================
   Subsidy Banner
======================================== */
.subsidy-banner {
    background-color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

.subsidy-banner a {
    color: var(--white);
    font-weight: 500;
    display: block;
    font-size: 20px;
    text-decoration: none;
}

.subsidy-banner a:hover {
    text-decoration: underline;
}

/* ========================================
   Main Content Area
======================================== */
.main {
    padding: 40px 0;
}

.main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Breadcrumb
======================================== */
.breadcrumb {
    background: none;
    border: none;
    box-shadow: none;
    padding: 15px 0;
    margin: 0;
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--light-text);
}

.breadcrumb-current {
    color: var(--light-text);
}

/* ========================================
   Page Header & Title
======================================== */
.page-title-section {
    text-align: center;
    padding: 40px 0 60px 0;
    background-color: var(--white);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.page-header--bg-white {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header--bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 59, 131, 0.7);
    z-index: 1;
}

.page-header--bg-white .container,
.page-header--bg-white .breadcrumb,
.page-header--bg-white .page-title {
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 14px;
    color: var(--white);
}

.cta-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 50px;
    color: var(--white);
}

.cta-title-sp {
    display: none;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 80px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(to right, #F25500, #FFA600);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    color: var(--white);
    text-decoration: none;
}

.button-paper {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 75px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.button-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.cta-button .free-label {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 0;
}

.cta-tel {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    color: var(--text-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cta-tel-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.tel-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.tel-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tel-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tel-number:hover {
    color: var(--primary-color);
}

.tel-number i {
    margin-right: 10px;
}

.tel-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tel-time {
    font-size: 16px;
    color: var(--light-text);
}

.faq-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-link:hover {
    color: #002c6a;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

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

.company-info {
    margin-bottom: 20px;
}

.company-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.company-address {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.copyright {
    font-size: 12px;
    color: #999;
}

.footer-nav {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-nav-column {
    flex: 1;
    min-width: 150px;
}

.footer-nav-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-column ul li {
    margin-bottom: 15px;
}

.footer-nav-column ul li a {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-nav-column ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

.footer-nav-column ul li a:hover {
    color: var(--white);
}

.footer-nav-column ul li a:hover:before {
    border-color: var(--white);
}

/* ========================================
   Form Validation Styles
======================================== */
.error {
    border-color: #ff3860 !important;
}

.error-message {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
}

.form-error {
    background-color: #fff5f7;
    color: #ff3860;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 14px;
}

.form-check.error label {
    color: #ff3860;
}

/* ========================================
   Utility Classes
======================================== */
.mobile-only {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   Responsive Styles
======================================== */

/* Large screens (1200px and down) */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
    
    .header-tel {
        display: none;
    }
}

/* Medium screens (992px and down) */
@media (max-width: 992px) {
    .header-inner {
        height: 56px;
        padding: 0 12px;
    }
    
    .global-nav,
    .header-contact {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .header-logo-img {
        width: 130px;
    }
    
    .main .container {
        padding: 0 20px;
    }
    
    /* CTA Mobile Adjustments */
    .cta-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .cta-title-pc {
        display: none;
    }
    
    .cta-title-sp {
        display: block;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .cta-button {
        width: 90%;
        max-width: 400px;
        height: 70px;
        font-size: 18px;
    }
    
    .button-paper {
        left: -20px;
        width: 60px;
    }
    
    .button-text {
        font-size: 18px;
    }
    
    .cta-tel {
        padding: 25px 20px;
    }
    
    .cta-tel-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .tel-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .tel-number {
        font-size: 28px;
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --header-height: 56px;
    }
    
    .main {
        padding-top: 80px;
    }
    
    .main .container {
        padding: 0 20px;
    }
    
    .breadcrumb {
        margin-bottom: 20px;
    }
    
    .page-title-section {
        padding: 30px 0 40px 0;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-section {
        padding: 40px 15px;
    }
    
    .tel-title {
        font-size: 16px;
    }
    
    .tel-time {
        font-size: 14px;
    }
    
    .faq-link {
        font-size: 14px;
    }
}

/* Extra small screens (576px and down) */
@media (max-width: 576px) {
    .main .container {
        padding: 0 15px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Very small screens (480px and down) */
@media (max-width: 480px) {
    .cta-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .cta-button {
        height: 65px;
        font-size: 16px;
    }
    
    .button-paper {
        left: -25px;
        width: 55px;
    }
    
    .button-text {
        font-size: 16px;
    }
    
    .cta-button .free-label {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .tel-number {
        font-size: 24px;
    }
}