/* =========
   kintai.css
   ========= */

.section-alt {
    background: linear-gradient(180deg, rgba(31, 111, 255, .05), rgba(45, 212, 255, .03) 55%, transparent);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Background layers */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 18% 22%, rgba(31, 111, 255, .16), transparent 60%),
        radial-gradient(900px 520px at 78% 30%, rgba(45, 212, 255, .14), transparent 62%),
        radial-gradient(900px 520px at 40% 88%, rgba(14, 165, 233, .10), transparent 60%),
        linear-gradient(180deg, rgba(11, 18, 32, .02), transparent 55%);
}

.gridlines {
    position: absolute;
    inset: -20% -10%;
    opacity: .55;
    background-image:
        linear-gradient(to right, rgba(13, 24, 48, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 24, 48, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: rotate(-10deg);
    filter: blur(.2px);
}

.orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .75;
    background: radial-gradient(circle at 30% 30%, rgba(31, 111, 255, .85), rgba(45, 212, 255, .55), transparent 68%);
    box-shadow: 0 40px 120px rgba(31, 111, 255, .18);
}

.orb-1 {
    top: -180px;
    left: -180px;
    transform: rotate(10deg);
}

.orb-2 {
    width: 620px;
    height: 620px;
    top: -220px;
    right: -240px;
    opacity: .62;
    background: radial-gradient(circle at 30% 30%, rgba(45, 212, 255, .78), rgba(31, 111, 255, .45), transparent 68%);
}

.orb-3 {
    width: 420px;
    height: 420px;
    bottom: -200px;
    left: 40%;
    opacity: .45;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, .70), rgba(45, 212, 255, .30), transparent 70%);
}

/* Layout */
.hero-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: clamp(28px, 4vw, 54px) 0;
    align-items: center;
}

@media (min-width: 980px) {
    .hero-wrap {
        grid-template-columns: 1.05fr .95fr;
        gap: 34px;
        padding: 70px 0;
    }
}

.hero-copy {
    max-width: 640px;
}

.hero-title {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: clamp(28px, 4.0vw, 47px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.br-sm {
    display: inline;
}

.br-lg {
    display: none;
}

@media (min-width: 520px) {
    .br-sm {
        display: none;
    }

    .br-lg {
        display: inline;
    }
    
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

@media (min-width: 980px) {
    .hero-visual {
        min-height: 640px;
    }
}

.hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, #fff);
    z-index: 1;
}

/* Device images */
.device-stack {
    position: relative;
    width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

@media (min-width: 980px) {
    .device-stack {
        margin-top: 30%;
    }
}

.device {
    border-radius: var(--radius2);
    border: 1px solid rgba(13, 24, 48, .12);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.device img {
    width: 100%;
    height: auto;
    display: block;
}

.device.pc {
    width: 100%;
    transform: rotate(-1.2deg);
}

.device.phone {
    position: absolute;
    right: -8px;
    bottom: -16px;
    width: 220px;
    transform: rotate(2.2deg);
}

/* Hero note */
.hero-note {
    position: absolute;
    left: 0;
    bottom: -56px;
    width: min(520px, 100%);
    transform: rotate(-.6deg);
}

@media (max-width: 979px) {
    .hero-note {
        position: relative;
        bottom: auto;
        margin-top: 14px;
    }

    .device.phone {
        right: 6px;
        bottom: -10px;
    }
}

/* スマホ崩れ対策（重要） */
@media (max-width: 520px) {
    .hero-visual {
        min-height: auto;
        margin-top: 12px;
    }

    .device.pc {
        transform: none;
    }

    .device.pc img {
        max-height: 46vh;
        object-fit: contain;
    }

    .device.phone {
        width: 180px;
        right: 6px;
        bottom: -8px;
        transform: rotate(1.4deg);
    }
}

@media (max-width: 420px) {
    .device.phone {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(240px, 72%);
        margin-top: 12px;
        transform: none;
    }
}

/* Callouts */
.callout {
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(31, 111, 255, .10), rgba(45, 212, 255, .06));
}

.callout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-wide,
.cta-final {
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(31, 111, 255, .10), rgba(45, 212, 255, .08));
}

/* Steps */
.steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
}

.step {
    list-style: decimal;
    border: 1px solid rgba(13, 24, 48, .10);
    background: rgba(255, 255, 255, .74);
    border-radius: 18px;
    padding: 14px 14px;
    font-weight: 900;
}

.step span {
    display: block;
    margin-top: 4px;
    font-weight: 800;
}

/* Articles */
.article-tools input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(13, 24, 48, .14);
    background: rgba(255, 255, 255, .86);
    font-weight: 800;
}

.tool-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 12px;
}

.article-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .article-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .article-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(13, 24, 48, .10);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 140px;
}

.article-card .meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    font-weight: 900;
    color: rgba(11, 18, 32, .72);
    border: 1px solid rgba(13, 24, 48, .12);
    background: rgba(11, 18, 32, .02);
    padding: 6px 10px;
    border-radius: 999px;
}

.article-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.article-card p {
    margin: 0;
    color: rgba(11, 18, 32, .72);
    font-size: 13px;
}

.article-card .go {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 1000;
    color: rgba(31, 111, 255, .95);
}

.article-card:hover {
    transform: translateY(-1px);
    transition: transform .22s var(--ease);
}

/* FAQ */
details summary {
    cursor: pointer;
    font-weight: 1000;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary:after {
    content: "＋";
    float: right;
    color: rgba(31, 111, 255, .9);
}

details[open] summary:after {
    content: "－";
}

/* SEO list */
.seo-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: rgba(11, 18, 32, .80);
    font-size: 14px;
}

.seo-list li {
    margin: 8px 0;
    line-height: 1.6;
}

.seo-list b {
    color: rgba(11, 18, 32, .92);
}

/* Responsive buttons */
@media (max-width: 420px) {
    .btn {
        width: 100%;
    }

    .hero-cta {
        gap: 10px;
    }
}