
/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', "AR明朝体U", 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ヘッダー */
header, .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ヘッダー固定用のスペーサー */
.header-spacer {
    height: 50px; /* ヘッダーの高さに合わせて調整 */
    display: block;
    width: 100%;
}

.header-banner {
    background-image: url('../images/banner_header.png?1756503722');
    background-size: cover;
    background-position: center;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

.header-user-welcome {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
}

/* 管理者モード表示 */
.header-user-welcome.admin-mode {
    background-color: rgba(220, 20, 20, 0.8);
    border: 1px solid #ffcc00;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.admin-badge {
    display: inline-block;
    margin-left: 5px;
    background-color: #ffcc00;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: none;
}

/* ナビゲーション */
nav {
    background-color: #0078bf;
    padding: 0;
    width: 100%;
}

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

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

.logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: flex-end;
}

.nav-menu li {
    margin-left: 15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-menu li.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: block;
    padding: 6px 10px;
    white-space: nowrap;
    position: relative;
}

.nav-menu a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* アクティブ状態のメニュー項目 */
.nav-menu li.active a {
    font-weight: bold;
    color: white;
    border-bottom: 2px solid white;
}

/* メニュートグルボタン */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* モバイルメニュー */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -280px; /* 初期位置は画面外 */
    width: 280px;
    height: 100vh;
    background-color: #0078bf;
    z-index: 1000;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0; /* アクティブ時は画面内に表示 */
}

.mobile-menu ul {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

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

.mobile-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.mobile-menu li.active a {
    padding-left: 16px; /* 左のボーダーを考慮して内側に調整 */
}

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

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ボタンスタイル */
.btn-primary {
    background-color: #0078bf;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
    border: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #fff;
    color: #0078bf;
    border: 2px solid #0078bf;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #005f99;
}

.btn-secondary:hover {
    background-color: #f0f8ff;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #0078bf;
    outline: none;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* セクションタイトルデザイン */
.section-title {
    color: #0078bf;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 12px;
    text-align: center;
    letter-spacing: 0.03em;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 120, 191, 0.3);
}

/* セクションの下の余白調整 */
section {
    margin-bottom: 40px;
}

/* サブセクションタイトルスタイル */
.subsection-title {
    font-size: 1.2rem;
    color: #0078bf;
    margin: 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e3e3;
}

/* フッター */
footer {
    background-color: #2c2c2c;
    color: white;
    padding: 20px 0;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

/* インデックスページ用の拡張フッタースタイル */
.footer-container {
    padding-bottom: 20px;
}

.footer-container ~ .copyright {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-banner {
        height: 180px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
}

/* モバイルメニューの位置を調整 */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
}

/* モバイルメニューヘッダー */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.mobile-menu-close {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu ul {
    list-style: none;
    padding: 10px 0;
}

/* メニューオーバーレイ */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* メニュー開放時のスクロール防止 */
body.menu-open {
    overflow: hidden;
}

.user-welcome {
    color: white;
    font-size: 0.9rem;
    margin-right: 15px;
}

.mobile-menu-icon {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ログインボタンのスタイル */
.login-button {
    background-color: #ff0000;
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    border: 2px solid white;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: inline-block;
}

.login-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

/* モバイルでのログインボタンのスタイル調整 */
.mobile-menu .login-button {
    display: inline-block;
    margin-top: 5px;
}

/* メインビジュアル */
.main-visual {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-top: 0;
}

.main-visual-img {
    width: 100%;
    height: auto;
    display: block;
}

.main-visual-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-visual-message h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.main-visual-message p {
    font-size: 1.2rem;
}

/* メディアクエリ */
@media (max-width: 768px) {
    .main-visual-message h2 {
        font-size: 1.8rem;
    }
    
    .main-visual-message p {
        font-size: 1rem;
    }
}

/* ご相談の流れページのスタイル */
.flow-section {
    margin-bottom: 60px;
}

.flow-intro {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.flow-steps {
    position: relative;
}

.flow-step {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.flow-step-number {
    background-color: #0078bf;
    color: white;
    font-weight: bold;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-size: 1.2rem;
}

.flow-step-content {
    padding: 20px;
    flex: 1;
}

.flow-step-content h3 {
    color: #0078bf;
    margin-top: 0;
    margin-bottom: 10px;
}

.flow-fees {
    margin-bottom: 60px;
}

.fee-table {
    margin: 30px 0;
    overflow-x: auto;
}

.fee-table table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th, .fee-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.fee-table th {
    background-color: #0078bf;
    color: white;
}

.fee-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.note {
    background-color: #f8f9fa;
    border-left: 4px solid #0078bf;
    padding: 15px;
    font-size: 0.9rem;
    color: #666;
}

.faq-section {
    margin-bottom: 60px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 500px;
}

.cta-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.primary-button {
    background-color: #0078bf;
    color: white;
}

.primary-button:hover {
    background-color: #005a8c;
    transform: translateY(-2px);
}

.secondary-button {
    background-color: white;
    color: #0078bf;
    border: 2px solid #0078bf;
}

.secondary-button:hover {
    background-color: #e6f4ff;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
    }
    
    .flow-step-number {
        min-width: auto;
        padding: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
}

/* モバイルログインボタン */
.mobile-login-button {
    display: none;
    color: white;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 15px;
}

.mobile-login-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.mobile-login-button.active {
    background-color: rgba(255, 255, 255, 0.4);
}

.desktop-only {
    display: block;
}

/* レスポンシブデザイン */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-login-button {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
} 