html {
    height: 100%;
}

body {
    font-family: 'Futura', 'Century Gothic', 'Yu Gothic Medium', 'Yu Gothic', 'YuGothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    overflow-x: visible;
    width: 100%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    body {
        max-width: 100%;
    }
}

/* メインコンテンツを伸縮させてフッターを下部に固定 */
main {
    flex: 1 0 auto;
}

/* 共通の画像・動画スタイル */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

img {
    border-radius: 8px;
}

/* コンテナ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
}

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

@media (max-width: 768px) {
    .display-pc {
        display: none;
    }
}

.display-sp {
    display: none;
}

@media (max-width: 768px) {
    .display-sp {
        display: block;
    }
}

/* パンくずリスト */
.breadcrumb {
    padding: 1rem 0;
    background-color: #fff;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #4C9A2A;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ページヘッダー */
.page-header {
    padding: 2.5rem 0 0;
    background-color: #fff;
    margin-bottom: 2.5rem;
}

@media (min-width: 769px) {
    .page-header {
        padding: 3.75rem 0 0;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2.5rem 0 0;
        margin-bottom: 2.5rem;
    }
}

/* ページタイトル */
.page-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-title-jp {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

@media (min-width: 769px) {
    .page-title-jp {
        font-size: 36px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-title-jp {
        font-size: 32px;
        text-align: left;
    }
}

.page-title-en {
    font-size: 26px;
    line-height: 1.3;
    color: #4C9A2A;
    font-weight: 600;
    font-family: "Futura", "Futura-Medium", "Futura Medium", "FuturaStd-Medium", "Futura Std Medium", sans-serif;
    text-align: left;
}

/* 下層ページFVセクション */
.page-fv-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fv-image {
    width: 358px;
    height: 194px;
    display: block;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .page-fv-image {
        width: 968px;
        height: 194px;
    }
}

.page-fv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ページコンテンツ */
.page-content {
    padding: 80px 0;
    background-color: #fff;
}

@media (max-width: 768px) {
    .page-content {
        padding: 40px 0;
    }
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0;
    }
}

/* リードテキスト */
.lead-text {
    color: #333;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1.5rem;
}

.lead-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.25rem;
    background-color: #4C9A2A;
}

@media (min-width: 769px) {
    .lead-text {
        font-size: 1.75rem;
        font-weight: bold;
        line-height: 3.15rem;
        margin-bottom: 3rem;
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lead-text {
        margin-bottom: 2rem;
        padding-left: 1.2rem;
    }

    .lead-text::before {
        width: 0.25rem;
    }
}

/* コンテンツセクション */
.content-section {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .content-section {
        margin-bottom: 2rem;
    }
}

.section-heading {
    font-size: 1.5rem;
    color: #4C9A2A;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4C9A2A;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.3rem;
    }
}

.content-section p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* リストスタイル */
.flow-list {
    list-style: decimal;
    padding-left: 2rem;
    margin: 1rem 0;
}

.flow-list li {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.check-list {
    list-style: none;
    border-radius: 0.25rem;
    border: 1px solid #4C9A2A;
    background: #FCFFFB;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .check-list {
        padding: 1.5rem;
    
    }
}

.check-list li {
    list-style: none;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.check-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 0.8em;
    color: #4C9A2A;
}

/* レスポンシブ：html */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
}

/* ================================================
   GSAP Animation Support Styles
   ================================================ */

/* Prevent FOUC (Flash of Unstyled Content) for animated elements */
.hero-title,
.intro-logo,
.intro-title,
.intro-text,
.info-card,
.news-title,
.news-item,
.page-title-jp,
.page-title-en,
.page-fv-image,
.lead-text,
.section-title,
.content-section,
.check-list li,
.support-card,
.flow-card,
.faq-item,
.case-card,
.voice-card,
.info-box,
.membership-section,
.info-item,
.signature,
.contact-form,
.form-group,
.submit-btn,
.contact-btn,
.thanks-message,
.access-map {
    will-change: transform, opacity;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Header scroll state */
.header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure GPU acceleration for animated elements */
.gsap-animated {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 共通お問い合わせセクション */
.site-contact-section {
    padding: 90px 0;
    background: #E8F3E3;
}

.site-contact-section-white {
    background: #fff;
}

@media (min-width: 769px) {
    .site-contact-section {
        position: relative;
        width: 100vw;
        left: calc(50% - 50vw);
        right: calc(50% - 50vw);
    }
}

.site-contact-panel {
    position: relative;
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(76, 154, 42, 0.18);
    padding: 42px;
}

.site-contact-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4C9A2A, #9BCB6A);
}

.site-contact-main {
    position: relative;
    z-index: 1;
    text-align: center;
}

.site-contact-label {
    display: inline-block;
    color: #4C9A2A;
    font-family: "Futura", "Futura-Medium", "Futura Medium", "FuturaStd-Medium", "Futura Std Medium", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.site-contact-main h2 {
    color: #333;
    font-size: 34px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.site-contact-title-break {
    display: none;
}

.site-contact-main p {
    max-width: 680px;
    color: #4c4c4c;
    font-size: 16px;
    line-height: 2;
    margin: 0 auto 30px;
}

.site-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.site-contact-button,
.site-contact-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.site-contact-button {
    gap: 10px;
    padding: 0 30px;
    background-color: #F5A623;
    color: #fff;
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.28);
}

.site-contact-button:hover {
    transform: translateY(-2px);
    background-color: #F6B642;
    box-shadow: 0 14px 30px rgba(245, 166, 35, 0.34);
}

.site-contact-button .menu-arrow {
    border-color: #fff;
}

.site-contact-tel {
    padding: 0 24px;
    border: 1px solid rgba(76, 154, 42, 0.35);
    color: #4C9A2A;
    background-color: #F6FBF3;
    font-family: "Futura", "Futura-Medium", "Futura Medium", "FuturaStd-Medium", "Futura Std Medium", sans-serif;
    letter-spacing: 0.04em;
}

.site-contact-tel::before {
    content: 'TEL';
    margin-right: 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.site-contact-tel:hover {
    background-color: #E8F3E3;
}

@media (max-width: 768px) {
    .site-contact-section {
        padding: 48px 0;
    }

    .site-contact-panel {
        border-radius: 18px;
        padding: 30px 22px;
    }

    .site-contact-main h2 {
        font-size: 26px;
    }

    .site-contact-title-break {
        display: block;
    }

    .site-contact-main p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .site-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .site-contact-button,
    .site-contact-tel {
        width: 100%;
        min-height: 52px;
    }
}
