/* --------- basics --------- */

:root {

    --font-main-regular: "fot-tsukuardgothic-std", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-main-bold: "fot-tsukuardgothic-std", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    /* --font-accent-1: "Accent1", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent-2: "Accent2", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; */

    --color-bg: #f8f5f2;
    --color-text: #333;
    --color-accent: #e38c20;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    margin: 0;
    background: #eceaea;
    color: var(--color-text);
    font-family: var(--font-main-regular);
    font-size: 12pt;
    letter-spacing: 0.03em;
    line-height: 1.6em;
    background-image: url(../IMG/bg-kumo.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-attachment: fixed;
    background-size: cover;
    min-width: 260px;
}


body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../IMG/bg-grange.png");
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 9999;
}


.site-wrapper {
    position: relative;
    z-index: 1;
}

.js-fadeup,
.js-fadedown,
.js-fadeleft,
.js-faderight {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

p,
div {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.main-font-regular {
    font-family: var(--font-main-regular);
}

.main-font-bold {
    font-family: var(--font-main-bold);
}

/* 
.accent-font-1 {
    font-family: var(--font-accent-1);
}

.accent-font-2 {
    font-family: var(--font-accent-2);
} */

.fs-txL {
    font-size: 1.5em;
}

.fs-txM {
    font-size: 1.2em;
}

.fs-txS {
    font-size: 0.8em;
}

.fs-txSS {
    font-size: 0.6em;
}

.let-L {
    letter-spacing: 0.5em;
}

.let-M {
    letter-spacing: 0.2em;
}

.let-S {
    letter-spacing: 0.1em;
}

.let-0 {
    letter-spacing: 0em;
}

h1,
h2,
h3,
h4 {
    margin: 0;

}


/* reset */
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;

}

.content-box ul,
.content-box ol {
    width: 90%;
    margin: 0 auto;
    text-align: left;
}

/* list */
ul li,
ol li {
    margin-bottom: 0.6em;
}

ul.dot li {
    position: relative;
    padding-left: 1.2em;
}

ul.dot li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.45em;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #e38c20;
}

/* --------- ALL --------- */

.site-wrapper {
    min-height: 100vh;
    /* display: flex; */
    justify-content: center;
    padding: -5px 8px 0px;
}

/* mob part */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge旧 */
    -webkit-overflow-scrolling: touch;
    /* iOS */
    scroll-behavior: smooth;
}



/* WebKit系（Chrome / Safari） */
.phone-frame::-webkit-scrollbar {
    display: none;
}

.yoko-cen {
    display: flex;
    justify-content: center;

}

/* PCcont */
.pc-consult-button {
    display: none;
}

/* --------- mob-logo --------- */

.hero {
    position: relative;
    padding: 0;
    z-index: 1000;
}

.hero-logo {
    background-color: #f6f6f6;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 120px;
    padding-bottom: 6px;
}

.hero-logo img {
    max-height: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%) scaleY(-1);
    width: 103%;
    height: 30px;
    background-color: #f6f6f6;

    -webkit-mask-image: url(../IMG/huti-b.svg);
    -webkit-mask-repeat: repeat-x;
    -webkit-mask-size: 103% auto;
    -webkit-mask-position: center 120%;

    mask-image: url(../IMG/huti-b.svg);
    mask-repeat: repeat-x;
    mask-size: 100% auto;
    mask-position: center 120%;
}

/* --- */
.logo-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-floating img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-floating.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------------------------------
   moblay
   --------------------------------- */
#content-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #f6f6f6;
}


.section {
    padding-bottom: 30px;
}

.section h2 {
    width: auto;
    text-align: center;

}

.section h2:first-of-type {
    padding-top: 20px;
}

.section-title img {
    width: 100%;
    max-width: 400px;
}

.white-bg {
    background-color: #f6f6f6;
}

.yellow-bg {
    background-color: #f5e15a;
}

.grey-bg {
    background-color: #f7f7f7;
}


.topsection {
    width: 100%;
}

.topsection-image {
    width: 100%;
    height: 700px;
    overflow: hidden;

    background-image: url(../IMG/img-top.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.topsection-text {
    position: relative;
    z-index: 1;
    margin-top: -30px;
    /* 波を画像に重ねる */
    padding: 45px 20px;
    overflow: visible;
}

.topsection h1 {
    padding-bottom: 1em;
}

.top-nami {
    position: relative;
}

.top-nami::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -27px;
    transform: translateX(-50%);
    width: 103%;
    height: 30px;

    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: 100% auto;
    background-color: var(--nami-color, #f6f6f6);

    -webkit-mask-image: url(../IMG/huti-b.svg);
    -webkit-mask-repeat: repeat-x;
    -webkit-mask-size: 100% auto;
    -webkit-mask-position: center 130%;
    mask-image: url(../IMG/huti-b.svg);
    mask-repeat: repeat-x;
    mask-size: 100% auto;

    mask-position: center 130%;
    z-index: 2;
    pointer-events: none;
}

.yellow-bg.top-nami::before {
    --nami-color: #f5e15a;
}

.white-bg.top-nami::before {
    --nami-color: #f6f6f6;
}


/* ---------------------------------
greeting
   --------------------------------- */
#greeting {
    position: relative;
    margin-bottom: 30px;
    background-color: #f6f6f6;

}



#greeting p {
    margin: 0;
    padding: 20px;
    text-align: left;
}


/* ---------------------------------
content
   --------------------------------- */
#content {
    position: relative;
}

.content-box {
    background-color: #f6f6f6;
    width: 90%;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 30px;
}

.activity-list {
    text-align: center;
    padding: 10px;
}

.intro-block {
    text-align: center;
}

.intro-block p {
    margin: 0;
}

.plan-switch {
    margin: 0 auto;
}

.switch-box {
    padding: 5px 5px;
}

.switch-box h2 {
    letter-spacing: 0;
    padding: 0 !important;
}

.switch-box p {
    margin: 0;
    padding-bottom: 10px;
}


.switch-box img {
    height: 15px;
    margin: 10px;
}

.plan-switch {
    position: relative;
    display: inline-flex;
    margin: 20px auto;
    padding: 4px;
    border-radius: 999px;
    background: #f6f6f6;
    gap: 0;
}

.plan-switch-btn {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.plan-switch-btn.is-active {
    color: #fff;
    font-weight: 600;
}

.plan-switch-pill {
    position: absolute;
    z-index: 1;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #e38c20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}


.plan-switch-pill.is-second {
    transform: translateX(100%);
}


.dotline {
    content: "";
    height: 30px;
    width: 100%;
    background-image: url(../IMG/img-dotline.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}

table tr:last-child td {
    border-bottom: none;
}



.activity-item {
    display: none;
}

.activity-item.is-active {
    display: block;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.plan-table td {
    padding: 8px;
    padding-bottom: 20px;
}

.plan-table h3 {
    padding: 20px 0;
}

.plan-table p {
    text-align: left;
    padding-bottom: 1em;
}

/* ---------------------------------
partner
   --------------------------------- */

#partner {
    position: relative;
    height: auto;
    padding-bottom: 0;
}

#partner h2 {
    padding-bottom: 20px;
}

#partner .section-title {
    padding-top: 20px;
    padding-bottom: 0;
}

.par-box {
    height: auto;
    position: relative;
    margin: 40px 20px 70px;
    padding: 210px 10px 10px;
    background: #f5e15a70;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: visible;
}

.par-img {
    position: absolute;
    margin: 10px;
    top: -50px;
    left: 48%;
    transform: translateX(-50%);
}

.par-text {
    text-align: left;
    padding: 10px 10px 30px;
}

.par-text h3 {
    padding-bottom: 0.5em;
}

/* ---------------------------------
contact
   --------------------------------- */
#contact {
    position: relative;
    min-height: 400px;
    text-align: center;
    padding: 10px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.cta-button {
    display: block;
    width: 80%;
    height: 3em;
    padding: 0.7em 2em;

    color: #f6f6f6;
    background-color: #e38c20;
    border: none;
    border-radius: 1.5em;
    margin: 20px auto 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cta-button:hover {
    opacity: 0.9;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.cta-button:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

#contact h2 {
    padding: 30px 0px;
}

.footer-t2 {
    color: #f6f6f6;
    margin: 0;
}

.kanrisya {
    position: absolute;
    right: 0;
    bottom: -2px;
    text-align: right;
    width: auto;
}

.kanrisya img {
    width: 12em;
    height: auto;
}

.kanrisya-button {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}

#aboutOverlay .menu-panel {
    padding: 20px 20px 30px;
}

.adminlogo img {
    width: 10em;
}

.admin-table {
    text-align: left;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}



.admin-table td {
    padding: 3px 10px;
    line-height: 1.2em;
}



.admin-table h4 {
    padding-bottom: 5px;
    font-size: 1.2em;
}

/* ---------------------------------
other
   --------------------------------- */
main {
    padding: 0;
    position: relative;
    top: 0;
}

.content-inner {
    padding: 24px 20px 28px;
}

.title {
    margin: 0 0 8px;
}

.js-fadeup {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fadeup.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.js-fadedown {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.js-fadedown.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* --------- menu --------- */

.menu-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.menulogo img {
    width: 8em;
    height: auto;
    padding-bottom: 10px;
}

.menu-panel {
    width: min(320px, 80vw);
    background: #f6f6f6;
    border-radius: 24px;
    padding: 50px 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    text-align: center;
}

.menu-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.menu-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-main-regular);
}

.naviico {
    padding-top: 1em;
}

.naviico img {
    width: 2em;
}

/* --------- side --------- */

.pc-header {
    display: none;
}

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

/* --------- fuwa --------- */

.floating-deco {
    display: none;
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 5;
    animation: fuwafuwa 6s ease-in-out infinite alternate;
}

.floating-deco img {
    width: 100%;
    height: auto;
    display: block;
}


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

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

    100% {
        transform: translateY(8px);
    }
}

/* copy */
.pc-copyright {
    display: none;
}

/* --------- break --------- */
/* tab */
@media (min-width: 768px) {
    body {
        font-size: large;
    }

    .site-wrapper {
        padding: 0px 24px 0px;
    }

    .menu-button {
        left: 40px;
        bottom: 32px;
    }

    .logo-floating {
        right: 40px;
        top: 24px;
    }


    .floating-deco {
        display: block;
    }

    .deco-left {

        top: 15vh;
        left: calc(50% - 480px / 2 - 100px);
    }


    .deco-right {
        top: 70vh;

        left: calc(50% + 480px / 2 - 100px);
    }

    .pc-copyright {
        display: block;
        position: fixed;
        top: 50%;
        left: 1em;
        transform: translateY(-50%);
        writing-mode: vertical-rl;
        text-orientation: mixed;
        color: #000;
        opacity: 0.6;
        z-index: 10;
        user-select: none;
        pointer-events: none;
    }

    .cta-button {
        width: 60%;
    }
}

/* PC */
@media (min-width: 1024px) {
    body {
        font-size: larger;
    }

    #greeting,
    #content,
    #partner {
        scroll-margin-top: 12em;
    }

    .hero-logo {
        min-height: 100px;
    }

    .hero-logo img {
        max-height: 70px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .menu-button {
        display: none;
    }

    .pc-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 8em;
        background: #f6f6f6;
        backdrop-filter: blur(10px);
        display: block;
        z-index: 60;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .pc-header-inner {
        max-width: 1120px;
        margin: 0 auto;
        height: 100%;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .site-wrapper {
        position: relative;
        display: flex;
        justify-content: center;
    }

    .phone-frame {
        margin: 0 auto;
        position: relative;
        overflow-y: scroll;
        overflow-x: hidden;

        height: 100vh;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

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

    #partner {
        padding: 30px 0px;
    }

    #partner .section-title {
        padding-bottom: 10px;
    }

    .pc-side-nav {
        display: block;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        left: calc(50% + 480px / 2 + 4em);
    }

    .pc-side-inner {
        width: 12em;
    }

    .pc-side-menu {
        display: flex;
        flex-direction: column;
        gap: 1em;
        margin-bottom: 3em;
    }

    .pc-side-menu a {
        text-decoration: none;
        color: var(--color-text);
    }

    .pc-side-sns img {
        width: 28px;
        height: auto;
        margin-right: 12px;
    }

    .pc-side-sns img {
        width: 28px;
        height: auto;
        margin-right: 12px;
    }

    .topsection-image {
        height: 700px;
    }

    .pc-header-logo img {
        height: 5em;
    }

    .pc-header-nav {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .pc-header-nav a {
        text-decoration: none;
        color: var(--color-text);
    }

    .top-button {
        width: 15em;
        height: 4em;
        color: #f6f6f6;
        letter-spacing: 0.2em;
        background-color: #e38c20;
        border: none;
        border-radius: 3em;
    }

    /* ★ PC soudan */
    .pc-consult-button {
        position: fixed;
        bottom: 10vh;
        left: calc(50% - 480px / 2 - 6em - 72px);

        z-index: 80;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 8em;
        height: 8em;
        border-radius: 50%;
        border: none;
        text-decoration: none;

        background: #f5e15a;
        color: #94a4d2;

        letter-spacing: 0.2em;
        font-weight: bold;

        box-shadow: var(--shadow-soft);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .pc-consult-button:active {
        transform: scale(0.95);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    }

    #contact {
        min-height: 500px;
    }

}