/* グランパドドゥ 利用ガイド CSS */
:root {
    --primary-color: #e41056;
    --secondary-color: #f4a0b4;
    --accent-color: #f8d0d8;
    --light-color: #fdf7f7;
    --text-color: #333333;
    --dark-color: #444;
    --border-color: #dddddd;
    --success-color: #4caf50;
    --warning-color: #ff9800;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヘッダー */
.header {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.header-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* メインコンテンツ */
.main-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 500;
}

.main-title:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.guide-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    line-height: 1.8;
}

/* ナビゲーションメニュー */
.guide-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .guide-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .guide-nav {
        grid-template-columns: 1fr;
    }
}

.guide-nav-item {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    outline: none;
}

.guide-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

.guide-nav-item:hover,
.guide-nav-item:focus {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.guide-nav-item:hover::before,
.guide-nav-item:focus::before {
    transform: scale(2);
    opacity: 1;
}

.guide-nav-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.guide-nav-item:hover i,
.guide-nav-item:focus i {
    transform: scale(1.2);
}

.guide-nav-item span {
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* コンテンツセクション */
.guide-section {
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.section-header i {
    margin-right: 0.8rem;
}

.section-content {
    padding: 1.5rem;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul, 
.section-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 表スタイル */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.guide-table th, 
.guide-table td {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
}

.guide-table th {
    background-color: var(--light-color);
    text-align: left;
    font-weight: 500;
}

/* 注意書き */
.notice {
    background-color: var(--light-color);
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

/* よくある質問 */
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
}

.faq-question::before {
    content: "Q.";
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding-left: 1.5rem;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* モバイル向けFAQ折りたたみスタイル */
@media (max-width: 767px) {
    .faq-question {
        padding-right: 30px;
    }
    
    .faq-question::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    .faq-question[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* テキスト強調 */
.text-bold {
    font-weight: 700;
}

.text-accent {
    color: var(--primary-color);
}

/* 戻るボタン */
.back-to-top {
    text-align: center;
    margin: 2rem 0;
}

.back-to-top a {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-to-top a:hover,
.back-to-top a:focus {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(228, 16, 86, 0.3);
    transform: translateY(-2px);
}

/* クリック時のアニメーション */
.clicked {
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* フッター */
.guide-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
}

/* アクセシビリティ改善 */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* タブレット用調整 */
@media (min-width: 768px) and (max-width: 1023px) {
    .guide-section {
        margin-bottom: 2.5rem;
    }
    
    .section-content {
        padding: 1.25rem;
    }
}

/* モバイル用調整 */
@media (max-width: 767px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .guide-section {
        margin-bottom: 2rem;
    }
    
    .section-header {
        padding: 0.8rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        margin: 0;
        z-index: 99;
    }
    
    .back-to-top a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .back-to-top a span {
        display: none;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2a2a2a;
        --text-color: #eaeaea;
        --border-color: #444;
        --dark-color: #1a1a1a;
    }
    
    body {
        background-color: #1f1f1f;
    }
    
    .guide-section,
    .section-content {
        background-color: #252525;
    }
    
    .notice {
        background-color: #333;
    }
}

/* 印刷用スタイル */
@media print {
    body {
        font-size: 12pt;
        background: none;
    }
    
    .container {
        max-width: 100%;
    }
    
    .guide-nav,
    .back-to-top {
        display: none;
    }
    
    .guide-section {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .section-header {
        background-color: #f5f5f5;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}

/* アニメーション対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 