:root {
    --blue: #00A0E9;
    --orange: #F97316;
    --text: #111827;
    --textSub: #4B5563;
    --muted: #6B7280;
    --bg: #ffffff;
    --bgSoft: #F8FAFC;
    --line: #E5E7EB;
    --radius: 16px;
    --shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

.pc_only {
    display: inline-block;
}

.sp_only {
    display: none;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

.center {
    text-align: center
}

h1,
h2,
h3 {
    line-height: 1.35;
    margin: 0
}

h1 {
    font-size: clamp(26px, 4vw, 42px);
    margin-bottom: 18px;
    letter-spacing: -.02em
}

h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 22px;
    letter-spacing: -.01em
}

h3 {
    font-size: 18px;
    margin-bottom: 10px
}

p {
    margin: 0 0 14px;
    color: var(--textSub)
}

.mw-820 {
    max-width: 820px;
    margin: 0 auto
}

.mw-760 {
    max-width: 760px;
    margin: 0 auto
}

.mw-700 {
    max-width: 700px;
    margin: 0 auto
}

.hr {
    height: 1px;
    background: var(--line);
    margin: 22px 0
}

.section {
    padding: 72px 0
}

.section.bg {
    background: var(--bgSoft);
    padding: 64px 0
}

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

.section.pricing {
    padding: 96px 0;
}

.section+.section {
    padding-top: 56px;
}

.cta-wrap {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-wrap>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-wrap p {
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.btn {
    padding: 16px 28px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 16px;
    min-width: 260px;
    text-align: center;
    transition: transform .06s ease, opacity .12s ease;
    border: 1px solid transparent;
}

.free .btn {
    padding: 16px 25px;
}

.btn:active {
    transform: translateY(1px)
}

.btn-outline-blue {
    background: #fff;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.btn-orange {
    background: var(--orange);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow);
}

.note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px
}


.list {
    padding-left: 18px
}

.list li {
    margin: 0 0 10px;
    color: var(--textSub)
}

.list-center {
    list-style-position: inside;
    padding-left: 0;
    text-align: center;
}

.list-center li {
    margin: 0 0 10px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media (max-width:760px) {
    .after-grid {
        grid-template-columns: 1fr
    }
}

.scroll-hint {
    margin-top: 22px;
    font-size: 18px;
    color: #9CA3AF;
    animation: float 1.8s ease-in-out infinite;
    user-select: none;
}

@keyframes float {

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

    50% {
        transform: translateY(6px)
    }
}

.partner-box {
    margin-top: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.partner-logos {
    margin-top: 18px;
    display: grid;
    /* grid-template-columns: repeat(6, 1fr); */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

@media (max-width:960px) {
    .partner-logos {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:520px) {
    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.logo-dummy {
    /* height: 52px; */
    border: 1px dashed var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #9CA3AF;
    background: #F9FAFB;
}

.plan-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

.plan.reco {
    border: 1px solid rgba(0, 160, 233, .35);
    position: relative;
}

.plan .tag {
    display: inline-block;
    background: #ebf8fd;
    color: var(--blue);
    border: solid 2px #00A0E9;
    font-weight: 900;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    position: absolute;
    top: -22px;
    width: 100%;
    right: 0;
    text-align: center;
    letter-spacing: 2px;
}

.plan .name {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 10px
}

.price {
    margin: 10px 0 6px;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -.02em;
}

.price small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 800
}

.price-sub {
    margin: 0 0 12px;
    color: var(--textSub);
    font-size: 14px
}

.small {
    font-size: 13px;
    color: var(--muted)
}

.plan ul {
    margin: 10px 0 0;
    padding-left: 18px
}

.plan li {
    margin: 0 0 8px;
    color: var(--textSub)
}

.details {
    margin-top: 12px;
    border-top: 1px dashed var(--line);
    padding-top: 12px
}

details {
    background: #fff;
    border-radius: 12px;
    font-size: 15px;
}

summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--textSub)
}

details li,
details p {
    font-size: 13px;
    color: var(--textSub)
}

/* =========================
   Footer
========================= */
.footer {
    border-top: 1px solid #E5E7EB;
    background: #fff;
    padding: 36px 0 28px;
    color: #6B7280;
}

.footer-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-contact {
    margin-bottom: 16px;
}

.footer-nav {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-nav a {
    color: #6B7280;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 14px;
}

.footer-iso {
    display: flex;
    gap: 10px;
}

.footer-iso img {
    height: 75px;
    width: auto;
}


/* =========================
   .plan-page
========================= */

.plan-page h2 {
    font-size: clamp(22px, 3vw, 28px);
}

.plan-page .section.hero {
    padding: 25px 0;
}

.plan-page .section.hero .ecai_header_logo {
    height: 44px;
}

.plan-page-about ul {
    margin-left: 85px;
}

.plan-page-form .card {
    padding: 35px 50px 50px;
}

.plan-page .section.tel-supprt {
    padding-bottom: 40px;
}

.plan-page-form .enter-account-info{
    margin-bottom:18px
}
.plan-page-form .enter-account-info.sub-domain{
    margin-bottom:6px
}

.plan-page-form .enter-account-info input{
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 15px;
}

.plan-page-form .enter-account-info p {
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

@media only screen and (max-width: 640px) {
    .plan-page-form .enter-account-info p {
        font-size: calc(100vw / (640 / 20));
        margin-top: calc(100vw / (640 / 16));
    }
}

.sub-domain {
    position: relative;
}

.sub-domain::after {
    content: ".ecai.jp";
    position: absolute;
    right: 14px;
    bottom: 0;
    transform: translateY(-50%);
    font-size: 14px;
    color: #111;
    pointer-events: none;
}

.sub-domain input {
    padding-right: 90px;
}

.terms-check{
display:flex;
gap:8px;
align-items:center;
margin-bottom:30px;
}

/* =========================
   利用規約（スクロール表示）
========================= */

.terms-box {
    margin-bottom: 18px;
}

.terms-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #111827;
}

.terms-content {
    height: 200px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.75;
    color: #374151;
}

.terms-content p {
    margin: 0 0 10px;
}

.terms-content br {
    content: "";
    display: block;
    margin-bottom: 6px;
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 8px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 8px;
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section h4 {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 8px;
}

.terms-section p {
    margin: 0 0 10px;
    line-height: 1.3;
}

.terms-list {
    padding-left: 18px;
    margin: 0 0 10px;
}

.terms-list li {
    margin-bottom: 6px;
    line-height: 1.7;
}


/* =========================
   line-plan
========================= */
.line-plan .plan-page-form {
    border-top: 1px solid #e6e6e6;
}

.line-plan .form-title h2 {
    margin-bottom: 10px;
}

.line-plan .form-title p {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

/* form-title チェックマーク */
.check-mark {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
}

.check-mark::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 4px;
    width: 7px;
    height: 18px;
    border-right: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    transform: rotate(45deg);
}

/* =========================
   contact-page
========================= */

.contact-page .contact-form-section {
    border-top: 1px solid #e6e6e6;
}

.contact-page .contact-form-section h2 {
    margin-bottom: 36px;
}

.contact-page .contact-card {
    padding: 40px 50px 50px;
}

.contact-page .form-row {
    margin-bottom: 25px;
}

.contact-page .form-row label {
    display: block;
    margin-bottom: 6px;
}

.contact-page input[type="text"],
.contact-page input[type="tel"],
.contact-page input[type="email"],
.contact-page textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-family: inherit;
}

.contact-page input:focus,
.contact-page textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.contact-page textarea {
    resize: vertical;
}

.contact-page .required {
    font-size: 12px;
    background: var(--blue);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    font-weight: 600;
}

.contact-page .contact-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 8px;
}

.contact-page .contact-checkboxes label {
    font-weight: 400;
    font-size: 14px;
    color: var(--textSub);
}

.contact-page .contact-agree {
    margin: 30px 0 40px;
    font-size: 14px;
    color: var(--textSub);
}

.contact-page .contact-agree a {
    text-decoration: underline;
    font-weight: 600;
}

.contact-page .contact-agree label {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 8px;
}

.contact-page .form-title p {
    font-size: 17px;
}

.contact-page .footer-copy {
    text-align: center;
}


/* =========================
            SP
========================= */

@media (max-width: 640px) {

    .pc_only {
        display: none;
    }

    .sp_only {
        display: inline-block;
    }

    .text-left {
        text-align: left;
    }

    .section {
        padding: 48px 0;
    }

    .section.hero {
        padding: 40px 0;
    }

    .btn {
        width: 100%;
        min-width: auto;
        font-size: 17px;
        padding: 14px 18px;
    }

    .cta-wrap {
        flex-direction: column;
        gap: 18px;
        margin-top: 30px;
    }

    .cta-wrap>div {
        width: 100%;
    }

    .cta-wrap p {
        margin-top: 6px;
        margin-bottom: 0;
    }

    h1 {
        font-size: 8vw;
    }

    h2 {
        font-size: 20px;
    }

    .list-center {
        text-align: left;
        list-style-position: outside;
        padding-left: 18px;
    }

    .list-center li {
        margin-bottom: 14px;
        line-height: 1.6;
    }

    .list-center li:last-child {
        margin-bottom: 0;
    }

    .PROBLEM ul {
        margin-bottom: 0;
    }

    .plan-wrap {
        gap: 16px;
        margin-top: 24px;
    }

    .plan {
        padding: 20px;
    }

    .section.pricing {
        padding: 56px 0;
    }

    .footer-nav {
        gap: 18px;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 16px;
        flex-wrap: wrap;
    }

    .footer-iso {
        display: flex;
        gap: 10px;
    }

    .footer-iso img {
        height: 60px;
    }



    /* =========================
   SP plan-page
========================= */

    .plan-page .section.hero .ecai_header_logo {
        height: 36px;
    }

    .plan-page .section.hero {
        padding: 20px 0 15px;
    }

    .plan-page-about ul {
        margin-left: 18px;
    }

    .plan-page-about .card {
        padding: 26px 13px 20px 3px;
    }

    .plan-page-form .card {
        padding: 22px 18px 30px;
    }

    .plan-page-form form>div {
        margin-bottom: 16px !important;
    }

    .sub-domain::after {
        right: 12px;
        font-size: 13px;
        bottom: 14px;
        transform: none;
    }

    .terms-content {
        height: 180px;
        font-size: 12px;
        padding: 14px;
    }

    .terms-section h4 {
        font-size: 13px;
    }

    .terms-section p {
        font-size: 12px;
        line-height: 1.5;
    }

    .plan-page h2 span {
        display: inline-block;
        margin-top: 6px;
    }

    .line-plan .plan-page-form {
        padding-top: 48px;
    }

    .line-plan .form-title h2 {
        margin-bottom: 10px;
        font-size: 7vw;
    }


    /* =========================
   SP contact-page
========================= */

    .contact-page .contact-form-section {
        padding-top: 30px;
    }

    .contact-page .contact-form-section h2 {
        margin-bottom: 25px;
    }

    .contact-page .contact-card {
        padding: 24px 18px 30px;
    }

    .contact-page .contact-checkboxes {
        grid-template-columns: 1fr;
    }

    .contact-page .form-title p {
        font-size: 16px;
    }

    .contact-page .form-row label {
        font-size: 15px;
    }
}