/* ========================================= */
/* 基本レイアウト */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ========================================= */
/* セクション・見出し */
/* ========================================= */
.content-section {
    margin-bottom: 40px;
}

.section-header {
    background-color: #003366;
    color: white;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header::before {
    content: "|";
    font-size: 24px;
}

.subsection-header {
    color: #003366;
    font-size: 1.3rem;
    font-weight: bold;
    padding-left: 15px;
    border-left: 4px solid #003366;
    margin-bottom: 15px;
}

/* ========================================= */
/* CMSコンテンツ */
/* ========================================= */
.cms-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cms-field {
    margin-bottom: 30px;
}

.cms-field:last-child {
    margin-bottom: 0;
}

.cms-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #003366;
}

.cms-value {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.cms-value p {
    margin-bottom: 15px;
}

.cms-value p:last-child {
    margin-bottom: 0;
}

.cms-value h4 {
    color: #003366;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #003366;
}

.cms-value h5 {
    color: #003366;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cms-value .btn {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* ========================================= */
/* リスト */
/* ========================================= */
.merit-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.merit-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: #333;
}

.merit-list li::before {
    content: "- ";
    position: absolute;
    left: 0;
    color: #003366;
    font-weight: bold;
    font-size: 1.2rem;
}

.dot-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.dot-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: #333;
}

.dot-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #003366;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================= */
/* ボックス・ボタン */
/* ========================================= */
.highlight-box {
    background: #f0f8ff;
    border-left: 4px solid #003366;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box h5 {
    color: #003366;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
}

.highlight-box h5:first-child {
    margin-top: 0;
}

.detail-link {
    margin-top: 10px;
}

.detail-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.detail-link a:hover {
    color: #004499;
    text-decoration: underline;
}

/* ========================================= */
/* カード */
/* ========================================= */
.business-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.business-card:hover {
    transform: translateY(-2px);
}

a .business-card .business-title {
    color: #333;
}

a:hover .business-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.business-image {
    height: 150px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.pickup-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pickup-card:hover {
    transform: translateY(-2px);
}

.pickup-content {
    padding: 20px;
}

.pickup-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.pickup-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.service-card, .merit-card, .flow-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover, .merit-card:hover, .flow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

.service-card p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    color: #333;
}

.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #003366;
    font-weight: bold;
}

.merit-card {
    text-align: center;
}

.merit-icon {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.merit-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.merit-description {
    color: #555;
    line-height: 1.6;
}

.flow-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.flow-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #003366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.flow-content h4 {
    font-weight: bold;
    color: #003366;
    margin-bottom: 8px;
}

.flow-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ========================================= */
/* トップページ */
/* ========================================= */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('../image/header_image/building.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: bold;
    font-family: 'Noto Serif JP', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'Yu Mincho', '游明朝', 'YuMincho', 'Hiragino Mincho Pro', 'HiraMinProN-W3', 'Takao', 'IPAexMincho', 'IPA PexMincho', serif;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-size: 4.5rem;
    font-weight: bold;
    font-family: 'Noto Serif JP', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'Yu Mincho', '游明朝', 'YuMincho', 'Hiragino Mincho Pro', 'HiraMinProN-W3', 'Takao', 'IPAexMincho', 'IPA PexMincho', serif;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 3;
}

.pickup-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.pickup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.news-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #666;
    font-size: 14px;
    min-width: 80px;
}

.news-title {
    color: #333;
    text-decoration: none;
    flex: 1;
}

.news-title:hover {
    text-decoration: underline;
}

.news-more {
    text-align: right;
    margin-top: 15px;
}

.news-more a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

/* ========================================= */
/* メンテナンスページ */
/* ========================================= */
main.maintenance-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.maintenance-icon {
    font-size: 5rem;
    color: #003366;
    margin-bottom: 30px;
}

.maintenance-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
}

.maintenance-message {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ========================================= */
/* テーブル */
/* ========================================= */
.iso-cert-table thead th {
    background-color: #0066cc;
    color: white;
    font-weight: bold;
}

.iso-cert-table thead th.iso-header,
.iso-cert-table thead th.jis-header {
    background-color: #87ceeb;
    color: white;
}

.iso-cert-table tbody td:first-child {
    background-color: #0066cc;
    color: white;
    font-weight: bold;
}

.iso-cert-table .cert-mark {
    background-color: white;
}

.table-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
}

.schedule-table thead th {
    background-color: #0066cc;
    color: white;
    font-weight: bold;
}

.schedule-table tbody td:first-child {
    background-color: #e6f3ff;
}

.schedule-table tbody td {
    background-color: white;
}

.schedule-table thead th[colspan="2"] {
    width: 20%;
}

.schedule-table thead th:not([colspan]) {
    width: 40%;
}

.table-small-text {
    font-size: 0.9em;
}

/* ========================================= */
/* レスポンシブデザイン */
/* ========================================= */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .maintenance-icon {
        font-size: 3rem;
    }

    .maintenance-title {
        font-size: 1.8rem;
    }

    .maintenance-message {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
