/* assets/css/front-page.css — トップページ専用。すべて .wps-home の中に限定する。 */

.wps-home {
    --wps-navy:        #16202e;
    --wps-navy-2:      #1f2835;
    --wps-navy-3:      #2a3545;
    --wps-cream:       #f5efe2;
    --wps-amber:       #e8b255;
    --wps-amber-soft:  #fbf0da;
    --wps-amber-ink:   #8a5e14;
    --wps-page:        #f8f5ee;
    --wps-ink:         #15181c;
    --wps-ink-2:       #3c4249;
    --wps-muted:       #5f656c;
    --wps-line:        #e6e0d3;
    --wps-grey:        #efe9dc;
    --wps-green:       #1f7a55;
    --wps-green-soft:  #e3f3eb;
    --wps-sub-on-dark: #a7b1c2;
    --wps-mono:        ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    background: var(--wps-page);
    color: var(--wps-ink);
}

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

.wps-home .wps-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 共通の部品 ---------- */
.wps-home .wps-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: var(--wps-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--wps-amber-ink);
}
.wps-home .wps-label--on-dark { color: var(--wps-amber); }
.wps-home .wps-label-line { display: inline-block; width: 22px; height: 2px; background: currentColor; }

.wps-home .wps-h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--wps-ink);
    text-align: left;
}
.wps-home .wps-section-sub { margin: 10px 0 0; font-size: 15px; color: var(--wps-muted); }

.wps-home .wps-section { padding: 40px 0 80px; }
.wps-home .wps-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.wps-home .wps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: opacity .2s, background-color .2s;
}
.wps-home .wps-btn:hover { opacity: .88; }
.wps-home .wps-btn:focus-visible,
.wps-home .wps-link:focus-visible,
.wps-home .wps-purpose-card:focus-visible { outline: 3px solid var(--wps-amber); outline-offset: 3px; }
.wps-home .wps-btn--primary { background: var(--wps-amber); color: var(--wps-navy); }
.wps-home .wps-btn--ghost   { background: transparent; color: var(--wps-cream); border-color: var(--wps-navy-3); }
.wps-home .wps-btn--dark    { background: var(--wps-navy); color: #fff; }

.wps-home .wps-link { color: var(--wps-amber-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.wps-home .wps-link:hover { text-decoration: underline; }
.wps-home .wps-link--strong { font-size: 14px; color: var(--wps-ink); }

.wps-home .wps-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.wps-home .wps-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.wps-home .wps-tag--free { background: var(--wps-green-soft); color: var(--wps-green); }
.wps-home .wps-tag--paid { background: var(--wps-amber-soft); color: var(--wps-amber-ink); }
.wps-home .wps-tag--beta { background: var(--wps-grey); color: var(--wps-ink-2); }

.wps-home .wps-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--wps-navy);
    color: var(--wps-cream);
    overflow: hidden;
    flex: none;
}
.wps-home .wps-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wps-home .wps-icon-initials { font-family: var(--wps-mono); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.wps-home .wps-icon-glyph { display: block; width: 20px; height: 20px; border-radius: 4px; background: var(--wps-cream); }

/* ---------- ヒーロー ---------- */
.wps-home .wps-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
    background: var(--wps-navy);
    color: var(--wps-cream);
    text-align: left;
}
.wps-home .wps-hero::before,
.wps-home .wps-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    width: 160px;
    height: 56px;
    border-radius: 6px;
    background: var(--wps-navy-2);
    pointer-events: none;
}
.wps-home .wps-hero::before { top: 60px; right: 100px; width: 160px; }
.wps-home .wps-hero::after  { bottom: 90px; right: -20px; }
.wps-home .wps-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}
.wps-home .wps-hero-title {
    margin: 0 0 22px;
    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--wps-cream);
    text-align: left;
}
.wps-home .wps-hero-title em { font-style: normal; color: var(--wps-amber); }
.wps-home .wps-nowrap { white-space: nowrap; }
.wps-home .wps-hero-lead { margin: 0 0 36px; font-size: 16px; line-height: 1.9; color: var(--wps-sub-on-dark); }
.wps-home .wps-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wps-home .wps-hero-shot {
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    background: var(--wps-cream);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.wps-home .wps-hero-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------- 特集 ---------- */
.wps-home .wps-featured .wps-h2 { margin-bottom: 36px; }
.wps-home .wps-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    overflow: hidden;
    border: 1px solid var(--wps-line);
    border-radius: 20px;
    background: #fff;
}
.wps-home .wps-feature-body { padding: 52px; }
.wps-home .wps-feature-name { margin: 18px 0 14px; font-size: 32px; line-height: 1.3; font-weight: 700; }
.wps-home .wps-feature-desc { margin: 0 0 22px; font-size: 15px; line-height: 1.9; color: var(--wps-ink-2); }
.wps-home .wps-check-list { margin: 0 0 18px; padding: 0; list-style: none; }
.wps-home .wps-check-list li { position: relative; padding: 0 0 10px 28px; font-size: 15px; line-height: 1.6; }
.wps-home .wps-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wps-green-soft);
}
.wps-home .wps-check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--wps-green);
    border-bottom: 2px solid var(--wps-green);
    transform: rotate(-45deg);
}
.wps-home .wps-feature-note { margin: 0 0 24px; font-size: 13px; line-height: 1.8; color: var(--wps-amber-ink); }
.wps-home .wps-feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #1c2836 0%, #2e4358 100%);
}
.wps-home .wps-feature-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

/* ---------- 目的から探す ---------- */
.wps-home .wps-purpose { padding-top: 24px; }
.wps-home .wps-purpose .wps-h2 { margin-bottom: 0; }
.wps-home .wps-purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.wps-home .wps-purpose-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--wps-line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .2s;
}
.wps-home .wps-purpose-card:hover { box-shadow: 0 6px 20px rgba(22, 32, 46, .1); }
.wps-home .wps-purpose-count { margin: 16px 0 6px; font-family: var(--wps-mono); font-size: 11px; letter-spacing: .12em; color: var(--wps-muted); }
.wps-home .wps-purpose-title { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--wps-ink); }
.wps-home .wps-purpose-desc { margin: 8px 0 16px; font-size: 14px; line-height: 1.7; color: var(--wps-ink-2); flex: 1; }

/* ---------- おすすめのプラグイン ---------- */
.wps-home .wps-plugin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.wps-home .wps-plugin-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--wps-line);
    border-radius: 12px;
    background: #fff;
}
.wps-home .wps-plugin-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.wps-home .wps-plugin-card-title { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 700; }
.wps-home .wps-plugin-card-title a { color: var(--wps-ink); text-decoration: none; }
.wps-home .wps-plugin-card-title a:hover { text-decoration: underline; }
.wps-home .wps-plugin-card-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--wps-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.wps-home .wps-plugin-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.wps-home .wps-plugin-card-version { font-family: var(--wps-mono); font-size: 13px; color: var(--wps-muted); }

/* ---------- 相談（CTA） ---------- */
.wps-home .wps-consult { padding-top: 0; }
.wps-home .wps-consult-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: 64px 72px;
    border-radius: 24px;
    background: var(--wps-navy);
    color: var(--wps-cream);
}
.wps-home .wps-consult-band::after {
    content: "";
    position: absolute;
    right: -100px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(232, 178, 85, .18);
    pointer-events: none;
}
.wps-home .wps-consult-body, .wps-home .wps-consult-band .wps-btn { position: relative; z-index: 1; }
.wps-home .wps-consult-title { margin: 0 0 12px; font-size: 34px; line-height: 1.3; font-weight: 700; color: #fff; text-align: left; }
.wps-home .wps-consult-lead { margin: 0 0 20px; font-size: 15px; line-height: 1.9; color: var(--wps-sub-on-dark); }
.wps-home .wps-consult-sub { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--wps-amber); }
.wps-home .wps-consult-list { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; justify-content: start; margin: 0; padding: 0; list-style: none; }
.wps-home .wps-consult-list li { position: relative; padding-left: 16px; font-size: 14px; font-weight: 500; color: var(--wps-cream); }
.wps-home .wps-consult-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--wps-amber); }

/* ---------- About ---------- */
.wps-home .wps-about { padding-top: 0; }
.wps-home .wps-about-inner { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 80px; align-items: start; }
.wps-home .wps-about-body p { margin: 0 0 20px; font-size: 16px; line-height: 1.9; color: var(--wps-ink-2); }
.wps-home .wps-about-links { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }

/* ---------- お知らせ・コラム（既存の部品を、トップの見た目に合わせる） ---------- */
.wps-home .wps-news .news-item { padding: 16px 0; border-bottom: 1px solid var(--wps-line); }
.wps-home .wps-news .news-item time { font-family: var(--wps-mono); font-size: 13px; color: var(--wps-muted); }
.wps-home .wps-news .news-item a { color: var(--wps-ink); }
.wps-home .wps-news .news-item a:hover { color: var(--wps-amber-ink); text-decoration: underline; }
.wps-home .wps-columns .column-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wps-home .wps-columns .column-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--wps-line);
    border-radius: 12px;
    box-shadow: none;
    transform: none;
    transition: box-shadow .2s;
}
.wps-home .wps-columns .column-card:hover { transform: none; box-shadow: 0 6px 20px rgba(22, 32, 46, .1); }
.wps-home .wps-columns .column-card-thumb { display: block; background: var(--wps-grey); }
.wps-home .wps-columns .column-card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.wps-home .wps-columns .column-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.wps-home .wps-columns .column-cat-badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--wps-amber-soft);
    color: var(--wps-amber-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.wps-home .wps-columns .column-card-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--wps-ink); }
.wps-home .wps-columns .column-card-title a { color: var(--wps-ink); }
.wps-home .wps-columns .column-card-title a:hover { color: var(--wps-ink); text-decoration: underline; }
.wps-home .wps-columns .column-card-date { margin-bottom: 10px; font-family: var(--wps-mono); font-size: 12px; color: var(--wps-muted); }
.wps-home .wps-columns .column-card-excerpt {
    color: var(--wps-ink-2);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- スマートフォン・タブレット ---------- */
@media (max-width: 1024px) {
    .wps-home .wps-purpose-grid,
    .wps-home .wps-plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wps-home .wps-hero-inner { gap: 40px; }
    .wps-home .wps-about-inner { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .wps-home .wps-container { padding: 0 20px; }
    .wps-home .wps-h2 { font-size: 26px; }
    .wps-home .wps-section { padding: 8px 0 48px; }
    .wps-home .wps-section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
    .wps-home .wps-hero { padding: 48px 0 40px; }
    .wps-home .wps-hero::before { display: none; }
    .wps-home .wps-hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .wps-home .wps-hero-title { font-size: 32px; line-height: 1.3; }
    .wps-home .wps-actions { flex-direction: column; }
    .wps-home .wps-actions .wps-btn { width: 100%; min-height: 54px; }
    .wps-home .wps-hero-shot { padding: 8px; border-radius: 14px; }
    .wps-home .wps-feature { grid-template-columns: 1fr; border-radius: 16px; }
    .wps-home .wps-feature-body { padding: 28px 22px; }
    .wps-home .wps-feature-name { font-size: 24px; }
    .wps-home .wps-feature-body .wps-btn { width: 100%; }
    .wps-home .wps-feature-visual { padding: 24px 16px; }
    .wps-home .wps-purpose-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
    .wps-home .wps-purpose-card { padding: 18px; }
    .wps-home .wps-plugin-grid { grid-template-columns: 1fr; gap: 14px; }
    .wps-home .wps-plugin-card { padding: 22px; }
    .wps-home .wps-consult-band { flex-direction: column; align-items: stretch; padding: 36px 24px; border-radius: 18px; gap: 22px; }
    .wps-home .wps-consult-title { font-size: 26px; }
    .wps-home .wps-consult-list { grid-template-columns: 1fr; }
    .wps-home .wps-about-inner { grid-template-columns: 1fr; gap: 16px; }
    .wps-home .wps-about-body p { font-size: 16px; line-height: 1.8; }
    .wps-home .wps-columns .column-grid { grid-template-columns: 1fr; }
}

/* ---------- 「つくり方」の帯（鍛冶場のページへの入口） ---------- */
.wps-home .wps-craft-teaser { padding-top: 0; }
.wps-home .wps-craft-teaser-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--wps-navy);
    text-decoration: none;
}
.wps-home .wps-craft-teaser-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 50%;
    opacity: .5;
}
.wps-home .wps-craft-teaser-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #16202e 0%, rgba(22, 32, 46, .86) 45%, rgba(22, 32, 46, .2) 100%);
}
.wps-home .wps-craft-teaser-kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #d9a24a; }
.wps-home .wps-craft-teaser-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 680px; padding: 40px 56px; }
.wps-home .wps-craft-teaser-title { font-size: 32px; font-weight: 700; line-height: 1.4; color: var(--wps-cream); }
.wps-home .wps-craft-teaser-desc { font-size: 15px; line-height: 1.9; color: #c9d1de; }
.wps-home .wps-craft-teaser-link { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--wps-amber); }
.wps-home .wps-craft-teaser-card:hover .wps-craft-teaser-link { text-decoration: underline; }
@media (max-width: 768px) {
    .wps-home .wps-craft-teaser-card { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 18px; padding-top: 120px; }
    .wps-home .wps-craft-teaser-img { position: absolute; inset: 0; height: 100%; object-position: 72% 55%; }
    .wps-home .wps-craft-teaser-card::after { background: linear-gradient(180deg, rgba(22, 32, 46, .5) 0%, #16202e 100%); }
    .wps-home .wps-craft-teaser-text { padding: 24px 22px 28px; }
    .wps-home .wps-craft-teaser-title { font-size: 24px; }
}
