/* =========================
   CSS Imports
   ========================= */
@import "https://cdn.jsdelivr.net/npm/yakuhanjp@4.1.1/dist/css/yakuhanjp.css";
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css");

/* =========================
   CSS Custom Properties (Variables)
   ========================= */
:root {
    /* Colors */
    --color-primary: #44AF35;
    --color-primary-dark: #258a18;
    --color-primary-light: #d8f3d4;
    --color-accent: #ffd900;
    --color-orange: #FFAD00;
    --color-orange-light: #f8d256;
    --color-red: #d43f3a;
    --color-red-dark: #bb2e29;
    --color-red-light: #f8e2e1;
    --color-bg: #D8E0E1;
    --color-bg-dark: #bdc3c4;
    --color-bg-light: #e8eff0;
    --color-text: #333;
    --color-teal: #0db3b9;
    --color-blue: #0330ac;
    --color-blue-light: #2688c9;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xlg: 3.5rem;

    /* Subject Colors */
    --kokugo: #ed8599;
    --sugaku: #757cbb;
    --syakai: #f6ae54;
    --rika: #65a9dc;
    --eigo: #A2D13A;
    --gappon: #218849;

    --color-border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

/* =========================
   Reset & Base Styles
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 120px;
}

body {
    font-family: YakuHanJP, Roboto, "Noto Sans JP", sans-serif;
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
}

img {
    width: 100%;
}

.img-mg {
    margin: 2rem 0;
}

a {
    color: var(--color-blue);
}

hr {
    border-top: 1px dotted #8c8b8b;
    border-bottom: 1px dotted #fff;
    margin: 2rem 0 1rem;
}

/* =========================
   Typography
   ========================= */
p {
    margin-bottom: 1.75rem;
    line-height: 2;
}

p.no-lh {
    line-height: normal;
}

.catch {
    color: var(--color-primary);
    font-size: 135%;
    font-weight: 700;
}

.catch-red {
    color: var(--color-red);
    font-size: 135%;
    font-weight: 700;
}

.attention {
    color: var(--color-red);
}

.align-right {
    text-align: right !important;
}

.align-center {
    text-align: center !important;
}

.highlight {
    background-image: linear-gradient(to bottom, transparent 55%, var(--color-accent) 55%);
}

/* =========================
   Utility Classes
   ========================= */
.contents-inner {
    margin: 0 auto;
    width: 1040px;
    padding: 0 20px;
    display: block;
    clear: both;
    position: relative;
}

.clm2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.block-box {
    background-color: var(--color-bg-light);
    margin: 1rem 0;
    border-radius: 5px;
    padding: 1rem 1.5rem;
}

.block-box-title {
    font-weight: 700;
    color: #FFF;
    padding: 0.5rem;
    font-size: 115%;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary) 80%, var(--color-primary-dark) 80%);
}

.warning-box {
    background-color: var(--color-red-light);
    margin: 1rem 0;
    border-radius: 5px;
    padding: 1rem 1.5rem;
}

.pdf-icon::before {
    content: "\f1c1";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    display: inline-block;
    margin-left: 0.3em;
    color: var(--color-red);
}

.word-icon::before {
    content: "\f1c2";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    display: inline-block;
    margin-left: 0.3em;
    color: var(--color-blue);
}

.excel-icon::before {
    content: "\f1c3";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    display: inline-block;
    margin-left: 0.3em;
    color: var(--color-primary);
}

span.atnt-icon {
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    color: #FFF;
    margin: 0 0.5rem;
    white-space: nowrap;
    background-color: var(--color-red);
    font-size: 90%;
}

.btn_df .pdf-icon::before,
.btn_df_sm .pdf-icon::before {
    color: #FFF;
}

.no-icon .pdf-icon::before,
.no-icon .word-icon::before,
.no-icon .excel-icon::before {
    display: none;
}

img.c-img {
    border-radius: 1rem;
}

.common-list {
    padding: 0.5em 0.5em 0.5em 2em;
}

.common-list li {
    line-height: 1.5;
    padding: 0.5em 0;
}

ol.list-howto {
    counter-reset: number;
    list-style-type: none !important;
    padding: 0.5em;
}

ol.list-howto li {
    position: relative;
    line-height: 1.5em;
    font-size: 115%;
    padding: 0.5em 0.5em 0.5em 45px;
}

ol.list-howto li:before {
    position: absolute;
    counter-increment: number;
    content: counter(number);
    display: inline-block;
    background: var(--color-orange);
    color: #FFF;
    font-weight: 700;
    border-radius: 50%;
    left: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

ul.pdf-list {
    padding: 0.5em;
    list-style: none;
}

ul.pdf-list li a {
    text-decoration: none;
}

ul.pdf-list li span:not(.pdf-icon) {
    background: var(--color-primary);
    padding: 0.25rem 1rem;
    margin-right: 1rem;
    color: #FFF;
    min-width: 100px;
    text-align: center;
    border-radius: 5px;
}

.breadcrumb {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
    font-size: 0.75rem;
    list-style: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

.breadcrumb>li {
    padding-right: .5em;
    display: inline
}

.breadcrumb>li:not(:first-of-type)::before {
    padding-right: .5em;
    content: '>'
}

@media screen and (max-width: 600px) {
    ul.pdf-list li a span:not(.pdf-icon) {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* =========================
   Lists (Counter & Policy)
   ========================= */
.howto-list,
.policy-list {
    counter-reset: li;
}

.policy-list {
    margin-bottom: 1em;
}

.howto-list li,
.policy-list li {
    display: flex;
    align-items: baseline;
    padding: 1em 0.5em;
    border-bottom: 1px dashed var(--color-bg);
}

.howto-list li::before,
.policy-list li::before {
    display: inline-block;
    min-width: 1.7em;
    margin-right: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
    font-weight: bold;
    font-size: 1em;
    line-height: 1.7em;
    text-align: center;
    content: counter(li);
    counter-increment: li;
}

.policy-list li::before {
    background-color: #FFF;
}

.policy-list li strong {
    display: block;
    font-weight: 600;
}

/* =========================
   Accordion
   ========================= */

.js-details-summary {
    cursor: pointer;
    user-select: none;
}

.js-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.js-details.open .js-details-content {
    /* max-height is controlled inline by JS */
}

/* =========================
   Animations
   ========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

@keyframes hide {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* =========================
   Link Styles
   ========================= */
a.link_df {
    cursor: pointer;
    --tw-text-opacity: 1;
    color: rgb(59 130 246 / var(--tw-text-opacity, 1));
    text-decoration-line: underline;
}

/* =========================
   Responsive Container
   ========================= */
@media screen and (max-width: 1060px) {
    .contents-inner {
        width: 100%;
        box-sizing: border-box;
        float: none;
        clear: both;
        display: block;
        margin: 0;
        padding: 0 20px;
    }
}

/* =========================
   Header & Navigation
   ========================= */
.header {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: grid;
    grid-template-columns: 180px 1fr 100px;
    grid-template-rows: repeat(2, 50px);
    grid-column-gap: 1rem;
    grid-row-gap: 0px;
}

.header__logo {
    grid-area: 1 / 1 / 3 / 2;
}

.header__top {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 0;
}

.header__main {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.header__main .h-btn,
.header__main .h-snav {
    display: none;
}

.header__contact {
    grid-area: 1 / 3 / 3 / 4;
}

.header__contact a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    color: white;
    font-size: 80%;
    text-decoration: none;
    font-weight: 500;
    background: var(--color-primary);
}

.header__contact a:hover {
    color: var(--color-accent);
}

.header__contact img {
    display: block;
    width: 50px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

.logo img {
    width: 150px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__actions a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 90%;
}

.header__actions a:hover {
    color: var(--color-primary);
}

.header__actions a::after {
    content: "|";
    margin-left: 1rem;
}

.header__actions a:last-child::after {
    content: none;
}

/* =========================
   Search Box
   ========================= */
.search-box {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    min-width: 300px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    transition: color 0.3s;
}

.search-box button:hover {
    color: var(--color-primary);
}

/* =========================
   Hamburger Menu
   ========================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.hamburger__line {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active .hamburger__line {
    background: var(--color-primary);
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-only {
    display: none;
}

/* =========================
   Navigation Menu
   ========================= */
.nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav__item {
    position: relative;
}

.nav__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    display: block;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--color-primary-dark);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFF;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    padding: 1rem 0;
}

.nav__item:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav__dropdown a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    padding-left: 1.25rem;
}

/* =========================
   Header Button
   ========================= */
.h-btn {
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.h-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transition: left 0.3s;
}

.h-btn:hover::before {
    left: 0;
}

.h-btn span {
    position: relative;
    z-index: 1;
}

.header__main .h-snav {
    border-top: 2px dotted var(--color-bg-dark);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
}

.header__main .h-snav a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
}

/* =========================
   Hero Section
   ========================= */
.top-hero {
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
    background-image: url(/assets/img/opacity.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.top-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/assets/img/slide_bg.jpg");
    filter: grayscale(100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
}

.top-hero__content {
    max-width: 610px;
    padding-right: var(--space-lg);
    position: absolute;
    top: var(--space-lg);
    left: 0;
    z-index: 1;
}

.top-hero__title {
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    line-height: 1.3;
    letter-spacing: 0.3rem;
}

.top-hero__desc {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: var(--space-md);
    letter-spacing: 0.175rem;
}

.top-hero__buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.top-hero__img {
    position: relative;
    width: auto;
    height: 520px;
    text-align: right;
    z-index: 0;
}

.top-hero__img img {
    position: absolute;
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    right: -180px;
    transition: opacity 1.5s ease, transform 1.5s ease;
    filter: sepia(0.15) brightness(1.05);
}

.top-hero__img img.is-active {
    opacity: 1;
    z-index: 1;
    transform: translateX(0);
}

/* =========================
   Buttons
   ========================= */
.btn_df,
.btn_top {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 100vh;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    overflow: hidden;
    margin-top: 1rem;
    text-wrap-mode: nowrap;
}
.btn_df.btn_orange {
    background: var(--color-orange);
}

.btn_top {
    font-size: 0.9rem;
    padding: 0.475rem 2rem;
    margin-top: 0;
}

.btn_df_sm {
    background-color: var(--color-primary);
    font-weight: normal;
    padding: 0.25rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 1rem;
    border-radius: 100vh;
    text-wrap-mode: nowrap;
}

.btn_df_lg {
    background-color: var(--color-primary);
    font-weight: normal;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    margin: 0 1rem;
    border-radius: 100vh;
}

.btn_df small {
    font-size: 0.75rem;
}

.btn_df_ol {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: #FFF;
}

.btn_df::before,
.btn_top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.btn_df:hover::before,
.btn_top:hover::before {
    animation: shine 0.6s ease-out;
}

.btn_df__arrow,
.btn_top__arrow {
    transition: transform 0.3s;
}

.btn_df:hover .btn_df__arrow,
.btn_df_sm:hover .btn_df__arrow,
.btn_top:hover .btn_top__arrow {
    transform: translateX(4px);
}

/* =========================
   Search Section
   ========================= */
.top-search {
    background: url(/assets/img/booksearch_bg.jpg);
    padding: var(--space-lg);
    background-size: cover;
    color: #fff;
    text-align: center;
}

.top-search__title {
    
    display: inline-block;
}

.top-search__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: var(--space-sm) auto 0;
}

.top-search__title a {
    font-size: 2rem;
    color: #FFF;
    text-decoration: none;
    margin-bottom: var(--space-lg);
}

.top-search__title a::before {
    content: "\f3ee";
    font-family: "Font Awesome 7 Brands";
    font-weight: 900;
    margin-right: 0.75rem;
}

.top-search__input {
    display: flex;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    gap: 0;
}

.top-search__input input {
    flex: 1;
    padding: 0.75rem var(--space-md);
    border: none;
    border-radius: 4px 0 0 4px;
}

.top-search__input button {
    padding: 0.75rem var(--space-md);
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.top-search__input button:hover {
    background: var(--color-primary-dark);
}

.top-search__categories {
    margin: var(--space-lg) auto 0;
}

.top-search__category {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
    justify-content: flex-start;
}

.top-search__category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.top-search__category-label {
    font-size: 0.95rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem var(--space-md);
    border-radius: 2px;
    text-align: center;
}

.top-search__category-label.es {
    background: var(--color-orange);
}

.top-search__category-label.jh {
    background: var(--color-teal);
}

.top-search__category-label.hs {
    background: var(--color-blue-light);
}

.top-search__category-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.top-search__category-link {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.top-search__category-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================
   Feature Section
   ========================= */
.top-feature {
    padding: var(--space-lg);
    text-align: center;
    background: #fff;
}

.top-feature__title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.top-feature__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: var(--space-sm) auto 0;
}

.top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.top-card {
    background: var(--color-primary);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.top-card:hover {
    transform: translateY(-5px);
}

.top-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-card img:hover {
    opacity: 0.8;
    transition: 0.3s ease-in-out;
}

/* =========================
   Related Sites Section
   ========================= */
.top-related {
    padding: var(--space-lg);
    text-align: center;
    background: #C4E0C4;
}

.top-related__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    align-items: stretch;
}

.top-related__title {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 0.75rem;
    border-radius: 4px;
    position: relative;
    font-weight: 700;
    line-height: 1.5;
    font-size: 1.25rem;
}

.top-related__title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--color-primary);
}

.top-related__banner {
    position: relative;
    overflow: hidden;
    background-color: #FFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: var(--space-md) var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: color 0.3s ease;
}

.top-related__banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
    z-index: 0;
}

.top-related__banner:nth-child(2) {
    border-left: 8px solid #589239;
}

.top-related__banner:nth-child(3) {
    border-left: 8px solid #009144;
}

.top-related__banner:nth-child(4) {
    border-left: 8px solid #FE6567;
}

.top-related__banner:nth-child(5) {
    border-left: 8px solid #168DC3;
}

.top-related__banner:nth-child(2):before {
    background: #589239;
}

.top-related__banner:nth-child(3):before {
    background: #009144;
}

.top-related__banner:nth-child(4):before {
    background: #FE6567;
}

.top-related__banner:nth-child(5):before {
    background: #168DC3;
}

.top-related__banner:hover::before {
    transform: translateX(0);
}

.top-related__banner a {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-related__banner a span {
    font-size: 0.75rem;
    display: block;
    font-weight: 400;
}

.top-related__banner:hover a {
    color: #fff;
}

.top-related__banner::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 5px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid currentColor;
    transition: transform 0.2s ease;
    transform: translateX(0);
}

.top-related__banner:hover::after {
    transform: translateX(4px);
    color: #FFF;
}

@media screen and (max-width: 1280px) {
    .top-related__grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .top-related__title::after {
        display: none;
    }
}

/* =========================
   Strength Section (3つの強み)
   ========================= */
.top-strength {
    background: url(/assets/img/strongpoint_bg.jpg);
    background-size: cover;
    padding: var(--space-lg);
    text-align: center;
}

.top-strength__title {
    font-size: 1.25rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    display: flex;
    font-weight: 500;
    align-items: center;
    justify-content: center;
}

.top-strength__title::before,
.top-strength__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: var(--color-primary);
}

.top-strength__title::before {
    margin-right: 0.5em;
}

.top-strength__title::after {
    margin-left: 0.5em;
}

.top-strength__main {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.top-strength__main span {
    font-size: 175%;
    color: var(--color-primary);
}

.top-strength__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.top-strength__card {
    /* styles */
}

.top-strength__img {
    width: 100%;
    height: 250px;
    position: relative;
}

.top-strength__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: floaty 4s ease-in-out infinite;
}

.top-strength__card:nth-child(1) .top-strength__img img {
    animation-delay: 0s;
    clip-path: url('#wave1');
}

.top-strength__card:nth-child(2) .top-strength__img img {
    animation-delay: 0.8s;
    clip-path: url('#wave2');
}

.top-strength__card:nth-child(3) .top-strength__img img {
    animation-delay: 1.6s;
    clip-path: url('#wave3');
}

svg:not(:root) {
    overflow: hidden;
}

.top-strength__content {
    padding-top: var(--space-lg);
}

.top-strength__content h3 {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 400;
}

.top-strength__content p {
    color: var(--color-text);
    margin-top: var(--space-md);
    line-height: 1.6;
    text-align: left;
    font-size: 0.9rem;
}

/* =========================
   News Section
   ========================= */
.top-news {
    padding: var(--space-lg);
    background: #fff;
}

.top-news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
    position: relative;
}

.top-news__wrap {
    padding-left: 4rem;
    background: url(/assets/img/top_news_icon.svg) no-repeat left center;
}

.news-exam .top-news__wrap {
    background: url(/assets/img/top_exam_icon.svg) no-repeat left center;
}

.top-news__wrap .top-news__title-s {
    color: var(--color-primary);
    font-weight: normal;
    font-size: 0.75rem;
}

.top-news__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
    letter-spacing: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-news__title span {
    padding-right: var(--space-md);
    background-color: #FFF;
    z-index: 1;
}

.top-news__title::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--color-primary);
    position: absolute;
    bottom: 32%;
    left: 4rem;
    right: 0;
    z-index: 0;
}

.top-news .btn_top {
    margin-bottom: 25px;
}

.top-news__list {
    list-style: none;
    margin-left: 4rem;
}

.top-news__item {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.news-exam .top-news__item {
    display: block;
}

.top-news__item a {
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s;
    display: inline-block;
    margin-right: 8px;
}

.top-news__item a:hover {
    transform: translateX(5px);
    color: var(--color-primary);
}

.top-news__cat {
    background: var(--color-primary);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    min-width: 82px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    margin-right: var(--space-md);
}

.top-news__cat.cat-01 {
    background: var(--sugaku);
}

.top-news__cat.cat-02 {
    background: var(--color-teal);
}

.top-news__cat.cat-03 {
    background: var(--color-blue);
}

.top-news__cat.cat-04 {
    background: var(--color-primary-dark);
}

.top-news__cat.cat-05 {
    background: var(--color-primary);
}

.top-news__text {
    flex: 1;
}

/* =========================
   CTA Section (Call to Action)
   ========================= */
.f-contact {
    background-color: var(--color-bg);
    padding: var(--space-md) 0;
}

.f-contact .contents-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}

.f-contact__item {
    position: relative;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    letter-spacing: 0.225rem;
    text-decoration: none;
    transition: all 0.3s;
}

.f-contact__item--contact {
    background: url(/assets/img/f_contact.webp) no-repeat center center;
}

.f-contact__item--office {
    background: url(/assets/img/f_company.webp) no-repeat center center;
}

.f-contact__item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.f-contact__item>div {
    background-color: rgba(67, 175, 53, 0.85);
    width: 100%;
    text-align: center;
    padding: var(--space-lg) 0;
}

.f-contact__item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
}

.f-contact__item .btn_top {
    background: #fff;
    color: var(--color-primary);
}

.f-contact__item .btn_top:hover {
    background: #f0f0f0;
}

/* =========================
   Footer
   ========================= */
.footer {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer__section h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer__section ul {
    list-style: none;
}

.footer__section li {
    margin-bottom: var(--space-sm);
}

.footer__section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer__section a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.f-nav ul {
    text-align: center;
    margin-bottom: var(--space-md);
}

.f-nav ul li {
    display: inline-block;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    line-height: 2.0;
}

.f-nav ul li:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.f-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0 8px 0 11px;
    box-sizing: border-box;
    text-decoration: none;
}

.f-nav ul li a:hover {
    color: #fff;
}
@media (min-width: 768px)  {
.f-nav ul li:nth-child(3),
.f-nav ul li:nth-child(5) {border-right: 1px solid rgba(255, 255, 255, 0.4);
}
}

/* =========================
   Sub Pages
   ========================= */
#main_contents .contents-inner {
    margin: 3rem auto;
}

#main_contents .inner-flex {
    display: flex;
    justify-content: space-between;
}

/* Side Navigation */
#sdNav {
    width: 205px;
}

#sdNav .nav__list {
    border: 1px solid #e5e7e9;
    width: 100%;
    box-shadow: 0 0 10px 0 rgba(68, 68, 68, .1);
    padding: 25px 20px;
}

#sdNav .nav__list .nevTitle {
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
}

#sdNav .nav__list ul {
    list-style: none;
    margin-top: 15px;
}

#sdNav .nav__list li a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.5rem 0;
}

#sdNav .nav__list li a:hover {
    color: var(--color-primary);
}

#sdNav .nav__list li a span {
    display: block;
    font-size: 90%;
}

.contents-w-nav {
    width: calc(100% - 245px);
}

/* Two Column Layout */
.col2-block {
    --left-w: 1fr;
    --right-w: 1fr;
    display: grid;
    grid-template-columns: var(--left-w) var(--right-w);
    column-gap: 4rem;
    margin-bottom: 1.75rem;
}

.col2-block-73 {
    --left-w: 7fr;
    --right-w: 3fr;
    display: grid;
    grid-template-columns: var(--left-w) var(--right-w);
    column-gap: 2rem;
    margin-bottom: 1.75rem;
}

/* Page Title */
.page_title {
    background: url(/assets/img/h1_default.jpg) no-repeat center / cover;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shuppan .page_title {
    background: url(/assets/img/h1_shuppan.jpg) no-repeat center / cover;
}

.company .page_title {
    background: url(/assets/img/honsya.jpg) no-repeat center -100px / cover;
}

.examinfo .page_title {
    background: url(/assets/img/h1_examinfo.jpg) no-repeat center center / cover;
}

.schoolinfo .page_title {
    background: url(/assets/img/h1_schoolinfo.jpg) no-repeat center top / cover;
}

.shuppan .page_title {
    background: url(/assets/img/h1_shuppan.jpg) no-repeat center 40% / cover;
}

.support .page_title {
    background: url(/assets/img/h1_support.jpg) no-repeat center 20% / cover;
}

.page_title::before {
    content: '';
    background-color: rgba(0, 0, 0, .7);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.page_title::after {
    background: url(/assets/img/bg_wave.png) repeat-x center bottom;
    position: absolute;
    content: '';
    right: 0;
    bottom: 0;
    left: 0;
    height: 10px;
}

.page_title .h1 {
    filter: brightness(1);
    width: 1100px;
    max-width: 100%;
    text-align: left;
    font-size: 2.75rem;
    font-weight: bold;
    margin: 0 auto;
    color: #fff;
}

.page_title .h1 span {
    display: block;
    font-size: 1.5rem;
    padding-top: 0.5em;
    color: #FFF;
    font-weight: normal;
}

/* Main Content Headings */
#main_contents h2 {
    position: relative;
    margin-bottom: 45px;
    padding-bottom: 15px;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

#main_contents h2::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--color-primary);
}

#main_contents h3 {
    text-align: center;
    background: #41ca99;
    color: #fff;
    border-radius: 4px;
    padding: 0.75rem 1em;
    letter-spacing: 0.025rem;
    position: relative;
    margin: 40px 0;
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#main_contents h3.accent-color {
    background: var(--color-teal);
}

#main_contents h4 {
    margin: 40px 0 20px;
    padding: 0 0 8px 25px;
    font-size: 1.25rem;
    position: relative;
    color: #231815;
    font-weight: bold;
    background: url(/assets/img/border_dot_green.svg) repeat-x bottom;
    background-size: auto 2px;
}

#main_contents h4::after {
    content: "";
    position: absolute;
    top: 0.4em;
    left: 0;
    display: block;
    width: 10px;
    height: 10px;
    margin: auto;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: var(--color-primary) solid 2px;
}

#main_contents h4.search-icon01,
#main_contents h4.search-icon02 {
    padding-left: 60px;
}

#main_contents h4.search-icon01::after,
#main_contents h4.search-icon02::after {
    content: "\f3ee";
    font-family: "Font Awesome 7 Brands";
    font-weight: 900;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: none;
    width: auto;
    height: auto;
    border-radius: 5px;
    padding: 0.25rem 1rem;
    bottom: 0.2rem;
    top: auto;
}

#main_contents h4.search-icon02::after {
    content: "\f1de";
    font-family: "Font Awesome 7 Free";
}

#main_contents h5 {
    font-size: 1.3em;
    margin-top: 2.25em;
    margin-bottom: .5em;
}

#main_contents .school-info h5 {
    margin-top: 1.75rem;
    font-size: 1.25rem;
}

#main_contents h6 {
    font-size: 1.125em;
    border-bottom: 1px dashed var(--color-primary);
    margin-top: 1em;
    margin-bottom: .5em;
}

.contact-phone {
    font-weight: 500;
    font-size: 1rem;
    margin-top: 1rem;
    display: inline-block;
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary-light);
    padding: 0.5rem 1rem;
}

.contact-phone a {
    font-size: 1.25rem;
    margin-left: 0.5rem;
    color: var(--color-text);
    cursor: default;
}

/* =========================
   Tabs
   ========================= */
.tab-container,
.faq-container {
    width: 100%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#main_contents .faq-container h3 {
    border-radius: 5px 5px 0 0;
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#main_contents .faq-container h5 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

#main_contents .faq-container p {
    margin-bottom: 1rem;
}

.tabs {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-primary);
    padding: 10px 0;
}

.tab-link,
.tab-a {
    background-color: transparent;
    text-decoration: none;
    border: none;
    outline: none;
    color: #FFF;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.tab-link i,
.tab-a i {
    font-size: 22px;
}

.tab-link:hover,
.tab-a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.tab-link.active,
.tab-a.active {
    background-color: var(--color-primary-dark);
}

.tab-link.active:hover,
.tab-a.active:hover {
    color: #FFF;
}

/* categories-tab */
.categories-tab {
    background-color: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

ul.categories-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    border-bottom: 4px solid var(--color-teal);
}

ul.categories-tab-nav li {
    cursor: pointer;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem 0.5rem 0 0;
    background-color: #fff;
    color: var(--color-text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

ul.categories-tab-nav li.active {
    background-color: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
}

.categories-tab-panel {
    display: none;
    padding: 1rem 0;
}

.categories-tab-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.book-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border: 2px solid var(--color-primary-light);
    position: relative;
}

.book-box a,
.book-info {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    width: 100%;
}
.book-box a.no-link {
    cursor: inherit;
}

.book-box:hover {
    border: 2px solid var(--color-primary);
    transition: border 0.3s;
}
.book-box.no-link:hover {
    border-color: var(--color-primary-light);
}

.book-box .book-cat {
    background-color: var(--color-primary-dark);
    color: #FFF;
    position: absolute;
    right: 0.5rem;
    top: -0.75rem;
    padding: 0 0.75rem;
    border-radius: 100vh;
    font-size: 90%;
}

.book-box .book-title {
    font-size: 1.275rem;
    font-weight: 700;
    background-color: var(--color-bg);
    padding: 0.25rem 0.5rem;
    margin-bottom: 1rem;
}

.book-detail .book-title {
    font-size: 1.975rem;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding: 0 0.5rem;
    margin-bottom: 4rem;
}

.book-box .book-cc {
    font-weight: 600;
}

.book-detail .book-cc {
    font-weight: 600;
    font-size: 1.125rem;
}

.book-subject {
    line-height: 2;
}

.book-box .book-subject {
    margin-top: 0.5rem;
}

.book-subject a,
.book-subject span {
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    color: #FFF;
    margin-right: 0.25rem;
    white-space: nowrap;
    font-size: 90%;
    text-decoration: none;
}

.book-title .book-subject span {
    padding: 0.25rem 1rem;
}

.book-info.book-info-sj img,
.book-box a img,
.book-info img {
    border: 1px solid var(--color-bg-dark);
}

.book-info .related-book span {
    margin-right: 1rem;
    border-radius: 4px;
    font-size: 90%;
}

.related-book {
    display: flex;
}

.related-book span a {
    color: #FFF;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0.5rem;
    display: block;
}

.book-subject a:last-child,
.book-grade a:last-child,
.book-subject span:last-child,
.book-grade span:last-child {
    margin-right: 0;
}

.kokugo {
    background-color: var(--kokugo) !important;
}

.sugaku {
    background-color: var(--sugaku) !important;
}

.eigo {
    background-color: var(--eigo) !important;
}

.rika {
    background-color: var(--rika) !important;
}

.syakai {
    background-color: var(--syakai) !important;
}

.gappon {
    background-color: var(--gappon) !important;
}

.book-grade {
    line-height: 2;
    margin-top: 0.5rem;
}

.book-grade span {
    border-radius: 5px;
    padding: 0.125rem 0.5rem;
    margin-right: 0.25rem;
    font-size: 90%;
    white-space: nowrap;
    font-weight: 600;
}

.book-grade .es {
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
}

.book-grade .jh {
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
}

.book-grade .hs {
    border: 2px solid var(--color-blue-light);
    color: var(--color-blue-light);
}

ul.book-level {
    overflow: hidden;
    border: 1px solid var(--color-accent);
    box-sizing: border-box;
    position: relative;
    border-radius: 100vh;
    font-size: 90%;
}

.categories-tab-panel ul.book-level {
    margin-top: 0.75rem;
}

ul.book-level li {
    float: left;
    width: calc(100% / 4);
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--color-accent);
    box-sizing: border-box;
}

.categories-tab-panel ul.book-level li {
    font-size: 90%;
    height: 22px;
}

ul.book-level li.target {
    background-color: var(--color-accent);
    font-weight: 600;
    border-right: 1px solid #FFF;
}

.related-tag {
    /*position: relative;*/
}

.related-tag ul {
    list-style: none;
    margin: 1rem 0 0;
    overflow: hidden;
    padding: 0;
    /*position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);*/
}

.related-tag li {
    display: inline-block;
}

.related-tag li a {
    line-height: 26px;
    position: relative;
    display: inline-block;
    margin: 0 0px 10px 10px;
    padding: 0 20px 0 23px;
    transition: color 0.3s;
    text-decoration: none;
    color: #ffffff;
    border-radius: 0 3px 3px 0;
    font-size: 85%;
    background: var(--color-primary);
}

.related-tag li a::before,
.related-tag li a::after {
    background: #fafcfc;
}

.related-tag li a::before {
    position: absolute;
    top: 10px;
    left: 3px;
    width: 6px;
    height: 6px;
    content: '';
    border-radius: 10px;
}

.related-tag li a::after {
    position: absolute;
    top: -1px;
    left: -6px;
    width: 0;
    height: 0;
    content: '';
    border-style: solid;
    border-width: 14px 8px 14px 0;
    border-color: transparent var(--color-primary) transparent transparent;
    border-radius: 4px;
}

.related-tag li a:hover {
    background: #555555;
}

.related-tag li a:hover:after {
    border-color: transparent #555555 transparent transparent;
}

.page-link-area {
    padding: var(--space-sm);
    text-align: center;
    /*box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);*/
}

.page-structure-area {
    padding: var(--space-sm);
    text-align: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.page-structure-area img {
    max-width: 80%;
}

#main_contents .page-link-area .contents-inner,
#main_contents .page-structure-area .contents-inner,
#main_contents .book-point-area .contents-inner {
    margin: 1.25rem auto;
}

.page-link-area .sp-link {
    margin-top: 0;
    width: 50%;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subject-link {
    color: var(--color-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.subject-link:before,
.subject-link:after {
    content: "";
    height: 2px;
    flex-grow: 1;
    background-color: var(--color-primary);
}

.subject-link:before {
    margin-right: 1rem;
}

.subject-link:after {
    margin-left: 1rem;
}

.page-link-area ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    list-style: none;
}

.page-link-area ul a {
    width: 100%;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.book-point-area {
    background: url(/assets/img/study_pt.png) top left;
    padding: var(--space-sm);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.book-point-area .point-box {
    background-color: #FFF;
    border-radius: 20px;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#main_contents .book-point-area .point-box h4:has(.point-badge) {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-wrap: wrap;
    padding-left: 0;
    background: url(/assets/img/border_dot_brown.svg) repeat-x bottom;
    background-size: auto 2px;
}

#main_contents .book-point-area .point-box h4:has(.point-badge)::after {
    display: none;
}

.book-point-area .point-box h4 .point-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    text-align: center;
    gap: 0.3rem;
}

.book-point-area .point-box h4 .point-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.5rem;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.book-point-area .point-box h4 .point-label {
    position: absolute;
    top: -1rem;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-point-area .point-box h4 .point-text {
    flex: 1;
    min-width: 0;
}

.zoom-img {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.zoom-img>div:first-child {
    flex: 6.5;
}

.zoomable-img-container {
    position: relative;
    flex: 3.5;
}

.zoom-img img {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.zoom-icon {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background: #333;
    color: #FFF;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.zoom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.zoom-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-height: 85vh;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: baseline;
    justify-content: center;
    overflow: scroll;
    position: relative;
}

.zoom-modal-content img {
    /*max-width: 100%;
    max-height: 100%;*/
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.zoom-modal-content iframe {
    width: 100%;
    height: 100%;
}

.zoom-modal-close {
    position: absolute;
    top: 10px;
    right: 0;
    background: #333;
    color: #FFF;
    padding: 7px 10px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .categories-tab ul {
        border: none;
    }

    .categories-tab ul li {
        border-radius: 0;
    }

    .categories-tab>.categories-tab-panel.active,
    .book-etc-info .categories-tab-panel.active,
    .book-info {
        grid-template-columns: repeat(1, 1fr);
    }

    .categories-tab>.categories-tab-panel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-link-area .sp-link {
        font-size: 1rem;
        width: 100%;
    }

    .page-link-area ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .page-link-area ul a {
        margin-top: 0;
    }

    .page-structure-area img {
        max-width: 100%;
    }

    .zoom-img {
        flex-direction: column;
    }

    .zoom-img>div,
    .zoom-img img {
        flex: none;
    }

    .zoom-modal-content {
        width: 90%;
    }
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.tab-content {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0s ease 0.5s;
    padding: 0 20px;
}

.tab-content.active {
    opacity: 1;
    height: auto;
    transition: opacity 0.5s ease, height 0s;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 40px 0;
}

.tab-nav>label {
    flex: 1 1;
    order: -1;
    position: relative;
    min-width: 70px;
    padding: .7em 1em;
    background-color: #f2f2f2;
    color: #999;
    font-size: .9em;
    text-align: center;
    cursor: pointer;
}

.tab-nav>label:hover,
.tab-nav label:has(:checked) {
    background-color: #44af35;
    color: #fff;
}

.tab-nav label:has(:checked)::before {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 9px;
    background-color: #44af35;
    content: '';
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tab-nav input {
    display: none;
}

.tab-nav>div {
    display: none;
    width: 100%;
    padding: 1.5em 1em;
}

.tab-nav label:has(:checked)+div {
    display: block;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 50%;
    border-bottom: 5px solid var(--color-primary-light);
    font-size: 1.5rem;
    font-weight: 700;
    color: #8d8d8d;
    text-align: center;
    text-decoration: none;
}

.tab-button.active {
    border-bottom: 5px solid var(--color-primary);
    color: #006600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    padding-bottom: 20px;
}

.detail-box {
    background-color: var(--color-bg-light);
    padding: 1rem;
}

#main_contents .detail-box h6:first-child {
    margin-top: 0;
}

.search-form {
    margin-bottom: 2rem;
    height: 47px;
    display: flex;
}

.search-form__input {
    flex-grow: 1;
    height: 100%;
}

.search-form__input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background-color: transparent;
    appearance: none;
    padding: 1em;
    border: 1px solid #cccccc;
    border-right: transparent !important;
    line-height: 1.6;
}

.search-form__btn {
    width: 120px;
    height: 100%;
}

.search-form__btn button {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
}

.search-cat {
    margin-bottom: 5rem;
}

.search-cat ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    list-style: none;
    margin-bottom: 4rem;
    gap: 1px;
}

.search-cat li {
    outline: 1px solid var(--color-primary);
    text-align: center;
}

.search-cat li a {
    display: block;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.5rem;
}

.search-cat li a:hover {
    background-color: var(--color-primary-light);
}

@media (max-width: 768px) {
    .tab-button {
        font-size: 1rem;
    }

    .tab-link {
        font-size: 1rem;
        padding: 8px 10px;
    }

    .tab-link i {
        display: none;
    }
}


/* =========================
   Modals & Accordion
   ========================= */
.mod-box {
    background-color: var(--color-primary-light);
    padding: 20px 30px;
}

.mod-box p {
    margin-bottom: 0;
}

.gMap {
    position: relative;
    width: 100%;
    padding-top: 42.85%;
    height: 0;
}

.gMap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.details {
    margin-bottom: 1.5rem;
}

.details-summary {
    position: relative;
    display: block;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: var(--color-primary);
}

.details-summary:hover {
    cursor: pointer;
    opacity: 0.8;
}

.btn {
    position: absolute;
    top: 37%;
    left: 15px;
    width: 18px;
    height: 18px;
    transform-origin: center center;
    transition-duration: 0.2s;
}

.btn::before,
.btn::after {
    content: "";
    background-color: #fff;
    border-radius: 10px;
    width: 18px;
    height: 4px;
    position: absolute;
    top: 7px;
    left: 0;
    transform-origin: center center;
}

.btn::before {
    width: 4px;
    height: 18px;
    top: 0;
    left: 7px;
}

.details-summary.is-active .btn {
    transform: rotate(-180deg);
}

.details-summary.is-active .btn::before {
    content: none;
}

.table-accordion thead {
    cursor: pointer;
}

.table-accordion thead th {
    position: relative;
}

.table-accordion thead th::before,
.table-accordion thead th::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 4px;
    background-color: #fff;
    border-radius: 10px;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.table-accordion thead th.ques::before,
.table-accordion thead th.ques::after {
    background-color: var(--color-primary);
}

.table-accordion thead th::before {
    width: 4px;
    height: 18px;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.table-accordion thead.is-active th::before {
    opacity: 0;
}

.details-content {
    padding: 20px;
}

.details-content p {
    margin: 0 0 20px;
    color: #000;
    font-size: 18px;
    text-align: left;
}

.details-content p:last-of-type {
    margin: 0;
}

/* =========================
   Office Details
   ========================= */

.details-content:not(.is-head-office)>.office-body>*:first-child {
    grid-column: 1 / -1;
}

.office-body {
    align-items: flex-start;
    border: 1px solid #d1d8e1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    grid-area: body;
    padding: 20px;
    margin-top: 1rem;
}

.office-body.fade-in {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.2s;
}

.office-name {
    background-color: var(--color-bg);
    padding: 0.75rem;
}

.office-name strong {
    margin-right: 0.75rem;
}

.office-body-right iframe {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

    .office-body-right iframe {
        width: 100% !important;
        height: 250px !important;
    }
}

.office__head+.office-body {
    margin-top: 24px
}

.office-data {
    flex: 1 0 auto;
    margin-bottom: 1.25rem;
    width: 100%
}

.office-data_address,
.office-data_fax,
.office-data_tel,
.office-data_zip {
    display: flex;
    font-family: Noto Sans JP, sans-serif;
    font-weight: 500
}

.office-data_address:not(:first-child),
.office-data_fax:not(:first-child),
.office-data_tel:not(:first-child),
.office-data_zip:not(:first-child) {
    margin-top: 5px
}

.office-data_address:before,
.office-data_fax:before,
.office-data_tel:before {
    flex: 0 0 auto;
    margin-right: 8px;
    position: relative;
    top: 6px
}

.office-data_address:before {
    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iX+ODrOOCpOODpOODvF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDEyIDEyIj4KICA8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMzAuMi4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogMi4xLjEgQnVpbGQgMSkgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiAjNDRhZjM1OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNiw1LjhjLS44LDAtMS40LS43LTEuNC0xLjRzLjctMS40LDEuNC0xLjQsMS40LjcsMS40LDEuNC0uNywxLjQtMS40LDEuNE02LC4yQzMuOC4yLDEuOSwyLDEuOSw0LjNzNC4xLDcuNiw0LjEsNy42YzAsMCw0LjEtNC42LDQuMS03LjZTOC4zLjIsNiwuMiIvPgo8L3N2Zz4=") 0 0 no-repeat;
    ;
    content: "";
    display: block;
    height: 16px;
    width: 16px
}

.office-data_tel:before {
    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iX+ODrOOCpOODpOODvF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDEyIDEyIj4KICA8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMzAuMi4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogMi4xLjEgQnVpbGQgMSkgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiAjNDRhZjM1OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMy4zLDBDMy42LDAsMy43LDAsMy45LjVsLjksMS42di43bC0uOSwxLjdzLjMsMS4zLDEuMywyLjNjMSwxLDIuMywxLjMsMi4zLDEuM2wxLjctLjloLjdsMS42LjljLjMsMCwuNC40LjQuNnYxLjljMCwuOS0uOSwxLjYtMS43LDEuMy0xLjktLjYtNC42LTEuNy02LjMtMy42QzIuMSw2LjUsMSwzLjYuMywxLjksMCwxLC43LjIsMS42LjJoMS45LS4xWiIvPgo8L3N2Zz4=") 0 0 no-repeat;
    ;
    content: "";
    display: block;
    height: 16px;
    width: 16px
}

.office-data_fax:before {
    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iX+ODrOOCpOODpOODvF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDEyIDEyIj4KICA8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMzAuMi4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogMi4xLjEgQnVpbGQgMSkgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiAjNDRhZjM1OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMyw5LjlWMy45aC45VjEuMWg1LjV2Mi44aDFjLjQsMCwuNy4xLDEuMS41LjIuMi41LjYuNSwxLjF2NC42SDNaTTEuMywxMC41Yy40LDAsLjYsMCwuOS0uNHMuNC0uNS40LS45di01YzAtLjQsMC0uNi0uNC0uOS0uMi0uMi0uNS0uNC0uOS0uNHMtLjYsMC0uOS40LS40LjUtLjQuOXY1YzAsLjQsMCwuNi40LjkuMi4yLjUuNC45LjRNNC41LDMuOWg0LjNWMS43aC00LjN2Mi4yWk04LjUsNi40cy4xLS4yLjEtLjUsMC0uNC0uMS0uNWMwLDAtLjItLjEtLjUtLjFzLS40LDAtLjUuMWMwLDAtLjEuMi0uMS41czAsLjQuMS41YzAsMCwuMi4xLjUuMXMuNCwwLC41LS4xTTEwLjMsNi40cy4xLS4yLjEtLjUsMC0uNC0uMS0uNWMwLDAtLjItLjEtLjUtLjFzLS40LDAtLjUuMWMwLDAtLjEuMi0uMS41czAsLjQuMS41YzAsMCwuMi4xLjUuMXMuNCwwLC41LS4xTTguNSw4LjJzLjEtLjIuMS0uNSwwLS40LS4xLS41YzAsMC0uMi0uMS0uNS0uMXMtLjQsMC0uNS4xLS4xLjItLjEuNSwwLC40LjEuNWMwLDAsLjIuMS41LjFzLjQsMCwuNS0uMU0xMC4zLDguMnMuMS0uMi4xLS41LDAtLjQtLjEtLjVjMCwwLS4yLS4xLS41LS4xcy0uNCwwLS41LjFjMCwwLS4xLjItLjEuNXMwLC40LjEuNS4yLjEuNS4xLjQsMCwuNS0uMU00LjQsOC40aDIuNHYtM2gtMi40djNaIi8+Cjwvc3ZnPg==")0 0 no-repeat;
    content: "";
    display: block;
    height: 16px;
    width: 16px
}

.office-data_note {
    color: #333;
    font-size: 1.4rem;
    line-height: 1.7142857143;
    margin-top: 16px
}

.office-data+.e-btn {
    margin-top: 24px
}

.exam-info-wrap ul li {
    border-bottom: 1px dotted var(--color-text);
    list-style: none;
    padding: 10px 5px;
}

.exam-info-wrap ul a {
    color: var(--color-text);
    text-decoration: none;
}

.exam-info-wrap ul time {
    display: inline-block;
    font-weight: bold;
    margin-right: 40px;
}

.exam-info-wrap ul span {
    background-color: var(--color-blue);
    color: #FFF;
    padding: 4px 8px;
    font-size: 80%;
    margin-right: 10px;
}

.exam-info-wrap ul span.pdf-icon {
    display: none;
}

.exam-info-wrap ul p {
    color: var(--color-blue);
    display: inline-block;
    text-decoration: underline;
    margin-bottom: 0;
}

/*.exam-info-wrap .new::after {
    content: "NEW";
    color: #FFF;
    background-color: var(--color-red);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin: 0 0 0 20px;
    display: inline-block;
    line-height: 1;
}*/

.school-name {
    font-weight: 700;
    font-size: 2rem;
    margin: 1rem 0 2rem;
    background: linear-gradient(to right, #333 50%, transparent 50%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    background-position: bottom;
    padding-bottom: 3px;
}

.school-name span {
    display: block;
    font-weight: 400;
    font-size: 1rem;
}

/* =========================
      ikushin tests
    ========================= */

.tests-feature__title {
    position: relative;
    padding-bottom: 20px;
    font-size: 2rem;
    font-weight: 800;
    margin-top: 4rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.tests-feature__title span {
    color: var(--color-blue);
}

.tests-feature__cards {
    display: grid;
    gap: 30px;
}

.tests-feature-card {
    gap: 40px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1),
        0 2px 8px rgba(15, 23, 42, 0.05);
    background: linear-gradient(135deg,
            #ffffff 40%,
            var(--color-bg-light) 100%);
    margin-bottom: 1.5rem;
}

.tests-feature-card--blue,
.tests-feature-card--green {
    display: flex;
    align-items: center;
}

.tests-feature-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.tests-feature-card--blue .tests-feature-card__number {
    background: linear-gradient(135deg,
            var(--color-blue) 0%,
            var(--color-blue-light) 100%);
}

.tests-feature-card--green .tests-feature-card__number {
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-primary-light) 100%);
}

.tests-feature-card__body {
    flex: 1;
}

.tests-feature-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.08);
}

.tests-feature-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.tests-feature-card--blue .tests-feature-card__title,
.tests-feature-card__title.card--blue {
    color: var(--color-blue);
}

.tests-feature-card--green .tests-feature-card__title,
.tests-feature-card__title.card--green {
    color: var(--color-primary);
}

.tests-feature-card__othertitle {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 1.5rem 0 1rem;
    border-bottom: 1px dashed var(--color-bg-dark);
}

.tests-feature-card__othersub {
    background-color: var(--color-primary);
    color: #FFF;
    padding: 0.25rem 1.25rem;
    border-radius: 100vh;
    display: inline-block;
}

.tests-feature-card .clm2-grid {
    justify-content: space-between;
    align-items: center;
}

#main_contents .tests-feature-card h5 {
    margin-top: 0;
}

.tests-feature-card__subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.tests-feature-card--blue .tests-feature-card__text strong {
    color: var(--color-blue);
}

.tests-feature-card--green .tests-feature-card__text strong {
    color: var(--color-primary);
}

.tests-feature-card__text ul {
    margin-left: 1.5rem;
}

.tests-feature-card__text li,
.tests-feature-card__text dt {
    margin-top: 1rem;
}

.tests-feature-card__text dt {
    font-weight: 600;
    font-size: 110%;
}

.followup {
    padding: 16px 20px 18px;
    border: 2px dashed #f39a00;
    border-radius: 8px;
    background: #fff8d9;
}

.followup_title {
    margin: 0 0 14px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
}

.followup_title span {
    color: #ff6b00;
    font-size: 1.125em;
    font-weight: 800;
}

.followup_content {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: 1rem;
}

.followup_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.followup_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ff9800;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s ease,
        transform 0.3s ease;
}

/*
.followup_button:hover {
    background-color: #f18700;
    transform: translateY(-2px);
}*/

.followup_texts {
    flex: 1;
}

.followup_text {
    margin: 0;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.followup_text+.followup_text {
    margin-top: 10px;
}

@media screen and (max-width: 767px) {
    .followup {
        padding: 16px;
    }

    .followup_title {
        font-size: 1.25rem;
        text-align: left;
    }

    .followup_content {
        flex-direction: column;
        gap: 16px;
    }

    .followup_buttons {
        width: 100%;
    }

    .followup_button {
        width: 100%;
        min-height: 48px;

    }

    .followup_text {

        line-height: 1.7;
    }
}

.tracking-banner {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 3rem auto 2rem;
}

.tracking-banner__label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    background: linear-gradient(to bottom,
            var(--color-red) 0%,
            var(--color-red-dark) 100%);
    overflow: hidden;
}

.tracking-banner__label-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 10px);
    border-top: 1px dashed #ffffff;
    border-bottom: 1px dashed #ffffff;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 4px 25px;
}

.tracking-banner__content {
    padding: 0 24px;
}

.tracking-banner__text {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tracking-banner__highlight {
    color: var(--color-primary);
    font-size: 2.25rem;
    font-weight: 900;
}

@media screen and (max-width: 767px) {
    .tracking-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .tracking-banner__label {
        min-width: auto;
    }

    .tracking-banner__label-text {
        font-size: 1.25rem;
    }

    .tracking-banner__content {
        padding: 12px 16px;
        text-align: center;
    }

    .tracking-banner__text {
        font-size: 1.125rem;
        white-space: normal;
    }

    .tracking-banner__highlight {
        font-size: 1.125rem;
    }
}

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

    .tests-feature__title {
        margin-top: 3rem;
        padding-bottom: 16px;
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .tests-feature__cards {
        gap: 20px;
    }

    .tests-feature-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .tests-feature-card__number {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .tests-feature-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .tests-feature-card__title {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .tests-feature-card__subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tests-feature-card__text {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .tests-feature-card__text p+p {
        margin-top: 12px;
    }
}

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

    .tests-feature-card {
        gap: 24px;
        padding: 24px;
    }

    .tests-feature-card__number {
        width: 72px;
        height: 72px;
        font-size: 2.2rem;
    }

    .tests-feature-card__title {
        font-size: 1.4rem;
    }

    .tests-feature-card__subtitle {
        font-size: 1.1rem;
    }
}

.sample-image {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    list-style: none;
    margin-bottom: 4rem;
    gap: 20px;
}

.sample-image img {
    border: 10px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flow_design {
    padding: 0 1.5rem;
}

.flow_design ul {
    padding: 0;
}

.flow_design div.al-l ul {
    padding: 0.0 0.0 0.0 2em;
}

.flow_design li {
    list-style-type: none;
}

.flow_design div.al-l li {
    list-style-type: disc;
}

.flow_design dd {
    margin-left: 0;
}

.flow_list>li {
    padding: 40px 10px 10px;
    ;
}

.flow_list>li dl {
    margin: 0;
}

.flow_list>li dl dt {
    font-size: 1.175rem;
    font-weight: 600;
    border-bottom: 2px dotted #878787;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    display: flex;
}

.flow_list>li dl dt .icon_num {
    font-size: 1rem;
    color: #fff;
    background: #41CA99;
    padding: 5px 10px;
    display: inline-block;
    margin-right: 0.5em;
}

#camera .flow_list>li dl dt .icon_num {
    background: var(--color-teal);
}

.flow_list>li dl dd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 1.75rem;
}

.flow_list>li dl dd div {
    text-align: center;
    margin-bottom: 1.75rem;
}

.flow_list>li dl dd div.al-l {
    text-align: left;
    margin-bottom: 0;
}

.flow_list>li dl dd img {
    max-width: 80%;
    margin: 0 auto;
}

.flow_list>li dl dd img.w25 {
    max-width: 25%;
}

.flow_list>li dl dd img.w50 {
    max-width: 50%;
}

/* =========================
      SUpport Tools
    ========================= */

.support-tool {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.support-tool>div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    border: 0.1rem solid #ccc;
    text-align: left;
}

.support-tool>div:hover {
    background-color: var(--color-primary-light);
}

.support-tool>div a {
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text);
    padding-left: 2.75rem;
    position: relative;
    display: block;
}

.support-tool>div a span {
    font-size: 85%;
    display: block;
}

.support-tool>div a:before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    content: '\f56d';
    font: var(--fa-font-solid);
    font-size: 1.75rem;
    margin-right: 0.5rem;
    color: var(--color-primary);
}

@media screen and (max-width: 768px) {
    .support-tool {
        display: block;
    }

    .support-tool div {
        margin-bottom: 0.75rem;
    }
}

/* =========================
      Japan map
    ========================= */
.st0 {
    fill: #ff7575;
    background-color: #ff7575;
}

.st1 {
    fill: #fff;
    background-color: #FFF;
}

.st2 {
    fill: #4388d3;
    background-color: #4388d3;
}

.st3 {
    fill: #31beca;
    background-color: #31beca;
    ;
}

.st4 {
    fill: #1d5ebc;
    background-color: #1d5ebc;
}

.st5 {
    fill: #edb720;
    background-color: #edb720;
}

.st6 {
    fill: #a4b935;
    background-color: #a4b935;
}

.st7 {
    fill: #2bad9c;
    background-color: #2bad9c;
}

.st8 {
    fill: #ef9f27;
    background-color: #ef9f27;
}

.st9 {
    fill: #4ab969;
    background-color: #4ab969;
}

.note-area {
    background-color: var(--color-bg);
    font-size: 80%;
    padding: 0.75rem;
    margin-top: 1.5rem;
}

#japan-map a:hover {
    opacity: 0.8;
}

#japan-map-sp {
    display: none;
}

@media (max-width: 700px) {
    #japan-map {
        display: none;
    }

    #japan-map-sp {
        display: block;
    }

    #japan-map-sp .area {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        list-style: none;
    }

    #japan-map-sp .area li a {
        color: #fff;
        text-align: center;
        padding: 10px 0;
        display: block;
    }

}

/* =========================
      Table & Form
    ========================= */

table {
    margin: 0 auto;
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    padding: 0;
}

table td,
table th {
    padding: 0.7em 1em;
}

table th {
    text-align: center;
    font-weight: normal;
}

.table_df {
    width: 100%;
    margin: 2rem auto;
    border-collapse: collapse;
    border-spacing: 0;
}

.book-info .table_df {
    margin-bottom: 1rem;
}

.table_df input[type=text],
.table_df input[type=url],
.table_df input[type=email],
.table_df input[type=tel],
.table_df input[type=date],
.table_df input[type=number],
.table_df select,
.table_df textarea,
.search-banner input[type=text] {
    width: 100%;
    max-width: 100%;
    padding: 9px 2%;
    color: #231815;
    margin: 0 0.2em;
    border: 1px solid #cccccc;
    background: #fafafa;
    border-radius: 3px;
}

.search-banner input[type=text] {
    margin: 0;
}

.table_df input[type=number] {
    width: 65px;
    text-align: center;
}

.table_df input.postal-code {
    width: 200px;
}

.table_df input.region {
    width: 100px;
}

.table_df input.locality {
    width: 150px;
}

.table_df input.address {
    width: 100%;
}

.table_df .tel-field {
    display: flex;
    justify-content: space-between;
}

.table_df .list-item {
    display: inline-block;
    margin: 0 0 0 1em;
}

.table_df .input_wrap input,
.table_df .input_wrap textarea {
    margin: 0;
}

.table_df .input_wrap input:focus,
.table_df .input_wrap textarea:focus,
.search-banner input:focus {
    background: #fdf6cd;
    outline: 1px solid #cccccc;
    outline-offset: -1px;
}

label,
input[type='checkbox'] {
    cursor: pointer;
}

.shuppan-search input[type='checkbox'] {
    display: none;
}

.shuppan-search label {
    display: block;
    text-align: center;
    color: #555;
    border: 1px solid #CCC;
    border-radius: 5px;
    padding: 4px;
    width: 100%;
}

.shuppan-search input:checked+label {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
}

.table_df .es {
    background-color: var(--color-orange);
}

.table_df .es2 {
    background-color: var(--color-orange-light);
}

.table_df .jh {
    background-color: var(--color-teal);
}

.table_df .hs {
    background-color: var(--color-blue-light);
}

.table_df .book-grade .es,
.table_df .book-grade .jh,
.table_df .book-grade .hs {
    background-color: #FFF;
}

.table_df .tbodyth,
.table_df .no-cell {
    background-color: var(--color-bg-light);
}

.table_df .tbodyth-blue {
    background-color: var(--color-blue-light);
    text-align: left;
    color: #FFF;
    font-weight: 700;
}

.table_df .tbodyth-ltgreen {
    background-color: var(--color-primary-light);
    text-align: left;
    font-weight: 700;
}

.table-x-scroll {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
}

.table-x-scroll .table_df {
    margin-top: 0;
}

.table-x-scroll .table_df th,
.table-x-scroll .table_df td {
    white-space: nowrap;
    padding: 0.5rem;
}

.table-x-scroll .table_df td.warp-unset {
    white-space: unset;
    min-width: 250px;
}

.table_df .input_wrap:last-child {
    margin-right: auto;
}

.table_df .btn_submit {
    margin: 1em 0;
    text-align: center;
}

.form_button.btn_submit,
.form_button.btn_back {
    display: inline-block;
    max-width: 240px;
    width: 100%;
    margin: 1rem;
    padding: 1em 1em;
    border: var(--color-primary) solid 2px;
    border-radius: 40px;
    line-height: 1;
    background: var(--color-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    appearance: none;
    transition: 0.3s;
    font-size: 1.125rem;
    cursor: pointer;
    font-weight: bold;
}

.form_button.btn_back {
    border: var(--color-text) solid 2px;
    background: var(--color-text);
}

.form_button_wrap {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
}

.form_button_wrap-m0 {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.form_button_wrap button {
    margin: 0.5em !important;
}

.form_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    transition: all .3s ease;
}

.form_button.btn_search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form_button.btn_search-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
    font-size: 1rem;
}

.form_button__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke-width: 2;
    transition: transform .3s ease;
}

.form_button:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.search-banner {
    background: #eee;
    padding: 10px;
    margin-bottom: 2rem;
}

.search-banner__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFF;
    border: 2px solid #c8d8c3;
    padding: 5px;
}

.search-banner__lead {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 160px;
}

.search-banner__lead-main {
    font-weight: bold;
    font-size: 18px;
}

.search-banner__lead-sub {
    font-size: 14px;
}

.search-banner__form {
    flex: 1;
}

.search-banner__text {
    font-size: 13px;
    margin-bottom: 6px;
}

.search-banner__controls {
    display: flex;
    gap: 10px;
}

.search-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    height: 36px;
    cursor: pointer;
    border-radius: 10px;
    width: 20%;
    text-align: center;
    transition: all .3s ease;
}

.search-banner__icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.search-banner__button:hover {
    background: #166b22;
    transform: translateY(-1px);
}

#search-result thead th {
    background-color: var(--color-primary-light);
}

.schoolTbl thead th {
    background-color: var(--color-teal);
    color: #FFF;
    padding: 1rem 1rem 1rem 2.75rem;
    text-align: left;
    font-weight: 700;
}

.schoolTbl thead th.ques {
    background-color: var(--color-bg);
    padding: 0.5rem 1rem 0.5rem 2.75rem;
    color: var(--color-text);
}

#search-result th,
#search-result td,
.schoolTbl th,
.schoolTbl td,
.borderTbl th,
.borderTbl td {
    border: 1px solid #CCC;
    text-align: center;
}

.schoolTbl tbody td {
    text-align: left;
    font-family: monospace;
    font-size: 110%;
    white-space: pre-wrap;
    line-height: 1;
}

.schoolTbl tbody th,
.borderTbl thead th {
    background-color: var(--color-bg);
}

.borderTbl thead th.th-accent {
    background-color: var(--color-accent);
}

#search-result td:first-child {
    text-align: left;
}

#search-result td>span,
.school-info .school-type>span {
    font-size: 85%;
    padding: 0.2rem 0.75rem;
    color: #FFF;
    border-radius: 4px;
}


.school-info .school-type>span {
    margin-right: 10px;
}

.tp1 {
    background-color: #2bad9c;
}

.tp2 {
    background-color: #27b0ef;
}

.tp3 {
    background-color: #ef9f27;
}

.ge1 {
    background-color: #31beca;
}

.ge2 {
    background-color: #1d5ebc;
}

.ge3 {
    background-color: #ff7575;
}

.book-etc-info thead th {
    background-color: var(--color-bg);
    /*text-align: left;*/
    border-left: 1px solid #b4b4b4;
}

.book-etc-info thead th:first-child {
    text-align: center;
    border-left: none;
}

.book-detail tbody th,
.book-etc-info tbody th {
    background-color: var(--color-bg-light);
    width: 20%;
}

.book-etc-info tbody td {
    text-align: center;
}

/*
.book-etc-info tbody td:nth-child(2n) {
    text-align: left;
}
*/

@media (max-width: 768px) {
    .table_df .no-cell {
        display: none;
    }

    .search-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .search-banner__lead {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .search-banner__controls {
        flex-direction: column;
    }

    .search-banner__button {
        justify-content: center;
        width: 100%;
    }
}

.inquiry_form .table {
    border: none;
}

.inquiry_form .table_df tr:not(:last-of-type),
.book-detail tbody tr,
.book-etc-info tbody tr {
    border-bottom: 1px solid #b4b4b4;
}

.book-detail tbody tr:first-of-type,
.book-etc-info tbody tr:first-of-type {
    border-top: 1px solid #b4b4b4;
}

.inquiry_form .table_df th {
    background: none;
    border: none;
    text-align: left;
    padding: 1.4em 50px 1.2em 0.5em;
    vertical-align: top;
    font-weight: bold;
    position: relative;
}

.inquiry_form .table_df td {
    background: none;
    border: none;
    padding: 1.2em 0.5em;
    width: 70%;
}

.inquiry_form .table_df.shuppan-search {
    margin: 1.25rem auto 2rem auto;
}

.inquiry_form .input_wrap {
    display: block;
    margin: 0;
    padding: 0 0.2em;
}

.inquiry_form .table_df th .required {
    color: var(--color-red);
    margin-left: 0.5em;
}

.inquiry_form .formError .formErrorContent {
    color: var(--color-red);
}

.inquiry_form .fixed .formErrorContent {
    background: #ffcdcd;
    border: none
}

.table_noline {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
}

.table_noline th,
.table_noline td {
    border: 2px solid #fff;
    background-color: var(--color-primary-light);
    padding: 1em;
}

.table_noline th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: bold;
    text-align: center;
    width: 20%;
    min-width: 4em;
}

.table_info th,
.table_info td {
    text-align: left;
    padding: 15px 20px;
}

.table_info th {
    font-weight: 700;
}

.table_info tr:not(:last-child) th,
.table_info tr:not(:last-child) td {
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);

}

.school-search th,
.shuppan-search th {
    background-color: var(--color-bg);
    font-weight: bold;
    text-align: center;
    width: 20%;
    min-width: 4em;
    border-bottom: 1px dotted var(--color-text);
}

.school-search__cell,
.inquiry_form .table_df.shuppan-search .shuppan-search__cell {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: auto;
}

.full-width-cell {
    grid-column: 1 / -1;
    font-size: 110%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dotted #9a9a9a;
}

.full-width-cell:first-child {
    border: none;
    padding-top: 0;
}

.shuppan-search__cell-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.shuppan-search__cell-6:last-child {
    margin-bottom: 0;
}

.school-search__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    min-width: 768px;
    white-space: nowrap;
}

.table-container table.schoolTbl {
    margin: 1rem 0;
}


@media (max-width: 768px) {
    .table_df td.school-search__cell {
        display: grid;
        width: auto;
        grid-template-columns: repeat(2, 1fr);
    }

    .inquiry_form .table_df.shuppan-search .shuppan-search__cell {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shuppan-search__cell-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    }

    .inquiry_form .table_df th {
        padding: 1em 0 0;
    }

    .inquiry_form .table_df td {
        padding: 0.5em 0 1em;
    }

    .inquiry_form .input_wrap {
        margin: 0;
    }

    .table_df input[type=text],
    .table_df input[type=url],
    .table_df input[type=email],
    .table_df input[type=tel],
    .table_df input[type=date],
    .table_df input[type=number],
    .table_df select,
    .table_df textarea {
        margin: 0.2em 0;
    }

    .form_button_wrap {
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }

    .table-container table {
        width: 100%;
        min-width: auto;
        white-space: break-spaces;
    }
}

@media (min-width: 769px) {

    .table_df input[type=text],
    .table_df input[type=url],
    .table_df input[type=email],
    .table_df input[type=tel],
    .table_df input[type=date],
    .table_df input[type=text],
    .table_df select {
        margin: 0 0.2em;
    }

    .table_df input[type=number] {
        width: 65px;
    }

    .table_df input.postal-code {
        width: 200px;
    }

    .table_df input.region {
        width: 100px;
    }

    .table_df input.locality {
        width: 150px;
    }

    .table_df input.street-address {
        width: 100%;
    }

    .table_df textarea {
        width: 100%;
    }

    .table_df .input_wrap {
        display: block;
        margin: 0 0.2em;
    }

    .table_df .input_wrap input,
    .table_df .input_wrap textarea {
        margin: 0;
    }

    .table_df .input_wrap:last-child {
        margin-right: auto;
    }

    .table_df .submit {
        margin: 60px 0 0;
    }

    .f-nav .contents-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        width: 700px;
        margin: 0 auto;
    }

    .f-nav ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0 auto 1rem auto;
        align-items: center;
        justify-content: center;
    }
}

/*@media (min-width: 769px) and (hover: hover) and (min-width: 769px) {
    .inquiry_form .form_button.form_back:hover {
        background: #bfbfbf;
        border-color: #bfbfbf;
        color: #666;
    }
}

@media (min-width: 769px) {
    .inquiry_form .form_button.form_send {
        background: #151c3b;
        border-color: #151c3b;
        color: #fff;
    }
}*/

/* -------------------------------------------------------
   Cookie使用同意ポップアップ
   
---------------------------------------------------------- */
.cookie-consent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .85);
    padding: 25px;
    box-sizing: border-box;
    visibility: hidden;
    z-index: 10000;
}

/* =========================
   Educational Concept Section (from concept.blade.php)
   ========================= */
.edu-concept {
    text-align: center;
    border-bottom: 2px dotted var(--color-bg-dark);
    padding-bottom: 2rem;
}

.edu-concept__eyebrow {
    display: inline-block;
    letter-spacing: .2em;
    color: var(--color-primary);
}

.edu-concept__title {
    margin: 16px 0;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
}

.edu-concept__title i {
    color: var(--color-primary);
    font-size: 125%;
}

.edu-concept__lead {
    max-width: 760px;
    margin: auto;
    line-height: 2;
}

.ed-section {
    margin-top: 80px;
}

#main_contents h2.ed-section__title {
    margin-top: 60px;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline__item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 15px;
}

.timeline__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.timeline__body,
.cmn-card {
    background: #fff;
    padding: 1rem 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: var(--color-bg-light) 1px solid;
}

#main_contents h3.timeline__title,
#main_contents .cmn-card h3 {
    margin: 0 0 20px 0;
    background-color: var(--color-blue-light);
}

.timeline p,
.cmn-feature p,
.cmn-card p {
    margin-bottom: 0;
}

.cmn-feature {
    margin-top: 80px;
}

.cmn-feature__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cmn-card__title {
    margin: 0 0 20px 0;
    color: var(--color-primary);
    font-size: clamp(1rem, 6vw, 1.5rem);
    font-weight: 700;
}

.chilist,
.check-list {
    padding: 0;
    list-style: none;
    margin: 15px 0;
}

.chilist {
    display: flex;
}

.chilist__item {
    padding: 10px 16px;
    background: #eef7ff;
    border-radius: 15px;
    margin: 8px;
    text-align: center;
    font-size: 80%;
    font-weight: 600;
}

.chilist__item i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.check-list__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.check-list__item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.cmn-feature__3grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .education {
        padding: 40px 16px;
    }

    .edu-concept {
        padding: 60px 24px;
    }

    .cmn-feature__grid,
    .cmn-feature__3grid {
        grid-template-columns: 1fr;
    }

    .timeline__item {
        padding-left: 75px;
    }
}

@media only screen and (min-width: 600px) {
    .cookie-inner {
        width: 600px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }
}

.cookie-consent.is-show {
    visibility: visible;
}

.cookie-consent a {
    color: #fff !important;
}

.cookie-agree {
    color: #fff;
    font-size: 16px;
    text-align: center;
    background: dodgerblue;
    padding: 7px 25px;
}

.cookie-agree:hover {
    cursor: pointer;
}

.cookie-close {
    position: absolute;
    top: -32px;
    right: 0;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, .70);
    padding: 4px 15px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.cookie-close:hover {
    cursor: pointer;
}

/* パッと消える */
.cc-hide1 {
    display: none;
}

/* ゆっくり消える */
.cc-hide2 {
    animation: hide 1s linear 0s;
    animation-fill-mode: forwards;
}

@keyframes hide {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
    }

    .cookie-text {
        margin-bottom: 1em;
    }
}

.company_building {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.company_building__item:nth-child(1),
.company_building__item:nth-child(2),
.company_building__item:nth-child(3) {
    flex: 1;
}

.company_building__item:nth-child(4) {
    flex-basis: 100%;
}

.company_building__item {
    margin: 0;
    text-align: center;
}

.company_building__img {
    height: 300px;
    margin: 0 auto;
    width: auto;
    display: block;
}

.company_building__item:nth-child(4) .company_building__img {
    height: 220px;
}

.company_building__caption {
    font-size: 12px;
    margin-top: 6px;
    color: #666;
}

/*
.company_building {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 25px;
grid-row-gap: 25px;
margin-bottom: 40px;
}

.company_building__item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.company_building__item:nth-child(2) { grid-area: 1 / 2 / 2 / 4; }
.company_building__item:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
.company_building__item:nth-child(4) { grid-area: 2 / 3 / 3 / 4; }
*/

@media (max-width: 768px) {
    .company_building {
        flex-direction: column;
    }

    .company_building img {
        width: 100%;
        height: auto;
    }
}

.company_history {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.company_history:first-child {
    border-top: 0;
}

.company_history:first-child:after {
    height: calc(60% + 10px);
    bottom: -2px;
    top: auto;
}

.company_history:last-child:after {
    height: 94%;
}

.company_history:before {
    position: absolute;
    top: 25px;
    left: 83px;
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    background-color: var(--color-primary-dark);
    border-radius: 50%;
}

.company_history:after {
    position: absolute;
    top: 0;
    left: 87px;
    content: "";
    display: block;
    width: 1px;
    height: calc(100% + 1px);
    background-color: var(--color-primary-dark);
    z-index: 2;
}

.company_history-year {
    position: relative;
    width: 110px;
    font-weight: bold;
    font-size: 1.25rem;
}

.company_history-content {
    width: calc(100% - 110px);
    padding-left: 25px;
    box-sizing: border-box;
}

.company_history-box+.company_history-box {
    margin-top: 20px;
}


/* =========================
       レスポンシブ
    ========================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    .header__container {
        grid-template-columns: 120px 1fr 100px;
    }

    .logo img {
        width: 110px;
    }

    .nav__link {
        padding: 1rem 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .top-strength__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .page_title {
        height: 220px;
    }

    .page_title .h1 {
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin-left: 1rem;
        font-size: 2rem;
    }

    #main_contents h2 {
        margin-bottom: 25px;
        padding-bottom: 10px;
        font-size: 1.975rem;
    }

    #main_contents h2::before {
        height: 3px;
    }

    #main_contents h3 {
        font-size: 1.25rem;
    }

    #main_contents h4 {
        font-size: 1.125rem;
    }

    #main_contents h5 {
        font-size: 1.125rem;
    }

    #main_contents h6 {
        font-size: 1rem;
    }

}

@media (min-width: 768.99px) {
    .top-nav__icon {
        display: none;
    }

    .sp-side-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .header__container {
        display: flex;
        justify-content: space-between;
    }

    .header__contact,
    .header__top,
    .footer__grid {
        display: none;
    }

    .header__top {
        padding: 0.75rem 0;
    }

    .logo {
        padding: 0.75rem 0.5rem;
    }

    .logo img {
        width: 120px;
    }

    .search-box {
        display: none;
    }

    .header__actions {
        gap: 0.5rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger-only {
        display: block;
    }

    aside {
        display: none;
    }

    .contents-w-nav {
        width: 100%;
    }

    #main_contents .inner-flex {
        display: block;
    }

    aside#sdNav {
        display: block;
        width: 100%;
        margin-top: 1.5rem;
    }

    .sp-side-nav {
        padding: 20px;
        line-height: 2;
    }

    .sp-side-nav a {
        color: var(--color-text);
        text-decoration: none;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding-top: 4rem;
        transition: left 0.3s;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav__item {
        border-bottom: 1px solid var(--bg-light);
    }

    .nav__link {
        padding: 1rem 1.5rem;
    }

    .nav__dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--bg-light);
        padding: 0;
        transition: max-height 0.3s, opacity 0.3s;
    }

    .nav__item.active .nav__dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 0.5rem 0;
    }

    .nav__dropdown a {
        padding-left: 2.5rem;
    }

    .nav__dropdown a:hover {
        padding-left: 3rem;
    }

    .header__main .h-btn,
    .header__main .h-snav {
        display: block;
    }

    .header__main .h-btn {
        text-align: center;
    }

    .h-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin: 1.5rem 1rem;
    }

    .btn_df {
        display: inline-flex;
        flex-wrap: wrap;
        text-wrap-mode: wrap;
        gap: 0.3rem 0.5rem;
        margin: 0;
    }

    .btn_df small {
        flex-basis: 100%;
        text-align: center;
    }

    .btn_df_lg {
        font-size: 1rem;
    }

    .top-hero {
        flex-direction: column;
        padding: var(--space-md);
    }

    .top-hero__content {
        padding-right: 0;
        position: relative;
        margin-bottom: var(--space-lg);
    }

    .top-hero__title {
        font-size: 1.5rem;
    }

    .top-hero__img {
        display: none;
    }

    .top-search {
        padding: var(--space-md);
    }

    .top-search__title a,
    .top-feature__title {
        font-size: 1.5rem;
        margin-bottom: var(--space-md);
    }

    .top-search__category {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .top-search__category-label {
        margin-bottom: var(--space-sm);
    }

    .f-contact .contents-inner {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md);
    }

    .footer__bottom {
        border: 0;
        padding: 0;
    }

    .f-nav ul li,
    .f-nav ul li:last-child {
        display: block;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding: var(--space-sm) 0;
    }

    .top-feature {
        padding: var(--space-lg) var(--space-md);
    }

    .top-strength {
        padding: var(--space-lg) var(--space-md);

    }

    .top-strength__main {
        font-size: 1.5rem;
    }

    .top-strength__title::before,
    .top-strength__title::after {
        width: 20px;
    }

    .top-news {
        padding: var(--space-lg) var(--space-md);

    }

    /*.top-news__header {
        flex-direction: column;
        align-items: flex-start;
    }*/

    .top-news__list {
        margin-left: 0;
    }

    .top-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        margin-top: var(--space-md);
    }

    .top-news__title {
        font-size: 1.25rem;
    }

    .btn_top {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .col2-block {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .page_title {
        height: 180px;
    }

    .page_title .h1 {
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin-left: 1rem;
        font-size: 1.75rem;
    }

    .page_title .h1 span {
        display: none;
    }

    #main_contents h2 {
        font-size: 1.75rem;
    }

    #main_contents h3 {
        font-size: 1.25rem;
    }

    #main_contents h4 {
        font-size: 1.125rem;
    }

    #main_contents h5 {
        font-size: 1.125rem;
    }

    #main_contents h6 {
        font-size: 1rem;
    }

    .tests-feature-card__othertitle {
        font-size: 1.5rem;
    }

    .tests-feature-card__othersub {
        border-radius: 4px;
    }

    .contact-phone a {
        display: block;
        font-size: 2rem;
        margin-left: 0rem;
    }

    .table_df,
    .table_df tr,
    .table_df th,
    .table_df td {
        display: inline-block;
        width: 100% !important;
    }

    .table-x-scroll .table_df th,
    .table-x-scroll .table_df td {
        width: auto !important;
    }

    .table-x-scroll .table_df {
        display: table;
    }

    .table-x-scroll .table_df tr {
        display: table-row;
    }

    .table-x-scroll .table_df th,
    .table-x-scroll .table_df td {
        display: table-cell;
        width: auto;
    }

    .table-container table {
        display: table;
    }

    .table-container table tr {
        display: table-row;
    }

    .table-container table th,
    .table-container table td {
        display: table-cell;
        width: auto;
    }

    .table_info th,
    .table_info td {
        text-align: left;
        padding: 10px 15px;
    }

    .table_info tr:not(:last-child) th {
        border-bottom: 0;
    }
    
    .schoolTbl td .td-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: pre-wrap;
        width: 80ch;
        -webkit-overflow-scrolling: touch;
    }

    .company_history-year,
    .company_history-content {
        font-size: 0.9rem;
    }

    .company_history-year {
        width: 90px;
        font-size: 1.125rem;
    }

    .company_history-content {
        width: calc(100% - 90px);
    }

    .clm2-grid {
        display: block;
        margin-bottom: 2rem;
    }

}

@media (max-width: 480px) {
    .h-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .top-hero__title {
        font-size: 1.2rem;
    }

    .top-hero__desc {
        font-size: 0.85rem;
    }

    .top-hero__buttons {
        flex-direction: column;
    }

    .btn_top {
        width: 100%;
    }

    .top-search__category-links {
        gap: var(--space-sm);
    }

    .top-search__category-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .top-strength__grid {
        gap: var(--space-md);
    }

    .top-news__item {
        flex-direction: column;
        gap: var(--space-sm);
        font-size: 0.9rem;
    }

    .top-news__cat {
        align-self: flex-start;
    }
}

/* ------------------ */
/*  Snippflow Alerts  */
/* ------------------ */

.flash-alert {
    --flash-alert-success-bg: #d4edda;
    --flash-alert-success-text: #155724;
    --flash-alert-success-icon: #28a745;
    --flash-alert-success-link: #155724;

    --flash-alert-error-bg: #f8d7da;
    --flash-alert-error-text: #721c24;
    --flash-alert-error-icon: #dc3545;
    --flash-alert-error-link: #721c24;

    --flash-alert-warning-bg: #fff3cd;
    --flash-alert-warning-text: #856404;
    --flash-alert-warning-icon: #ffc107;
    --flash-alert-warning-link: #856404;

    --flash-alert-info-bg: #d1ecf1;
    --flash-alert-info-text: #0c5460;
    --flash-alert-info-icon: #17a2b8;
    --flash-alert-info-link: #0c5460;
}

.flash-alert {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 4px;
}

.flash-alert .alert-icon {
    flex-shrink: 0;
    font-size: 24px;
}

.flash-alert .alert-content {
    flex-grow: 1;
}

.flash-alert .alert-content>*~* {
    margin-top: 10px;
}

.flash-alert .alert-content ul {
    margin-left: 20px;
}

.flash-alert .alert-content a {
    text-decoration: underline;
}

.flash-alert .alert-content a:hover {
    text-decoration: none;
}

.flash-alert a.alert-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-size: 18px;
    text-decoration: none;
}

.flash-alert a.alert-close:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.flash-alert.success {
    color: var(--flash-alert-success-text);
    background-color: var(--flash-alert-success-bg);
}

.flash-alert.success a {
    color: var(--flash-alert-success-link);
}

.flash-alert.success .alert-icon {
    color: var(--flash-alert-success-icon);
}

.flash-alert.error {
    color: var(--flash-alert-error-text);
    background-color: var(--flash-alert-error-bg);
}

.flash-alert.error a {
    color: var(--flash-alert-error-link);
}

.flash-alert.error .alert-icon {
    color: var(--flash-alert-error-icon);
}

.flash-alert.warning {
    color: var(--flash-alert-warning-text);
    background-color: var(--flash-alert-warning-bg);
}

.flash-alert.warning a {
    color: var(--flash-alert-warning-link);
}

.flash-alert.warning .alert-icon {
    color: var(--flash-alert-warning-icon);
}

.flash-alert.info {
    color: var(--flash-alert-info-text);
    background-color: var(--flash-alert-info-bg);
}

.flash-alert.info a {
    color: var(--flash-alert-info-link);
}

.flash-alert.info .alert-icon {
    color: var(--flash-alert-info-icon);
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0px;
    margin-bottom: 1.5rem;
}

.pagination li {
    text-decoration: none;
    margin: 0 4px;
}

.pagination li.active,
.pagination li.disabled {
    padding: 8px 12px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg);
}

.pagination li a {
    padding: 8px 12px;
    display: block;
    text-decoration: none;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg);
}