/* =======================================================
   ベース設定
======================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif; 
    background: #FBF9F2; 
    color: #4A4438;
}
a { text-decoration: none; color: inherit; }
li { list-style: none; }

/* 共通レイアウトクラス */
.wrap { 
    width: 100%; 
    overflow: hidden; 
}
/* コンテンツの最大幅を制限し、中央揃えにするインナーラッパー */
.container-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 6%;
    position: relative;
    z-index: 2;
}

/* 表示切り替え用クラス */
.pc-only { display: block; }
.sp-only { display: none; }
.pc-flex-only { display: flex; }

/* 見出し共通 */
.section-title-wrap { 
    text-align: center; 
    margin-bottom: 40px; 
}
.section-title { font-size: 22px; font-weight: 900; color: #2B5AA3; }
.section-title-bar { width: 32px; height: 4px; background: #E2703A; border-radius: 3px; margin: 12px auto 0; }

/* セクション間の余白 */
.section-mb { margin-bottom: 60px; }

/* ボタン共通 */
.btn-primary {
    display: inline-block; background: #2B5AA3; color: #FBF9F2;
    font-size: 13px; font-weight: 700; padding: 12px 26px; border-radius: 26px;
    transition: opacity 0.3s;
}
.btn-primary:hover { opacity: 0.8; }

.btn-secondary {
    display: inline-block; background: #FFFFFF; color: #2B5AA3;
    font-size: 14px; font-weight: 700; padding: 12px 30px; border-radius: 26px; border: 1px solid #C9D6E4;
    transition: all 0.3s;
}
.btn-secondary:hover { background: #EEF3FA; }

.btn-accent {
    display: inline-block; background: #E2703A; color: #FFF4EC;
    font-size: 13px; font-weight: 700; padding: 10px 26px; border-radius: 26px;
    transition: opacity 0.3s;
}
.btn-accent:hover { opacity: 0.8; }

/* =======================================================
   各セクションスタイル (PCファースト)
======================================================= */
/* Header */
.header {
    background: #FBF9F2; border-bottom: 1px solid #ECE7D8;
    position: relative; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 22px; padding-bottom: 22px;
}
.logo-group { display: flex; align-items: center; z-index: 101; max-width: 150px; height: 32px; }
.logo-img { width: 100%; height: 100%; object-fit: contain; }

.header-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; color: #2B5AA3; align-items: center; }
.header-nav a:hover { color: #E2703A; }
.header-contact-btn { background: #E2703A; color: #FFF4EC; padding: 10px 20px; border-radius: 22px; transition: opacity 0.3s; }
.header-contact-btn:hover { opacity: 0.8; }

/* ハンバーガーメニュー */
.hamburger {
    display: none; width: 26px; height: 18px; position: relative; cursor: pointer; z-index: 101;
}
.hamburger span {
    position: absolute; left: 0; width: 100%; height: 2px; background: #2B5AA3; border-radius: 2px;
    transition: all 0.4s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* SP用全画面メニュー */
.sp-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #FBF9F2; z-index: 99;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.sp-nav-overlay.active { opacity: 1; pointer-events: auto; }
.sp-nav-list { text-align: center; display: flex; flex-direction: column; gap: 30px; }
.sp-nav-list a { font-size: 18px; font-weight: 900; color: #2B5AA3; letter-spacing: 1px; }
.sp-nav-list a.btn-accent { color: #FFF4EC !important; } 
.sp-nav-contact { margin-top: 20px; }

/* FV (全画面背景版) */
.fv { 
    position: relative; 
    /* 背景画像を画面全体に広げる */
    background-image: url('../img/renewal/fv-main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Newsの上まで高さを取るように指定 */
    padding-top: 100px;
    padding-bottom: 120px;
    margin-bottom: 40px;
}
.fv-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.fv-content { position: relative; z-index: 2; width: 50%; }
.fv-title { font-size: 30px; font-weight: 900; color: #2B5AA3; line-height: 1.5; margin-bottom: 18px; }
.fv-desc { font-size: 13px; font-weight: 500; color: #6B6349; line-height: 1.9; margin-bottom: 24px; }


/* News (ティッカー化) */
.news-ticker-wrapper {
    background: #FFFFFF; border-radius: 40px; border: 1px solid #ECE7D8; padding: 0 24px;
    height: 60px; display: flex; align-items: center; max-width: 900px; margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.news-badge {
    background: #2B5AA3; color: #FBF9F2; font-size: 12px; font-weight: 900; 
    padding: 6px 16px; border-radius: 16px; letter-spacing: 1px; flex-shrink: 0;
    margin-right: 20px;
}
.news-ticker {
    flex: 1; height: 100%; position: relative; overflow: hidden;
}
.news-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; gap: 15px;
    opacity: 0; transform: translateY(15px); transition: all 0.5s ease;
    pointer-events: none;
}
.news-item.active {
    opacity: 1; transform: translateY(0); pointer-events: auto; z-index: 1;
}
.news-date { font-size: 13px; font-weight: 700; color: #B0A78E; flex-shrink: 0; }
.news-title { font-size: 14px; font-weight: 500; color: #4A4438; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-title:hover { color: #E2703A; }

/* Service */
.service-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
}
.service-card { 
    background: #FFFFFF; border-radius: 16px; border: 1px solid #ECE7D8; 
    padding: 20px; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(43,90,163,0.05);
}
.service-banner { 
    width: 100%; aspect-ratio: 1 / 1; 
    background: #DCE8F7; border-radius: 12px; 
    margin: 0 auto 16px; overflow: hidden;
}
.service-banner img { width: 100%; height: 100%; object-fit: cover; }
.service-name { font-size: 16px; font-weight: 900; color: #2B5AA3; }

/* Works (PCのみ等倍6個表示 ＆ 1603:897比率) */
.works-bg { background: #EEF3FA; padding: 60px 0; margin-bottom: 60px; position: relative; overflow: hidden; }
.works-bg-shape { position: absolute; bottom: -40px; left: -40px; width: 180px; height: 180px; background: #DCE8F7; border-radius: 50%; }

.works-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
    margin-bottom: 30px;
}
.work-item { 
    background: #D9D9D2; border-radius: 16px; position: relative; overflow: hidden; 
    transition: transform 0.3s;
    aspect-ratio: 1603 / 897; 
    width: 100%;
}
.work-item:hover { transform: scale(1.02); }
.work-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

.work-badge { position: absolute; top: 0; left: 0; color: #FBF9F2; font-size: 12px; font-weight: 900; padding: 6px 14px; border-radius: 0 0 10px 0; z-index: 2; }
.bg-blue { background: #2B5AA3; }
.bg-orange { background: #E2703A; color: #FFF4EC; }

.work-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(43,90,163,0.85); padding: 14px 18px; z-index: 2; }
.work-title { font-size: 15px; font-weight: 900; color: #FBF9F2; margin-bottom: 2px; }
.work-cat { font-size: 12px; font-weight: 500; color: #DCE8F7; }
.works-btn-wrap { text-align: center; position: relative; z-index: 2; }

/* About Banner */
.about-banner {
    background: #2B5AA3; border-radius: 20px; padding: 36px 40px;
    width: 100%; max-width: 800px; margin-left: auto; margin-right: auto;
    position: relative; overflow: hidden; display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) 130px; gap: 0 34px;
}
.about-shape-1 { position: absolute; bottom: -40px; right: -24px; width: 150px; height: 150px; background: #3D6BB5; border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
.about-content { position: relative; z-index: 1; grid-column: 1; grid-row: 1; }
.about-button { position: relative; z-index: 1; grid-column: 1; grid-row: 2; justify-self: start; }
.about-title { font-size: 17px; font-weight: 900; color: #FBF9F2; line-height: 1.8; margin-bottom: 8px; }
.about-desc { font-size: 13px; font-weight: 500; color: #C9D6E4; line-height: 1.8; margin-bottom: 20px; }
.about-image { width: 130px; height: 110px; background: #DCE8F7; border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%; grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Partners (4個のみ) */
.partner-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
    margin-bottom: 30px; 
}
.partner-item { 
    background: #FFFFFF; border: 1px solid #ECE7D8; border-radius: 22px; 
    height: 64px; 
    display: flex; align-items: center; justify-content: center; 
    padding: 10px 20px;
}
.partner-item img { width: 100%; height: 100%; object-fit: contain; }

/* Members */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.member-item { background: #D9D9D2; border-radius: 50%; width: 100%; aspect-ratio: 1; overflow: hidden; }
.member-item img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ (アコーディオン) */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; align-items: start; }
.faq-item {
    background: #FFFFFF; border-radius: 16px; border: 1px solid #ECE7D8;
    overflow: hidden; /* 中身がはみ出さないように */
    transition: background 0.3s;
}
.faq-item:hover { background: #FDFDFB; }
.faq-header {
    padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
}
.faq-q { font-size: 13px; font-weight: 700; color: #4A4438; }
.faq-icon { font-size: 18px; font-weight: 900; color: #2B5AA3; transition: transform 0.3s; }
.faq-body {
    padding: 0 18px; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #FAFAFA; border-top: 1px dashed transparent;
}
.faq-a { font-size: 13px; color: #6B6349; line-height: 1.6; }

/* アコーディオンが開いた時のスタイル */
.faq-item.active .faq-icon { transform: rotate(45deg); /* +を×にするアニメーション */ }
.faq-item.active .faq-body { padding: 16px 18px; max-height: 200px; /* 十分な高さを指定 */ border-top-color: #ECE7D8; }


/* Footer */
.footer { background: #1F4680; padding: 60px 0 0; margin-top: 60px; position: relative; z-index: 2; }
.footer-inner { 
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; 
    padding-bottom: 40px;
}
.footer-logo { font-weight: 900; font-size: 17px; color: #FBF9F2; margin-bottom: 10px; }
.footer-logo img { max-height: 30px; object-fit: contain; }
.footer-desc { font-size: 12px; color: #B7CBE6; line-height: 1.8; }
.footer .footer-brand { min-width: 0; }
.footer .footer-social { margin-top: 22px; }
.footer .footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer .footer-social-list li { margin: 0; padding: 0; }
.footer .footer-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 56px;
    border-radius: 10px;
    color: #D7E3F3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}
.footer .footer-social-name { white-space: nowrap; }
.footer .footer-social-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: #303078;
}
.footer .footer-social-icon img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    transition: opacity .2s ease;
}
.footer .footer-social-icon-hover { opacity: 0; }
.footer .footer-social-link:hover,
.footer .footer-social-link:focus-visible { color: #FFF; }
.footer .footer-social-link:hover .footer-social-icon-hover,
.footer .footer-social-link:focus-visible .footer-social-icon-hover { opacity: 1; }
.footer .footer-social-link:focus-visible {
    outline: 2px solid #FFF;
    outline-offset: 4px;
}
.footer-links { font-size: 12px; color: #C9D6E4; line-height: 2.2; }
.footer-links a { display: block; transition: color 0.3s; }
.footer-links a:hover { color: #FFF; }
.copyright { background: #173964; padding: 14px 6%; text-align: center; font-size: 11px; color: #8FA9CC; }
.sp-contact-bottom { display: none; }

/* WordPress integration adjustments */
body.home {
    background: #FBF9F2;
    color: #4A4438;
}
.renewal-wrap img {
    display: block;
    max-width: 100%;
}
.renewal-top {
    display: block;
}
.renewal-top .container-inner,
.header .container-inner,
.footer .container-inner {
    width: auto;
}
.renewal-top .works-bg .container-inner {
    z-index: 2;
}
.renewal-top .service-card,
.renewal-top .work-item {
    color: inherit;
}
.renewal-top .faq-header {
    width: 100%;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
}
.renewal-top .renewal-button-wrap {
    margin-bottom: 0;
}
.renewal-top .renewal-faq-section {
    margin-bottom: 0;
}


/* =======================================================
   レスポンシブ (SPサイズ)
======================================================= */
@media screen and (max-width: 768px) {
    .pc-only { display: none !important; }
    .pc-flex-only { display: none !important; }
    .sp-only { display: block; }

    .container-inner { padding: 0 20px; }

    .section-title-wrap { margin-bottom: 24px; }
    .section-title { font-size: 18px; }
    .section-title-bar { width: 24px; height: 3px; margin: 6px auto 0; }
    .section-mb { margin-bottom: 40px; }

    /* Header & Hamburger */
    .header { position: fixed; top: 0; width: 100%; border-bottom: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05);}
    .header-inner { padding-top: 16px; padding-bottom: 16px; }
    .logo-group { max-width: 120px; height: 26px; }
    .hamburger { display: block; }
    .wrap { padding-top: 60px; }

    /* FV */
    .fv { padding-top: 40px; padding-bottom: 60px; background-position: right center;} /* SPでは右寄りに表示など調整 */
    .fv-inner { justify-content: center; }
    .fv-content { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center;}
    .fv-title { font-size: 24px; margin-bottom: 12px; }
    .fv-desc { line-height: 1.8; margin-bottom: 20px; font-size: 12px; }

    /* News Ticker */
    .news-ticker-wrapper { 
        height: 50px; padding: 0 16px; border-radius: 25px;
    }
    .news-badge { padding: 4px 12px; font-size: 10px; margin-right: 12px; }
    .news-date { font-size: 11px; }
    .news-title { font-size: 12px; }

    /* Service */
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .service-card { padding: 14px 10px; border-radius: 14px; }
    .service-name { font-size: 13px; }

    /* Works */
    .works-bg { padding: 40px 0; margin-bottom: 40px; }
    .works-bg-shape { bottom: -24px; left: -24px; width: 100px; height: 100px; }
    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
    .work-info { padding: 8px 10px; }
    .work-title { font-size: 13px; margin-bottom: 0; }
    .work-cat { font-size: 10px; }
    
    .btn-secondary { font-size: 13px; padding: 10px 24px; border-radius: 22px; }

    /* About Banner */
    .about-banner { max-width: none; padding: 26px 20px; border-radius: 16px; grid-template-columns: minmax(0, 1fr) auto clamp(80px, 25vw, 110px) minmax(0, 1fr); gap: 18px 0; }
    .about-content { grid-column: 1 / -1; }
    .about-button { grid-column: 2; margin-right: clamp(14px, calc(100vw - 308px), 24px); max-width: 100%; min-height: 44px; padding: 12px 18px; line-height: 1.4; white-space: nowrap; text-align: center; }
    .about-image { grid-column: 3; grid-row: 2; width: 100%; height: auto; aspect-ratio: 13 / 11; }
    .about-shape-1 { bottom: -34px; right: -24px; width: 100px; height: 100px; }
    .about-title { font-size: 16px; }
    .about-desc { font-size: 12px; margin-bottom: 0; }

    /* Partners */
    .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
    .partner-item { border-radius: 18px; height: 48px; padding: 6px 12px; }

    /* Members */
    .member-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }

    /* FAQ */
    .faq-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
    .faq-header { padding: 13px 14px; }
    .faq-q { font-size: 12px; }
    .faq-icon { font-size: 16px; margin-left: 10px; }

    /* Footer */
    .footer { padding-top: 40px; margin-top: 40px; margin-bottom: 50px; }
    .footer-inner { display: flex; flex-direction: column; gap: 20px; padding-bottom: 30px; }
    .footer-logo { font-size: 16px; margin-bottom: 5px; }
    .footer .footer-social { margin-top: 18px; }
    .footer .footer-social-list { column-gap: 12px; }
    .footer-links-wrap { margin-bottom: 10px; }
    .footer-links { line-height: 2.3; display: inline-block; vertical-align: top; margin-right: 15px; }
    .copyright { padding: 16px 20px; text-align: left; font-size: 10px; margin-bottom: 50px;}

    /* SP Contact Fixed Button */
    .sp-contact-bottom {
        display: block; position: fixed; left: 0; right: 0; bottom: 0;
        background: #E2703A; color: #FFF4EC; font-size: 15px; font-weight: 900;
        padding: 16px 0; text-align: center; z-index: 100;
        box-shadow: 0 -2px 10px rgba(226,112,58,0.3);
    }
}

/* KV: copy and artwork fade together every eight seconds. */
.renewal-top .fv-slider {
    position: relative;
    isolation: isolate;
    background-image: none;
}
.renewal-top .fv-slide-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}
.renewal-top .fv-slide-bg.active {
    opacity: 1;
}
.renewal-top .fv-slide-bg-1 {
    background-image: url('../img/renewal/fv-slide-1.png');
}
.renewal-top .fv-slide-bg-2 {
    background-image: url('../img/renewal/fv-slide-2.png');
}
.renewal-top .fv-slider .fv-inner {
    position: relative;
    z-index: 1;
}
.renewal-top .fv-titles {
    position: relative;
    min-height: 90px;
}
.renewal-top .fv-slide-title {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.renewal-top .fv-slide-title.active {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .renewal-top .fv-slider {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 60vh;
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .renewal-top .fv-slide-bg {
        background-position: center bottom;
    }
    .renewal-top .fv-slide-bg-1 {
        background-image: url('../img/renewal/fv-slide-1-sp.png');
    }
    .renewal-top .fv-slide-bg-2 {
        background-image: url('../img/renewal/fv-slide-2-sp.png');
    }
    .renewal-top .fv-slider .fv-inner {
        width: 100%;
        justify-content: flex-start;
    }
    .renewal-top .fv-slider .fv-content {
        text-align: left;
        align-items: flex-start;
    }
    .renewal-top .fv-titles {
        width: 100%;
        min-height: 72px;
    }
    .renewal-top .fv-slide-title {
        font-size: 22px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .renewal-top .fv-slide-bg,
    .renewal-top .fv-slide-title {
        transition: none;
    }
}
