.button-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 100px;
}
.custom-btn {
    position: relative;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: normal;
    color: #fff;
    background-color: var(--service-brand-color);
    border-radius: 100px;
    font-size: var(--fz-btn);
    padding: 1em 1.5em 1em 2.5em;
    gap: 0.5em;
}
.archive .custom-btn {
    font-size: var(--fz-xs);
}

.custom-btn .btn-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1.5em;
    height: auto;
    transition: filter 0.3s ease;
}
.recruit-buttons .custom-btn {
    background-color: var(--text-primary);
}
@media screen and (max-width: 768px) {
    .button-wrap {
        margin-top: 0;
    }
}

.mv-splide {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.mv-splide__figure {
    width: 100%;
    margin: 0;
    aspect-ratio: 5 / 4;
}

.mv-splide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: grab;
}

.splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.splide__arrow--prev {
    left: 20px;
}

.splide__arrow--next {
    right: 20px;
}

.splide__arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.splide__arrow .arrow-icon {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--service-brand-color);
    border-right: 2px solid var(--service-brand-color);
}

.splide__arrow--prev .arrow-icon {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.splide__arrow--next .arrow-icon {
    transform: rotate(45deg);
    margin-right: 4px;
}
@media screen and (max-width: 768px) {
    .splide__arrow {
        opacity: 0.5;
    }
    .splide__arrow--prev {
        left: 4px;
    }
    .splide__arrow--next {
        right: 4px;
    }
}

.sticky-scroll-area {
    position: relative;
    width: 100%;
}
.side-sticky-container {
    position: absolute;
    top: 100px;
    right: var(--side-sticky-right);
    height: 100%;
    z-index: 100;
    pointer-events: none; 
}
.side-sticky.sticky-widget {
    position: sticky;
    top: var(--header-menu-fixed-top); 
    pointer-events: auto;
    background-color: #fff;   
    border: 3px solid var(--service-brand-color); 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sticky-widget-header {
    background-color: var(--service-brand-color);
    color: var(--bg-white);
    padding: 8px 12px;
    text-align: center;
}
.sticky-title-ja {
    font-size: var(--fz-sm);
    font-weight: 400;
    margin: 0 0 4px 0;
    line-height: 1.4;
    color: #fff;
    text-align: center;
}
.sticky-title-en {
    display: block;
    font-size: var(--fz-xs);
    font-weight: 300;
    color: #fff;
}
.sticky-widget-body {
    padding: 24px 20px;
    background-color: #fff;
}
.sticky-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}
.sticky-item {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    color: var(--service-brand-color);
}
.pdf-icon {
    width: 16px;
    height: auto;
    margin-left: 10px; 
    flex-shrink: 0; 
}
.sticky-item .circle-btn-text {
    font-weight: 500;
    font-size: var(--fz-xs);
}
.sticky-empty {
    font-size: var(--fz-sm);
    text-align: center;
    color: #999;
    margin: 0;
}
@media screen and (max-width: 768px) {
    .side-sticky-container {
        display: none !important;
    }
}

.schedule-inner {
    border-top: 2px solid var(--service-brand-color);
    border-bottom: 2px solid var(--service-brand-color);
    margin: 0;
    padding: 0;
}
.schedule-inner .wp-block-details {
    border: none;
}

.schedule-inner .wp-block-details summary {
    font-family: var(--unnamed-font-family-noto-sans-jp, 'Noto Sans JP', sans-serif);
    font-size: var(--unnamed-font-size-24, 24px);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-white);
    cursor: pointer;
    display: block; 
    position: relative;
    padding: 20px 60px 20px 0;
    list-style: none;
    text-align: left;
}
.schedule-inner .wp-block-details:nth-child(1) summary {
    border-bottom: 1px solid var(--service-brand-color);
}

.schedule-inner .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.schedule-inner .wp-block-details summary::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--service-brand-color);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.schedule-inner .wp-block-details[open] summary::after {
    content: "－";
}

.schedule-inner .wp-block-details > div {
    padding: 0 !important;
}

.faq-accordion .faq-a {
    display: none; 
    padding-bottom: 25px; 
}

.accordion-item.is-open .faq-a {
    display: block;
}

.acc-icon-plus {
    display: inline-block;
    transition: transform 0.2s ease;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    padding: 10px 0;
}

/* ==================================================
   従来のスケジュールテーブル用CSS
   ※ .custom-schedule-table には適用させない（:notを使用）
================================================== */

.schedule-inner .wp-block-table:not(.custom-schedule-table) {
    margin: 0;
}

.schedule-inner .wp-block-table:not(.custom-schedule-table) table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-inner .wp-block-table:not(.custom-schedule-table) tbody tr:nth-child(odd) {
    background-color: #f5f5f5; 
}
.schedule-inner .wp-block-table:not(.custom-schedule-table) tbody tr:nth-child(even) {
    background-color: #ffffff; 
}

.schedule-inner .wp-block-table:not(.custom-schedule-table) td {
    padding: 24px 20px;
    border: none;
    vertical-align: middle;
    font-family: var(--unnamed-font-family-noto-sans-jp, 'Noto Sans JP', sans-serif);
    font-size: 16px;
    color: var(--text-primary);
    text-align: left;
}

/* 各列の幅指定も除外 */
.schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(1) { width: 10%; font-weight: bold; }
.schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(2) { width: 8%; font-weight: bold; }
.schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(3) { width: 25%; }
.schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(4) { width: 15%; }
.schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(5) { width: 42%; }


/* ==================================================
   📱 従来のスケジュールテーブル スマホ対応
================================================== */
@media screen and (max-width: 768px) {
    
    /* ※ トグル部分にはwp-block-tableが関係ないのでそのまま */
    .schedule-inner .wp-block-details summary {
        font-size: var(--unnamed-font-size-18, 18px);
        padding: 15px 50px 15px 0;
    }
    .schedule-inner .wp-block-details summary::after {
        font-size: 28px;
    }

    .schedule-inner .wp-block-table:not(.custom-schedule-table) table,
    .schedule-inner .wp-block-table:not(.custom-schedule-table) tbody,
    .schedule-inner .wp-block-table:not(.custom-schedule-table) tr,
    .schedule-inner .wp-block-table:not(.custom-schedule-table) td {
        display: block;
        width: 100% !important;
    }

    .schedule-inner .wp-block-table:not(.custom-schedule-table) tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 20px 15px;
        border-bottom: 1px solid #ddd;
    }

    .schedule-inner .wp-block-table:not(.custom-schedule-table) tbody tr:nth-child(odd),
    .schedule-inner .wp-block-table:not(.custom-schedule-table) tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .schedule-inner .wp-block-table:not(.custom-schedule-table) td {
        padding: 0;
        border: none;
        line-height: 1.4;
    }
    
    .schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(1) {
        width: auto !important;
        font-size: 12px;
        color: var(--service-brand-color);
        margin-right: 10px;
    }
    .schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(2) {
        width: auto !important;
        font-size: 12px;
        margin-right: 5px;
    }
    .schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(3) {
        width: auto !important;
        font-size: 12px;
        margin-right: 10px;
    }
    .schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(4) {
        width: auto !important;
        font-size: 11px;
        background-color: var(--service-brand-color);
        color: #fff;
        padding: 4px 10px;
        border-radius: 4px;
        font-weight: normal;
    }
    .schedule-inner .wp-block-table:not(.custom-schedule-table) td:nth-child(5) {
        width: 100% !important;
        margin-top: 10px;
        font-size: 16px;
        font-weight: 400;
        color: var(--text-primary);
    }
    .schedule-inner .wp-block-table:not(.custom-schedule-table) tr:last-child {
        border-bottom: solid 2px var(--service-brand-color);
    }
}

.news-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #ddd;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-link {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.news-link:hover {
    opacity: 0.7;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.news-date {
    font-size: var(--fz-sm);
    color: var(--text-secondary);
    font-family: 'Noto Sans JP', sans-serif;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.news-tag {
    font-size: var(--fz-xs);
    padding: 2px 10px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 300;
    line-height: 1.5;
}

.tag-hope-emergence-study-group { background-color: var(--orange); }
.tag-sbi-news { background-color: var(--purple); }
.tag-otoyo-news { background-color: var(--green); }
.tag-sip-program { background-color: var(--blue); }
.tag-report { background-color: var(--text-secondary); }
.tag-hesg-report { background-color: var(--text-secondary); }

.news-title {
    font-size: var(--fz-sm-lead);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

@media screen and (min-width: 769px) {
    .news-link {
        padding: 25px 0;
    }
}

@media screen and (max-width: 768px) {
    .news-meta {
        gap: 10px;
    }
}

.general .bg-marquee-container {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}

.general .bg-marquee-track {
    display: flex;
    width: max-content;
    animation-name: marqueeScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.general .bg-marquee-content {
    font-size: clamp(100px, 15vw, 250px);
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
    padding-right: 20px;
}

@media screen and (max-width: 768px) {
    .general .bg-marquee-track {
        animation: marqueeScroll 60s linear infinite;
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.pamphlet-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 40px 0;
}

.pamphlet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--md);
    width: 100%;
    max-width: 300px;
}

.pamphlet-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.pamphlet-thumb {
    margin: 0 0 20px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    line-height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.pamphlet-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.pamphlet-link:hover .pamphlet-thumb img {
    transform: scale(1.05);
}

.pamphlet-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pamphlet-hover-overlay span {
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
}

.pamphlet-link:hover .pamphlet-hover-overlay {
    opacity: 1;
}

.pamphlet-info {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary, #333);
}

.pamphlet-title-main {
    font-size: var(--fz-sm);
    font-weight: 300;
    margin-bottom: 4px;
    line-height: 1.4;
    text-align: center;
    text-decoration: underline;
}

.pamphlet-title-sub {
    font-size: var(--fz-sm);
    font-weight: 300;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .pamphlet-grid {
        gap: 40px;
    }
    .pamphlet-item {
        max-width: 240px;
    }
}

.staff-block {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-light);
}

.staff-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.staff-block h3 {
    color: var(--teal);
    font-size: clamp(1.375rem, 1.275rem + 0.4vw, 1.625rem);
    font-weight: 400;
    margin-bottom: var(--md);
    letter-spacing: 0.05em;
}

.staff-card {
    border: 2px solid var(--teal);
    border-radius: 8px;
    background-color: #fff;
    padding: clamp(0.875rem, 0.675rem + 0.8vw, 1.375rem);
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-name {
    font-size: clamp(1.125rem, 1.075rem + 0.2vw, 1.25rem);
    font-weight: 500;
    margin: 0 0 4px 0;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.staff-roman {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0 0 var(--sm) 0;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.05em;
}

.staff-desc p {
    font-size: var(--xs2);
    line-height: 1.6;
    margin: 0;
    color: var(--text-primary);
}

.staff-grid-teacher {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.875rem, 0.675rem + 0.8vw, 1.375rem);
}

.staff-card.type-teacher {
    flex-direction: row;
    gap: var(--md);
    align-items: center;
}

.staff-photo {
    width: clamp(6rem, 5.6rem + 1.6vw, 7rem);
    flex-shrink: 0;
    margin: 0;
}

.staff-photo img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.staff-post-name {
    color: var(--teal);
    font-size: var(--xs2);
    font-weight: 400;
    margin: 0 0 4px 0;
}

.type-teacher .staff-name {
    font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
    margin-bottom: clamp(0rem, -0.1rem + 0.4vw, 0.25rem);
}

.staff-grid-other {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media screen and (max-width: 1024px) {
    .staff-grid-other {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .staff-grid-teacher {
        grid-template-columns: 1fr;
    }
    .staff-grid-other {
        grid-template-columns: repeat(2, 1fr);
    }
}

.generalarchive-page .mv-content-front {
    margin: 30px auto 0;
}
.archive-page .archive-header {
    padding: 60px 0 80px;
    background-color: var(--bg-yellow);
    border-radius: 0 0 60px 60px;
    margin-bottom: 60px;
}

.archive-title {
    font-size: 32px;
    margin: 0;
    padding-left: 20px;
}

.archive-list-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-item:first-child { padding-top: 0; }
.archive-item:last-child { border-bottom: none; padding-bottom: 0; }

.archive-link {
    display: flex;
    gap: 30px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
.archive-link:hover { opacity: 0.7; }

.archive-thumb {
    display: flex;
    width: 260px;
    aspect-ratio: 4/3;
    flex-shrink: 0;
}

.archive-content {
    flex-grow: 1;
    padding: 30px 0;
    border-top: solid 1px var(--border-light);
    border-bottom: solid 1px var(--border-light);
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.archive-date {
    font-size: 14px;
    color: #666;
}

.archive-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.archive-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: 300;
}

.archive-item-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}
@media screen and (max-width: 768px) {
	.archive-content {
		padding: 7px 0;
	}
	.archive-link {
		gap: 20px;
	}
	.archive-thumb {
		width: 22.5vw;
		height: 16.875vw;
	}
	.archive-meta {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 5px;
		gap: 4px;
	}
	.archive-date {
		font-size: 12px;
	}
	.archive-tag {
		font-size: 9px;
		padding: 2px 8px;
	}
	.archive-item-title {
		font-size: 14px;
	}
}

.voice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.voice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 30px 0;
}
.voice-item:first-child { padding-top: 0; }
.voice-item:last-child { border-bottom: none; padding-bottom: 0; }

.voice-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.voice-tag {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    padding: 4px 16px;
    border-radius: 4px;
}
.voice-tag.type-学生 { background-color: var(--orange, #F5A623); }
.voice-tag.type-企業 { background-color: var(--teal, #4FA6B1); }

.voice-title {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

.voice-author-info .voice-link {
    font-size: 16px;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s;
}
.voice-author-info .voice-link:hover { opacity: 0.6; }

.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #999;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--teal, #4FA6B1);
}

@media screen and (max-width: 768px) {
    .general.archive-page .mv-section h1 {
        margin: 24px 0;
    }
    .voice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.single-content-section {
    padding-top: 80px;
    padding-bottom: 120px;
}

.single-article {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.single-date {
    display: block;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    font-weight: 500;
    margin-top: 8px; 
}

.single-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 40px 0;
    color: #111;
}

.single-thumbnail {
    margin-bottom: 40px;
}
.single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 2em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2em 0;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 2.5em 0 1em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal, #4FA6B1);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 2em 0 1em;
}

@media screen and (max-width: 768px) {
    .single-content-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .single-article {
        grid-template-columns: 1fr;
        gap: 15px; 
    }

    .single-date {
        margin-top: 0;
        color: #666;
    }

    .single-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .single-thumbnail {
        margin-bottom: 30px;
    }
}

.sp-report-select-wrap.sp-only {
    display: none;
}

@media screen and (max-width: 767px) {
    .sp-report-select-wrap.sp-only {
        display: block;
        max-width: 600px;
        margin: 80px auto 30px; 
        padding: 0 15px;
        box-sizing: border-box;
    }

    .sp-report-select-inner {
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        position: relative;
        overflow: hidden;
    }

    .sp-report-select {
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        background-color: transparent;
        color: #fff;
        font-weight: bold;
        font-size: 16px;
        padding: 18px 20px;
        border: none;
        cursor: pointer;
        outline: none;
        text-align: center;
        text-align-last: center;
    }

    .sp-report-select option {
        color: #333;
        background-color: #fff;
        font-weight: normal;
    }
}

/* ==================================================
   スケジュールテーブル専用デザイン (デスクトップ版)
================================================== */
/* 1. テーブル全体のコンテナと幅の調整 */
.wp-block-table.custom-schedule-table {
    width: 100% !important; /* コンテナいっぱいに広げる */
    margin-bottom: 2em;
}

/* 2. テーブル自体の罫線の復活と調整 */
.wp-block-table.custom-schedule-table table {
    width: 100% !important;
    border-collapse: collapse;
    border: 1px solid #825088 !important; /* 外枠を紫で強化 */
    background-color: #fff;
    table-layout: auto !important; /* has-fixed-layout を解除してレスポンシブにする */
}

.wp-block-table.custom-schedule-table thead {
	border-bottom: none;
}
/* 3. 全てのセルの枠線、パディング、配置の復活と調整 */
.wp-block-table.custom-schedule-table th,
.wp-block-table.custom-schedule-table td {
    border: 1px solid #825088 !important; /* ★ここ重要：内部の罫線を紫で復活させました */
    padding: 12px 15px !important; /* 適切な余白 */
    vertical-align: middle !important;
    text-align: center !important; /* 基本は中央揃え */
    font-size: 15px; /* 基本文字サイズ */
    color: #333; /* 本文の基本色 */
}

/* 4. 日付と時間の列を左寄せにして読みやすく */
.wp-block-table.custom-schedule-table tbody td:first-child,
.wp-block-table.custom-schedule-table tbody td:nth-child(2) {
    text-align: left !important;
}

/* 5. ヘッダーの背景リセット */
.wp-block-table.custom-schedule-table thead th {
    background-color: #fff;
    font-weight: normal; 
}

/* 6. ★魔法の仕掛け★ ピル型ボタンの中央揃えを確実に */
.wp-block-table.custom-schedule-table thead th strong {
    display: inline-block;
    background-color: #825088;
    color: #fff;
    border-radius: 50px;
    padding: 6px 40px;
    font-weight: normal;
    font-size: 16px;
    margin: 0 auto; /* 中央揃えを確実にする */
}

/* 7. ストライプ背景の上書き防止 */
.wp-block-table.custom-schedule-table tbody tr:nth-child(odd) {
    background-color: #f9f6f9 !important; /* ほんのり紫がかったグレー */
}
.wp-block-table.custom-schedule-table tbody tr:nth-child(even) {
    background-color: #ffffff !important;
}

.wp-block-table.custom-schedule-table thead th:nth-child(3),
.wp-block-table.custom-schedule-table thead th:nth-child(4) {
	width: 30% !important;
}

/* ==================================================
   📱 スマホ・タブレット用のレスポンシブ調整（画面幅768px以下）
   ★ここ重要：横スクロールなしで、画面に収める★
================================================== */
@media screen and (max-width: 768px) {
    /* 1. 横スクロールを禁止するための設定 */
    .wp-block-table.custom-schedule-table {
        display: block; /* ブロック要素にして折り返しを許可 */
        overflow-x: hidden !important; /* 横スクロールを完全に禁止 */
    }
    
    .wp-block-table.custom-schedule-table table {
        display: block; /* テーブル自体もブロックにする */
        width: 100% !important;
        white-space: normal !important; /* テキストを折り返させる */
    }

    /* 2. 全てのセルの文字サイズとパディングを縮小 */
    .wp-block-table.custom-schedule-table th,
    .wp-block-table.custom-schedule-table td {
        font-size: 14px !important; /* 文字を少し小さく */
        padding: 8px !important; /* 余白を小さく */
    }

    /* 3. 日付と時間の列の幅固定を解除して折り返しを許可 */
    .wp-block-table.custom-schedule-table thead th:first-child,
    .wp-block-table.custom-schedule-table thead th:nth-child(2),
    .wp-block-table.custom-schedule-table tbody td:first-child,
    .wp-block-table.custom-schedule-table tbody td:nth-child(2) {
        width: auto !important; /* has-fixed-layout を解除 */
    }
    
    /* 4. 内容列（学生・企業）のピル型ボタンの調整 */
    .wp-block-table.custom-schedule-table thead th strong {
        font-size: 14px !important;
        padding: 4px 20px !important; /* パディングを小さく */
    }
}

/* ==================================================
   スマホ用 カスタムドロップダウン
================================================== */
.sp-custom-select-wrap {
    position: relative;
    width: 100%;
    margin: 2em 0;
}

/* ボタン（トグル）のスタイル */
.sp-custom-select-toggle {
    width: 100%;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 開くリスト（初期状態は非表示） */
.sp-custom-select-menu {
    display: none;
    position: absolute;
    top: -8px;
    left: auto;
    right: 0;
	width: 70%;
    background-color: #fff;
    border: 1px solid var(--service-brand-color);
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}
.initiatives .sp-custom-select-menu {
	top: auto;
	bottom: -8px;
}
.initiatives section.about {
	overflow: visible;
}
/* 開いた状態 */
.sp-custom-select-wrap.is-open .sp-custom-select-menu {
    display: block;
}

/* リストアイテムのスタイル */
.sp-custom-select-menu li {
    border-bottom: 1px solid #f0f0f0; /* 薄い区切り線 */
}
.sp-custom-select-menu li:last-child {
    border-bottom: none;
}

/* リンクテキストのスタイル */
.sp-custom-select-menu a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color:  var(--service-brand-color); /* 文字色（紫） */
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s;
}

/* 写真のように、タップ（ホバー）した時の背景色 */
.sp-custom-select-menu a:active,
.sp-custom-select-menu a:hover {
    background-color: #f9f6f9;
}

/* アイコンのスタイル */
.icon-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--service-brand-color); /* アイコンのベース色（紫） */
}