/*
Theme Name: Akords Theme
Author: AI Assistant
Description: Custom theme for Akords, featuring a floating balloon top page.
Version: 1.0.0
Text Domain: akords-theme
*/

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* 固定ヘッダーの高さ分を考慮 */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
}

* {
    box-sizing: border-box;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    position: fixed; /* absoluteからfixedに変更 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9); /* 透明度を少し下げて視認性を確保 */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px; /* 15pxから10pxに縮小 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo-img {
    height: 60px; /* 80pxから60pxに縮小 */
    width: auto;
    display: block;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px; /* 28pxから縮小 */
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* Navigation */
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #0056b3;
}

/* Dropdown */
.has-dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0 !important;
    display: flex;
    flex-direction: column !important;
    gap: 0 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #475569;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #0056b3;
    padding-left: 25px;
}

/* Contact Button */
.btn-contact {
    background: #0056b3;
    color: white !important;
    padding: 8px 20px; /* 10px 25pxから縮小 */
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease !important;
}

.btn-contact:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 80px 20px 20px;
    margin-top: 100px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* 白抜きにする場合 */
}

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

.company-address, .company-tel {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-title {
    color: white;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .site-nav {
        display: none; /* In a real scenario, implement a hamburger menu JS toggle */
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        z-index: 1100;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: #0056b3;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 2100;
    padding: 40px 30px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 40px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links > li {
    margin-bottom: 30px;
}

.mobile-nav-links a, 
.mobile-nav-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.mobile-nav-label {
    display: block;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-sub-links {
    list-style: none;
    padding-left: 15px;
    border-left: 2px solid #e2e8f0;
    margin-top: 10px;
}

.mobile-sub-links li {
    margin-bottom: 15px;
}

.mobile-sub-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
}

.mobile-btn-contact {
    display: block;
    text-align: center;
    background: #0056b3;
    color: white !important;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    /* Top Page Mobile Fixes */
    .hero-titles h2 {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    
    .akords-hero-section {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .balloons-container {
        gap: 40px;
    }
}

