/* ===========================================================
   トップページ (front-page.php)
   デザインは joydea.jp トップページ準拠:
   - 全幅写真ヒーロー+特大白タイポ+波形の区切り
   - ピル型ボタン(radius-full)+シェブロン
   - 英字小ラベル(コーラル)+日本語見出しの2段構成
   - パステル4色カード / 濃紺CTAバンド / コーラルの進め方バンド
   基本トークン(--lma-*)と汎用部品は line.css を共用する。
   =========================================================== */

.top {
    --top-tint: #f6f8fa;
}

/* ---------- セクション背景 ---------- */

.top .top-sec--tint {
    background: var(--top-tint);
}

/* line.css の .lma-profile はクリーム。トップでは白面に載せる */
.top .lma-profile {
    background: #fff;
}

/* ---------- 英字小ラベル+日本語見出しの2段構成 ---------- */

.top-eyebrow {
    font-family: var(--lma-font-en);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--lma-coral);
    margin: 0 0 12px;
}

.top-eyebrow--green {
    color: var(--lma-line-green);
}

.top-eyebrow--white {
    color: rgba(255, 255, 255, 0.9);
}

.top-head {
    text-align: center;
    margin-bottom: 48px;
}

.top-head__lead {
    font-size: 14.5px;
    margin: 18px 0 0;
}

.top-head__lead strong {
    color: var(--lma-ink);
}

.top-more {
    text-align: center;
    margin: 40px 0 0;
}

/* ---------- ピル型ボタン(joydeaトップ準拠) ---------- */

.lma .top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 34px;
    border-radius: 999px;
    font-family: var(--lma-font-head);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lma .top-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--lma-shadow-lg);
}

.top-btn__chev {
    font-family: var(--lma-font-en);
    font-weight: 700;
    transform: translateY(-1px);
}

.lma .top-btn--coral {
    background: var(--lma-coral);
    color: #fff;
}

.lma .top-btn--coral:hover {
    background: #f2765f;
}

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

.lma .top-btn--outline:hover {
    background: rgba(247, 139, 119, 0.08);
}

.lma .top-btn--white {
    background: #fff;
    color: var(--lma-ink);
}

.lma .top-btn--white:hover {
    background: #f4f4f4;
}

.lma .top-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.lma .top-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ---------- ヒーロー(全幅写真+特大タイポ) ---------- */

.top-hero {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 140px;
    overflow: hidden;
}

.top-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(21, 26, 34, 0.82) 0%, rgba(21, 26, 34, 0.55) 55%, rgba(21, 26, 34, 0.3) 100%);
}

.top-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.top-hero__badge {
    display: inline-block;
    font-family: var(--lma-font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(247, 139, 119, 0.92);
    border-radius: 999px;
    padding: 6px 18px;
    margin: 0 0 26px;
}

.top-hero__title {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: clamp(34px, 5.4vw, 72px);
    line-height: 1.32;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 24px;
}

.top-hero__lead {
    font-size: clamp(14px, 1.3vw, 16.5px);
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 26px;
}

.top-hero__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
}

.top-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 18px;
}

.top-hero__tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.top-hero__tag--coral::before { background: var(--lma-coral); }
.top-hero__tag--amber::before { background: var(--lma-amber); }
.top-hero__tag--green::before { background: var(--lma-line-green); }
.top-hero__tag--blue::before  { background: var(--lma-blue); }

.top-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.top-hero__assure {
    margin-top: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.top-hero__assure li {
    color: rgba(255, 255, 255, 0.92);
}

/* 白の波形で次セクションへつなぐ(joydeaのカーブ区切り) */

.top-hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C 240 64 480 8 720 22 C 960 36 1200 58 1440 30 L 1440 60 L 0 60 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* ---------- お知らせ(左見出し+右リスト) ---------- */

.top-newsec__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.top-newsec__list {
    background: #fff;
    border: 1px solid var(--lma-border);
    border-radius: var(--lma-radius);
    box-shadow: var(--lma-shadow);
    padding: 8px 28px 16px;
}

.lma .top-newsec__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--lma-border);
    text-decoration: none;
    color: var(--lma-body);
}

.top-newsec__pill {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 12px;
}

.top-newsec__pill--0 { color: #b3541e; background: #fdeacd; }
.top-newsec__pill--1 { color: #1d7a58; background: var(--lma-green-pale); }
.top-newsec__pill--2 { color: #2f5cb0; background: var(--lma-blue-pale); }
.top-newsec__pill--3 { color: #a4453a; background: var(--lma-coral-pale); }

.top-newsec__date {
    flex-shrink: 0;
    font-size: 12.5px;
    color: #8b93a3;
}

.top-newsec__title {
    font-size: 14px;
    color: var(--lma-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.top-newsec__row:hover .top-newsec__title {
    text-decoration: underline;
}

.top-newsec__chev {
    font-family: var(--lma-font-en);
    color: var(--lma-coral);
    font-weight: 700;
}

.top-newsec__all {
    text-align: right;
    margin: 14px 0 4px;
}

.lma .top-newsec__all a {
    font-size: 13px;
    font-weight: 700;
    color: var(--lma-coral);
    text-decoration: none;
}

.lma .top-newsec__all a:hover {
    text-decoration: underline;
}

/* ---------- サービス3枚カード ---------- */

.top-svc {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.lma .top-svc__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--lma-shadow);
    padding: 34px 30px;
    text-decoration: none;
    color: var(--lma-body);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lma .top-svc__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lma-shadow-lg);
}

.top-svc__en {
    font-family: var(--lma-font-en);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lma-coral);
    margin: 0 0 10px;
}

/* スタンプ風タグ(塗りつぶしピル禁止 → 枠線+微回転) */
.top-svc__tag {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: var(--lma-coral);
    border: 1.5px solid var(--lma-coral);
    border-radius: 999px;
    padding: 2px 12px;
    margin: 0 0 12px;
    transform: rotate(-2deg);
}

.top-svc__name {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: 19px;
    line-height: 1.5;
    color: var(--lma-ink);
    margin: 0 0 12px;
}

.top-svc__text {
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 16px;
}

.top-svc__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--lma-ink);
    background: var(--top-tint);
    border-radius: 8px;
    padding: 8px 12px;
    margin: auto 0 20px;
}

.top-svc__btn {
    align-self: flex-start;
}

/* ---------- 選ばれる理由(左テキスト+右パステル2×2) ---------- */

.top-reason__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.top-reason__copy .lma-heading--lg {
    margin-bottom: 20px;
}

.top-reason__text {
    font-size: 14.5px;
    line-height: 2;
    margin: 0 0 26px;
}

.top-reason__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.top-reason__card {
    border-radius: 16px;
    padding: 26px 24px;
}

.top-reason__card--cream    { background: var(--lma-cream); }
.top-reason__card--pink     { background: var(--lma-coral-pale); }
.top-reason__card--mint     { background: var(--lma-green-pale); }
.top-reason__card--lavender { background: var(--lma-purple-pale); }

.top-reason__card h3 {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lma-ink);
    margin: 0 0 10px;
}

.top-reason__card p {
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}

/* ---------- 触れるデモ(分割カード) ---------- */

.top-prod__list {
    display: grid;
    gap: 32px;
}

.top-prod {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--lma-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-prod:hover {
    transform: translateY(-3px);
    box-shadow: var(--lma-shadow-lg);
}

.top-prod__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 24px;
}

.top-prod__visual--pink { background: var(--lma-coral-pale); }
.top-prod__visual--mint { background: var(--lma-green-pale); }

.top-prod__visual img {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--lma-shadow);
}

.top-prod__shots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-prod__shots .top-prod__app {
    width: 200px;
    height: auto;
    padding: 6px;
}

.top-prod__line-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    font-family: var(--lma-font-en);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--lma-line-green);
    border-radius: 6px;
    padding: 3px 10px;
}

.top-prod__hand {
    font-family: var(--lma-font-hand);
    font-size: 13.5px;
    color: var(--lma-ink);
    margin: 0;
}

.top-prod__body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-prod__cat {
    font-family: var(--lma-font-head);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--lma-coral);
    margin: 0 0 10px;
}

.top-prod__name {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.6;
    color: var(--lma-ink);
    margin: 0 0 12px;
}

.top-prod__text {
    font-size: 14px;
    line-height: 2;
    margin: 0;
}

/* ---------- 濃紺CTAバンド ---------- */

.top-band {
    background: #fff;
    padding: 40px 24px;
}

.top-band__card {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--lma-table-dark);
    border-radius: 16px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.top-band__text {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.7;
    color: #fff;
    margin: 0;
}

.top-band__u {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='6' viewBox='0 0 22 6'%3E%3Cpath d='M0 4.2 Q 2.75 1 5.5 4.2 T 11 4.2 T 16.5 4.2 T 22 4.2' fill='none' stroke='%23f78b77' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left bottom;
    padding-bottom: 8px;
}

/* ---------- 制作実績 ---------- */

.top-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.lma .top-works__card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--lma-shadow);
    text-decoration: none;
    color: var(--lma-body);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lma .top-works__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lma-shadow-lg);
}

.top-works__thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--top-tint);
}

.top-works__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-works__body {
    padding: 18px 20px 20px;
}

.top-works__type {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lma-coral);
    border: 1.5px solid var(--lma-coral);
    border-radius: 999px;
    padding: 1px 10px;
    margin-bottom: 10px;
    transform: rotate(-1.5deg);
}

.top-works__name {
    font-family: var(--lma-font-head);
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--lma-ink);
    margin: 0;
}

/* ---------- 料金の目安 ---------- */

.top-price {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.top-price__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--lma-shadow);
    padding: 32px 28px;
    text-align: center;
}

.top-price__card--main {
    border: 2px solid var(--lma-coral);
}

.top-price__name {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: 16px;
    color: var(--lma-ink);
    margin: 0 0 14px;
}

.top-price__name span {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lma-coral);
    border: 1.5px solid var(--lma-coral);
    border-radius: 999px;
    padding: 1px 10px;
    margin-left: 8px;
    transform: rotate(-2deg);
    vertical-align: 2px;
}

.top-price__amount {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: 34px;
    line-height: 1.2;
    color: var(--lma-coral);
    margin: 0 0 14px;
}

.top-price__amount small {
    font-size: 16px;
    font-weight: 800;
}

.top-price__meta {
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--lma-body);
    margin: 0;
}

.top-price__notes {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 進め方(コーラルバンド) ---------- */

.top-flow {
    background: var(--lma-coral);
    padding: 96px 24px;
}

.top-flow .top-head {
    margin-bottom: 40px;
}

.top-flow__heading {
    color: #fff;
}

.top-flow__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.top-flow__step {
    text-align: center;
}

.top-flow__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    color: var(--lma-coral);
    font-family: var(--lma-font-en);
    font-weight: 700;
    font-size: 22px;
    border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%;
    transform: rotate(-3deg);
    margin-bottom: 16px;
}

.top-flow__step:nth-child(even) .top-flow__num {
    transform: rotate(3deg);
}

.top-flow__step h3 {
    font-family: var(--lma-font-head);
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    margin: 0 0 10px;
}

.top-flow__step p {
    font-size: 13.5px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
    text-align: left;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 1024px) {
    .top-prod {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 960px) {
    .top-svc,
    .top-works,
    .top-price {
        grid-template-columns: 1fr 1fr;
    }

    .top-newsec__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .top-reason__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .top-flow__steps {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .top-prod {
        grid-template-columns: 1fr;
    }

    .top-prod__visual {
        padding: 32px 24px;
    }

    .top-band__card {
        justify-content: center;
        text-align: center;
        padding: 44px 32px;
    }
}

@media (max-width: 640px) {
    .top-svc,
    .top-works,
    .top-price,
    .top-reason__cards {
        grid-template-columns: 1fr;
    }

    .top-hero {
        padding: 90px 20px 120px;
    }

    /* スマホではPC用の固定改行を解除し、自然な折り返しにする */
    .top-hero__title br {
        display: none;
    }

    .top-hero__cta {
        flex-direction: column;
    }

    .top-hero__cta .top-btn {
        width: 100%;
    }

    .top-newsec__row {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .top-newsec__title {
        white-space: normal;
        flex-basis: 100%;
    }

    .top-prod__body {
        padding: 28px 24px;
    }
}
