/* Subsidy Page Styles - IT導入補助金ページ専用のスタイル */

/* ページヘッダー */
.page-header {
    background-image: url('../images/header-bg/subsidy-header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 59, 131, 0.7);
    z-index: 1;
}

.page-header .breadcrumb {
    position: absolute;
    top: 20px;
    left: 40px;
    color: #fff;
    font-size: 13px;
    z-index: 2;
    text-align: left;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-header .breadcrumb a {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
    color: #fff;
}

.breadcrumb-separator,
.breadcrumb-current {
    color: #fff;
    opacity: 0.7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* セクション共通スタイル */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

.section-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ラベルスタイル */
.about-label,
.frame-label,
.schedule-label {
    display: block;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 10px;
}

/* IT導入補助金とは？セクション */
.subsidy-about {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.subsidy-flow {
    margin: 50px 0;
    text-align: center;
}

.subsidy-flow-img {
    max-width: 100%;
    height: auto;
}

.notice-box {
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    padding: 30px;
    margin: 50px auto 0;
    max-width: 900px;
    text-align: center;
}

.notice-box p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.notice-small {
    font-size: 14px !important;
    color: var(--light-text);
}

/* 補助枠について */
.subsidy-frame {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* タブナビゲーション */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex: 1;
    text-align: center;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.tab-btn:hover {
    color: var(--primary-color);
}

/* タブコンテンツ */
.tab-content {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.tab-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: left;
    margin-bottom: 30px;
}

/* 補助金テーブル */
.subsidy-table {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.table-header {
    background-color: #333;
    color: var(--white);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    min-height: 60px;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    background-color: #f8f9fa;
    padding: 20px;
    font-weight: 700;
    color: var(--text-color);
    min-width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-value {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    line-height: 1.6;
    text-align: center;
    justify-content: center;
}

.table-value.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.table-value.two-column span {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    min-height: 60px;
}

.table-value.two-column span:last-child {
    border-right: none;
}

.table-value.full-width {
    text-align: center;
    justify-content: center;
    padding: 20px;
}

/* テーブル注釈 */
.table-notes {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
}

.table-notes p {
    margin-bottom: 8px;
}

.table-notes p:last-child {
    margin-bottom: 0;
}

.table-notes .highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* 申請スケジュール */
.schedule-section {
    padding: 80px 0;
    background-color: var(--white);
}

.schedule-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-table {
    max-width: 900px;
    margin: 0 auto 50px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-table:last-child {
    margin-bottom: 0;
}

.schedule-table-title {
    background-color: #333;
    color: var(--white);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.schedule-header {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    background-color: #999;
    color: var(--white);
    font-weight: 700;
}

.schedule-header .schedule-col {
    padding: 15px 10px;
    text-align: center;
    border-right: 1px solid var(--white);
    font-size: 16px;
}

.schedule-header .schedule-col:last-child {
    border-right: none;
}

.schedule-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-label-col {
    background-color: #333;
    color: var(--white);
    padding: 15px 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.schedule-col {
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.4;
}

.schedule-col:last-child {
    border-right: none;
}

/* JavaScript用のクラス */
.hidden {
    display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .subsidy-table,
    .schedule-table {
        margin: 0 20px 30px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tab-navigation {
        flex-direction: column;
        max-width: 100%;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--primary-color);
        border-right: none;
    }
    
    .table-value.two-column {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .table-value.two-column span {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        min-height: auto;
    }
    
    .table-value.two-column span:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .main {
        padding-top: 20px;
    }

    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header .breadcrumb {
        top: 15px;
        left: 20px;
        font-size: 12px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .subsidy-about,
    .subsidy-frame,
    .schedule-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-description,
    .tab-description,
    .schedule-description {
        font-size: 15px;
    }
    
    .notice-box {
        padding: 20px;
        margin: 30px 0 0;
    }
    
    .notice-box p {
        font-size: 14px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .table-row {
        flex-direction: column;
        min-height: auto;
    }
    
    .table-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-width: auto;
        padding: 15px;
    }
    
    .table-value {
        padding: 15px;
    }
    
    .schedule-header,
    .schedule-row {
        grid-template-columns: 1fr;
    }
    
    .schedule-header .schedule-col,
    .schedule-label-col,
    .schedule-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 15px;
    }
    
    .schedule-header .schedule-col:last-child,
    .schedule-col:last-child {
        border-bottom: none;
    }
    
    .subsidy-table,
    .schedule-table {
        margin: 0 0 30px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0 30px;
        margin-top: 80px;
    }
    
    .subsidy-about,
    .subsidy-frame,
    .schedule-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .section-description,
    .tab-description,
    .schedule-description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .notice-box {
        padding: 15px;
    }
    
    .notice-box p {
        font-size: 13px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .table-header,
    .schedule-table-title {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .table-label,
    .table-value {
        padding: 12px;
        font-size: 13px;
    }
    
    .schedule-header .schedule-col,
    .schedule-label-col,
    .schedule-col {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .table-notes {
        font-size: 12px;
    }
}