:root {
    --header-height: 90px;
}

body {
    padding-top: var(--header-height);
}

.page-title {
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-title--first {
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    top: calc(-1 * var(--header-height));
    height: calc(100% + var(--header-height));
    background-image:
        linear-gradient(#cdd0e3 1px, transparent 1px),
        linear-gradient(90deg, #cdd0e3 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
    z-index: 0;
}

.page-title-inner {
    position: relative;
    width: 100%;
    text-align: center;
}

.page-title-en {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--subtext);
    font-family:
        "Helvetica Neue",
        Arial,
        "Hiragino Sans",
        Meiryo,
        sans-serif;
    margin-bottom: 0;
    display: inline-block;
    transform: scaleY(1.4);
}

.page-title-ja {
    font-size: 35px;
    color: var(--text);
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        "MS PMincho",
        serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: 0;
}

.page-visual {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.6) 1%,
            rgba(0, 0, 0, 1) 10%)
}

.page-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.about-section {
    padding: 60px 0 50px 0
}

.about-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
    background-color: #f0f4f8;
    padding: 80px 60px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-lead {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(18px, 2.1vw + 8px, 32px);
    line-height: 1.6;
    color: var(--text);
    margin-bottom: clamp(25px, 3vw, 40px);
    font-weight: 700;
    white-space: normal;
}

.about-text {
    font-size: clamp(14px, 1vw + 10px, 16px);
    line-height: 2;
    color: var(--text);
    opacity: 0.9;
}

.service-section {
    padding: 0px 40px 80px 40px;
}

.service-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-header::before,
.service-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--subtext);
    max-width: 200px;
}

.service-main-title {
    padding: 10px 29px;
    font-size: 24px;
    font-weight: normal;
    color: var(--text);
    letter-spacing: 0.1em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-item {
    background-color: var(--white);
    border: 1px solid var(--subtext);
    padding: 8px;
}

.service-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

.service-content {
    text-align: center;
    padding: 10px 10px;
}

.service-title {
    font-size: clamp(16px, 1vw + 10px, 18px);
    font-weight: bold;
    color: var(--text);
    margin-bottom: 15px;
    position: relative;
}

.service-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #d1c6b3;
    margin-top: 10px;
}

.service-desc {
    font-size: clamp(12px, 1vw + 10px, 14px);
    line-height: 1.6;
    color: #666;
}

.flow-section {
    padding: 40px 40px 80px 40px;
    background-color: var(--white);
}

.flow-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-header {
    margin-bottom: 20px;
}

.flow-ja {
    text-align: left;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(18px, 2.1vw + 8px, 32px);
    color: var(--text);
    font-weight: 700;
}

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.flow-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: #474570;
    z-index: 0;
}

.flow-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #474570;
    padding: 10px 30px;
    position: relative;
    z-index: 1;
}

.flow-step-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #9d9db3;
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

.flow-step-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 2px;
}

.flow-step-num {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.flow-vertical-line {
    width: 1px;
    height: 90px;
    background-color: #474570;
    margin: 0 30px;
    flex-shrink: 0;
}

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

.flow-item-title {
    font-size: clamp(16px, 1vw + 10px, 18px);
    font-weight: bold;
    color: var(--text);
    margin-bottom: 15px;
}

.flow-item-desc {
    font-size: clamp(14px, 1vw + 10px, 16px);
    line-height: 1.8;
    color: #393a55;
}

.guarantee-section {
    padding: 40px 10px 90px 10px;
}

.guarantee-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.guarantee-header {
    text-align: center;
    margin-bottom: 40px;
}

.guarantee-ja {
    text-align: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(18px, 2.1vw + 8px, 32px);
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 700;
}

.guarantee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 20px;
}

.guarantee-item {
    width: calc(33.333% - 40px);
    min-width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 30px 10px;
    border: 1px solid #c0c9d7;
    border-radius: 8px;
}

.guarantee-item::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #c0c9d7; 
    border-radius: 5px;
    pointer-events: none;
}

.guarantee-icon {
    width: 100px;
    margin-bottom: 0px;
}

.guarantee-icon svg {
    filter: drop-shadow(0 4px 6px rgba(69, 69, 112, 0.15));
    width: 100%;
    height: auto;
}

.guarantee-title {
    font-size: clamp(16px, 1vw + 10px, 18px);
    font-weight: bold;
    color: var(--text);
    margin-top: 0px;
    margin-bottom: 5px;
}

.guarantee-badge {
    display: inline-block;
    background-color: #7083b0;
    color: var(--white);
    font-size: clamp(10px, 1vw + 10px, 12px);
    font-weight: bold;
    padding: 4px 18px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.guarantee-text {
    font-size: 14px;
    line-height: 1.7;
    color: #393a55;
    text-align: left;
    width: 100%;
    max-width: 320px;
}

.introduction-section {
    padding: 70px 40px 60px 40px;
    background-color: var(--white);
}

.introduction-inner {
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
}

.introduction-header {
    text-align: center;
    margin-bottom: 20px;
}

.introduction-ja {
    text-align: left;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(18px, 2.1vw + 8px, 32px);
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 700;
}

.intro-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
    margin-bottom: 30px;
}

.intro-guarantee-card {
    display: flex;
    align-items: center;
    background-color: var(--bg);
    padding: 0px 30px;
    min-height: 100px;
    border-bottom: 1px solid var(--subtext);
}

.intro-icon {
    width: 50px;
    height: 50px;
    color: var(--text);
    flex-shrink: 0;
}

.intro-divider {
    width: 1px;
    height: 60px;
    background-color: var(--subtext);
    margin: 0 20px;
}

.intro-card-title {
    font-size: clamp(16px, 1vw + 10px, 18px);
    font-weight: bold;
    color: var(--text);
    letter-spacing: 0.05em;
}

.intro-card-sub {
    font-size: 11px;
    color: var(--text);
    margin-top: -20px;
}

.intro-merit-box {
    display: flex;
    background-color: #b6c3d5;
    padding: 10px 0;
    align-items: center;
    justify-content: space-around;
}

.intro-merit-item {
    text-align: center;
    flex: 1;
}

.merit-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.merit-label {
    font-size: clamp(14px, 1vw + 10px, 16px);
    color: var(--text);
}

.merit-text {
    font-size: 15px;
    margin-top: -30px;
    font-weight: bold;
    color: var(--text);
    line-height: 1.6;
}

.intro-merit-divider {
    width: 1px;
    height: 80px;
    background-color: var(--subtext);
}

.comparison-section {
    padding: 50px 30px 90px 30px;
}

.comparison-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-header {
    text-align: center;
    margin-bottom: 20px;
}

.comparison-ja {
    text-align: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(18px, 2.1vw + 8px, 32px);
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 700;
}

.comparison-table {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    border-collapse: collapse;
}

.comparison-row {
    display: contents;
}

.comp-label,
.comp-main,
.comp-other {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    font-size: clamp(13px, 1vw + 10px, 14px);
    border-bottom: 1px solid var(--subtext);
    text-align: center;
}

.comp-label {
    color: var(--text);
    font-weight: bold;
}

.comp-main {
    background-color: var(--white);
    border-left: 2px solid #27267d;
    border-right: 2px solid #27267d;
    color: var(--text);
}

.comp-other {
    background-color: #f8f9fa;
    color: #888;
}

.comparison-row.header>div {
    font-size: clamp(14px, 1vw + 10px, 16px);
    padding: 20px 15px;
    border-bottom: none;
    border-bottom: 1px solid var(--subtext);
}

.comp-main.highlight {
    background-color: #27267d;
    color: var(--white);
    border-top: 2px solid #27267d;
    position: relative;
}

.comp-other {
    border-bottom: 1px solid #4e4b6b;
}

.comparison-row.header .comp-other {
    background-color: #f1f3f5;
    color: #666;
    border-bottom: 1px solid #4e4b6b;
}

.comparison-table .comparison-row:last-child .comp-main {
    border-bottom: 2px solid #27267d;
}

.comparison-overflow {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.comparison-overflow.is-active {
    cursor: grabbing;
}

.comparison-overflow::-webkit-scrollbar {
    display: none;
}

.scroll-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: rgba(54, 44, 133, 0.7);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-margin {
    margin-top: 50px;
}

.scroll-hint p {
    font-size: 11px;
    font-weight: bold;
    margin-top: 8px;
    white-space: nowrap;
}

.scroll-hint-icon {
    width: 40px;
    height: 30px;
    animation: scroll-hint-anim 1.5s infinite;
}

.is-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes scroll-hint-anim {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateX(15px);
        opacity: 0;
    }
}



@media screen and (min-width: 851px) {
    .scroll-hint {
        display: none;
    }
}



@media (max-width: 850px) {
    .service-section {
        padding: 0px 0px 50px 0px;
    }

    .service-header {
        gap: 5px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .guarantee-section {
        padding: 40px 0px 80px 0px;
    }

    .guarantee-grid {
        gap: 10px 20px;
    }

    .guarantee-item {
        width: calc(30% - 10px);
        min-width: 250px;
    }

    .introduction-section {
        padding: 50px 0px 60px 0px;
    }

    .comparison-section {
        padding: 50px 0px 90px 0px;
    }

    .comparison-table {
        display: grid;
        grid-template-columns: 120px 1fr 1fr;
        min-width: 750px;
    }
}



@media (max-width: 600px) {
    :root {
        --header-height: 75px;
    }

    .page-title {
        height: 85px;
    }

    .page-title-en {
        font-size: 13px;
    }

    .page-title-ja {
        font-size: 24px;
    }

    .page-visual {
        height: 250px;
    }

    .page-visual img {
        object-fit: cover;
        object-position: center;
    }

    .about-section {
        padding: 50px 0px 30px 0px;
    }

    .about-inner {
        flex-direction: column;
        gap: 0;
    }

    .about-content {
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: left;
        align-items: left;
        text-align: left;
    }

    .about-lead {
        font-size: 21px;
        margin-bottom: 5px;
    }

    .about-text {
        font-size: 13px;
    }

    .service-inner {
        width: 90%;
    }

    .service-header {
        margin-bottom: 5px;
    }

    .service-main-title {
        padding: 8px 10px;
        font-size: 16px;
    }

    .service-item {
        padding: 5px;
    }

    .service-content {
        padding: 5px 5px;
    }

    .service-title {
        font-size: 13px;
        margin-bottom: 0px;
    }

    .service-title::after {
        margin-top: 5px;
    }

    .service-desc {
        font-size: 10px;
    }

    .flow-section {
        padding: 20px 0px 40px 0px;
    }

    .flow-header {
        margin-bottom: 0px;
    }

    .flow-item {
        padding: 10px 10px;
    }

    .flow-step-box {
        width: 50px;
        height: 50px;
    }

    .flow-step-label {
        font-size: 8px;
        margin-bottom: 0px;
    }

    .flow-step-num {
        font-size: 20px;
    }

    .flow-vertical-line {
        margin: 0px 15px;
    }

    .flow-item-title {
        font-size: 15px;
        margin-bottom: 0px;
    }

    .flow-item-desc {
        font-size: 12px;
        line-height: 1.3;
    }

    .guarantee-section {
        padding: 40px 0px 30px 0px;
    }

    .guarantee-header {
        margin-bottom: 25px;
    }

    .guarantee-ja {
        font-size: 20px;
        margin-bottom: 0;
    }

    .guarantee-grid {
        gap: 5px 3px;
    }

    .guarantee-item {
        width: calc(50% - 10px);
        min-width: 0;
        padding: 0;
        padding: 10px 3px; 
    }

    .guarantee-item::after {
        display: none;
    }

    .guarantee-icon {
        width: 75px;
    }

    .guarantee-title {
        font-size: 15px;
    }

    .guarantee-badge {
        font-size: 12px;
        padding: 2px 15px;
    }

    .guarantee-text {
        font-size: 13px;
        margin-top: 5px;
    }

    .introduction-section {
        padding: 30px 0px 60px 0px;
    }

    .introduction-header {
        margin-bottom: 15px;
    }

    .introduction-ja {
        margin-bottom: -10px;
    }

    .intro-guarantee-grid {
        gap: 10px 10px;
        margin-bottom: 15px;
    }

    .intro-guarantee-card {
        flex-direction: column;
        text-align: center;
        padding: 10px 0px 0px 0px;
    }

    .intro-divider {
        width: 80px;
        height: 1px;
        margin: 10px 0;
    }

    .intro-icon {
        margin-bottom: 0px;
    }

    .intro-card-title {
        font-size: 14px;
        margin-top: 3px;
    }

    .intro-card-sub {
        margin-top: -15px;
    }

    .intro-merit-box {
        padding: 5px 0px;
    }

    .merit-title-wrap {
        margin-bottom: 10px;
    }

    .merit-label {
        font-size: 15px;
    }

    .merit-text {
        font-size: 12px;
        margin-top: -22px;
    }

    .comparison-section {
        padding: 30px 0px 30px 0px;
    }

    .comparison-header {
        margin-bottom: 20px;
    }

    .comparison-ja {
        font-size: 20px;
        margin-bottom: 0;
    }

    .comp-label,
    .comp-main,
    .comp-other {
        font-size: 12px;
    }

    .comparison-row.header>div {
        font-size: 13px;
        padding: 10px 10px;
    }

    .site-margin {
        margin-top: 30px;
    }
}