@charset "UTF-8";

/*
Theme Name: Responsive-Design
Theme URI: http://www.joc-network.co.jp/
Author: JOC-NETWORK CO.,LTD.
Author URI: http://www.joc-network.co.jp/
*/
/* =========================================
   Variables
   ========================================= */
/* =========================================
   Mixins
   ========================================= */
/* Media Queries */
/* =========================================
   Base Styles
   ========================================= */
:root {
    accent-color: #85D6A8;
    scroll-padding-top: var(--header-height, 168px);
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.2rem !important;
    font-weight: 400;
    background-color: white !important;
}

a:focus {
    outline: none;
}

p {
    line-height: 2.3rem;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    background-color: white;
    /* Logo Area */
    /* Navigation Containers */
    /* Modal Open State */
    /* Global Menu (Dropdown) */
    /* EN Mode Modifier */
}

header .logo-area {
    display: grid;
    grid-template-columns: 300px auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media screen and (max-width: 768px) {
    header .logo-area {
        grid-template-columns: 150px auto 1fr;
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 960px) {
    header .logo-area figure {
        z-index: 10000000;
    }
}

header .logo-area .logo-text {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: left;
    gap: 0;
    text-align: left;
}

@media screen and (max-width: 960px) {
    header .logo-area .logo-text {
        z-index: 10000000;
    }
}

header .logo-area .logo-text a {
    text-decoration: none !important;
}

header .logo-area .logo-text p {
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

header .logo-area .logo-text p:first-child {
    font-size: 0.7rem;
}

@media screen and (max-width: 768px) {
    header .logo-area .logo-text p:first-child {
        font-size: 0.5rem;
    }
}

header .logo-area .logo-text p.wp-block-site-title {
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    header .logo-area .logo-text p.wp-block-site-title {
        font-size: 0.8rem;
    }
}

header .logo-area .logo-text p:last-child {
    font-size: 0.64rem;
}

@media screen and (max-width: 768px) {
    header .logo-area .logo-text p:last-child {
        font-size: 0.46rem;
    }
}

header .logo-area .main-menu {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    header .logo-area .main-menu {
        grid-template-columns: 30px 30px 40px;
    }
}

header .logo-area .main-menu nav {
    padding-right: 1rem;
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu nav {
        display: grid;
        order: 3;
        align-items: center;
        height: 24px;
        padding-right: 0;
        padding-left: 1rem;
    }
}

header .logo-area .main-menu nav li.sp_only {
    display: none;
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu nav li.sp_only {
        display: grid;
    }
}

header .logo-area .main-menu nav li a {
    font-size: 0.8rem;
}

header .logo-area .main-menu p {
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu p {
        z-index: 10000000;
    }
}

header .logo-area .main-menu p a {
    display: grid;
    grid-template-columns: 15px 1fr;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    color: #00833F;
    text-decoration: none;
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu p a {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.5rem 1rem;
        font-size: 0;
        line-height: 0;
    }
}

header .logo-area .main-menu p a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f002";
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu p a::before {
        font-size: 0.8rem;
        line-height: 1;
    }
}

header .logo-area .main-menu p a:hover {
    opacity: 0.8;
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu p.link_en {
        order: 1;
    }
}

header .logo-area .main-menu p.link_en a {
    color: #333;
}

header .logo-area .main-menu p.link_en a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0ac";
}

@media screen and (max-width: 960px) {
    header .logo-area .main-menu p.link_serch {
        order: 2;
    }
}

@media screen and (max-width: 960px) {
    header .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
}

@media (min-width: 981px) {
    header .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none;
    }
}

@media screen and (max-width: 960px) {
    header .wp-block-navigation__container {
        display: none;
    }
}

@media (min-width: 981px) {
    header .wp-block-navigation__container {
        display: flex;
    }
}

header .logo-area figure img {
    width: 100% !important;
}


header .has-modal-open {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

header .has-modal-open #modal-1-content {
    gap: 0;
}

header .has-modal-open .wp-block-navigation {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0 !important;
    width: 100%;
}

header .has-modal-open .wp-block-navigation:nth-of-type(1) {
    padding: 2rem 0 0;
}

header .has-modal-open .wp-block-navigation li {
    display: grid !important;
    grid-template-columns: 1fr;
    text-align: left;
}

header .has-modal-open .wp-block-navigation li a {
    display: grid !important;
    grid-template-columns: 1fr;
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid #85D6A8;
    text-align: left;
}

header .global-menu {
    margin-block-start: 0;
    /* First Level */
}

@media screen and (max-width: 960px) {
    header .global-menu {
        display: none;
    }
}

header .global-menu ul.wp-block-navigation__container {
    display: grid;
    grid-template-columns: repeat(7, auto);
    justify-content: unset;
    margin: 0;
    padding: 0 0 2rem;
    list-style: none;
    gap: 0;
}

header .global-menu ul.wp-block-navigation__container>li {
    position: relative;
    /* Parent Link */
    /* Second Level (Sub Menu) */
    /* Hover Action */
}

header .global-menu ul.wp-block-navigation__container>li>a {
    display: block;
    padding: 0 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    width: 100%;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    color: #333;
}

/* button要素（サブメニュー切り替え用）を隠す */
.wp-block-navigation-submenu__toggle {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* フォーカス時にサブメニューを強制的に表示する設定 */
.wp-block-navigation-item.has-child:focus-within .wp-block-navigation__submenu-container {
    opacity: 1;
    visibility: visible;
    display: block;
    height: 100%;
}

header .global-menu ul.wp-block-navigation__container>li>a::before,
header .global-menu ul.wp-block-navigation__container>li>a.current::before {
    display: block;
    height: 18px;
    font-size: 0.8rem;
    color: transparent;
    content: "●";
    line-height: 1;
    margin-bottom: 0.2rem;
    transition: color 0.3s;
}

header .global-menu ul.wp-block-navigation__container>li>a:hover,
header .global-menu ul.wp-block-navigation__container>li>a:hover::before {
    color: #00833F;
}

header .global-menu ul.wp-block-navigation__container>li>a.current,
header .global-menu ul.wp-block-navigation__container>li>a.current::before {
    color: #00833F;
}

header .global-menu ul.wp-block-navigation__container>li ul {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: -moz-max-content;
    width: max-content;
    min-width: 200px;
    padding: 1rem 0;
    margin: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 100;
    list-style: none;
    transition: all 0.3s ease;
}

header .global-menu ul.wp-block-navigation__container>li ul li {
    display: block;
    width: 100%;
    line-height: 2rem;
}

header .global-menu ul.wp-block-navigation__container>li ul li a {
    display: block;
    padding: 0.4rem 1.5rem;
    font-size: 0.9rem;
    color: #333;
    text-align: left;
    letter-spacing: normal;
    background-color: transparent;
    text-decoration: none;
    border-bottom: 1px dotted #eee;
}

header .global-menu ul.wp-block-navigation__container>li ul li a::before {
    display: none;
}

header .global-menu ul.wp-block-navigation__container>li ul li a:hover {
    background-color: #F4EFE9;
    color: #00833F;
}

header .global-menu ul.wp-block-navigation__container>li ul li:last-child a {
    border-bottom: none;
}

header .global-menu ul.wp-block-navigation__container>li:hover ul {
    visibility: visible;
    opacity: 1;
    left: unset !important;
    transform: translateX(0) translateY(0);
}

header.en .logo-area {
    grid-template-columns: 60px auto 1fr;
    margin-inline: auto;
}

header.en .logo-area .logo-text p {
    font-size: 1.3rem !important;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    header.en .logo-area {
        grid-template-columns: 40px auto 1fr;
    }

    header.en .logo-area .logo-text p {
        font-size: 0.8rem !important;
    }
}

header.en .global-menu>ul>li>a {
    white-space: wrap !important;
}

header.en .menu_list {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
}

/* =========================================
   Header Search Box (JS Generated)
   ========================================= */
#header-search-box {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    width: 100%;
    padding: 1.5rem 1rem;
    background-color: #f3eee7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#header-search-box.is-visible {
    opacity: 1;
}

#header-search-box .search-box-inner {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#header-search-box .search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

#header-search-box .search-form label {
    width: 100%;
    margin: 0;
}

#header-search-box .search-form input[type=search] {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    border-radius: 100vmax;
}

#header-search-box .search-form input[type=search]:focus {
    outline: 2px solid #48D78D;
    outline-offset: -2px;
}

#header-search-box .search-form .search-submit {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    background-color: #48D78D;
    border: none;
    border-radius: 50%;
    transition: opacity 0.3s;
}

#header-search-box .search-form .search-submit:hover {
    opacity: 0.8;
}

#header-search-box #search-close-btn {
    position: absolute;
    top: 50%;
    right: -3rem;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    background: transparent;
    border: none;
    transform: translateY(-50%);
}

#header-search-box #search-close-btn:hover {
    color: #333;
}

@media screen and (max-width: 768px) {
    #header-search-box #search-close-btn {
        position: static;
        display: block;
        margin: 1rem auto 0;
        transform: none;
    }
}

/* =========================================
   To Top Button
   ========================================= */
.to_top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 10000;
    display: none;
    width: -moz-fit-content;
    width: fit-content;
}

.to_top.fadein {
    display: block;
}

@media screen and (max-width: 768px) {
    .to_top {
        right: 1rem;
        bottom: 1rem;
    }
}

.to_top a {
    display: grid;
    place-content: center;
    grid-template-columns: 1fr;
    aspect-ratio: 1;
    padding: 0.4rem;
    font-size: 1.6rem;
    line-height: 1;
    color: #85D6A8;
    text-align: center;
    text-decoration: none;
    background-color: #F4EFE9;
    border-radius: 50%;
}

.to_top a:hover {
    scale: 1.2;
}

@media screen and (max-width: 768px) {
    .to_top a {
        width: 30px;
        font-size: 1.2rem;
    }
}

/* =========================================
   Footer
   ========================================= */
footer {
    margin-block-start: 0;
    color: black;
    background-color: #F4EFE9;
}

footer>div {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 2rem;
    padding-bottom: 0 !important;
    background-color: #85D6A8;
    border-radius: 4rem;
}

@media screen and (max-width: 768px) {
    footer>div {
        gap: 1rem;
        border-radius: 2rem;
    }
}

footer .ft_logo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    footer .ft_logo {
        justify-content: center;
    }
}

footer .ft_logo .logo-area {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
}

@media screen and (max-width: 768px) {
    footer .ft_logo .logo-area {
        margin-inline: auto;
    }
}

footer .ft_logo .logo-area figure {
    display: none;
}

footer .ft_logo .logo-area .logo-text {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: left;
    gap: 0;
    text-align: left;
}

footer .ft_logo .logo-area .logo-text a {
    text-decoration: none !important;
}

footer .ft_logo .logo-area .logo-text p {
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.6 !important;
}

footer .ft_logo .logo-area .logo-text p:first-child {
    font-size: 0.7rem;
}

@media screen and (max-width: 768px) {
    footer .ft_logo .logo-area .logo-text p:first-child {
        font-size: 0.5rem;
    }
}

footer .ft_logo .logo-area .logo-text p.wp-block-site-title {
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    footer .ft_logo .logo-area .logo-text p.wp-block-site-title {
        font-size: 0.8rem;
    }
}

footer .ft_logo .logo-area .logo-text p:last-child {
    font-size: 0.64rem;
}

@media screen and (max-width: 768px) {
    footer .ft_logo .logo-area .logo-text p:last-child {
        font-size: 0.46rem;
    }
}

footer .main-menu {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    width: -moz-fit-content;
    width: fit-content;
    aspect-ratio: 2;
    margin-block-start: 0;
    margin-inline: auto;
    padding: 4rem 0 1rem;
    background-color: white;
    border-radius: 100vmax 100vmax 0 0;
}

@media screen and (max-width: 768px) {
    footer .main-menu {
        grid-template-columns: repeat(4, 20px);
        padding: 3rem 0 1rem;
    }
}

footer .main-menu figure {
    margin-block-start: 0;
}

footer .copy {
    margin-block-start: 0;
}

footer .copy p {
    font-size: 0.6em !important;
}

footer .menu_list {
    display: grid;
    grid-template-columns: 30% 1fr;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.8;
}

@media screen and (max-width: 960px) {
    footer .menu_list {
        grid-template-columns: 40% 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    footer .menu_list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

footer .menu_list div:first-child {
    line-height: 2;
}

@media screen and (max-width: 768px) {
    footer .menu_list div:first-child {
        font-size: 0.9rem;
        line-height: normal;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    footer .menu_list div:first-child img {
        max-width: 200px;
    }
}

footer .menu_list ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media screen and (max-width: 960px) {
    footer .menu_list ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    footer .menu_list ul {
        gap: 0 0.5rem;
    }
}

footer .menu_list ul li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media screen and (max-width: 768px) {
    footer .menu_list ul li {
        line-height: 1.6;
    }
}

footer .menu_list ul li br {
    display: none;
}

footer .menu_list ul li strong {
    padding-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
    footer .menu_list ul li strong {
        padding-bottom: 0;
        font-size: 0.9rem;
    }
}

footer .menu_list ul li a {
    font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
    footer .menu_list ul li a {
        font-size: 0.7rem;
    }
}

footer.en .logo-area {
    margin-inline: auto;
}

footer.en .logo-area .logo-text p {
    font-size: 1.1rem !important;
}

@media screen and (max-width: 768px) {
    footer.en .logo-area .logo-text p {
        font-size: 0.8rem !important;
    }
}

footer.en .menu_list {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
}

/* =========================================
   Pagination Styling
   ========================================= */
.wp-block-query-pagination {
    padding-top: 2rem;
    font-size: 0.9rem;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    color: #333;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 50%;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current {
    color: white;
    background-color: #85D6A8;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers:hover:not(.current) {
    background-color: #f3f3f3;
}

.wp-block-query-pagination .wp-block-query-pagination-next {
    color: #333;
    text-decoration: none;
}

.wp-block-query-pagination .wp-block-query-pagination-next:hover {
    opacity: 0.7;
}

/* =========================================
   Main Content
   ========================================= */
main {
    margin: 0 !important;
    padding: 0 !important;
    /* Sliders & Visuals */
    /* List Styles in Main */
    /* Entry Content Area */
}

main>div {
    padding-top: 0 !important;
}

main .n2-ss-slide-backgrounds {
    background-image: url(/wp-content/uploads/2025/12/slider_bk.png);
    border-radius: 0 0 6rem 6rem;
}

@media screen and (max-width: 768px) {
    main .n2-ss-slide-backgrounds {
        border-radius: 0 0 4rem 4rem;
    }
}

main .n2-ss-slider .n2-ss-layer-with-background {
    border-radius: 4rem;
}

main .n2-ss-slider a.n2-ow {
    color: black !important;
}

main .n2-ss-slider a.n2-ow:hover {
    opacity: .8 !important;
}

main .n2-ss-slider .n2-ss-text {
    color: #00833F !important;
}

@media screen and (max-width: 768px) {
    main .n2-ss-slider .n2-ss-layer-with-background {
        border-radius: 2rem;
    }
}

@media screen and (max-width: 768px) {
    main div#n2-ss-2 .nextend-autoplay img {
        width: 24px !important;
    }
}

main h1 {
    display: grid;
    align-items: center;
    height: 280px;
    position: relative;
    padding: 2rem;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    text-align: center;
    background-image: url(/wp-content/uploads/2025/12/h1_bk.png);
    background-size: cover;
    letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
    main h1 {
        padding-bottom: 2rem;
        height: 180px;
    }
}

main h1.h1-img {
    display: grid;
    align-items: center;
    justify-content: center;
    height: auto;
    position: static;
    text-align: center;
    background-image: none;
}

main .bread {
    margin-block-start: 0;
    padding: 1rem 0 2rem;
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    main .bread {
        padding: 1rem 0;
    }
}

main .bread br {
    display: none;
}

main .entry-department {
    display: grid;
    text-align: right;
    font-weight: bold;
    padding: 2rem 0;
}

main ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

main ul.resercher-top h3 {
    margin-block: 0;
    padding-top: 0;
    padding-left: 0;
}

main ul.resercher-top h3::before {
    display: none;
}


main ul.reserche-info {
    padding-bottom: 4rem;
    list-style: none;
    margin-block-start: 0;
}

@media screen and (max-width: 768px) {
    main ul.reserche-info {
        padding-bottom: 2rem;
    }
}

main ul.reserche-info li {
    display: grid;
    grid-template-columns: 20% 1fr;
    gap: 1rem;
}

main ul.reserch-info {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-inline-start: 0;
    padding-bottom: 4rem;
    list-style: none;
    margin-block-start: 0;
}

@media screen and (max-width: 768px) {
    main ul.reserch-info {
        grid-template-columns: 1fr;
        padding-bottom: 2rem;
    }
}

main ul.reserch-info li {
    display: grid;
    grid-template-columns: 20% 1fr;
    align-items: center;
    gap: 1rem;
}

main ul.reserch-info li::before {
    display: none;
}

main ul.reserch-info li.one-column {
    grid-template-columns: 10% 1fr;
    grid-column: span 2;
}

main ul.reserch-info li strong {
    padding: 0.5rem 0;
    color: #333;
    text-align: center;
    background-color: #D0BCA2;
    border-radius: 0.5rem;
}

main ul.inclu_list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

@media screen and (max-width: 768px) {
    main ul.inclu_list {
        grid-template-columns: 1fr;
    }
}

main ul.inclu_list li {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 !important;
    padding: 0 !important;
}

main ul.inclu_list li:before {
    display: none;
}

main ul.inclu_list li a {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #9fd8ee;
}

main ul.inclu_list li a:hover {
    opacity: 0.8;
}

main ul.inclu_list li:first-child a {
    background-color: #f7c8d6;
}

main ul.inclu_list li:last-child a {
    background-color: #c5e2c2;
}

main ul.theme_list {
    gap: 4rem;
}

@media screen and (max-width: 768px) {
    main ul.theme_list {
        gap: 2rem;
    }
}

main ul.theme_list ul {
    padding: 0;
    list-style: none;
}

main .entry-content {
    margin-block-start: 0;
}

main .entry-content h2 {
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: #333;
    background-color: #F4EFE9;
    border-radius: 100vmax;
}

main .entry-content h2.js-accordion-trigger {
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

main .entry-content h2.js-accordion-trigger a {
    display: inline-block;
}

/* アイコン（疑似要素で＋を表示） */
main .entry-content h2.js-accordion-trigger::after {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    /* バージョンに合わせて調整 */
    font-weight: 900;
    /* Font Awesomeは通常900を指定 */
    content: "\f067";
    font-size: 1.6rem;
    transition: all 0.3s;
}

/* 開いている時のアイコン（ーに変更） */
main .entry-content h2.js-accordion-trigger.is-active::after {
    content: "\f068";
}

main .entry-content h2.js-accordion-trigger+div {
    display: none;
}

main .entry-content h2.js-accordion-trigger.is-active+div {
    display: block;
}

/* フォーカス（Tabキーで選択中）のスタイル */
main .entry-content h2.js-accordion-h2:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* aタグにフォーカスが当たった時はh2の枠線と被らないように調整 */
main .entry-content h2.js-accordion-h2 a:focus {
    outline: 1px dotted #333;
}

main .entry-content h2.js-accordion-trigger>a[id]:empty {
    display: contents;
}

@media screen and (max-width: 768px) {
    main .entry-content h2 {
        margin-bottom: 1rem;
    }
}

main .entry-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0rem;
}

@media screen and (max-width: 768px) {
    main .entry-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
}

main .entry-content h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1em;
    margin: 0 0.6rem 0 0;
    background-color: #56C88D;
    vertical-align: bottom;
}

/* アコーディオン　h3 */

.no-green-icon::before {
    display: none !important;
}

.no-green-icon .wp-block-accordion-heading__toggle::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1em;
    margin: 0 0.6rem 0 0;
    background-color: #56C88D;
}

/* アコーディオン 十字（＋） */
.wp-block-accordion-heading__toggle-icon {
    font-size: 2rem;
}

@media screen and (max-width: 768px) {
    .wp-block-accordion-heading__toggle-icon {
        font-size: 1rem;
    }
}

main .entry-content h4 {
    padding: 0.8rem 1.6rem;
    color: black;
    background-color: #56C88D;
    line-height: 1;
    border-radius: 100vmax;
    font-size: 1.2rem;
}

main .entry-content h4+ul,
main .entry-content h5+ul {
    padding-top: 2rem;
}

main .entry-content h5 {
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.6;
}

main .entry-content .h2_img {
    padding-top: 2rem;
    padding-bottom: 0;
}

main .entry-content .h2_img img {
    width: auto;
    max-width: 100px;
    height: auto;
    max-height: 80px;
}


main .entry-content ul {
    padding-inline-start: 0;
    padding-bottom: 3rem;
    list-style: none;
    margin-block-start: 0;
}

@media screen and (max-width: 768px) {
    main .entry-content ul {
        padding-bottom: 1rem;
    }

    main .entry-content h4+ul,
    main .entry-content h5+ul {
        padding-top: 1rem;
    }
}

main .entry-content ul.wp-block-list,
main .entry-content ul.child-list,
main .entry-content ul.researcher-list-block {
    display: grid;
    grid-template-columns: 1fr;
}

main .entry-content ul.wp-block-list.inclu_list {
    grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 768px) {

    main .entry-content ul.wp-block-list.inclu_list {
        grid-template-columns: 1fr;
    }
}

main .entry-content ul.child-list-two {
    display: block;
    column-count: 2;
    column-gap: 2rem;
}

@media screen and (max-width: 768px) {

    main .entry-content ul.child-list-two {
        display: block;
        column-count: 1;
        column-gap: 2rem;
    }
}

main .entry-content ul li {
    position: relative;
    padding-left: 1.8rem;
}

main .entry-content ul li::before {
    position: absolute;
    top: .1rem;
    left: 0;
    width: 1.1rem;
    aspect-ratio: 1;
    margin-top: .3rem;
    content: "";
    background-color: #85D6A8;
    border-radius: 100vmax;
}

main .entry-content ul li ul {
    padding: 1rem 0 0;
    gap: 0;
}

main .entry-content ul li ul.wp-block-list li {
    display: block;
    margin-top: 0 !important;
}


main .entry-content ul li ul.wp-block-list li::before {
    position: absolute;
    top: 0.4rem;
    left: 0;
    width: 0.5rem;
    aspect-ratio: 1;
    content: "";
    border: 4px solid #85D6A8;
    border-radius: 100vmax;
    background-color: transparent;
}

main .entry-content .has-media-on-the-right ul {
    grid-template-columns: 1fr !important;
}

main .entry-content ol {
    padding-bottom: 3rem;
    margin-block-start: 0;
}

@media screen and (max-width: 768px) {

    main .entry-content ol {
        padding-bottom: 1rem;
    }
}

main .entry-content .has-media-on-the-right .wp-block-media-text__content {
    padding-left: 0;
}

main .entry-content figure {
    padding-bottom: 4rem;
    margin-block-start: 0;
}

@media screen and (max-width: 768px) {
    main .entry-content figure {
        padding-bottom: 2rem;
    }

    main .entry-content figure.wp-block-table {
        position: relative;
    }
}

main .entry-content figure.wp-block-gallery {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

main .entry-content figure.wp-block-gallery.columns-2,
main .entry-content figure.wp-block-gallery.columns-default {
    grid-template-columns: repeat(2, 1fr);
}

main .entry-content figure.wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

main .entry-content figure.wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

main .entry-content figure.wp-block-gallery.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

main .entry-content figure.wp-block-gallery figure {
    width: 100% !important;
    padding: 0;
}

main .entry-content figure.timetable tr td:first-child {
    text-align: left;
    white-space: nowrap;
}

main .entry-content figure.timetable tr td:last-child {
    text-align: left;
    white-space: wrap;
}

main .entry-content .inclu_link a {
    background-color: #85D6A8;
    width: 240px;
}

main .entry-content .inclu_link a:hover {
    opacity: 0.8;
}

main .entry-content table {
    width: 100%;
    /* 親要素の幅いっぱいに広げる */
    max-width: 100%;
    /* 親より大きくならないようにする */
    padding-bottom: 4rem;
    margin-block-start: 0;
    margin-top: 1rem;
    overflow-x: auto;
    /* それでも入りきらないときは横スクロールできるようにする */
}

@media screen and (max-width: 768px) {
    main .entry-content table {
        padding-bottom: 2rem;
    }
}

main .entry-content table th {
    padding: 1rem;
    background-color: #F4EFE9;

    font-weight: normal;
    word-break: break-word;
}

main .entry-content table th.has-text-align-right {
    text-align: center;
}

main .entry-content table td {
    padding: 1rem;
    word-break: break-word;
}

.page-template-wp-custom-template-2 main .entry-content table td {
    word-break: unset;
}

main .entry-content table .first-col,
main .entry-content table .last-col {
    text-align: center;
}

@media screen and (max-width: 768px) {
    main .entry-content table.has-fixed-layout {
        table-layout: unset;
        white-space: nowrap;
    }
}

main .entry-content .is-type-video {
    max-width: 640px;
}

main .entry-content p+h2,
main .entry-content p+figure {
    margin-top: 4rem;
}

@media screen and (max-width: 768px) {

    main .entry-content p+h2,
    main .entry-content p+figure {
        margin-top: 2rem;
    }
}

main .entry-content p+ul {
    padding-top: 2rem;
}

@media screen and (max-width: 768px) {
    main .entry-content p+ul {
        padding-top: 1rem;
    }
}

main .entry-content a::after {
    display: inline-block;
    margin-left: 0.2rem;
    text-decoration: none;
    color: #85D6A8;
}

main .entry-content a.external-link:not(.file-link)::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f08e";
}

/* main .entry-content a.file-link-pdf::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f1c1";
} */

main .entry-content a.file-link-pdf::after {
    content: "";
    width: 25px;
    aspect-ratio: 1;
    margin-right: .8rem;
    background-image: url("https://joc30.xsrv.jp/wp-content/uploads/2026/01/icon_pdf.png");
    background-size: contain;
    background-repeat: no-repeat;
}

main .entry-content a.file-link-doc::after,
main .entry-content a.file-link-docx::after {
    content: "";
    width: 25px;
    aspect-ratio: 46 / 51;
    margin-right: .8rem;
    background-image: url("https://joc30.xsrv.jp/wp-content/uploads/2026/03/ico_word.png");
    background-size: contain;
    background-repeat: no-repeat;
}

main .entry-content a.file-link-xls::after,
main .entry-content a.file-link-xlsx::after {
    content: "";
    width: 25px;
    aspect-ratio: 46 / 51;
    margin-right: .8rem;
    background-image: url("https://joc30.xsrv.jp/wp-content/uploads/2026/03/icon_excel.png");
    background-size: contain;
    background-repeat: no-repeat;
}

main .entry-content a.file-link-zip::after {
    content: "";
    width: 25px;
    aspect-ratio: 46 / 51;
    margin-right: .8rem;
    background-image: url("https://joc30.xsrv.jp/wp-content/uploads/2026/03/ico_zip.png");
    background-size: contain;
    background-repeat: no-repeat;
}


main .entry-content a.external-link:has(img)::after,
main .entry-content a.file-link-pdf:has(img)::after,
main .entry-content a.file-link-doc:has(img)::after,
main .entry-content a.file-link-docx:has(img)::after,
main .entry-content a.file-link-xls:has(img)::after,
main .entry-content a.file-link-xlsx:has(img)::after {
    display: none;
}

main .entry-content .research-content-block {
    max-width: 1340px;
    padding-top: 0;
    padding-bottom: var(--wp--preset--spacing--60);
}

main .entry-content .wp-block-group-is-layout-flex {
    align-items: flex-start;
    padding-bottom: 4rem;
}

@media screen and (max-width: 768px) {
    main .entry-content .wp-block-group-is-layout-flex {
        flex-wrap: wrap;
        padding-bottom: 2rem;
    }
}

main .entry-content .wp-block-group-is-layout-flex figure {
    padding: 1rem 0 !important;
}

main .entry-content .wp-block-group-is-layout-flex figure {
    margin-inline: auto;
}

main .entry-content .wp-block-group-is-layout-flex figure img {
    width: 100%;
    margin-inline: auto;
}

main .entry-content .img-change {
    position: relative;
    width: 100%;
    max-width: 832px;
    aspect-ratio: 832/468;
    margin-inline: auto;
}

main .entry-content .img-change figure {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

main .entry-content .img-change figure.img-off {
    opacity: 1;
}

main .entry-content .img-change figure.img-on {
    opacity: 0;
}

main .entry-content .img-change:hover .img-off {
    opacity: 0;
}

main .entry-content .img-change:hover .img-on {
    opacity: 1;
}

/* =========================================
   Custom Post List (Shortcode & Query Loop)
   ========================================= */
/* ショートコード用リスト */
.custom-post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-post-list li {
    padding-bottom: 1rem;
    border-bottom: 1px dotted #CCC;
}

.custom-post-list li::before {
    display: none;
}

.custom-post-list li:last-child {
    border-bottom: none;
}

.custom-post-list li p {
    display: none;
}

.term-192 .custom-post-list li {
    padding: 2rem 0;
}

.term-192 .custom-post-list li .post-title {
    font-size: var(--wp--preset--font-size--large);
    font-weight: bold;
}

.term-192 .custom-post-list li p {
    display: block;
}

.year-filter-wrapper {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    gap: 1rem;
}

select {
    padding: .5rem 1rem;
    font-size: 1rem;
}

.year-filter-wrapper br {
    display: none;
}

.custom-post-list li a {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.custom-post-list li a:hover {
    opacity: 0.7;
}

.custom-post-list li a .meta-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    .custom-post-list li a .meta-area {
        gap: 0.8rem;
    }
}

.custom-post-list li a .meta-area .post-tag {
    display: inline-block;
    width: 80px;
    padding: 0.5em 0;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    color: #333;
    text-align: center;
    white-space: nowrap;
    background-color: #ffda6f;
    border-radius: 100vmax;
}

.custom-post-list li a .meta-area .post-tag.tag-event {
    background-color: #DCB796;
}

.custom-post-list li a .meta-area .post-tag.tag-study {
    background-color: #85D6A8;
}

.custom-post-list li a .meta-area .post-tag.tag-training {
    background-color: #A9D18E;
}

.custom-post-list li a .meta-area .post-tag.tag-infomation {
    background-color: #9BC2E6;
}

.custom-post-list li a .meta-area .post-date {
    font-size: 0.85rem;
    color: #666;
}

.custom-post-list li a .post-title {
    margin: 0;
    font-weight: normal;
    line-height: 1.5;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.news .custom-post-list li a::after {
    display: none;
}


/* WordPress標準クエリループ (custom-post-listとスタイル統一) */
.wp-block-post-template {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wp-block-post-template li.wp-block-post {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-block-start: 0;
    margin-bottom: 0 !important;
    padding: 1rem;
    border-bottom: 1px dotted #CCC;
}

.wp-block-post-template li.wp-block-post:last-child {
    border-bottom: none;
}

.wp-block-post-template li.wp-block-post .wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
}

@media screen and (max-width: 768px) {
    .wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow {
        gap: 0.8rem !important;
    }
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .wp-block-post-date {
    order: 2;
    margin-top: 0 !important;
    font-size: 0.85rem;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .wp-block-post-date a {
    color: #666;
    text-decoration: none;
    pointer-events: none;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .wp-block-post-date time {
    color: #666;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag {
    order: 1;
    margin-block-start: 0;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag a {
    display: inline-block;
    width: 80px;
    padding: 0.5em 0;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    color: #333;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: #ffda6f;
    border-radius: 100vmax;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag a.tag-event {
    background-color: #DCB796;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag a.tag-study {
    background-color: #85D6A8;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag a.tag-training {
    background-color: #A9D18E;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag a.tag-information {
    background-color: #9BC2E6;
}

.wp-block-post-template li.wp-block-post .wp-block-group.is-layout-flow .taxonomy-post_tag a:hover {
    opacity: 0.8;
}

.wp-block-post-template li.wp-block-post .wp-block-post-title {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: normal;
    line-height: 1.5;
}

.wp-block-post-template li.wp-block-post .wp-block-post-title a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.wp-block-post-template li.wp-block-post .wp-block-post-title a:hover {
    opacity: 0.7;
}

/* =========================================
   Home Page Specific
   ========================================= */
.home .bread,
.home .wp-block-post-title {
    display: none;
}

.home main>div {
    padding-bottom: 0 !important;
}

.home .entry-content {
    padding: 0;
}

.home .entry-content div {
    max-width: 100%;
    margin-block-start: 0;
}

.home .entry-content h2 {
    color: black;
    text-align: center;
    background-color: transparent;
    border-bottom: none;
}

.home #news {
    position: relative;
    padding: 8rem 4rem;
    margin-top: 4rem;
    margin-bottom: 100px;
    background-color: #F4EFE9;
    border-radius: 4rem;
}

@media screen and (max-width: 768px) {
    .home #news {
        padding: 2rem;
        margin-top: 2rem;
        margin-bottom: 80px;
        border-radius: 2rem;
    }
}

.home #news .news-grid-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 4rem;
}

@media screen and (max-width: 960px) {
    .home #news .news-grid-container {
        gap: 2rem;
        padding: 0 2rem;
    }
}

@media screen and (max-width: 768px) {
    .home #news .news-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
}

.home #news .news-left-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.home #news .news-left-col h2 {
    margin: 0;
    padding: 0;
}

.home #news .news-left-col h2::before {
    display: block;
    margin-bottom: 0.5rem;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
    letter-spacing: 0.05em;
    content: "news";
}

.home #news .news-left-col .wp-block-button {
    width: 100%;
}

.home #news .news-left-col .wp-block-button a {
    width: 100%;
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: black;
    background-color: #85D6A8;
}

.home #news .news-left-col .wp-block-button a:hover {
    opacity: .8;
}

.home #news .news-left-col ul.wp-block-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    margin-block-start: 0;
    padding: 0;
    list-style: none;
}

@media screen and (max-width: 768px) {
    .home #news .news-left-col .wp-block-button {
        text-align: center;
    }

    .home #news .news-left-col .wp-block-button a {
        width: fit-content;
        margin-inline: auto;
    }

    .home #news .news-left-col ul.wp-block-list {
        flex-flow: row wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
}

.home #news .news-left-col ul.wp-block-list li {
    padding: 0.5rem 0;
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: #333;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    transition: opacity 0.3s;
}

.home #news .news-left-col ul.wp-block-list li::before {
    display: none;
}

.home #news .news-left-col ul.wp-block-list li:hover {
    opacity: 0.7;
}

.home #news .news-left-col ul.wp-block-list li.active {
    font-weight: bold;
    border-bottom-color: #333;
}

@media screen and (max-width: 768px) {
    .home #news .news-left-col ul.wp-block-list li {
        padding: 0.5rem 1rem;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 100vmax;
    }

    .home #news .news-left-col ul.wp-block-list li.active {
        color: white;
        background-color: #85D6A8;
        border-color: #85D6A8;
    }
}

.home #news .news-right-col {
    width: 100%;
    padding-top: 2rem;
}

.home #news .news-right-col ul.custom-post-list li:nth-child(-n+5) {
    display: block;
}

.home #news .news-right-col ul.custom-post-list li:nth-child(n+6) {
    display: none;
}

.home #news .news-right-col ul.custom-post-list li::before {
    display: none;
}

.home #news .news-right-col .is-expanded ul.custom-post-list li:nth-child(n+6) {
    display: block;
    animation: fadeIn 0.5s ease;
}

.home #news .news-expand-btn {
    position: absolute;
    bottom: -100px;
    left: 50%;
    z-index: 10;
    display: grid;
    align-items: center;
    gap: 2rem;
    width: 220px;
    aspect-ratio: 1;
    margin: 0;
    padding: 1rem 0 0;
    background-color: #F4EFE9;
    border-radius: 100vmax;
    transform: translateX(-50%);
}

@media screen and (max-width: 768px) {
    .home #news .news-right-col {
        padding-top: 0;
    }

    .home #news .news-expand-btn {
        bottom: -80px;
        width: 160px;
        padding: 0;
        font-size: 0.8rem;
    }
}

.home #news .news-expand-btn .wp-block-button__link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1rem;
    color: #333 !important;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent !important;
    border-radius: 0;
}

@media screen and (max-width: 768px) {
    .home #news .news-expand-btn .wp-block-button__link {
        font-size: 0.8rem;
    }
}

.home #news .news-expand-btn .wp-block-button__link::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f067";
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.home #news .news-expand-btn .wp-block-button__link.is-open::after {
    content: "\f068";
    transform: rotate(180deg);
}

.home #news .news-expand-btn .wp-block-button__link:hover {
    opacity: 0.7;
}

.home #news .news-expand-btn .wp-block-button__link:hover::after {
    transform: rotate(90deg);
}

.home #pickup {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

@media screen and (max-width: 768px) {
    .home #pickup {
        padding-bottom: 4rem;
    }
}

.home #pickup h2::before {
    display: block;
    margin-bottom: 0.5rem;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
    letter-spacing: 0.05em;
    content: "pick up";
}

.home #pickup ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1600px;
    margin: 0;
    margin-inline: auto;
    padding: 0 2rem;
    list-style: none;
}

@media screen and (max-width: 960px) {
    .home #pickup ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .home #pickup ul {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

.home #pickup ul li {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    padding: 0;
}

.home #pickup ul li::before {
    display: none;
}

.home #pickup ul li a {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    line-height: 1.5;
    color: #333;
    text-align: center;
    text-decoration: none;
    background-color: #85D6A8;
    border-radius: 50% 50% 2rem 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
    .home #pickup ul li a {
        grid-template-rows: auto auto;
        grid-template-columns: 80px 1fr;
        align-items: center;
        gap: 0 3rem;
        text-align: left;
        border-radius: 2rem;
    }
}

.home #pickup ul li a:hover {
    opacity: 0.9;
    transform: translateY(-5px);
}

.home #pickup ul li a img {
    width: 60px;
    height: auto;
    margin-bottom: 1rem;
    margin-inline: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .home #pickup ul li a img {
        grid-row: 1/span 3;
        grid-column: 1;
        width: 100%;
        margin-bottom: 0;
    }
}

.home #pickup ul li a strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .home #pickup ul li a strong {
        grid-column: 2;
        margin-bottom: 0.2rem;
    }
}

.home #pickup ul li a::after {
    display: none !important;
}

.home #search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 6rem 2rem 8rem;
    background-color: #F4EFE9;
    border-radius: 50% 50% 0 0/30vw 30vw 0 0;
}

@media screen and (max-width: 960px) {
    .home #search {
        gap: 2rem;
        padding: 4rem 2rem 6rem;
    }
}

@media screen and (max-width: 768px) {
    .home #search {
        gap: 0;
        padding: 3rem 2rem;
        border-radius: 50% 50% 0 0/20vh 20vh 0 0;
    }
}

.home #search h2::before {
    display: block;
    margin-bottom: 0.5rem;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
    letter-spacing: 0.05em;
    content: "search";
}

.home #search label {
    display: none;
}

.home #search .wp-block-search {
    width: 100%;
    max-width: 600px;
    margin-bottom: 0;
    margin-inline: auto;
    padding: 0;
}

.home #search .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background-color: white;
    border: 1px solid white;
    border-radius: 100vmax;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.home #search .wp-block-search__input {
    flex-grow: 1;
    padding: 10px 1.5rem !important;
    font-size: 1rem;
    color: #333;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
}

.home #search .wp-block-search__input:focus {
    outline: none;
}

.home #search .wp-block-search__button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 5px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    color: #333;
    cursor: pointer;
    border: none;
}

.home #search .wp-block-search__button::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f002";
    font-size: 1.2rem;
    line-height: 1;
}

.home #search .wp-block-search__button:hover {
    opacity: 0.7;
}

/* =========================================
   Archive Page
   ========================================= */
.archive h1 {
    padding-top: 4rem;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    margin-bottom: 4rem;
}

@media screen and (max-width: 768px) {
    .archive h1 {
        margin-bottom: 2rem;
    }
}

.archive .bread {
    margin-top: 1rem;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.archive main {
    padding-bottom: 8rem !important;
}

@media screen and (max-width: 768px) {
    .archive main {
        padding-bottom: 4rem !important;
    }
}

.archive main .entry-content {
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.archive main .wp-block-group:not(:has(*)) {
    display: none !important;
}

.archive .wp-block-query {
    margin-block-start: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.archive .wp-block-query ul li .has-global-padding {
    padding: 0 !important;
}

/* =========================================
   Search Results Page Styling
   ========================================= */
.search main {
    padding-bottom: 8rem !important;
}

@media screen and (max-width: 768px) {
    .search main {
        padding-bottom: 4rem !important;
    }
}

.search main .wp-block-group:not(:has(*)) {
    display: none !important;
}

.search h1,
.search form {
    box-sizing: border-box;
    max-width: 100%;
}

.search .wp-block-query-title {
    margin-bottom: 2rem;
    padding: 2rem 0;
    font-size: 1.8rem;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .search .wp-block-query-title {
        font-size: 1.4rem;
    }
}

.search .wp-block-search {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 4rem;
    padding: 1.5rem 1rem;
    background-color: #F4EFE9;
}

.search .wp-block-search__inside-wrapper {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
    border: none;
}

.search .wp-block-search__input {
    width: 100%;
    height: auto;
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white !important;
    border: 2px solid #85D6A8 !important;
    border-radius: 100vmax !important;
    box-shadow: none;
}

.search .wp-block-search__input:focus {
    outline: 2px solid #85D6A8;
    outline-offset: -2px;
}

.search .wp-block-search__button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-left: 0.5rem;
    padding: 0;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    background-color: #85D6A8;
    border: none;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.search .wp-block-search__button::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f002";
    font-size: 1.2rem;
    line-height: 1;
    color: white;
}

.search .wp-block-search__button:hover {
    opacity: 0.8;
}

.search .wp-block-query {
    margin: 0 !important;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.search .wp-block-post-template {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem !important;
    margin: 0;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.search .wp-block-post-template li.wp-block-post {
    display: grid;
    grid-template-columns: 1fr;
    box-sizing: border-box;
    padding: 0;
    background-color: #fff;
    border: 1px solid #CCC;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.search .wp-block-post-template li.wp-block-post h2 {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
}

.search .wp-block-post-template li.wp-block-post h2 a {
    display: grid;
    grid-template-columns: 1fr;
    padding: 2rem;
    color: black !important;
    text-decoration: none;
}

.search .wp-block-post-template li.wp-block-post h2 a:hover {
    text-decoration: none !important;
    background-color: #F4EFE9;
}

.search .wp-block-post-template li.wp-block-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search .wp-block-post-template li.wp-block-post .wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

.search .wp-block-post-template li.wp-block-post .wp-block-post-title {
    margin-bottom: 1rem;
}

.search .wp-block-post-template li.wp-block-post .wp-block-post-title a {
    color: #333;
    text-decoration: none;
}

.search .wp-block-post-template li.wp-block-post .wp-block-post-title a:hover {
    color: #85D6A8;
    text-decoration: underline;
}

.search .wp-block-post-template li.wp-block-post .wp-block-post-date {
    display: none;
    margin-top: 0.5rem !important;
    font-size: 0.85rem;
    color: #666;
    text-align: right;
}

.search .wp-block-post-template li.wp-block-post .entry-content {
    display: none;
}

.search .wp-block-query-no-results {
    padding: 3rem 0;
    color: #666;
    text-align: center;
}

/* =========================================
   Specific Pages
   ========================================= */
.single-post .wp-block-group {
    margin-right: 0;
    margin-left: 0;
}

.page-id-1241 h1,
.page-id-1241 .bread {
    display: none;
}

.en_top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4rem;
    padding-top: 6rem;
    max-width: 100% !important;
}

.en_top figure {
    padding-bottom: 0 !important;
}

@media screen and (max-width: 960px) {
    .en_top {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        padding-top: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .en_top {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }

}

/* 上部スクロールバー用ラッパー */
.double-scroll-wrapper {
    display: none;
    /* デフォルト非表示 */
}

@media screen and (max-width: 768px) {
    .double-scroll-wrapper {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        height: 20px;
        /* スクロールバーの高さ分 */
        margin-bottom: -5px;
        /* テーブルとの隙間調整 */
    }

    /* バーの厚みを出すためのダミーの中身 */
    .double-scroll-inner {
        height: 1px;
    }

    /* スクロールバーの見た目を分かりやすく（お好みで） */
    .double-scroll-wrapper::-webkit-scrollbar,
    figure.wp-block-table::-webkit-scrollbar {
        height: 8px;
    }

    .double-scroll-wrapper::-webkit-scrollbar-thumb,
    figure.wp-block-table::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 10px;
    }

    .double-scroll-wrapper::-webkit-scrollbar-track,
    figure.wp-block-table::-webkit-scrollbar-track {
        background: #eee;
    }

    /* 文字ヒントのスタイル */
    .scroll-hint {
        position: absolute;
        top: -35px;
        /* 上部バーの上に表示する場合 */
        right: 0;
        background: #333;
        color: #fff;
        padding: 2px 10px;
        font-size: 11px;
        border-radius: 3px;
        z-index: 20;
        transition: opacity 0.3s;
    }
}

.error404 .entry-content {
    padding-top: var(--wp--preset--spacing--60) !important;
    padding-bottom: var(--wp--preset--spacing--60);
}

/* =========================================
   リストを2列にする class = list-two-column
   ========================================= */
main .entry-content ul.list-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    gap: 0.5rem 2rem;
}

@media screen and (max-width: 768px) {
    main .entry-content ul.list-two-column {
        grid-template-columns: repeat(1, 1fr);
    }
}

#site-navigation,
#main-content,
#site-footer,
main .entry-content h2 {
    outline: 0;
}

#site-navigation:focus-visible,
#main-content:focus-visible,
#site-footer:focus-visible {
    /* 2pxの実線、色は「現在の文字色」に合わせる設定（アクセシビリティに配慮） */
    outline: 2px solid currentColor;
    /* 枠線とコンテンツの間に少し隙間を作る（任意） */
    outline-offset: 2px;
}

@media (forced-colors: active) {
    main .entry-content h2 {
        /* 背景画像は見えなくなるので、代わりに枠線で囲む */
        outline: 2px solid transparent;
        border: 1px solid ButtonText;
    }

    header .logo-area figure {
        forced-color-adjust: none;
        background-color: #ffffff;
    }

    main .entry-content ul li::before {
        forced-color-adjust: none;
        background-color: #ffffff;
    }
}

/* ブラウザの読み上げエンジンには見せつつ、視覚的に隠す */
.visual-hidden-text {
    display: inline-block;
    /* インラインブロックにして存在を主張 */
    width: 1px;
    height: 1px;
    margin-right: -1px;
    /* 次の文字を1px左に寄せて隙間を消す */
    white-space: nowrap;

    /* Chrome対策: 0ではなく極小にする */
    font-size: 1px;
    letter-spacing: -1px;

    /* 色を透明にする（背景色に合わせるより確実） */
    color: transparent;
    background: transparent;

    /* 絶対配置にせず、文末に「文字」として存在させる */
    vertical-align: middle;
    pointer-events: none;
}
