/* 
 * メインスタイルシート
 * FIVE STAR CLUB - Xサーバー対応版
 */

/* ===== 基本設定 ===== */
:root {
    /* カラーパレット */
    --color-gold: #D4AF37;
    --color-gold-light: #F2E6C2;
    --color-gold-dark: #AA8C2C;
    --color-black: #000000;
    --color-dark: #1A1A1A;
    --color-gray-dark: #333333;
    --color-gray: #666666;
    --color-gray-light: #CCCCCC;
    --color-white: #FFFFFF;
    --color-off-white: #F9F9F9;
    
    /* フォント */
    --font-primary: 'Playfair Display', 'Noto Serif JP', serif;
    --font-secondary: 'Noto Sans JP', sans-serif;
    
    /* サイズ */
    --container-width: 1200px;
    --header-height: 80px;
    --footer-height: 300px;
}

/* ===== リセットとベース ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-gold);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold-light);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-gold);
}

/* ===== ヘッダー ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--color-gold);
    font-style: italic;
}

.main-nav {
    display: flex;
}

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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--color-white);
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover,
.nav-menu li.active a {
    color: var(--color-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

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

.login-button {
    margin-left: 2rem;
}

.btn-login {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--color-gold-dark);
    color: var(--color-white);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-nav-toggle .bar:nth-child(1) {
    top: 0;
}

.mobile-nav-toggle .bar:nth-child(2) {
    top: 9px;
}

.mobile-nav-toggle .bar:nth-child(3) {
    top: 18px;
}

.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem 0;
    z-index: 999;
}

.mobile-nav-list li {
    text-align: center;
    margin: 1rem 0;
}

.mobile-nav-list a {
    color: var(--color-white);
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-list a:hover,
.mobile-nav-list li.active a {
    color: var(--color-gold);
}

.mobile-login {
    text-align: center;
    margin-top: 1rem;
}

.mobile-login-btn {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ===== ヒーローセクション ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.hero-button {
    margin-top: 2rem;
}

/* ===== コンセプトセクション ===== */
.concept-section {
    padding: 6rem 0;
    background-color: var(--color-black);
}

.concept-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -1rem;
}

.concept-card {
    flex: 1;
    min-width: 300px;
    margin: 1rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.concept-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.concept-card p {
    color: var(--color-white);
}

/* ===== サービスプランセクション ===== */
.plans-section {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.plan-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -1rem;
}

.plan-card {
    flex: 1;
    min-width: 300px;
    margin: 1rem;
    padding: 2.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
}

.plan-features {
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-white);
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.plan-button {
    margin-top: 2rem;
}

/* ===== 会員様の声セクション ===== */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--color-black);
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -1rem;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    margin: 1rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-white);
}

.testimonial-author {
    text-align: right;
    color: var(--color-gold);
}

/* ===== FAQセクション ===== */
.faq-section {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-gold);
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
}

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

.faq-answer p {
    margin: 0;
    color: var(--color-white);
}

/* ===== フッター ===== */
footer {
    background-color: var(--color-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-gold);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-section p {
    color: var(--color-gray-light);
    margin-bottom: 0.5rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--color-gray-light);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

/* ===== ボタン ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== セキュリティバッジ ===== */
.security-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 100;
}

/* ===== アニメーション ===== */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== フラッシュメッセージ ===== */
.flash-message {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 999;
    text-align: center;
}

.flash-success {
    background-color: rgba(56, 142, 60, 0.9);
}

.flash-error {
    background-color: rgba(211, 47, 47, 0.9);
}

.flash-warning {
    background-color: rgba(245, 124, 0, 0.9);
}

.flash-info {
    background-color: rgba(25, 118, 210, 0.9);
}

.flash-message p {
    margin: 0;
    color: var(--color-white);
}

.close-flash {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.2rem;
}
