/**
 * Component Styles
 * コンポーネント固有のスタイル
 */

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Base Layout Containers */
.base_width {
    width: 90%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.base_width_l {
    width: 90%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.base_width_xl {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.base_width_s {
    width: 90%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Padding */
.section_padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section_padding_l {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section_padding_s {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Angle Right Icon - Use same style as j-robo-common.css */
.span_angle_right {
    display: inline-block;
}

.span_angle_right:after {
    content: "\f105";
    font-family: FontAwesome;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #C4C4C4;
    color: #1A73E8;
    line-height: 1;
    transition: 0.3s;
}

.span_angle_right.size_s:after {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #C4C4C4;
    font-size: 90%;
}

/* Page Layout */
body.page footer {
    margin-top: 50px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
}

.breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb ul li {
    margin-right: 15px;
    padding-right: 15px;
    position: relative;
}

.breadcrumb ul li:after {
    content: '>';
    position: absolute;
    right: 0;
    color: #999;
}

.breadcrumb ul li:last-child {
    color: #666;
}

.breadcrumb ul li:last-child:after {
    display: none;
}

/* Page Main */
.page_main {
    margin-bottom: 40px;
}

.page_main h1 {
    font-size: 240%;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page_main h1 small {
    font-size: 60%;
    color: #666;
}

.page_main .box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 40px 0;
}

.page_main .back_btn a {
    color: #0964AF;
    text-decoration: none;
}

/* .page_main .back_btn a .span_angle_right.size_s:after {
    content: "\f104";
    position: static;
    right: auto;
    transform: none;
} */

/* Specialist List Tables */
.senmon_list_box table {
    width: 100%;
    border-collapse: collapse;
}

.senmon_list_box .senmon_list_tbl {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.senmon_list_box table th,
.senmon_list_box table td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.senmon_list_box table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.senmon_list_tbl.sticky table {
    position: relative;
}

.senmon_list_tbl.sticky table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

/* Line Table Variant */
.senmon_line_tbl table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

.senmon_line_tbl thead th {
    border-bottom: 2px solid #0964AF;
    background-color: transparent;
}

.senmon_line_tbl th,
.senmon_line_tbl td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    border-left: none;
    border-right: none;
    border-top: none;
}

/* Sidebar */
.page_sidebar ul > li {
    margin-bottom: 5px;
}

.page_sidebar a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page_sidebar ul > li > a {
    font-weight: bold;
}

.page_sidebar ul > li.title {
    margin-bottom: 10px;
}

.page_sidebar ul > li.title > a {
    background-color: #0964AF;
    color: #fff;
    border-radius: 5px;
}

.page_sidebar ul .sub_list {
    margin-left: 20px;
}

.page_sidebar ul .sub_list a {
    padding: 8px 15px;
    font-weight: normal;
}

.page_sidebar ul .sub_list a:before {
    content: '・';
    margin-right: 5px;
    color: #0964AF;
}

/* Active States */
body.side_cu02 .page_sidebar ul > li.side_cu02 > a {
    background-color: #0964AF;
    color: #fff;
}

body.side_cu02-01 .page_sidebar .sub_list .side_cu02-01 > a,
body.side_cu02-02 .page_sidebar .sub_list .side_cu02-02 > a,
body.side_cu02-03 .page_sidebar .sub_list .side_cu02-03 > a,
body.side_cu02-04 .page_sidebar .sub_list .side_cu02-04 > a,
body.side_cu02-05 .page_sidebar .sub_list .side_cu02-05 > a,
body.side_cu02-06 .page_sidebar .sub_list .side_cu02-06 > a,
body.side_cu02-07 .page_sidebar .sub_list .side_cu02-07 > a {
    background-color: #e3f2fd;
    color: #0964AF;
}


body.side_cu02.on > a {
    background-color: #0964AF;
    color: #fff;
}

/* Article List */
.article-list {
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.article-list:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-list a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px;
    transition: background-color 0.2s ease-in-out;
}

.article-list a:hover {
    background-color: #f8f9fa;
}

.article-list .article-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.article-list .article-title {
    font-size: 22px;
    font-weight: bold;
    color: #005bac;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-list .article-excerpt {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-list .article-author {
    font-size: 16px;
    color: #555;
    text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 639px) {
    .section_padding {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .section_padding_l {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .span_angle_right:after {
        width: 38px;
        height: 38px;
    }

    body.page {
        padding-top: 80px;
    }

    .breadcrumb ul {
        font-size: 12px;
    }
    
    .breadcrumb ul li {
        margin-right: 10px;
        padding-right: 10px;
    }

    .page_main .box {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0 30px 0;
    }
    
    .page_main h1 {
        font-size: 200%;
        margin: 0 auto 10px 0;
        align-self: flex-start;
    }

    .page_main .back_btn,
    .page_main p.back_btn {
        align-self: flex-end;
        text-align: right !important;
    }

    /* Horizontal scroll for tables on small screens */
    .senmon_list_tbl,
    .senmon_line_tbl {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #sf_main .senmon_list_tbl {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Scroll hint for .senmon_list_tbl */
    .senmon_list_box .senmon_list_tbl:before,
    #sf_main .senmon_list_tbl:before {
        content: "表は横にスクロールしてご覧ください";
        display: block;
        color: #CC2A39;
        font-size: 1.3rem;
        text-align: right;
        margin-bottom: 10px;
        padding-right: 10px;
    }
     
    /* Custom scrollbar style for .senmon_list_tbl */
    .senmon_list_box .senmon_list_tbl::-webkit-scrollbar,
    #sf_main .senmon_list_tbl::-webkit-scrollbar {
        height: 8px;
        background: #ddd;
    }
    
    .senmon_list_box .senmon_list_tbl::-webkit-scrollbar-thumb,
    #sf_main .senmon_list_tbl::-webkit-scrollbar-thumb {
        background: #0964AF;
        border-radius: 4px;
    }
}

@media (min-width: 640px) {
    body.page {
        padding-top: 150px;
    }

    /* Sticky Sidebar */
    .page_sidebar {
        position: sticky;
        top: 100px;
    }

    /* Hover effects */
    a:hover .span_angle_right:after,
    a:hover .span_angle_right.size_s:after {
        background: #1A73E8;
        color: #fff;
        border: 1px solid #1A73E8;
    }
    
    .page_sidebar a:hover {
        background-color: #f5f5f5;
    }
    
    .page_sidebar ul > li.on > a {
        background-color: #e3f2fd;
        color: #0964AF;
    }
}

@media (max-width: 479px) {
    .section_padding_l {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .span_angle_right:after {
        width: 38px;
        height: 38px;
    }

    body.page {
        padding-top: 60px;
    }

    .page_main h1 {
        font-size: 160%;
    }
    
    .page_main .back_btn a {
        font-size: 90%;
    }

    .senmon_list_box table {
        font-size: 14px;
    }
    
    #sf_main table {
        font-size: 14px;
    }
     
    .senmon_line_tbl table {
        font-size: 14px;
    }

    .senmon_list_tbl.sticky table thead {
        font-size: 13px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .page_sidebar {
        margin-bottom: 30px;
    }
} 