/* 農業者年金Q&Aナビゲーター専用CSS */
/* すべてのクラスに qa-nav- プレフィックスを付けて既存サイトと競合しないようにする */


.qa-nav-container {
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.qa-nav-header {
    text-align: center;
    margin-bottom: 30px;
    background: #2c5530;
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qa-nav-header-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.qa-nav-header-desc {
    font-size: 14px;
    opacity: 0.9;
}

.qa-nav-breadcrumb {
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.qa-breadcrumb-item {
    display: inline;
    color: #2c5530;
    cursor: pointer;
    transition: color 0.2s;
}

.qa-breadcrumb-item:hover {
    color: #1a3320;
    text-decoration: underline;
}

.qa-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.qa-breadcrumb-current {
    color: #666;
    font-weight: bold;
}

.qa-nav-step {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    animation: qaFadeIn 0.4s ease-in-out;
}

.qa-nav-step.active {
    display: block;
}

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

.qa-nav-step-title {
    color: #2c5530;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 0px;
}

.qa-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.qa-nav-card {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border: 2px solid #d0e7d2;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qa-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4a7c59;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.qa-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 124, 89, 0.15);
    border-color: #4a7c59;
}

.qa-nav-card:hover::before {
    transform: scaleY(1);
}

.qa-nav-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #4a7c59;
    border-radius: 50%;
    margin-bottom: 15px;
    position: relative;
}

.qa-nav-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: white;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.qa-icon-search::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"); }
.qa-icon-user::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.qa-icon-calendar::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.qa-icon-money::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Ctext x='50%25' y='70%25' text-anchor='middle' font-size='18' font-weight='normal' stroke='white' stroke-width='0.5' fill='white'%3E¥%3C/text%3E%3C/svg%3E"); }
.qa-icon-chart::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E"); }
.qa-icon-file::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E"); }
.qa-icon-gift::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.qa-icon-stop::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M4.9 4.9l14.2 14.2'/%3E%3C/svg%3E"); }
.qa-icon-heart::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.qa-icon-doc::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.qa-icon-book::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }

.qa-nav-card-title {
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 8px;
    font-size: 18px;
}

.qa-nav-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.qa-nav-back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    font-family: inherit;
}

.qa-nav-back-btn:hover {
    background: #5a6268;
}

.qa-nav-result {
    display: none;
    background: #f8f9fa;
    border-left: 4px solid #4a7c59;
    padding: 25px;
    border-radius: 0 10px 10px 0;
    margin-top: 20px;
}

.qa-nav-result-title {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.qa-nav-result-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s;
}

.qa-nav-result-item:hover {
    transform: translateX(5px);
}

.qa-nav-result-item a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-nav-result-item a::before {
    content: '→';
    color: #4a7c59;
    font-weight: bold;
}

.qa-nav-result-item a:hover {
    color: #1a3320;
}

.qa-nav-result-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
 /* タブ切り替えスタイル */
  .tab-buttons {
      border-bottom: 2px solid #ddd;
      margin-bottom: 20px;
      text-align: left;
      display: flex;
    }
    
    .tab-buttons button {
      background: #f0f0f0;
      border: 1px solid #ddd;
      border-bottom: 3px solid #ddd;
      padding: 10px 20px;
      cursor: pointer;
      font-size: 16px;
      text-align: left;
      transition: background 0.3s ease;
      display: flex;
      align-items: center;
    }
    
    .tab-buttons button:hover {
      background: #e0e0e0;
    }
    
    .tab-buttons button.active {
      background: white;
      border-bottom-color: #2e7d32;
      font-weight: bold;
    }
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
    }
.qa-detail-btn {
    display: inline-block;
    background: #C73C0C;
    color: white !important;
    padding: 6px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13px;
    margin-top: 8px;
    transition: background 0.3s ease;
    float: right;
}

.qa-detail-btn:hover {
    background: #7a0a1c;
}

.qa-detail-btn::before {
    content: none !important;
}

.qa-nav-result-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s;
    overflow: hidden;
}

.qa-nav-result-item a:first-child {
    display: block;
    margin-bottom: 8px;
}
.qa-nav-step-title {
    color: #2c5530;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 0;
	width: 100%;
	text-align: left !important;
}

@media (max-width: 768px) {
    .qa-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .qa-nav-header-title {
        font-size: 22px;
    }
    

    
    .qa-nav-container {
        padding: 10px;
    }
}