/*
 * Common Styles
 * Shared styles for header, footer, and navigation across all pages
 */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    min-width: 44px;
    min-height: 44px;
}

.btn img {
    flex-shrink: 0;
}

.btn-icon-dark {
    filter: brightness(0);
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

.btn-white:hover {
    box-shadow: var(--shadow-lg);
}

.btn-icon-only {
    padding: 12px;
    min-width: 44px;
    background-color: var(--secondary);
}

.btn-icon-only:hover {
    background-color: var(--gray-light);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-buttons {
    display: none;
    gap: 12px;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 80px;
    display: none;
    z-index: 1001;
}

.language-switcher.active .language-dropdown {
    display: block;
}

.lang-item,
.language-option {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.language-option:hover {
    background-color: var(--gray-light);
}

.current-lang,
.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    margin-bottom: 24px;
}

.nav-mobile li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.nav-mobile .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .nav-buttons {
        display: flex;
    }
    .nav-hamburger {
        display: none;
    }
}

/* Footer */
.site-footer {
    width: 100%;
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-left {
    height: 100px;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    order: 2;
}

@media (min-width: 768px) {
    .footer-left {
        padding: 0;
        height: 100%;
        order: 1;
    }
}

.logo {
    width: 100vw;
    object-fit: cover;
    height: 100%;
    display: block;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    overflow: visible;
}

@media (min-width: 768px) {
    .logo {
        width: auto;
    }
}

.copyright {
    font-size: 12px;
    line-height: 1;
    color: #333;
    position: absolute;
    bottom: 43px;
    left: 0;
    background: #fff;
}

@media (min-width: 768px) {
    .copyright {
        bottom: 16px;
    }
}

.footer-right {
    padding: 48px 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
    order: 1;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-right {
        padding: 0;
        flex-direction: row;
        align-items: center;
        order: 2;
        gap: 30px;
    }
}

/* ナビゲーションリンク */
.footer-nav {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.footer-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* コンタクトボタン */
.contact-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background-color: #1e6ee4;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #134e9e;
}

.wpcf7-form-control-wrap input {
    width: 100%;
    height: 40px;
    padding: 8px;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.wpcf7-form-control-wrap textarea {
    padding: 8px;
    width: 100%;
    border: 1px solid #e5e7eb;
}

.wpcf7-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background-color: #1e6ee4;
    color: #fff;
    text-decoration: none;
    border-radius: 26px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.wpcf7-submit:hover {
    background-color: #134e9e;
}