/* ==========================================
   来訪者マナーポータル - スタイルシート
   「絶妙にダサい役所感」デザイン
   ========================================== */

/* ==========================================
   リセット & グローバル設定
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
    background-color: #f8fafc;
}

/* ==========================================
   カラーパレット
   ========================================== */

:root {
    /* プライマリカラー */
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    
    /* セカンダリカラー */
    --secondary-gray: #64748b;
    
    /* 背景色 */
    --background: #f8fafc;
    --white: #ffffff;
    
    /* テキスト */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* ボーダー */
    --border: #e2e8f0;
}

/* ==========================================
   コンテナ
   ========================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   ヘッダー & ナビゲーション
   ========================================== */

.header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    flex-shrink: 0;
}

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

.site-logo {
    height: 45px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

/* モバイル: ロゴサイズ縮小 */
@media (max-width: 767px) {
    .site-logo {
        height: 36px;
    }
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: #f1f5f9;
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.nav-link-shop {
    background-color: #dcfce7;
    color: #065f46;
    font-weight: 600;
}

.nav-link-shop:hover {
    background-color: #bbf7d0;
    color: #064e3b;
}

.header-link {
    text-decoration: none;
    color: var(--text-primary);
}

.header-link:hover {
    color: var(--primary-blue);
}

/* ==========================================
   メインコンテンツ
   ========================================== */

.main {
    min-height: calc(100vh - 200px);
}

/* ==========================================
   ヒーローセクション
   ========================================== */

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

.hero-background {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

/* ==========================================
   ECバナーセクション
   ========================================== */

.ec-banner-section {
    margin-bottom: 50px;
}

.ec-banner {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.ec-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.ec-banner-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   サポートフローセクション
   ========================================== */

.support-flow-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border);
}

.support-flow {
    margin-top: 30px;
}

.support-flow-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* モバイル用ステップリスト（デフォルトは非表示） */
.support-flow-mobile {
    display: none;
}

.support-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-detail {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================
   相談窓口セクション
   ========================================== */

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

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================
   2択ボタン
   ========================================== */

.choice-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.choice-button {
    display: block;
    padding: 20px 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.choice-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.choice-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-2px);
}

.choice-secondary {
    background-color: var(--white);
    color: var(--text-primary);
    border-color: var(--border);
}

.choice-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--secondary-gray);
    transform: translateY(-2px);
}

.button-text {
    display: block;
}

/* ==========================================
   補足説明
   ========================================== */

.info-section {
    margin-top: 30px;
}

.info-box {
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-text:last-child {
    margin-bottom: 0;
}

/* ==========================================
   フッター
   ========================================== */

.footer {
    background-color: var(--white);
    border-top: 2px solid var(--border);
    padding: 40px 0 30px;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.footer-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
}

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

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* ==========================================
   プログレスバー（フォームページ用）
   ========================================== */

.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.progress-step.completed .step-circle {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: var(--border);
    margin: 0 10px;
    position: relative;
    top: -15px;
}

/* ==========================================
   フォームコンテナ
   ========================================== */

.form-container {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 40px;
    margin-bottom: 40px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ==========================================
   フォーム要素
   ========================================== */

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label.required::after {
    content: ' *';
    color: #dc2626;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-textarea {
    resize: vertical;
}

/* ==========================================
   ラジオボタン
   ========================================== */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover {
    background-color: #f8fafc;
    border-color: var(--secondary-gray);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 500;
    color: var(--primary-blue);
}

/* ==========================================
   チェックボックス
   ========================================== */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background-color: #f8fafc;
    border-color: var(--secondary-gray);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: var(--primary-blue);
}

/* ==========================================
   ボタン
   ========================================== */

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-blue-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--secondary-gray);
}

/* ==========================================
   エラーメッセージ
   ========================================== */

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
}

/* ==========================================
   文字数カウント
   ========================================== */

.char-count {
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ==========================================
   About & Manners ページ共通スタイル
   ========================================== */

/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 50px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* セクション */
.about-section {
    margin-bottom: 60px;
}

.about-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border);
}

.about-description {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.about-emphasis {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 40px 0;
}

.about-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

/* 課題カード（3枚横並び） */
.challenge-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.challenge-card {
    text-align: center;
}

.challenge-image {
    margin-bottom: 20px;
}

.challenge-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.challenge-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.8;
}

/* 目的カード（3枚縦並び） */
.purpose-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.purpose-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.purpose-icon {
    flex-shrink: 0;
}

.purpose-icon img {
    width: 80px;
    height: 80px;
    display: block;
}

.purpose-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.purpose-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* CTAセクション */
.cta-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.cta-box {
    background-color: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 17px;
}

/* マナー違反の実例ページ */
.manners-section {
    margin-bottom: 50px;
}

.manners-category-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-blue);
}

.manners-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.manners-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.manners-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.manners-list li::before {
    content: "・";
    position: absolute;
    left: 8px;
    color: var(--primary-blue);
    font-weight: 700;
}

/* ==========================================
   レスポンシブデザイン(モバイル)
   ========================================== */

@media (max-width: 767px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-logo {
        height: 36px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 10px 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-background {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .choice-button {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .progress-bar {
        max-width: 100%;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .progress-line {
        margin: 0 5px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    /* About & Manners ページ */
    .page-title {
        font-size: 24px;
    }
    
    .about-section-title {
        font-size: 20px;
    }
    
    .about-description {
        font-size: 15px;
        text-align: left;
    }
    
    .about-emphasis {
        font-size: 16px;
    }
    
    .challenge-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .purpose-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .purpose-title {
        font-size: 18px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .manners-category-title {
        font-size: 18px;
    }
    
    /* サポートフロー：モバイルではリスト表示 */
    .support-flow-desktop {
        display: none;
    }
    
    .support-flow-mobile {
        display: block;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .step-name {
        font-size: 16px;
    }
    
    .step-detail {
        font-size: 14px;
    }
}

/* ==========================================
   レスポンシブデザイン(タブレット)
   ========================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
}