/* ========================================
   CSS Variables
   ======================================== */
:root {
    --key-color: #2b5682;
    --sub-color: #4c6994;
    --accent-color: #9d915a;
    --bg-color: #f0f0eb;

    /* Font Size (Mobile First) */
    --font-size-base: 16px;
    --font-size-small: 12px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-color);
}

/* ========================================
   PC Font Size (Desktop)
   ======================================== */
@media (min-width: 768px) {
    html {
        font-size: 20px;
    }

    body {
        font-size: 20px;
    }
}

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--key-color);
    z-index: 1000;
}

.h-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

/* Left: Brand Section */
.h-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 2 1 0;
    min-width: 0;
}

.h-company {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.h-logo {
    margin: 0;
    padding: 0;
    line-height: 1;
    width: 55%;
}
.h-logo img {
  width: 100%;
}

.h-company-name-en {
    font-size: 0.7rem;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

/* Center: Access Section */
.h-access {
    display: none;
    flex: 1 1 0;
    text-align: center;
    color: #fff;
    min-width: 0;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: var(--spacing-xs) var(--spacing-sm);
}

/* Mobile: Hide access, show contact in navigation menu */
@media (max-width: 767px) {
    .h-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .h-brand {
        flex: 0 0 55%;
        display: flex;
        align-items: center;
        max-width: 55%;
    }

    .h-logo {
        width: 100%;
        max-width: 100%;
    }

    .h-logo img {
        transform: scale(1.3);
        transform-origin: left center;
    }

    .h-access {
        display: none !important;
    }

    .h-contact {
        display: none !important;
    }

    .h-menu-btn {
        flex: 0 0 auto;
        margin-left: auto;
        display: block;
    }
}

.h-access-title {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 500;
    margin-bottom: 4px;
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
}

.h-access-title .material-symbols-outlined {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.h-access-address {
    font-size: clamp(0.65rem, 1vw, 1.1rem);
    margin: 0;
    color: #fff;
    text-align: left;
}

/* Right: Contact Section */
.h-contact {
    display: flex;
    position: relative;
    align-items: stretch;
    gap: var(--spacing-md);
    min-width: 0;
}

.h-cta-text {
    font-size: calc(clamp(0.65rem, 1vw, 1rem) * 1.2);
    background-color: #fff;
    color: var(--key-color);
    margin: 0;
    font-weight: bold;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.h-contact-btn {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    background-color: var(--key-color);
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 6px var(--spacing-sm);
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

.h-contact-btn:hover {
    opacity: 0.9;
}

.h-contact-btn .material-symbols-outlined {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.25em;
}

.h-contact-btn-text {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Mobile Menu Button */
.h-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: #fff;
    flex-shrink: 0;
}

.h-menu-btn .material-symbols-outlined {
    font-size: 2rem;
}

/* Mobile Navigation */
.h-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.h-nav.is-active {
    transform: translateX(0);
}

.h-nav-list {
    list-style: none;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.h-nav-contact {
    display: none;
    padding: var(--spacing-md);
    background-color: var(--bg-color);
    border-bottom: 1px solid #eee;
}

.h-nav-item {
    border-bottom: 1px solid #eee;
}

.h-nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--key-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.h-nav-link:hover {
    background-color: var(--bg-color);
}

/* Close Button */
.h-close-btn {
    display: none;
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--key-color);
    z-index: 10;
}

.h-close-btn .material-symbols-outlined {
    font-size: 2rem;
}

/* Mobile: Show contact in navigation menu */
@media (max-width: 767px) {
    .h-close-btn {
        display: block;
    }

    .h-nav {
        padding-top: 80px;
    }

    .h-nav-contact {
        display: block;
    }

    .h-nav-contact .h-cta-text {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
        background-color: #fff;
        color: var(--key-color);
        white-space: nowrap;
    }

    .h-nav-contact .h-contact-buttons {
        gap: var(--spacing-xs);
    }

    .h-nav-contact .h-contact-btn {
        background-color: var(--key-color);
        border: 1px solid var(--key-color);
        color: #fff;
    }
}

/* Tablet & PC Header */
@media (min-width: 768px) {
    .h-inner {
        padding: var(--spacing-md) var(--spacing-lg);
        gap: var(--spacing-md);
    }

    .h-logo {
        width:100%
    }

    .h-company-name-en {
        font-size: 0.8rem;
    }

    .h-access {
        display: block;
    }

    .h-contact {
        display: flex;
        align-items: stretch;
        min-width: 0;
    }

    .h-cta-text {
        font-size: calc(clamp(0.65rem, 0.8vw, 1rem) * 1.2);
        flex-shrink: 0;
        flex-basis: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .h-menu-btn {
        display: none;
    }

    .h-nav {
        position: static;
        transform: none;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
        background-color: transparent;
        top: auto;
        height: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }

    .h-nav::-webkit-scrollbar {
        height: 4px;
    }

    .h-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .h-nav::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .h-nav::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }

    .h-nav-list {
        display: flex;
        justify-content: center;
        gap: var(--spacing-md);
        padding: 0;
        min-width: max-content;
    }

    .h-nav-item {
        border-bottom: none;
    }

    .h-nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        color: #fff;
        white-space: nowrap;
    }

    .h-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .h-contact-btn {
        padding-left: calc(var(--spacing-sm) * 1.5);
        padding-right: calc(var(--spacing-sm) * 1.5);
    }

    .h-contact-btn-text {
        font-size: calc(0.85rem * 1.2);
        font-weight: bold;
    }
}

/* Hide h-access on tablet portrait size and below */
@media (max-width: 1023px) {
    .h-access {
        display: none !important;
    }
}

/* Show h-access on desktop (1024px and above) */
@media (min-width: 1024px) {
    .h-access {
        display: block;
    }
}

/* Tablet size: Reduce font size for h-access-title to prevent line break */
@media (min-width: 768px) and (max-width: 1023px) {
    .h-access-title {
        font-size: 0.5rem;
    }

    .h-access-title .material-symbols-outlined {
        font-size: 0.9rem;
    }

    .h-contact-btn-text {
        font-size: calc(0.85rem * 1.2);
    }

    .h-contact-btn .material-symbols-outlined {
        font-size: calc(1.1rem * 0.85);
    }
}

@media (min-width: 1024px) {
    .h-inner {

        gap: var(--spacing-lg);
    }

    .h-logo-img {
        width: 100px;
        max-width: 600px;
    }

    .h-company-name-en {
        font-size: 0.9rem;
    }
}

/* ========================================
   Main Visual
   ======================================== */
.mv {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.mv img {
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .mv {
    max-width: 1400px;
    margin: 0 auto;
    }
}



.mv-image--pc {
    display: none;
}

.mv-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: absolute;
    z-index: 10;
    top:1rem;
}

.is-PC {
    display: none;
}
.is-SP {
display: block;
}
.is-MVPC {
    display: none;
}

.is-MVSP {
    display: block;
}
@media (min-width: 769px) {
    .mv-inner {
    top: 6rem;
    }
.is-PC {
    display: block;
}

.is-SP {
    display: none;
}
.is-MVPC {
    display: block;
}

.is-MVSP {
    display: none;
}
}
.mv-content {
    text-align: center;
    padding: var(--spacing-md);

}

.mv-title {

    display: none;
}

.mv-title-text {
    font-size: 1.25rem;
    color: #fff;
    position: relative;
    display: inline-block;
    padding: 0 4px;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.mv-title-text::before {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    width: 100%;
    height: 0.4em;
    background-color: #ffd700;
    opacity: 0.8;
    z-index: -1;
    transform: skewY(-2deg);
}

.mv-title-main {
    font-size: 2rem;
    color: #fff;
    position: relative;
    display: inline-block;
    padding: 0 4px;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.mv-title-main ruby {
    font-size: 0.9em;
}

.mv-title-main rt {
    font-size: 0.4em;
    line-height: 1;
    white-space: nowrap;
}

.mv-title-main::before {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    width: 100%;
    height: 0.5em;
    background-color: #ffd700;
    opacity: 0.8;
    z-index: -1;
    transform: skewY(-2deg);
}

@media (min-width: 768px) {
    .mv {
        background-image: url('../images/mv_pc.jpg');
    }

    .mv::before {
        background-image: url('../images/mv_pc.jpg');
    }

    .mv-image--sp {
        display: none;
    }

    .mv-image--pc {
        display: block;
    }

    .mv-content {
        padding: var(--spacing-lg);
    }

    .mv-title-text {
        font-size: 2.1rem; /* 1.75rem * 1.2 = 2.1rem */
    }

    .mv-title-main {
        font-size: 3.6rem; /* 3rem * 1.2 = 3.6rem */
    }

    .mv-title-main ruby {
        font-size: 0.9em;
    }

    .mv-title-main rt {
        font-size: 0.35em;
    }
}

/* ========================================
   Interview Box
   ======================================== */
.ib {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-color);
}

.ib-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ib-top {
    position: relative;
    margin: 0 auto var(--spacing-lg) auto;
    min-height: 200px;
    background-image: url('../images/doctor_icon.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    padding-top: 200px;


}

.ib-answers {
    display: flex;
    gap: var(--spacing-md);
    margin: -4rem 0 0 auto;
    flex-direction: column;
    position: relative;
    z-index: 2;
    width: 60%;

}

.ib-answer {
    flex: 1;
    text-align: center;
}

.ib-answer-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background-color: var(--key-color);
    color: #fff;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ib-answer-btn:hover {
    opacity: 0.9;
}

.ib-answer-text {
    font-size: 0.9rem;
    color: #333;
    margin: var(--spacing-sm) 0 0 0;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
}

.ib-answer-text.is-visible {
    max-height: 200px;
    opacity: 1;
    margin-top: var(--spacing-sm);
}

.ib-transition {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--key-color);
    margin: 0 0 var(--spacing-lg) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.ib-transition .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--key-color);
}

.ib-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.ib-item {
    list-style: none;
}

.ib-item-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ib-item-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ib-item-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--key-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
}

.ib-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.ib-item-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.ib-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    object-fit: contain;
}



@media (min-width: 768px) {
    .ib {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    .ib-top {
        margin-bottom: var(--spacing-xl);
        min-height: 250px;
        padding-top: 250px;
            width: 70%;

    }

    .ib-answers {
        flex-direction: row;
        gap: var(--spacing-xl);
                width: 65%;
                margin: -2rem 0 0 auto;
      padding-bottom: 5rem;
    }

    .ib-list {
        max-width: 70%;
        margin: 0 auto;
    }

    .ib-answer-btn {
        font-size: 1.5rem;
        padding: var(--spacing-md) var(--spacing-xxl);
    }

    .ib-answer-text {
        font-size: 1rem;
    }

    .ib-transition {
        font-size: 2rem;
    }

    .ib-transition .material-symbols-outlined {
        font-size: 2rem;
    }

    .ib-item-link {
        padding: var(--spacing-lg);
    }

    .ib-item-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .ib-item-title {
        font-size: 1.25rem;
    }

    .ib-item-icon {
        width: 50px;
        height: 50px;
    }
}
/* タブレット用ブレイクポイント (769px以上1279px以下) */
@media (min-width: 769px) and (max-width: 990px) {
.ib-top {
        width: 90%;
    }
    .ib-answers {
        width: 75%;
        gap: var(--spacing-md);
        margin: 0 0 0 auto;
        transform: scale(0.85);
        transform-origin: right top;
    }

    .ib-answer-btn {
        font-size: 1.2rem;
        padding: var(--spacing-sm) var(--spacing-lg);
        white-space: nowrap;
    }

    .ib-answer-text {
        font-size: 0.85rem;
    }
    .ib-list {
        max-width: 90%;
    }

}
@media (min-width: 991px) and (max-width: 1279px) {
    .ib-answer-btn {
    font-size: 0.8rem;
    }
   .ib-answers {
    margin: 2rem 0 0 auto;
    }
}

/* PC用ブレイクポイント (1280px以上) */
@media (min-width: 1280px) {
    .ib-answers {
        width: 65%;
        gap: var(--spacing-xl);
        margin: 4rem 0 0 auto;
    }

    .ib-answer-btn {
        font-size: 1.5rem;
        padding: var(--spacing-md) var(--spacing-xxl);
    }

    .ib-answer-text {
        font-size: 1rem;
    }
}

/* ========================================
   Answer Sections
   ======================================== */
.ans {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-color);
}

.ans:nth-child(even) {
    background-color: #fff;
}

.ans-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ans-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--key-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.ans-title-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--key-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
}

.ans-content {
    max-width: 930px;
    margin: 0 auto;
}

#ans02 .ans-content,
#ans03 .ans-content {
    max-width: 100%;
}

.ans-text {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.ans-text:last-child {
    margin-bottom: 0;
}

.ans-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: #333;
}

.ans-diagram {
    margin: var(--spacing-lg) 0;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.ans-diagram-img {
    max-width: 95%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ans-features {
    margin-top: var(--spacing-xl);
    background-color: #fff;
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.ans-features-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--key-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.ans-feature {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px dashed #ccc;
}

.ans-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ans-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--key-color);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    background-color: yellow;
    padding: 0.1em 0.3em;
    line-height: 1.4;
}

.ans-feature-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.ans-button-wrapper {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.ans-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background-color: var(--key-color);
    color: #fff;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    padding-right: calc(var(--spacing-xl) + 1.5rem);
}

.ans-button:hover {
    opacity: 0.9;
}

.ans-button::after {
    content: '→';
    position: absolute;
    right: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 700;
}

.ans-image {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.ans-image-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ans-image-img--pc {
    display: none;
}

.ans-image-img--sp {
    display: block;
}

.ans-notes {
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
}

.ans-note {
    font-size: var(--font-size-small);
    color: #666;
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.ans-note:last-child {
    margin-bottom: 0;
}

.ans-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--key-color);
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-color);
}

.ib-subtitle {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    border-bottom: none;
}

.ib-subtitle .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--key-color);
}

.ans-conditions {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

.ans-condition {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.ans-condition::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--key-color);
}

.ans-condition:last-child {
    margin-bottom: 0;
}

.ans-info {
    margin: var(--spacing-lg) 0;
}

.ans-info-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: var(--spacing-md);
}

.ans-info-text:last-child {
    margin-bottom: 0;
}

.ans-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.ans-flow-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xs);
    background-color: #f0f0eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ans-flow-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--key-color);
    transform: translateY(-50%);
    z-index: 1;
    display: block;
}

.ans-flow-item:last-child::after {
    display: none;
}

.ans-flow-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ans-flow-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ans-flow-content {
    flex: 1;
}

.ans-flow-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
}

.ans-flow-duration {
    font-size: 0.85rem;
    color: var(--key-color);
    font-weight: 700;
    margin: 0;
    padding: 4px 8px;
    background-color: rgba(43, 86, 130, 0.1);
    border-radius: 4px;
    display: inline-block;
}

@media (min-width: 768px) {
    .ans {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    .ans-title {
        font-size: 2rem;
    }

    .ans-title-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .ans-intro {
        font-size: 1.25rem;
    }

    .ans-features-title {
        font-size: 1.5rem;
    }

    .ans-feature-title {
        font-size: 1.5rem;
    }

    .ans-feature-text {
        font-size: 1.1rem;
    }

    .ans-button {
        font-size: 1.5rem;
        padding: var(--spacing-md) var(--spacing-xxl);
        padding-right: calc(var(--spacing-xxl) + 1.5rem);
    }

    .ans-button::after {
        right: var(--spacing-xxl);
        font-size: 1.5rem;
    }

    .ans-subtitle {
        font-size: 1.5rem;
    }

    .ib-subtitle .material-symbols-outlined {
        font-size: 1.75rem;
    }

    .ans-condition {
        font-size: 1.1rem;
    }

    .ans-info-text {
        font-size: 1.1rem;
    }

    .ans-image-img--sp {
        display: none;
    }

    .ans-image-img--pc {
        display: block;
    }

    #ans02 .ans-content,
    #ans03 .ans-content {
        max-width: 1400px;
    }

    #ans02 .ans-image-img--large,
    #ans03 .ans-image-img--large {
        max-width: 1200px;
        width: 100%;
    }

    #ans03 .ans-image-img--small {
        max-width: 600px;
        width: 100%;
    }

    #ans04 .ans-image-img,
    #ans05 .ans-image-img {
        max-width: 90%;
    }

    .ans-flow {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }

    .ans-flow-item::after {
        display: block;
        right: -30px;
        border-left: 20px solid var(--key-color);
    }

    .ans-flow-item::after {
        display: block;
        top: 50%;
        right: -30px;
        bottom: auto;
        transform: translateY(-50%);
        border-left: 20px solid var(--key-color);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

    .ans-flow-item:last-child::after {
        display: none;
    }

    .ans-flow-icon {
        width: 100px;
        height: 100px;
    }

    .ans-flow-title {
        font-size: 1rem;
    }

    .ans-flow-duration {
        font-size: 0.9rem;
    }

    .ans-table {
        font-size: 1.1rem;
        min-width: auto;
    }

    .ans-table-caption {
        font-size: 1.25rem;
    }

    .ans-table-header {
        font-size: 1.1rem;
        padding: var(--spacing-md);
    }

    .ans-table-cell {
        font-size: 1rem;
        padding: var(--spacing-md);
    }
}

/* ========================================
   Table Styles
   ======================================== */
.ans-table-wrapper {
    margin: var(--spacing-lg) 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(43, 86, 130, 0.3) transparent;
}

.ans-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.ans-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.ans-table-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(43, 86, 130, 0.3);
    border-radius: 4px;
}

.ans-table-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(43, 86, 130, 0.5);
}

.ans-table {
    width: 100%;
    min-width: 600px;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ans-table-caption {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--key-color);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.ans-table-header {
    background-color: var(--key-color);
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    border: 1px solid var(--key-color);
}

.ans-table-cell {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    background-color: #fff;
}

.ans-table tbody tr:nth-child(even) .ans-table-cell {
    background-color: var(--bg-color);
}

.ans-table tbody tr:hover .ans-table-cell {
    background-color: rgba(43, 86, 130, 0.05);
}

/* ========================================
   FAQ Styles
   ======================================== */
.faq {
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--bg-color);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--key-color);
    transition: background-color 0.3s ease;
}

.faq-header:hover {
    background-color: rgba(43, 86, 130, 0.1);
}

.faq-title {
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--key-color);
    transition: transform 0.3s ease;
    margin-left: var(--spacing-sm);
}

.faq-header[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    display: none;
    padding: var(--spacing-md) var(--spacing-lg);
}

.faq-header[aria-expanded="true"] + .faq-content {
    display: block;
}

.faq {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid #ddd;
}

.faq:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.faq-question:hover {
    color: var(--key-color);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--key-color);
    margin-left: var(--spacing-sm);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question.is-active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.faq-answer.is-active {
    max-height: 2000px;
    padding: 0 0 var(--spacing-md) 0;
    opacity: 1;
}

.faq-answer p {
    margin-bottom: var(--spacing-sm);
    padding: 0 1em;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-list {
    margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-md);
    padding-left: var(--spacing-sm);
}

.faq-list li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

.faq-link {
    margin-top: var(--spacing-md);
}

.faq-link a {
    color: var(--key-color);
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0 1em;
}

.faq-link a:hover {
    text-decoration: none;
}

.faq-highlight {
    color: var(--key-color);
    font-weight: 500;
}

@media (min-width: 768px) {
    .faq-header {
        font-size: 1.1rem;
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    .faq-content {
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}

/* ========================================
   Contact Wbox
   ======================================== */
.cw {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.cw-logo {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.cw-logo-img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.cw-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cw-block {
    padding: var(--spacing-md);
    border-radius: 8px;
}

.cw-block--1 {
    background-color: var(--key-color);
    color: #fff;
    text-align: center;
}

.cw-block-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.cw-block--2 {
    background-color: #fff;
    border: 1px solid #ddd;
    text-align: center;
}

.cw-block-title {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.cw-block-tel {
    margin: 0 0 var(--spacing-xs) 0;
}

.cw-block-tel a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--key-color);
    text-decoration: none;
}

.cw-block-tel a:hover {
    text-decoration: underline;
}

.cw-block-tel .material-symbols-outlined {
    font-size: 1.5rem;
}

.cw-block-tel-number {
    font-size: 75%;
}

.cw-block-time {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.cw-block--3 {
    background-color: #fff;
    border: 1px solid #ddd;
    text-align: center;
}

.cw-block-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--key-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.cw-block-link:hover {
    opacity: 0.8;
}

.cw-block-link .material-symbols-outlined {
    font-size: 1rem;
}


@media (min-width: 768px) {
    .cw-blocks {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .cw-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cw-block--1 {
        flex: 2;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .cw-block--2 {
        flex: 2.5;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .cw-block--3 {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .cw-block-tel a {
        font-size: 1.8rem;
    }

    .cw-block-link {
        font-size: 1.1rem;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .cw-blocks {
        flex-direction: column;
    }
        .cw-block-link {
            display: block;
text-align: center;
    }
.is-PC {
    display: none;
}
}
/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--key-color);
    color: #fff;
    text-align: center;
}

.f-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.f-copyright {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.f-note {
    font-size: var(--font-size-small);
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* ========================================
   Mobile Fixed Footer Content
   ======================================== */
.fix_content {
    display: none;
}

@media (max-width: 1023px) {
    .fix_content {
        position: fixed;
        bottom: -100px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transition: bottom 0.4s ease-in-out;
        display: block;
    }

    .fix_content.show {
        bottom: 0;
    }

    .nav_link {
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav_link li {
        flex: 1;
        text-align: center;
        border-right: 1px solid #eee;
    }

    .nav_link li:last-child {
        border-right: none;
    }

    .nav_link li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-xs);
        color: var(--key-color);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        transition: background-color 0.3s ease;
        min-height: 70px;
        gap: 4px;
    }

    .nav_link li a:hover,
    .nav_link li a:active {
        background-color: rgba(43, 86, 130, 0.1);
    }

    .nav_link li a .material-symbols-outlined {
        font-size: 1.5rem;
        color: var(--key-color);
    }

    .nav_link_text {
        font-size: 0.75rem;
        line-height: 1.2;
        word-break: keep-all;
    }
}

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