/* ==========================================================================
   Front Page Renewal Styles
   Sophisticated Modern Corporate (Leverages Style)
   ========================================================================== */

:root {
    --fp-bg-main: #ffffff;
    --fp-bg-contrast: #0b0b0b;
    --fp-text-main: #111111;
    --fp-text-contrast: #ffffff;
    --fp-text-muted: #888888;

    --fp-accent-gold: #c2a373;
    --fp-accent-teal: #00ffa3;
    --fp-accent-navy: #0a192f;

    --fp-font-sans: 'Noto Sans JP', sans-serif;
    --fp-font-serif: 'Noto Serif JP', serif;

    --fp-container-width: 1400px;
    --fp-trans-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home {
    background-color: var(--fp-bg-main);
    color: var(--fp-text-main);
    font-family: var(--fp-font-sans);
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
}

.front-page-wrapper {
    overflow-x: hidden;
    width: 100%;
    margin-bottom: 0 !important;
}

/* Animations */
.js-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ヘッダーはstyle.cssで全ページ共通定義済み */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.fp-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.fp-hero__slider-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.fp-hero__slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-hero__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.fp-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.fp-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 90%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fp-hero__label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    color: var(--fp-accent-teal);
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in-up 1s forwards 0.5s;
}

.fp-hero__title {
    font-family: var(--fp-font-serif);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #fff;
    opacity: 0;
    animation: fade-in-up 1s forwards 0.8s;
}

.fp-hero__scroll {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    z-index: 20;
}

.fp-hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: #fff;
}

/* ==========================================================================
   Section Common (Compact Spacing)
   ========================================================================== */
.fp-section {
    padding: 60px 5%;
    position: relative;
}

.fp-container {
    max-width: var(--fp-container-width);
    margin: 0 auto;
}

.fp-section-head {
    margin-bottom: 40px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.fp-heading-en {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fp-text-muted);
}

.fp-heading-jp {
    font-family: var(--fp-font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   Services (Asymmetric Grid)
   ========================================================================== */
.fp-services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fp-service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fp-service-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fp-service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.fp-service-img-wrap {
    flex: 1;
    height: 320px;
    overflow: hidden;
    border-radius: 4px;
}

.fp-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-service-row:hover .fp-service-img {
    transform: scale(1.05);
}

.fp-service-content {
    flex: 1;
}

.fp-service-num {
    display: block;
    font-size: 4rem;
    font-family: var(--fp-font-serif);
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
}

.fp-service-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.fp-service-desc {
    color: var(--fp-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.fp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fp-text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
}

.fp-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fp-text-main);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.fp-read-more:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .fp-service-row {
        flex-direction: column !important;
        gap: 30px;
        padding: 40px 0;
    }

    .fp-service-img-wrap {
        width: 100%;
        height: 200px;
    }
}

/* ==========================================================================
   Blog Section (3 Column Grid)
   ========================================================================== */
.fp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .fp-blog-grid {
        grid-template-columns: 1fr;
    }
}

.fp-blog-card {
    display: block;
    text-decoration: none;
    background: #fff;
    transition: transform 0.4s ease;
}

.fp-blog-card:hover {
    transform: translateY(-10px);
}

.fp-blog-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 4px;
}

.fp-blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--fp-text-muted);
    margin-bottom: 10px;
}

.fp-blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--fp-text-main);
    transition: color 0.3s ease;
}

.fp-blog-card:hover .fp-blog-title {
    color: var(--fp-accent-navy);
    text-decoration: underline;
}

.fp-center-btn {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Brand Visual
   ========================================================================== */
.fp-brand-visual {
    position: relative;
    padding: 120px 5%;
    background-color: var(--fp-bg-contrast);
    color: #fff;
    overflow: hidden;
}

.fp-brand-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.fp-brand-content {
    position: relative;
    z-index: 2;
    max-width: var(--fp-container-width);
    margin: 0 auto;
    text-align: center;
}

.fp-brand-copy {
    font-family: var(--fp-font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.4;
    margin-bottom: 40px;
}

/* ==========================================================================
   News List
   ========================================================================== */
.fp-news-list-simple {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    max-width: 1000px;
    margin: 0 auto;
}

.fp-news-item {
    display: flex;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--fp-text-main);
    transition: background 0.3s ease, padding 0.3s ease;
}

.fp-news-item:last-child {
    border-bottom: none;
}

.fp-news-item:hover {
    padding-left: 15px;
    background: #f9f9f9;
}

.fp-news-date {
    font-family: monospace;
    color: var(--fp-text-muted);
    font-size: 0.9rem;
    width: 120px;
    flex-shrink: 0;
}

.fp-news-cat {
    font-size: 0.7rem;
    border: 1px solid #ddd;
    color: #666;
    padding: 4px 8px;
    margin-right: 24px;
    text-transform: uppercase;
}

.fp-news-title {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.fp-news-arrow {
    margin-left: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.fp-news-item:hover .fp-news-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Contact CTA (Footer Gap Fix)
   ========================================================================== */
.fp-cta-section {
    text-align: center;
    padding: 100px 20px 80px;
    background: #f5f5f5;
    /* Must match style inline if any */
    margin-bottom: 0 !important;
}

/* Force override Footer styles on Home */
body.home .site-footer {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
    /* Remove top padding to close gap */
    background: #f5f5f5 !important;
    /* Match contact section bg to blend */
}

/* Adjust footer inner if needed to look good */
body.home .footer-inner {
    padding-top: 60px;
    /* Add padding back inside if needed, or keep 0 */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator instead */
}

@media (max-width: 768px) {
    .fp-section {
        padding: 50px 20px;
    }

    .fp-hero__title {
        font-size: 2.2rem;
    }

    .fp-news-item {
        flex-wrap: wrap;
    }

    .fp-news-title {
        width: 100%;
        margin-top: 8px;
    }
}

/* ==========================================================================
   Additional Adjustments
   ========================================================================== */
/* Increase spacing between Blog section and About US */
#blog {
    margin-bottom: 100px;
    /* Extra spacing after Blog section */
}

/* ハンバーガーメニューの表示制御はstyle.cssで全ページ共通定義済み */