/* =============================================
   TOP Page Custom Styles
   ============================================= */

/* --- Header readability on MV --- */
.l-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Reset & Base --- */
.top #content {
    padding-top: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* --- Section Common --- */
.fp-section {
    width: 100%;
    padding: 60px 0;
    margin: 0;
}
.fp-section--py80 { padding: 80px 0; }
.fp-section--py20 { padding: 20px 0; }
.fp-section--bg-white { background-color: #fff; }
.fp-section--bg-gray  { background-color: #f7f7f7; }
.fp-section--bg-amber { background-color: #fffbeb; }
.fp-section--bg-dark  { background-color: #1f2937; color: #f3f4f6; }
.fp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 768px) {
    .fp-section { padding: 40px 0; }
    .fp-section--py80 { padding: 40px 0; }
    .fp-section--py20 { padding: 20px 0; }
}

/* --- Hide reCAPTCHA badge --- */
.grecaptcha-badge { visibility: hidden !important; }

/* --- Section Title --- */
.fp-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.fp-section-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 4px;
    padding-bottom: 0;
    border: none;
    background: none;
}
.fp-section-title::before,
.fp-section-title::after { display: none; }
.fp-section-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* --- Concept --- */
.fp-concept {
    position: relative;
    overflow: hidden;
}
.fp-concept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #fff, transparent);
    z-index: 2;
    pointer-events: none;
}
.fp-concept__bg {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
}
.fp-concept__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.fp-concept__inner {
    position: relative;
    z-index: 2;
}
.fp-concept__card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.fp-concept__catch {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 24px 0;
}
.fp-concept__desc {
    line-height: 1.9;
    margin-bottom: 24px;
}
.fp-cap-box {
    position: relative;
    border: 1px solid #d97706;
    border-radius: 0;
    margin-bottom: 20px;
    margin-top: 12px;
}
.fp-cap-box__title {
    position: absolute;
    top: 0;
    left: 1em;
    transform: translateY(-50%);
    background: #d97706;
    padding: .15em .8em;
    font-weight: 600;
    font-size: .85em;
    color: #fff;
    white-space: nowrap;
    line-height: 1.6;
}
.fp-cap-box__body {
    padding: 1.5em 1.25em 1.25em;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .fp-concept__card { padding: 24px 16px; }
    .fp-concept__catch { font-size: 18px; }
}

/* --- Service Cards --- */
.fp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fp-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.fp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
a.fp-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.fp-card--link .fp-card__title {
    color: #d97706;
    text-decoration: underline;
    text-underline-offset: 3px;
}
a.fp-card--link:hover .fp-card__title {
    color: #b45309;
}
.fp-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 12px;
}
.fp-card__title {
    font-weight: bold;
    margin-bottom: 10px;
}
.fp-card__sep {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 10px;
}
.fp-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
@media (max-width: 768px) {
    .fp-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .fp-card { padding: 16px; }
    .fp-card__title { font-size: 13px; }
    .fp-card__text { font-size: 12px; }
}

/* --- Works Grid --- */
.fp-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fp-works-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}
.fp-works-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}
.fp-works-item__thumb {
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}
.fp-works-item__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.fp-works-item:hover .fp-works-item__img {
    transform: scale(1.03);
}
.fp-works-item__cat {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: #d97706;
    background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 6px, transparent 6px, transparent 12px);
    color: #fff;
    font-size: 10px;
    line-height: 2;
    padding: 0 .75em;
    white-space: nowrap;
}
.fp-works-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-top: 2px solid #f3f4f6;
}
.fp-works-item__title {
    font-size: 13px;
    font-weight: 600;
}
.fp-works-item__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #9ca3af;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.fp-works-item__link:hover {
    color: #d97706;
    background: #fef3c7;
}
@media (max-width: 768px) {
    .fp-works-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .fp-works-item__bottom { padding: 8px 10px; }
    .fp-works-item__title { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fp-works-item__link { width: 24px; height: 24px; }
    .fp-works-item__link svg { width: 13px; height: 13px; }
}

/* --- More Button (SWELL more_btn style) --- */
.fp-more-btn {
    text-align: center;
    margin-top: 32px;
}
.fp-more-btn a {
    display: inline-block;
    min-width: 280px;
    padding: .75rem 3em;
    background: #fff;
    box-shadow: 0 0 0 1px #dcdcdc;
    color: #666;
    text-decoration: none;
    font-size: .9em;
    transition: box-shadow 0.25s, background-color 0.25s;
    position: relative;
}
.fp-more-btn a::after {
    content: '\2192';
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.25s;
}
.fp-more-btn a:hover {
    background: #d97706;
    color: #fff;
    box-shadow: 0 0 0 1px #d97706;
}

/* --- Plan --- */
.fp-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fp-plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.fp-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.fp-plan-card__name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 0;
    border: none;
    background: none;
}
.fp-plan-card__name::before,
.fp-plan-card__name::after { display: none; }
.fp-plan-card__price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}
.fp-plan-card__price .unit {
    font-size: 14px;
    font-weight: normal;
}
.fp-plan-card__desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}
.fp-plan-card__features {
    width: 100%;
    border-collapse: collapse;
}
.fp-plan-card__features td {
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    text-align: left;
}
.fp-plan-check,
.fp-plan-cross {
    display: inline-block;
    width: 18px;
    margin-right: 6px;
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
}
.fp-plan-check { color: #d97706; }
.fp-plan-cross { color: #d1d5db; }
.fp-plan-card__features td.is-disabled {
    color: #d1d5db;
}
/* Standard plan highlight */
.fp-plan-card--highlight {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.25);
    border: none;
    background: #d97706;
    color: #fff;
    position: relative;
    z-index: 1;
}
.fp-plan-card--highlight .fp-plan-card__name {
    color: #fff;
}
.fp-plan-card--highlight .fp-plan-card__price {
    color: #fff;
}
.fp-plan-card--highlight .fp-plan-card__price .unit {
    color: rgba(255, 255, 255, 0.8);
}
.fp-plan-card--highlight .fp-plan-card__desc {
    color: rgba(255, 255, 255, 0.85);
}
.fp-plan-card--highlight .fp-plan-card__features td {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.fp-plan-card--highlight .fp-plan-card__features td.is-disabled {
    color: rgba(255, 255, 255, 0.4);
}
.fp-plan-card--highlight .fp-plan-check {
    color: #fff;
}
.fp-plan-card--highlight .fp-plan-cross {
    color: rgba(255, 255, 255, 0.4);
}
.fp-plan-card--highlight:hover {
    transform: scale(1.04) translateY(-4px);
}
/* Plan Carousel (mobile) */
.fp-plan-wrap { position: relative; }
.fp-plan-carousel { display: none; }
@media (max-width: 768px) {
    .fp-plan-grid {
        display: flex;
        overflow: hidden;
        gap: 0;
    }
    .fp-plan-grid > .fp-plan-card {
        min-width: 100%;
        flex-shrink: 0;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .fp-plan-card--highlight { transform: none; border-width: 2px; }
    .fp-plan-card--highlight:hover { transform: none; }
    /* Arrow buttons overlaid on card sides */
    .fp-plan-carousel { display: block; }
    .fp-plan-carousel__btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(0,0,0,0.12);
        background: rgba(255,255,255,0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: background 0.2s, border-color 0.2s;
    }
    .fp-plan-carousel__btn:active {
        background: #fef3c7;
        border-color: #d97706;
    }
    .fp-plan-carousel__btn--prev { left: 6px; }
    .fp-plan-carousel__btn--next { right: 6px; }
    .fp-plan-carousel__btn svg {
        width: 16px;
        height: 16px;
        stroke: #374151;
    }
    /* Dots below card */
    .fp-plan-carousel__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }
    .fp-plan-carousel__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        transition: background 0.2s, transform 0.2s;
    }
    .fp-plan-carousel__dot.is-active {
        background: #d97706;
        transform: scale(1.3);
    }
}

/* --- Maintenance Plan --- */
.fp-plan-section-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #d97706;
    margin: 48px 0 32px;
    padding-bottom: 0;
    border: none;
    background: none;
}
.fp-plan-section-title::before,
.fp-plan-section-title::after { display: none; }


/* --- Option Table (集客サポート etc.) --- */
.fp-option-table {
    margin-top: 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}
.fp-option-table__header {
    background: #d97706;
    padding: 16px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}
.fp-option-table__body {
    padding: 8px 24px;
}
.fp-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 16px;
}
.fp-option-row:last-child { border-bottom: none; }
.fp-option-row__name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}
.fp-option-row__price {
    font-size: 15px;
    font-weight: 700;
    color: #d97706;
    white-space: nowrap;
    text-align: right;
}
.fp-plan-notes {
    margin-top: 32px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}
.fp-plan-notes p { margin-bottom: 4px; }
.fp-plan-note-flex {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .fp-option-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .fp-option-row__price { text-align: left; }
    .fp-option-table__body { padding: 8px 16px; }
}

/* --- Works Note --- */
.fp-works-note {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 32px auto 0;
    max-width: 720px;
    padding: 16px 24px;
    background: #f9fafb;
    border-radius: 8px;
    line-height: 1.7;
}

/* --- Voice (お客様の声) --- */
.fp-voice {
    position: relative;
    overflow: hidden;
}
.fp-voice__bg {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
}
.fp-voice__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.35);
    z-index: 1;
}
.fp-voice__inner {
    position: relative;
    z-index: 2;
}
.fp-voice-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
}
.fp-voice-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.fp-voice-row--pair {
    gap: 24px;
}
.fp-voice-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    /* balloon float-up: hidden by default */
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.fp-voice-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.fp-voice-item--right {
    flex-direction: row;
}
.fp-voice-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}
.fp-voice-avatar svg {
    width: 22px;
    height: 22px;
    fill: #9ca3af;
}
.fp-voice-bubble {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 0;
}
.fp-voice-bubble::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #fff transparent transparent;
    filter: drop-shadow(-2px 1px 1px rgba(0,0,0,0.04));
}
.fp-voice-bubble img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .fp-voice-grid { gap: 16px; }
    .fp-voice-row--pair { gap: 16px; }
    .fp-voice-avatar { width: 30px; height: 30px; }
    .fp-voice-avatar svg { width: 16px; height: 16px; }
    .fp-voice-item { gap: 8px; }
    .fp-voice-bubble { border-radius: 8px; }
    .fp-voice-bubble img { border-radius: 8px; }
}

/* --- Flow / Steps (SWELL step style) --- */
.fp-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    counter-reset: step;
}
.fp-step {
    position: relative;
    padding: 0 0 2.5em 64px;
    margin-bottom: 0;
}
.fp-step:last-child { padding-bottom: 0; }
.fp-step__number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: #d97706;
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.2;
    z-index: 1;
    counter-increment: step;
}
.fp-step__number .num {
    font-size: 18px;
}
.fp-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 23px;
    width: 2px;
    height: calc(100% - 48px);
    background: #dedede;
    z-index: 0;
}
.fp-step__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-top: 12px;
}
.fp-step__body {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.fp-step__list {
    margin-top: 12px;
    padding-left: 20px;
}
.fp-step__list li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .fp-step { padding-left: 52px; }
    .fp-step__number { width: 40px; height: 40px; font-size: 9px; }
    .fp-step__number .num { font-size: 15px; }
    .fp-step:not(:last-child)::before { left: 19px; top: 40px; height: calc(100% - 40px); }
    .fp-step__title { font-size: 16px; padding-top: 8px; }
}

/* --- Greeting --- */
.fp-greeting {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 40px;
    align-items: center;
}
.fp-greeting__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}
.fp-greeting__content {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    line-height: 1.9;
}
.fp-greeting__content p {
    margin-bottom: 16px;
}
.fp-greeting__content p:last-child {
    margin-bottom: 0;
}
.fp-greeting__dl {
    margin: 16px 0;
}
.fp-greeting__dt {
    font-weight: bold;
    margin-bottom: 4px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.fp-greeting__dt:first-child {
    border-top: none;
    padding-top: 0;
}
.fp-greeting__dd {
    margin: 0 0 0 0;
    font-size: 14px;
    color: #555;
}
@media (max-width: 768px) {
    .fp-greeting {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .fp-greeting > div:first-child {
        text-align: center;
    }
    .fp-greeting__img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    .fp-greeting__content { padding: 20px 16px; }
}

/* --- Blog (SWELL card style) --- */
.fp-blog-desc {
    text-align: center;
    margin-bottom: 32px;
    color: #555;
}
.fp-blog-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -.5em;
    margin-right: -.5em;
}
.fp-blog-item {
    width: 33.333%;
    padding: 0 .5em;
    margin-bottom: 2em;
}
.fp-blog-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.fp-blog-item__thumb-wrap {
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,.1), 0 4px 4px -4px rgba(0,0,0,.1);
    overflow: hidden;
}
.fp-blog-item__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.fp-blog-item__cat {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #d97706;
    background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 6px, transparent 6px, transparent 12px);
    color: #fff;
    font-size: 10px;
    line-height: 2;
    padding: 0 .75em;
    white-space: nowrap;
    z-index: 1;
}
.fp-blog-item__body {
    padding: 1em 0 0;
}
.fp-blog-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.fp-blog-item__date {
    font-size: 12px;
    color: #999;
}
@media (max-width: 599px) {
    .fp-blog-item { width: 100%; }
}

/* --- Contact Form --- */
.fp-contact__intro {
    margin-bottom: 24px;
    line-height: 1.8;
}
.fp-contact__line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}
.fp-contact__line img {
    transition: opacity 0.3s;
}
.fp-contact__line img:hover {
    opacity: 0.8;
}
.fp-contact__line-text {
    font-size: 14px;
    color: #9ca3af;
}
@media (max-width: 480px) {
    .fp-contact__line {
        flex-direction: column;
        gap: 8px;
    }
}
.fp-contact__note {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}
.fp-contact__note a {
    color: #d97706;
}

/* CF7 form styles */
.fp-section--contact .wpcf7 {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .fp-section--contact .wpcf7 { margin: 20px 16px; padding: 24px 20px; border-radius: 8px; }
}
@media (max-width: 480px) {
    .fp-section--contact .wpcf7 { margin: 20px 12px; padding: 20px 16px; }
}
.fp-section--contact .wpcf7-form > p { margin-bottom: 25px; }
.fp-section--contact .wpcf7 label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.025em;
}
.fp-section--contact .wpcf7 input[type="text"],
.fp-section--contact .wpcf7 input[type="email"],
.fp-section--contact .wpcf7 input[type="tel"],
.fp-section--contact .wpcf7 textarea,
.fp-section--contact .wpcf7 select {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #f9fafb;
    transition: all 0.2s;
}
.fp-section--contact .wpcf7 input:focus,
.fp-section--contact .wpcf7 textarea:focus,
.fp-section--contact .wpcf7 select:focus {
    background: #fff;
    border-color: #3b82f6;
    outline: none;
}
.fp-section--contact .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.fp-section--contact .wpcf7 input[type="submit"]:hover {
    background: #374151;
}
.fp-section--contact .wpcf7-form-control.wpcf7-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Dark theme overrides for Contact */
.fp-section--bg-dark .fp-section-title { color: #fff; }
.fp-section--bg-dark .fp-section-subtitle { color: #9ca3af; }
.fp-section--bg-dark .fp-contact__intro { color: #d1d5db; }
.fp-section--bg-dark .fp-contact__note { color: #9ca3af; }
.fp-section--bg-dark .fp-contact__note a { color: #fbbf24; }
.fp-section--bg-dark .wpcf7 {
    background: #374151;
    border-color: #4b5563;
}
.fp-section--bg-dark .wpcf7 label { color: #e5e7eb; }
.fp-section--bg-dark .wpcf7 input[type="text"],
.fp-section--bg-dark .wpcf7 input[type="email"],
.fp-section--bg-dark .wpcf7 input[type="tel"],
.fp-section--bg-dark .wpcf7 textarea,
.fp-section--bg-dark .wpcf7 select {
    background: #1f2937;
    border-color: #4b5563;
    color: #f3f4f6;
}
.fp-section--bg-dark .wpcf7 input:focus,
.fp-section--bg-dark .wpcf7 textarea:focus,
.fp-section--bg-dark .wpcf7 select:focus {
    background: #111827;
    border-color: #fbbf24;
}
.fp-section--bg-dark .wpcf7 input[type="submit"] {
    background: #d97706;
}
.fp-section--bg-dark .wpcf7 input[type="submit"]:hover {
    background: #b45309;
}

/* --- Top Title Area (hide) --- */
#top_title_area { display: none; }

/* --- Loading Overlay (Curtain) --- */
body.fp-no-scroll { overflow: hidden; }

body.fp-no-scroll .l-header,
body.fp-no-scroll .l-fixHeader,
body.fp-no-scroll #fix_header,
body.fp-no-scroll .p-mainVisual__scroll {
    z-index: 0 !important;
}
.fp-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: auto;
}
.fp-loading__panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}
.fp-loading__panel--left  { left: 0; }
.fp-loading__panel--right { right: 0; }
.fp-loading.is-loaded .fp-loading__panel--left  { transform: translateX(-100%); }
.fp-loading.is-loaded .fp-loading__panel--right { transform: translateX(100%); }

.fp-loading__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    transition: opacity 0.4s ease-out;
}
.fp-loading.is-loaded .fp-loading__content {
    opacity: 0;
}

/* --- Character-by-character stagger --- */
.fp-loading__name {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.06em;
    display: flex;
    justify-content: center;
}
.fp-loading__char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: fpCharIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.fp-loading__char--accent { color: #d97706; }

.fp-loading__char:nth-child(1) { animation-delay: 0.1s; }
.fp-loading__char:nth-child(2) { animation-delay: 0.16s; }
.fp-loading__char:nth-child(3) { animation-delay: 0.22s; }
.fp-loading__char:nth-child(4) { animation-delay: 0.28s; }
.fp-loading__char:nth-child(5) { animation-delay: 0.34s; }
.fp-loading__char:nth-child(6) { animation-delay: 0.38s; }
.fp-loading__char:nth-child(7) { animation-delay: 0.44s; }
.fp-loading__char:nth-child(8) { animation-delay: 0.50s; }

@keyframes fpCharIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Progress bar --- */
.fp-loading__bar {
    width: 180px;
    height: 2px;
    background: #e5e7eb;
    margin: 18px auto 0;
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
    animation: fpCounterIn 0.3s ease-out 0.6s forwards;
}
.fp-loading__bar-fill {
    width: 0%;
    height: 100%;
    background: #d97706;
    border-radius: 1px;
    transition: width 0.05s linear;
}

/* --- Percentage counter --- */
.fp-loading__counter {
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    margin-top: 8px;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fpCounterIn 0.3s ease-out 0.6s forwards;
}
@keyframes fpCounterIn {
    to { opacity: 1; }
}

/* --- Subtitle typewriter --- */
.fp-loading__sub {
    font-size: 15px;
    color: #6b7280;
    margin-top: 14px;
    letter-spacing: 0.08em;
    min-height: 1.5em;
}
.fp-loading__sub .fp-tw-char {
    opacity: 0;
    animation: fpTwIn 0.05s ease forwards;
}
@keyframes fpTwIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .fp-loading__name { font-size: 36px; }
    .fp-loading__sub { font-size: 13px; white-space: nowrap; }
}
@media (max-width: 480px) {
    .fp-loading__sub { font-size: 11px; }
}
/* MV bottom fade into Concept */
.p-mainVisual {
    position: relative;
}
.p-mainVisual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #fff);
    z-index: 2;
    pointer-events: none;
}
/* MV text wrap fix */
.p-mainVisual__slideTitle { white-space: nowrap; }
@media (max-width: 480px) {
    .p-mainVisual__slideTitle { font-size: 5.5vw; }
}
/* MV text readability */
.p-mainVisual__slideTitle .title-line {
    background-color: rgba(30, 41, 59, 0.85);
    color: #fff;
    padding: 12px 8px;
    display: inline-block;
    border-radius: 16px;
}

/* --- Concept First-View Animation --- */
.fp-concept-anim .fp-concept__bg {
    transform: scale(1.1) translateY(0);
    transition: transform 1.2s ease-out;
}
.fp-concept-anim.is-revealed .fp-concept__bg {
    transform: scale(1.0) translateY(var(--parallax-y, 0px));
}

.fp-concept-anim .fp-concept__card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.1s;
}
.fp-concept-anim.is-revealed .fp-concept__card {
    opacity: 1;
    transform: translateY(0);
}

.fp-concept-anim .fp-concept__card > .fp-section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s;
}
.fp-concept-anim.is-revealed .fp-concept__card > .fp-section-header {
    opacity: 1;
    transform: translateY(0);
}

.fp-concept-anim .fp-concept__catch {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.4s;
}
.fp-concept-anim.is-revealed .fp-concept__catch {
    opacity: 1;
    transform: translateY(0);
}

.fp-concept-anim .fp-concept__desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.6s;
}
.fp-concept-anim.is-revealed .fp-concept__desc {
    opacity: 1;
    transform: translateY(0);
}

.fp-concept-anim .fp-cap-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fp-concept-anim.is-revealed .fp-cap-box {
    opacity: 1;
    transform: translateY(0);
}
