/* ページビジュアル（内部ページのヒーローエリア） */
.page-visual {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0px;
}

.page-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/AdobeStock_391207494.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.page-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-visual-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-visual-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ページビジュアル内のボタン */
.page-visual-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-page-visual {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5aa0;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn-page-visual:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-page-visual.outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-page-visual.outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* パンくずリスト */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.breadcrumb-list a:hover {
    color: #2c5aa0;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list li:last-child {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* コンテンツエリア */
.page-content {
    padding: 50px 0 80px;
    background: url("../img/mainbg.png") no-repeat top center;
    background-size: 100% auto;
}

/* CMS投稿エリア */
.cms-posts {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* 見出しスタイル */
.cms-posts .h1,
.h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 30px;
    padding: 15px 1em;
    border-bottom: 3px solid #2c5aa0;
    position: relative;
    background: #f7fbfa;
}

.cms-posts .h1::after,
.h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #4a90e2;
}

.cms-posts .h2,
.h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 40px 0 20px;
    padding: 15px;
    border-left: 5px solid #2c5aa0;
    line-height: 1.4;
    background: #e4eff3;
    border-radius: 5px;
}

.cms-posts .h3,
.h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.cms-posts .h4,
.h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px;
    padding-left: 12px;
    position: relative;
}

.cms-posts .h4::before,
.h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #2c5aa0;
    border-radius: 50%;
}
.cms-posts .h5,
.h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px;
}

/* テキストスタイル */
.cms-posts p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.cms-posts ul,
.cms-posts ol {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.cms-posts li {
    margin-bottom: 10px;
    color: #555;
}

.cms-posts a {
    color: #2c5aa0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cms-posts a:hover {
    color: #1e3a5f;
}

.cms-posts strong {
    font-weight: 600;
    color: #333;
}

.cms-posts em {
    font-style: italic;
    color: #666;
}

.cmt-posts ol,
.page-content ol{
    margin: 1em 0 1em 1em;
    list-style: decimal;
}
.cmt-posts ul,
.page-content ol{
    margin: 1em 0 1em 1em;
    list-style: disc;
}

/* テーブルスタイル */
.cms-posts table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cms-posts table th {
    background: #2c5aa0;
    color: #fff;
    padding: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.cms-posts table thead th{
    color: #FFF !important;
}

.cms-posts table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.cms-posts table tr:last-child td {
    border-bottom: none;
}

.cms-posts table tr:nth-child(even) {
    background: #f8f9fa;
}

/* 画像スタイル */
.cms-posts img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5em;
    border-radius: 0px;
}

/* カードグリッド（一覧ページ用） */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-item:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-item:hover .card-link i {
    transform: translateX(5px);
}

/* リストカード（一覧ページ用の横型） */
.list-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    margin-bottom: 25px;
    min-height: 150px;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.list-card-image {
    width: 250px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-card:hover .list-card-image img {
    transform: scale(1.05);
}

.list-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 12px;
}

.list-card-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 情報ボックス */
.info-box {
    background: #f8f9fa;
    border-left: 5px solid #2c5aa0;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.info-box.warning {
    border-left-color: #e74c3c;
    background: #fef5f5;
}

.info-box.success {
    border-left-color: #27ae60;
    background: #f0f9f4;
}

.info-box.info {
    border-left-color: #3498db;
    background: #f0f7fc;
}

.info-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* サイドバー */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #f8f9fa;
    color: #2c5aa0;
    padding-left: 20px;
}

/* ページナビゲーション */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-nav-link:hover {
    color: #1e3a5f;
    transform: translateX(-5px);
}

.page-nav-link.next:hover {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-visual {
        height: 250px;
        margin-bottom: 30px;
    }

    .page-visual-content h1 {
        font-size: 2rem;
    }

    .page-visual-content p {
        font-size: 1rem;
    }

    .page-visual-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-page-visual {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .cms-posts {
        padding: 25px 20px;
    }

    .cms-posts .h1,
    .h1 {
        font-size: 1.6rem;
    }

    .cms-posts .h2,
    .h2 {
        font-size: 1.4rem;
    }

    .cms-posts .h3,
    .h3 {
        font-size: 1.2rem;
    }

    .cms-posts .h4,
    .h4 {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .list-card {
        flex-direction: column;
    }

    .list-card-image {
        width: 100%;
        height: 200px;
    }

    .list-card-content {
        padding: 20px;
    }

    .page-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .cms-posts table {
        font-size: 0.85rem;
    }

    .cms-posts table th,
    .cms-posts table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-visual {
        height: 200px;
    }

    .page-visual-content h1 {
        font-size: 1.5rem;
    }

    .page-content {
        padding: 30px 0 50px;
    }

    .cms-posts {
        padding: 20px 15px;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cms-posts,
.card-item,
.list-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}