/* === COMMON BASE STYLES === */
body {
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Meiryo, メイリオ, sans-serif;
    line-height: 1.8;
    color: #222222;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === COMMON HEADER STYLES === */

/* common.css の .page-header の変更案 */
.page-header {
    background-color: #ffffff;
    /* padding: 15px 0; */ /* ← 変更前 */
    padding: 8px 0;    /* ← 変更後例: 上下の余白を少し詰める */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 1000; 
}
.header-content-wrapper {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 28px; 
    font-weight: bold;
}
.logo a:hover {
    text-decoration: none;
}

.header-nav {
    display: none; 
}
.header-nav .desktop-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.header-nav .desktop-nav li {
    margin-left: 20px;
}
.header-nav .desktop-nav li a {
    text-decoration: none;
    color: #34495e;
    font-size: 14.5px;
    transition: color 0.2s ease-in-out;
}
.header-nav .desktop-nav li a:hover {
    color: #0062cc;
    text-decoration: none;
}

.hamburger-icon {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1101;
    position: relative;
}
.hamburger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-icon.is-open span {
     background-color: #2c3e50;
}
.hamburger-icon.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-icon.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.99);
    z-index: 1100;
    overflow-y: auto;
    padding-top: 80px;
    text-align: center;
    box-sizing: border-box;
}
.mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu ul li {
    margin-bottom: 30px;
}
.mobile-menu ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    display: block;
}
.mobile-menu ul li a:hover {
    color: #0062cc;
}

/* === COMMON CONTENT AREA STYLES === */
.page-content {
    flex: 1;
    padding-bottom: 70px;
}
.main-content-container {
    width: 90%;
    max-width: 960px;
    margin: 25px auto;
    background-color: white;
    padding: 40px 45px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
    box-sizing: border-box;
}

/* === COMMON LINK STYLES === */
.page-content a:not(.contact-button):not(.header-nav a):not(.mobile-menu a):not(.footer-nav a),
.page-content a:visited:not(.contact-button):not(.header-nav a):not(.mobile-menu a):not(.footer-nav a) {
    color: #0062cc;
    text-decoration: none;
}
.page-content a:hover:not(.contact-button):not(.header-nav a):not(.mobile-menu a):not(.footer-nav a),
.page-content a:focus:not(.contact-button):not(.header-nav a):not(.mobile-menu a):not(.footer-nav a) {
    text-decoration: underline;
    color: #004b99;
}
.page-content a:active:not(.contact-button):not(.header-nav a):not(.mobile-menu a):not(.footer-nav a) {
    color: #003a75;
}

/* === COMMON FOOTER STYLES === */
.page-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 30px 0;
    text-align: center;
    font-size: 14.5px;
    margin-top: auto;
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-nav li {
    margin: 5px 18px;
}
.footer-nav li a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.footer-nav li a:hover {
    color: #adb5bd;
    text-decoration: none;
}

.app-download-section {
    display: flex;
    justify-content: space-around;
    align-items: stretch; 
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.store-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    text-align: center;
    width: 45%;
    padding: 10px 0;
}
.store-download .store-badge-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin-bottom: 15px;
}
.store-download .store-badge-img {
    max-width: 180px;
    max-height: 55px;
    height: auto;
    object-fit: contain;
}
.store-download .qr-code {
    display: block;
    margin: 0 auto 10px auto;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: white;
}
.store-download .app-name { /* QRコード下のアプリ名表示用（共通） */
    font-size: 13px;
    color: #333;
    margin-top: 8px; 
    min-height: 1.5em; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section {
    margin-top: 40px;
    margin-bottom: 30px; 
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.contact-section h2, 
.company-info-section h2, 
.qr-block-after-contact h2, 
.qr-block-before-contact h2 { 
    font-size: 22px;
    color: #34495e;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}
.contact-section p {
    font-size: 16px; 
    color: #333;
    line-height: 1.9; 
    margin-bottom: 1em; 
    text-align: left;
}

@keyframes button-glitter-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #3A7BD5, #00D2FF, #6A82FB, #3A7BD5);
    background-size: 350% 350%;
    animation: button-glitter-gradient 4s ease infinite;
    color: #ffffff !important;
    padding: 16px 22px; 
    font-size: 20px;    
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 10px; 
    margin: 30px 0 0 0;  
    border: 3px solid #004085; 
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3), 
                0 1px 3px rgba(0, 0, 0, 0.1);       
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
    cursor: pointer;
    position: relative; 
    overflow: hidden;   
}

.contact-button:hover, .contact-button:focus {
    transform: translateY(-3px) scale(1.015); 
    box-shadow: 0 7px 18px rgba(58, 123, 213, 0.4), 
                0 3px 6px rgba(0, 0, 0, 0.15);
    border-color: #0052a8;    
    text-decoration: none; 
}

.contact-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 8px rgba(58, 123, 213, 0.25),
                0 1px 2px rgba(0, 0, 0, 0.1);
    border-color: #003366;
}

/* === COMMON MEDIA QUERIES (max-width: 768px) === */
@media (max-width: 768px) {
    .header-content-wrapper, .main-content-container {
         width: 95%;
    }
    .main-content-container {
         padding: 30px 15px;
         margin: 20px auto;
    }
    .logo a { font-size: 22px; }
    .page-header { padding: 10px 0; }

    /* Improved mobile readability for general paragraphs */
    p, li { /* Broad rule for general text readability on mobile */
        line-height: 1.85; /* Increased line height */
    }
    .service-section p, .service-section li, 
    .feature-detail p, .feature-detail li,
    .company-info-section p, 
    .security-text p,
    .contact-section p { 
        font-size: 15px; 
        text-align: left; 
        margin-bottom: 1.6em; /* Increased bottom margin */
    }
    .service-section ul li, .feature-detail ul li { 
        font-size: 15px;
        margin-bottom: 1em; 
    }


    .app-download-section { flex-direction: column; align-items: center; }
    .store-download { width: 80%; margin-bottom: 25px; }
    .store-download:last-child { margin-bottom: 0; }
    .store-download .store-badge-link { min-height: 45px; }
    .store-download .store-badge-img { max-width: 160px; max-height: 50px; }
    .store-download .qr-code { width: 100px; height: 100px; }
    .store-download .app-name { 
        font-size: 13px; 
        min-height: auto; 
        text-align: center; 
        margin-top: 8px; 
    }

    .contact-section h2,
    .company-info-section h2,
    .qr-block-after-contact h2,
    .qr-block-before-contact h2 { 
        font-size: 20px !important; 
        text-align: center; 
    }
    
    .contact-button {
        font-size: 18px; 
        padding: 15px 20px; 
        margin-top: 25px;
        border-width: 2px; 
    }

    .page-footer {
        padding: 20px 0 40px 0; 
        font-size: 13.5px;
    }
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }
    .footer-nav li {
        margin: 8px 0;
    }
}