:root {
    --header-height: 90px;
    --primary: #d87631;
    --accent: #d18d4e;
    --text: #4a3d33;
    --subtext: #726f63;
    --bg: #fdfcf2;
    --white: #FFFFFF;
}

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(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2; 
    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: "Hiragino Maru Gothic ProN", sans-serif;
    margin-bottom: 0;
    display: inline-block;
    transform: scaleY(1.4);
}

.page-title-ja {
    font-size: 35px;
    color: var(--text);
    font-family: "Hiragino Maru Gothic ProN", sans-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: rgba(243, 181, 92, 0.5); 
    
    padding: 80px 60px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sp-br {
    display: none;
}

.about-lead {
    font-family: "Hiragino Maru Gothic ProN", sans-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);
}

.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;
    border-radius: 30px; 
    padding: 15px; 
    box-shadow: 0 10px 25px rgba(114, 111, 99, 0.1);
}

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

.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: #d2c1a5;
    margin-top: 10px;
}

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


.deco-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.dot-1 {
    width: 350px;
    height: 350px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    opacity: 0.08;
}

.dot-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    right: -150px;
    opacity: 0.06;
}

.dot-3 {
    width: 180px;
    height: 180px;
    background: var(--primary);
    top: 25%;
    right: 10%;
    opacity: 0.1;
}

.dot-4 {
    width: 120px;
    height: 120px;
    background: var(--accent);
    bottom: 35%;
    left: 4%;
    opacity: 0.12;
}

.flow-section {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.flow-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.flow-header {
    text-align: center;
    margin-bottom: 80px;
}

.flow-ja {
    font-size: clamp(24px, 3vw, 32px);
    color: #333;
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
}

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    box-sizing: border-box;
    width: 100%; 
}

.flow-item::before {
    content: "";
    position: absolute;
    width: calc(50% - 50px);
    height: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.flow-item:nth-child(odd)::before {
    left: 50px;
    border-left: 1.5px dashed #aaa;
    border-bottom: 1.5px dashed #aaa;
    border-bottom-left-radius: 60px;
}

.flow-item:nth-child(odd):not(:first-child)::before {
    border-top: 1.5px dashed #aaa;
    border-top-left-radius: 60px;
    top: -0.75px;
}

.flow-item:first-child::before {
    top: 75px; 
    height: calc(100% - 75px);
}

.flow-item:nth-child(even)::before {
    right: 50px; 
    border-right: 1.5px dashed #aaa;
    border-bottom: 1.5px dashed #aaa;
    border-top: 1.5px dashed #aaa;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    top: -0.75px;
}

.flow-item:last-child::before {
    border-bottom: none;
    height: 100%;
}

.flow-step-box {
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: #fae4c0; 
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: 30px; 
}

.flow-item:nth-child(odd) .flow-step-box {
    left: 4px; 
}

.flow-item:nth-child(even) .flow-step-box {
    right: 4px; 
}

.flow-step-num {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
}

.flow-content {
    max-width: 800px; 
    text-align: left;
    padding-left: 120px; 
    position: relative;
    z-index: 5;
}

.flow-item:nth-child(even) .flow-content {
    margin-left: auto;
    padding-left: 0;
    padding-right: 120px;
    text-align: left;
    max-width: 500px;
}

.flow-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.flow-item-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

@media (max-width: 768px) {
    .flow-item::before {
        width: 0 !important;
        left: 30px !important;
        border-left: 1.5px dashed #aaa !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: none !important;
        border-radius: 0 !important;
        height: 100% !important; 
        top: 0 !important;
    }
    .flow-item:first-child::before {
        top: 30px !important;
        height: calc(100% - 30px) !important;
    }
    .flow-item:last-child::before {
        height: 100% !important;
    }
    .flow-item {
        padding: 20px 0 0px 0px !important;
    }
    .flow-step-box {
        width: 60px;
        height: 60px;
        left: 0 !important;
        top: 0;
    }
    .flow-content {
        padding-left: 50px !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
}

.guarantee-section {
    padding: 80px 20px;
    background-color: #fdfcf2; 
}

.guarantee-inner {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

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

.guarantee-ja {
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    color: #333;
    
}

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

.guarantee-item {
    width: calc(33.333% - 20px);
    min-width: 300px;
    background-color: var(--white);
    padding: 50px 30px;
    box-sizing: border-box;
    border-radius: 40px 80px 40px 90px; 
    box-shadow: 0 15px 35px rgba(216, 118, 49, 0.08); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

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

.guarantee-title-wrap {
    margin-bottom: 15px;
    display: inline-block;
}

.guarantee-title {
    font-family: "Hiragino Maru Gothic ProN", sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--primary); 
    margin: 0;
}

.guarantee-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.guarantee-text {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text);
    text-align: left;
    width: 100%;
}

@media (max-width: 768px) {
    .guarantee-item {
        width: 100%;
        min-width: auto;
        padding: 40px 25px;
        border-radius: 40px !important;
    }
}

.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: "Hiragino Maru Gothic ProN", sans-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: #fae4c0;
    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: "Hiragino Maru Gothic ProN", sans-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 var(--primary);
    border-right: 2px solid var(--primary);
    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: var(--primary);
    color: var(--white);
    border-top: 2px solid var(--primary);
    position: relative;
}

.comp-other {
    border-bottom: 1px solid #6b5c4b;
}

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

.comparison-table .comparison-row:last-child .comp-main {
    border-bottom: 2px solid var(--primary);
}

.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(205, 120, 50, 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: flex-start;
        text-align: left;
    }

    .sp-br {
        display: block; 
    }

    .about-lead {
        font-size: 21px;
        margin-bottom: 5px;
        align-items: flex-start; 
        text-align: left;
    }

    .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: 20px 10px;
    }

    .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;
    }
}