/* HTML全体の高さを確保 */
html {
    height: 100%;
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ade377 0%, #1a2980 100%);
    background-size: cover; 
    background-position: center;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* 背景が表示されない場合のフォールバック */
    background-color: #1a2980;
}

/* 背景のフォールバック用の要素を追加 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ade377 0%, #1a2980 100%);
    z-index: -1;
    pointer-events: none;
}

/* コンテナスタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央揃えを追加 */
}

/* お問い合わせコンテナ */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 200px);
    padding: 20px;
    margin-top: 80px; /* デスクトップメニューの高さ分の余白 */
    box-sizing: border-box; /* ボックスサイズの計算方法を追加 */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .contact-container {
        margin-top: 60px;
        padding: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 200px);
    }
}

@media screen and (max-width: 480px) {
    .contact-container {
        margin-top: 50px;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 200px);
    }
}

@media screen and (max-width: 400px) {
    .contact-container {
        padding: 10px;
        margin-top: 80px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-description {
        font-size: 0.9rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-button {
        width: 100%;
        padding: 12px;
    }
    
    .social-button i {
        font-size: 1.2rem;
    }
    
    .social-button span {
        font-size: 0.9rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
}

/* お問い合わせカード */
.contact-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    margin: 0 auto 40px auto; /* 左右中央配置のための変更 */
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* ボックスサイズの計算方法を追加 */
}

@media screen and (max-width: 768px) {
    .contact-card {
        width: 95%;
        padding: 20px;
        margin: 0 auto; /* 中央寄せのための追加 */
    }
}

@media screen and (max-width: 480px) {
    .contact-card {
        width: 90%;
        padding: 15px;
        margin: 0 auto; /* 中央寄せのための追加 */
    }
}

/* 泡の装飾 */
.bubble-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    background-color: rgba(124, 252, 0, 0.15);
    top: -20px;
    right: -20px;
}

.bubble-2 {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 41, 128, 0.15);
    bottom: 30px;
    left: -20px;
}

.bubble-3 {
    width: 40px;
    height: 40px;
    background-color: rgba(124, 252, 0, 0.2);
    bottom: -10px;
    right: 50px;
}

/* タイトルとデスクリプション */
.contact-title {
    color: #1a2980;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.7);
}

.contact-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7cfc00, #1a2980);
    margin: 10px auto;
    border-radius: 2px;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
    position: relative;
    z-index: 1;
}

/* ソーシャルリンク */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.social-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-button i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.social-button span {
    font-size: 0.9rem;
}

/* レスポンシブ対応 - ソーシャルボタン */
@media screen and (max-width: 768px) {
    .social-links {
        flex-wrap: wrap;
    }
    
    .social-button {
        min-width: 140px;
    }
}

@media screen and (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-button {
        width: 100%;
        max-width: 200px;
    }
    
    .social-button i {
        font-size: 1.1rem;
    }
    
    .social-button span {
        font-size: 0.8rem;
    }
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.twitter {
    background-color: #1DA1F2;
    color: white;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* プライバシーポリシー関連スタイルを削除 */
.privacy-policy-card,
.privacy-toggle,
.privacy-policy,
.privacy-title,
.privacy-content,
.policy-section,
.policy-section h3,
.policy-section h3::before {
    display: none;
}

/* シンプルなフッター用スタイル */
.footer {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0;
    width: 100%;
    position: relative;
    border-top: 3px solid rgba(173, 227, 119, 0.5);
    flex-shrink: 0;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* フッター内の要素を中央揃え */
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%; /* 幅を100%に設定 */
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%; /* 幅を100%に設定 */
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ade377;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* レスポンシブ対応 - フッター */
@media screen and (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* iPhone SE用のフッター最適化 */
@media screen and (max-width: 320px) {
    .footer-container {
        padding: 12px 8px;
    }
    
    .footer-nav {
        gap: 15px;
    }
    
    .footer-nav a {
        font-size: 0.75rem;
        padding: 5px;
    }
    
    .copyright {
        font-size: 0.65rem;
        padding-top: 10px;
    }
}

/* デスクトップメニュースタイル */
.desktop-menu {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgb(0, 42, 255);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid #706fcf;
}

.desktop-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.desktop-menu li {
    margin: 0 20px;
}

.desktop-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.desktop-menu a:hover {
    color: #ffccf9;
}

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

.desktop-menu a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュースタイル */
.hamburger-menu {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: none; /* デフォルトでは非表示 */
}

/* メニューアイコン */
.menu-icon {
    width: 50px;
    height: 50px;
    background-color: #0518f1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #f4f4f4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 196, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 102, 196, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 196, 0);
    }
}

.menu-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ff9ee5 0%, transparent 70%);
    opacity: 0.5;
}

.menu-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* メニューアイコンの各部分 */
.menu-icon-part {
    width: 25px;
    height: 3px;
    background-color: #f7f4f6;
    margin: 3px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

/* アイコン装飾 */
.icon-decoration {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffff66;
    box-shadow: 0 0 5px rgba(255, 255, 102, 0.8);
}

.icon-decoration:nth-child(4) {
    top: 8px;
    right: 10px;
    animation: float 3s ease-in-out infinite;
}

.icon-decoration:nth-child(5) {
    bottom: 8px;
    left: 10px;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.2);
    }
}

/* アイコンがアクティブ時のアニメーション */
.menu-icon.active .menu-icon-part:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #ffffff;
}

.menu-icon.active .menu-icon-part:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .menu-icon-part:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #ffffff;
}

/* ナビゲーションメニュー */
.nav-menu {
    position: absolute;
    top: 65px;
    right: 0;
    width: 200px;
    background-color: rgba(5, 34, 255, 0.73);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 2px solid #ffff2f;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        transform: translateY(10px) scale(1.05);
    }
    80% {
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.nav-menu li {
    margin: 10px 0;
    text-align: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    background-color: rgba(229, 244, 66, 0.648);
}

.nav-menu a:hover {
    background-color: #ff66c4;
    color: white;
    transform: scale(1.05);
}

/* レスポンシブ対応 - モバイル表示 */
@media screen and (max-width: 768px) {
    .desktop-menu {
        display: none; /* モバイルでは非表示 */
    }
    
    .hamburger-menu {
        display: block; /* モバイルでは表示 */
    }
}


