@charset "utf-8";

/* ===== グローバルスタイル ===== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 80px 0 0 0;
    font-family: sans-serif;
    background: #fff;
}

/* ===== ヘッダー ===== */
.header {
    background-color: #fff;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-logo a {
    display: block;
    text-decoration: none;
}

.header-logo img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.header-logo a:hover img {
    opacity: 0.8;
}

.header-nav {
    margin: 0 4rem 0 auto;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.header-menu li {
    position: relative;
}

.header-menu a {
    text-decoration: none;
    color: #004A78;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
    display: inline-block;
    padding: 10px 0;
}

.header-menu .has-submenu > a {
    padding-right: 20px;
}

.header-menu a:hover {
    color: #004A78;
    opacity: 0.7;
}

/* PC版のサブメニュー */
.header-menu .submenu-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.header-menu .submenu-toggle .arrow {
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #004A78;
    border-bottom: 2px solid #004A78;
    transform: rotate(45deg);
    position: absolute;
    top: 5px;
    left: 5px;
    transition: transform 0.3s;
}

.header-menu .submenu-toggle.active .arrow {
    transform: rotate(-135deg);
    top: 8px;
}

.header-menu .submenu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    background: #fff;
    min-width: 280px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.header-menu .submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
}

.header-menu .submenu.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-menu .submenu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

.header-menu .submenu li:last-child {
    border-bottom: none;
}

.header-menu .submenu a {
    font-size: 0.9rem;
    padding: 12px 15px;
    line-height: 1.4;
    display: block;
    white-space: nowrap;
    transition: all 0.3s;
    border-radius: 4px;
}

.header-menu .submenu a:hover {
    background: #f8f8f8;
    opacity: 1;
}

.header-contact-btn img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.header-contact-btn a:hover img {
    opacity: 0.8;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #004A78;
    position: absolute;
    transition: all 0.3s;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
    bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 999;
}

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

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e0e0e0;
}

.mobile-menu li {
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu a {
    text-decoration: none;
    color: #004A78;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    padding: 15px;
    background: #fff;
    transition: background-color 0.3s;
}

.mobile-menu a:active {
    background: #f5f5f5;
}

.mobile-menu .has-submenu {
    margin-bottom: 0;
}

.mobile-menu .has-submenu > a {
    display: inline-block;
    width: calc(100% - 50px);
}

.mobile-menu .submenu-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    border-left: 1px solid #e0e0e0;
}

.mobile-menu .submenu-toggle .arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #004A78;
    border-bottom: 2px solid #004A78;
    transform: rotate(45deg);
    position: absolute;
    top: 15px;
    left: 18px;
    transition: transform 0.3s;
}

.mobile-menu .submenu-toggle.active .arrow {
    transform: rotate(-135deg);
    top: 20px;
}

.mobile-menu .submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f8f8;
    overflow: hidden;
}

.mobile-menu .submenu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .submenu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu .submenu li:last-child {
    border-bottom: none;
}

.mobile-menu .submenu a {
    font-size: 0.95rem;
    padding: 12px 15px;
    line-height: 1.4;
    color: #004A78;
    background: #f8f8f8;
}

.mobile-contact-btn {
    margin-top: 10px;
    text-align: center;
    padding: 0 10px;
}

.mobile-contact-btn img {
    width: 95%;
    max-width: 400px;
    height: auto;
    transition: opacity 0.3s;
}

.mobile-contact-btn a:hover img {
    opacity: 0.8;
}

/* ===== ページタイトル ===== */
.contact-title {
    color: #004A78;
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 40px 0;
    letter-spacing: 0.05em;
    text-align: center;
}

/* ===== お問い合わせセクション ===== */
.contact {
    width: 100%;
    padding: 20px 0;
    text-align: center;
}

.contact img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

/* PC版・タブレット版用 */
.contact-banner-pc {
    display: inline-block !important;
    width: 80%;
    max-width: 100%;
    transition: opacity 0.3s;
}

.contact-banner-pc:hover {
    opacity: 0.8;
}

/* モバイル版用 */
.contact-banner-mobile {
    display: none !important;
    max-width: 100%;
    transition: opacity 0.3s;
}

.contact-banner-mobile:hover {
    opacity: 0.8;
}

/* ===== バナーリンクセクション ===== */
.line {
    width: 100%;
    padding: 0;
    margin: 0;
}

.line img {
    width: 100%;
    height: auto;
    display: block;
}

/* PC版・タブレット版用 */
.line-banner-pc {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s;
}

.line-banner-pc:hover {
    opacity: 0.8;
}

/* モバイル版用 */
.line-banner-mobile {
    display: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s;
}

.line-banner-mobile:hover {
    opacity: 0.8;
}

/* ===== フッター ===== */
.footer {
    background-color: #004A78;
    color: #fff;
    padding: 40px 5% 20px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

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

.footer-logo a {
    display: inline-block;
    transition: opacity 0.3s;
}

.footer-logo a:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-info .company-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info .company-address,
.footer-info .company-tel {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-info .company-tel a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-info .company-tel a:hover {
    opacity: 0.8;
}

.footer-right {
    flex: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-buttons-pc {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-buttons-pc img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.footer-buttons-pc a:hover img {
    opacity: 0.8;
}

.footer-buttons-mobile {
    display: none;
}

.footer-nav {
    width: 100%;
}

.footer-menu {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    align-items: center;
}

.footer-menu li {
    margin: 0;
    position: relative;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.footer-menu a:hover::after {
    width: calc(100% - 24px);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* タブレット以下でハンバーガーメニュー表示 */
@media screen and (max-width: 1380px) {
    .contact-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .header-nav,
    .header-contact-btn {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

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

    /* タブレット版のフッターデザイン */
    .footer {
        padding: 35px 4% 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 35px;
        align-items: center;
    }

    .footer-left {
        max-width: 100%;
        text-align: center;
    }

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

    .footer-right {
        max-width: 100%;
        align-items: center;
        width: 100%;
    }

    .footer-nav {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .footer-menu a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

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

    .footer-buttons-pc img {
        height: 38px;
    }

    .footer-buttons-mobile {
        display: none;
    }

    .footer-copyright {
        margin-top: 25px;
        padding-top: 20px;
    }

    /* タブレット版でline-banner画像の設定（PC版と同じ） */
    .line-banner-pc {
        display: block !important;
    }

    .line-banner-mobile {
        display: none !important;
    }

    /* タブレット版でcontact-banner画像の設定（PC版と同じ） */
    .contact-banner-pc {
        display: inline-block !important;
    }

    .contact-banner-mobile {
        display: none !important;
    }
}

/* モバイル版（900px以下） */
@media screen and (max-width: 900px) {
    .contact-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    /* フッターのレスポンシブ対応 */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-right {
        max-width: 100%;
    }

    .footer-menu {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-menu li {
        width: calc(50% - 7.5px);
    }

    .footer-menu li::after {
        display: none;
    }

    .footer-menu a {
        padding: 8px 0;
    }

    .footer-menu a::after {
        display: none;
    }

    .footer-menu a:hover {
        background-color: transparent;
        opacity: 0.7;
    }

    .footer-buttons-pc {
        display: none;
    }

    .footer-buttons-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 30px 5% 0;
        margin-bottom: 25px;
    }

    .footer-buttons-mobile a {
        display: block;
        width: 85%;
        max-width: 350px;
        transition: transform 0.2s, opacity 0.3s;
    }

    .footer-buttons-mobile a:active {
        transform: scale(0.98);
    }

    .footer-buttons-mobile img {
        width: 100%;
        height: auto;
        display: block;
        transition: opacity 0.3s;
    }

    .footer-buttons-mobile a:hover img {
        opacity: 0.9;
    }

    /* モバイル版でline-banner画像を切り替え */
    .line-banner-pc {
        display: none !important;
    }

    .line-banner-mobile {
        display: block !important;
    }

    /* モバイル版でcontact-banner画像を切り替え */
    .contact-banner-pc {
        display: none !important;
    }

    .contact-banner-mobile {
        display: inline-block !important;
        width: 95%;
    }
}

/* 小さなモバイル版（479px以下） */
@media screen and (max-width: 479px) {
    .contact-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
}
