:root {
    --frvo-bg: #f8fafc;
    --frvo-surface: #ffffff;
    --frvo-ink: #1f2933;
    --frvo-muted: #64748b;
    --frvo-line: #e2e8f0;
    --frvo-primary: #4f46e5;
    --frvo-primary-hover: #4338ca;
    --frvo-cyan: #22d3ee;
    --frvo-success: #16a34a;
    --frvo-error: #dc2626;
    --frvo-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

/* Adopted logo + SWELL header */
.l-header__bar {
    display: none !important;
}

.c-headLogo.-img .c-headLogo__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.c-headLogo.-img img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
}

.frvo-brand-word {
    color: var(--frvo-ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    white-space: nowrap;
}

/* Homepage uses one SWELL content path and no duplicate theme title/sidebar. */
#body_wrap.home .c-pageTitle,
#body_wrap.home .p-breadcrumb,
#body_wrap.home .l-sidebar,
#body_wrap.home .p-mainVisual,
#body_wrap.home #main_visual,
#body_wrap.home #post_slider,
#body_wrap.home .p-postSlider {
    display: none !important;
}

#body_wrap.home #content,
#body_wrap.home .l-content,
#body_wrap.home .l-mainContent,
#body_wrap.home .l-mainContent__inner,
#body_wrap.home .post_content {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.frvo-site-home {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 0 -50vw;
    overflow: hidden;
    color: var(--frvo-ink);
    background: var(--frvo-bg);
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.frvo-site-home *,
.frvo-contact-form *,
.frvo-search-form * {
    box-sizing: border-box;
}

.frvo-shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* Hero: the background is a dedicated text-free asset. */
.frvo-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--frvo-line);
    background: #fff;
    isolation: isolate;
}

.frvo-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        url("hero-exploration-v2.webp") no-repeat right center / auto 150%,
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    content: "";
}

.frvo-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 42%, rgba(255,255,255,.7) 63%, rgba(255,255,255,.08) 100%);
    content: "";
}

.frvo-hero__inner {
    display: flex;
    min-height: 430px;
    align-items: center;
    padding-block: 64px;
}

.frvo-hero__copy {
    width: min(650px, 64%);
}

.frvo-hero h1 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--frvo-ink);
    background: none;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.frvo-hero h1::before,
.frvo-hero h1::after,
.frvo-section-head h2::before,
.frvo-section-head h2::after,
.frvo-purpose-card h3::before,
.frvo-purpose-card h3::after,
.frvo-post-card h3::before,
.frvo-post-card h3::after,
.frvo-contact-cta h2::before,
.frvo-contact-cta h2::after {
    display: none !important;
    content: none !important;
}

.frvo-hero h1 em {
    color: var(--frvo-primary);
    font-style: normal;
}

.frvo-hero__copy > p {
    margin: 20px 0 0;
    color: var(--frvo-muted);
    font-size: 16px;
    line-height: 1.85;
}

.frvo-hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 620px);
    min-height: 58px;
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid #d5deeb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .09);
}

.frvo-hero-search input[type="search"] {
    min-width: 0;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: var(--frvo-ink);
    background: transparent;
    font-size: 15px;
}

.frvo-hero-search button,
.frvo-search-form button,
.frvo-form-submit {
    min-width: 92px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--frvo-primary);
    cursor: pointer;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}

.frvo-hero-search button {
    margin: 6px;
}

.frvo-hero-search button:hover,
.frvo-search-form button:hover,
.frvo-form-submit:hover {
    background: var(--frvo-primary-hover);
    transform: translateY(-1px);
}

.frvo-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.frvo-hero-tags a,
.frvo-search-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--frvo-line);
    border-radius: 6px;
    color: var(--frvo-muted);
    background: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.frvo-hero-tags a:hover,
.frvo-search-categories a:hover {
    border-color: #a5b4fc;
    color: var(--frvo-primary);
}

/* Homepage sections */
.frvo-section {
    padding-block: 72px;
    background: var(--frvo-bg);
}

.frvo-section--white {
    border-block: 1px solid var(--frvo-line);
    background: #fff;
}

.frvo-section-head {
    margin-bottom: 24px;
}

.frvo-section-head > p,
.frvo-contact-cta > div > p {
    margin: 0 0 8px;
    color: var(--frvo-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.frvo-section-head h2,
.frvo-contact-cta h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--frvo-ink);
    background: none;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
}

.frvo-purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.frvo-purpose-card {
    position: relative;
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--frvo-line);
    border-radius: 10px;
    color: var(--frvo-ink);
    background: var(--frvo-surface);
    box-shadow: var(--frvo-shadow);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.frvo-purpose-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .09);
    transform: translateY(-3px);
}

.frvo-purpose-card__number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.frvo-purpose-card__icon {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: var(--frvo-primary);
    background: #eef2ff;
}

.frvo-purpose-card__icon--language::before {
    content: "文";
    font-size: 16px;
    font-weight: 700;
}

.frvo-purpose-card__icon--pc::before {
    width: 23px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 2px;
    content: "";
}

.frvo-purpose-card__icon--pc::after {
    position: absolute;
    bottom: 7px;
    width: 17px;
    height: 2px;
    background: currentColor;
    content: "";
}

.frvo-purpose-card__icon--wrench::before {
    width: 20px;
    height: 5px;
    border-radius: 4px;
    background: currentColor;
    content: "";
    transform: rotate(-42deg);
}

.frvo-purpose-card__icon--wrench::after {
    position: absolute;
    top: 8px;
    right: 7px;
    width: 10px;
    height: 10px;
    border: 3px solid currentColor;
    border-radius: 50%;
    content: "";
}

.frvo-purpose-card__icon--compass::before {
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
}

.frvo-purpose-card__icon--compass::after {
    position: absolute;
    width: 7px;
    height: 15px;
    background: currentColor;
    clip-path: polygon(100% 0, 70% 70%, 0 100%, 30% 30%);
    content: "";
}

.frvo-purpose-card h3 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--frvo-ink);
    background: none;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.frvo-purpose-card > p {
    margin: 12px 0 18px;
    color: var(--frvo-muted);
    font-size: 14px;
    line-height: 1.75;
}

.frvo-purpose-card__cue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    color: var(--frvo-primary);
    font-size: 13px;
    font-weight: 700;
}

.frvo-purpose-card__cue b {
    font-size: 18px;
}

/* Post cards: featured posts are excluded from Latest to prevent repetition. */
.frvo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.frvo-card-grid--featured-single {
    grid-template-columns: 1fr;
}

.frvo-card-grid--featured-single .frvo-post-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.frvo-card-grid--featured-single .frvo-post-card__media {
    min-height: 320px;
    aspect-ratio: auto;
}

.frvo-post-card {
    overflow: hidden;
    border: 1px solid var(--frvo-line);
    border-radius: 10px;
    background: var(--frvo-surface);
    box-shadow: var(--frvo-shadow);
}

.frvo-post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.frvo-post-card__media img,
.frvo-post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frvo-post-card__placeholder {
    background:
        radial-gradient(circle at 72% 28%, rgba(34,211,238,.42), transparent 24%),
        linear-gradient(145deg, #334155, #1e1b4b);
}

.frvo-post-card__body {
    padding: 20px;
}

.frvo-post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
}

.frvo-post-card__meta span {
    color: var(--frvo-primary);
    font-weight: 700;
}

.frvo-post-card h3 {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.frvo-post-card h3 a {
    color: var(--frvo-ink);
    text-decoration: none;
}

.frvo-post-card__body > p {
    margin: 10px 0 14px;
    color: var(--frvo-muted);
    font-size: 14px;
    line-height: 1.75;
}

.frvo-text-link {
    color: var(--frvo-primary) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.frvo-text-link span {
    margin-left: 6px;
}

/* One information CTA only; footer stays navigation-only. */
.frvo-section--cta {
    padding-top: 0;
}

.frvo-contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    border: 1px solid var(--frvo-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--frvo-shadow);
}

.frvo-contact-cta > div > span {
    display: block;
    margin-top: 10px;
    color: var(--frvo-muted);
    font-size: 14px;
}

.frvo-contact-cta > a {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff !important;
    background: var(--frvo-primary);
    font-weight: 700;
    text-decoration: none !important;
    gap: 18px;
}

/* Search, category and fixed pages share one clean, full-width content area. */
#body_wrap.search .l-content,
#body_wrap.archive .l-content,
#body_wrap.page:not(.home) .l-content {
    display: block !important;
    max-width: 1200px !important;
}

#body_wrap.search .l-mainContent,
#body_wrap.archive .l-mainContent,
#body_wrap.page:not(.home) .l-mainContent {
    width: 100% !important;
    max-width: none !important;
}

#body_wrap.search .l-sidebar,
#body_wrap.archive .l-sidebar,
#body_wrap.page:not(.home) .l-sidebar {
    display: none !important;
}

#body_wrap.page:not(.home) .post_content {
    max-width: 840px;
    margin-inline: auto;
}

#body_wrap.search .c-pageTitle,
#body_wrap.archive .c-pageTitle,
#body_wrap.page:not(.home) .c-pageTitle {
    color: var(--frvo-ink);
}

#body_wrap.archive .c-pageTitle__subTitle {
    display: none !important;
}

/* Article pages stay readable and do not repeat generic sidebar widgets. */
#body_wrap.single-post .l-content {
    display: block !important;
    max-width: 1200px !important;
}

#body_wrap.single-post .l-mainContent {
    width: min(100%, 900px) !important;
    max-width: 900px !important;
    margin-inline: auto !important;
}

#body_wrap.single-post .l-sidebar {
    display: none !important;
}

.frvo-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 720px);
    min-height: 54px;
    margin: 24px 0 18px;
    overflow: hidden;
    border: 1px solid var(--frvo-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--frvo-shadow);
}

.frvo-search-form input[type="search"] {
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
}

.frvo-search-form button {
    margin: 5px;
}

.frvo-search-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Contact form restored by this plugin. */
.frvo-contact-form {
    position: relative;
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: 26px;
    border: 1px solid var(--frvo-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--frvo-shadow);
}

.frvo-field {
    display: grid;
    gap: 7px;
}

.frvo-field > span {
    color: var(--frvo-ink);
    font-weight: 600;
}

.frvo-field small {
    color: var(--frvo-muted);
    font-weight: 400;
}

.frvo-field strong {
    color: var(--frvo-error);
    font-size: 12px;
}

.frvo-field input,
.frvo-field select,
.frvo-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--frvo-ink);
    background: #fff;
}

.frvo-field input:focus,
.frvo-field select:focus,
.frvo-field textarea:focus {
    border-color: var(--frvo-primary);
    outline: 3px solid rgba(79,70,229,.12);
}

.frvo-honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.frvo-form-note {
    margin: 0;
    color: var(--frvo-muted);
    font-size: 13px;
}

.frvo-form-submit {
    min-height: 46px;
    justify-self: start;
}

.frvo-form-message {
    margin: 20px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.frvo-form-message--success {
    color: #166534;
    background: #dcfce7;
}

.frvo-form-message--error {
    color: #991b1b;
    background: #fee2e2;
}

@media (max-width: 900px) {
    .frvo-hero::before {
        opacity: .65;
        background-size: auto 125%;
    }

    .frvo-hero__copy {
        width: min(680px, 78%);
    }

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

    .frvo-card-grid,
    .frvo-card-grid--featured-single {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .frvo-card-grid--featured-single .frvo-post-card {
        display: block;
    }

    .frvo-card-grid--featured-single .frvo-post-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .c-headLogo.-img img {
        width: 34px !important;
        height: 34px !important;
    }

    .frvo-brand-word {
        font-size: 20px;
    }

    .frvo-shell {
        width: min(100% - 32px, 1200px);
    }

    .frvo-hero::before {
        opacity: .28;
        background-position: 72% center;
        background-size: auto 100%;
    }

    .frvo-hero::after {
        background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.97));
    }

    .frvo-hero__inner {
        min-height: 0;
        padding-block: 48px;
    }

    .frvo-hero__copy {
        width: 100%;
    }

    .frvo-hero h1 {
        font-size: 34px;
    }

    .frvo-hero__copy > p {
        font-size: 15px;
    }

    .frvo-hero__copy > p br {
        display: none;
    }

    .frvo-hero-search {
        min-height: 54px;
    }

    .frvo-hero-search button {
        min-width: 72px;
        padding-inline: 14px;
    }

    .frvo-section {
        padding-block: 48px;
    }

    .frvo-section-head h2,
    .frvo-contact-cta h2 {
        font-size: 26px;
    }

    .frvo-purpose-grid,
    .frvo-card-grid,
    .frvo-card-grid--featured-single {
        grid-template-columns: 1fr;
    }

    .frvo-purpose-card {
        min-height: 0;
    }

    .frvo-contact-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .frvo-contact-form {
        padding: 20px;
    }
}

@media (max-width: 390px) {
    .frvo-brand-word {
        font-size: 18px;
    }

    .frvo-hero h1 {
        font-size: 30px;
        white-space: nowrap;
    }
}
