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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* ヘッダー */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    flex: 0 0 auto;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f0f4ff;
    color: #2c5aa0;
}

.language-toggle {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #2c5aa0;
    background: transparent;
    color: #2c5aa0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #2c5aa0;
    color: white;
}

/* メインコンテンツ */
main {
    margin-top: 80px;
}

/* セクション共通 */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c5aa0;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 40px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-line {
    background: #00c300;
    color: white;
}

.btn-line:hover {
    background: #00a300;
}

.btn-messenger {
    background: #0084ff;
    color: white;
}

.btn-messenger:hover {
    background: #006bd6;
}

.btn-email {
    background: #4285f4;
    color: white;
}

.btn-email:hover {
    background: #3367d6;
}

/* お問い合わせ方法の横並びレイアウト */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* お困りごとセクション */
.problems {
    background: #f8f9fa;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* メリットセクション */
.benefits {
    background: linear-gradient(135deg, #e8eef8 0%, #f0e8f8 100%);
    color: white;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    background: none;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    transition: none;
}

.benefit-item:hover {
    transform: none;
    box-shadow: none;
}

.benefit-card {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 0;
    color: #333;
}

.benefit-explanation {
    flex: 1;
}

.benefit-explanation p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .benefit-card {
        width: 100%;
        max-width: 250px;
    }
}

.problem-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-item p {
    font-size: 18px;
    color: #555;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 15px;
}

/* 私たちについてセクション */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.family-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.about-text li {
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.about-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.about-cta {
    text-align: center;
}

/* 料金案内 */
.pricing {
    background: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.pricing-item h3 {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.note {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 料金注意書き */
.pricing-notes-summary {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.important-note {
    font-size: 14px;
    color: #ffc107;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.important-note:last-child {
    margin-bottom: 0;
}

.pricing-cta {
    text-align: center;
}

/* 行政書士とは */
.what-is-gyoseishoshi {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.explanation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.explanation-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ご利用の流れ */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    color: #333;
}

/* よくある質問 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-item h3 {
    background: #2c5aa0;
    color: white;
    padding: 20px 30px;
    margin: 0;
    font-size: 18px;
}

.faq-item p {
    padding: 20px 30px;
    margin: 0;
    line-height: 1.8;
}

/* お問い合わせ */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact .section-title {
    color: white;
}

.contact-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* お問い合わせセクション - メイン（LINE） */
.contact-main {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-method {
    background: rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    max-width: 400px;
}

.contact-method:hover {
    transform: translateY(-5px);
}

/* LINEを優先表示 */
.contact-method.primary {
    background: linear-gradient(135deg, #00C300, #00B300);
    border: 3px solid #00FF00;
    box-shadow: 0 10px 30px rgba(0, 195, 0, 0.3);
}

.contact-method.primary:hover {
    box-shadow: 0 15px 40px rgba(0, 195, 0, 0.4);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-method h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* メール代替手段 */
.contact-alternative {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.alternative-text {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.btn-email-alt {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-email-alt:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* フッター */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-nav {
    margin-top: 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* レスポンシブ対応 - モバイル（max-width: 768px） */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .explanation-content p {
        font-size: 1rem;
        padding: 20px;
    }
    
    .problems-grid,
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* タッチターゲットサイズの確保（44px以上） */
    .nav-link {
        font-size: 14px;
        padding: 12px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 12px 16px;
        min-height: 44px;
        min-width: 80px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-link {
        padding: 12px 16px;
        min-height: 44px;
        display: inline-block;
        line-height: 20px;
    }
    
    .btn {
        padding: 15px 30px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    main {
        margin-top: 140px;
    }
}

/* レスポンシブ対応 - タブレット（769px - 1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav-link {
        padding: 10px 14px;
    }
}

/* 言語切り替え時のアニメーション */
[data-ja], [data-my] {
    transition: opacity 0.3s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}
