/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* PC用改行非表示 */
.sp-break {
    display: none;
}

/* ヘッダー */
header {
    padding: 30px 0;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/header_back.png');
    background-size: 100% 120px;
    background-position: center top;
    background-repeat: no-repeat;
}

.header-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    font-size: 1.5em;
    font-weight: 500;
    color: #3D0000;
}

.brand h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #3D0000;
    letter-spacing: 0.1em;
}

.brand p {
    font-size: 0.95em;
    color: #666;
    margin-top: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
}

nav a {
    color: #3D0000;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #4a7c2f;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-left: 50px;
}

.social-icon {
    display: block;
    width: 35px;
    height: 35px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ヒーローセクション */
.hero {
    background-color: #fff;
}

/* PC用ヒーロー */
.hero-pc {
    display: block;
}

.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.hero-main-image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    padding: 60px 0;
}

.hero-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-message p {
    font-size: 1.1em;
    line-height: 2;
    margin-bottom: 8px;
    color: #333;
}

.hero-message .highlight {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2em;
    margin: 25px 0;
}

.hero-message .emphasis {
    color: #333;
    font-weight: bold;
    font-size: 1.15em;
    margin-top: 20px;
}

.stakeholder-section {
    padding: 40px 0 60px;
}

.stakeholder-diagram-image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* SP用ヒーロー */
.hero-sp {
    display: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.hero-sp-image {
    width: 100%;
    height: auto;
    display: inline-block;
    margin: 20px 0;
    padding: 0;
    vertical-align: top;
}

.hero-sp-image-1 {
    max-width: 220px;
    height: auto;
    display: inline-block;
    margin: 20px auto;
}

.hero-sp-image-3 {
    max-width: 330px;
    height: auto;
    display: inline-block;
    margin: 20px auto;
}

.hero-sp-image-medium {
    width: calc(100% - 40px);
    max-width: 500px;
    height: auto;
    display: inline-block;
    margin: 20px auto;
}

/* 仕切り線 */
.divider-section {
    padding: 40px 0;
    background-color: #fff;
}

.divider-image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* AFPの取り組み */
.initiatives {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    width: 400px;
    margin: 0 auto 60px;
    text-align: center;
}

.title-image {
    max-width: 100%;
    height: auto;
}

.initiative-content-image {
    max-width: 1200px;
    margin: 0 auto;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
}

.content-image-pc {
    display: block;
}

.content-image-sp {
    display: none;
}

/* 事例紹介 */
.case-study {
    padding: 80px 0;
}

.case-title {
    width: 400px;
    margin: 0 auto 60px;
    text-align: center;
}

.case-title-image {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.case-images {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.case-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
}

.case-image.arrow {
    width: 100%;
    max-width: 100px;
}

.case-image.divider {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

/* メンバー紹介 */
.members {
    padding: 80px 0;
    background-color: #fff;
}

.intro-text {
    text-align: left;
    max-width: 780px;
    margin: 0 auto 60px;
}

.intro-text p {
    font-size: 1em;
    line-height: 2;
    color: #3D0000;
    font-weight: 500;
}

.intro-text .recruitment {
    font-weight: bold;
    color: #ff9800;
    font-size: 1.1em;
    margin-top: 30px;
}

.member-category {
    margin-bottom: 80px;
}

.category-title {
    width: 300px;
    height: 80px;
    margin: 0 auto 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.member-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.member-grid::-webkit-scrollbar {
    height: 8px;
}

.member-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.member-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.member-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.member-grid .member-card {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
}

.member-card {
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-card-image {
    width: 100%;
    height: auto;
    display: block;
}

/* フッター（お問い合わせ含む） */
footer {
    position: relative;
    background-image: url('assets/footer_back.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

footer .section-title {
    width: 300px;
    margin: 30px auto 30px;
    text-align: center;
}

footer .title-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.contact-text {
    text-align: center;
    margin-bottom: 40px;
}

.contact-text p {
    font-size: 1em;
    line-height: 2;
    margin-bottom: 5px;
    color: white;
}

.contact-info-section {
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-office {
    font-size: 1.3em;
    font-weight: 500;
    color: white;
    margin-bottom: 10px;
}

.contact-email-box {
    background: white;
    padding: 15px 30px;
    border-radius: 18px;
    margin: 0 auto 30px;
    max-width: 400px;
}

.contact-email-box p {
    font-size: 1.1em;
    color: #999;
}

.contact-address {
    font-size: 0.95em;
    color: white;
    margin-bottom: 20px;
}

.contact-phone-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.contact-phone {
    font-size: 1.2em;
    color: white;
    font-weight: 500;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-icons-footer .social-icon {
    width: 35px;
    height: 35px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.copyright-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    padding: 15px 0;
}

.copyright {
    font-size: 0.85em;
    color: #333;
    margin: 0;
    text-align: center;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    z-index: 1000;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    opacity: 0.8;
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header-left {
        gap: 30px;
    }

    .participants-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flow-boxes {
        grid-template-columns: 1fr;
    }

    .results-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 779px) {
    /* コンテナ */
    .container {
        padding: 0 20px;
    }

    /* ヘッダー */
    .header-background {
        background-size: 100% 80px;
    }

    .header-content {
        position: relative;
        justify-content: center;
    }

    .header-left {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-right {
        position: absolute;
        right: 0;
    }

    .header-right nav {
        display: none;
    }

    .site-title {
        text-align: center;
        font-size: 1.2em;
    }

    /* ヒーローセクション切り替え */
    .hero {
        padding: 0;
    }

    .hero-pc {
        display: none;
    }

    .hero-sp {
        display: block;
        line-height: 0;
    }

    /* セクション全般 */
    .initiatives,
    .case-study,
    .members {
        padding: 40px 0;
    }

    /* 取り組み画像切り替え */
    .content-image-pc {
        display: none;
    }

    .content-image-sp {
        display: block;
        max-width: 350px;
        margin: 0 auto;
    }

    /* SP用改行 */
    .sp-break {
        display: block;
    }

    /* セクションタイトル */
    .section-title {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
    }

    footer .section-title {
        width: 100%;
        max-width: 250px;
    }

    /* 事例紹介 */
    .case-title {
        width: 100%;
        max-width: 300px;
    }

    .case-title-image {
        width: 100%;
    }

    .case-images {
        gap: 20px;
    }

    .case-image.arrow {
        max-width: 40px;
    }

    /* メンバー紹介 */
    .intro-text {
        max-width: 100%;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .intro-text p {
        font-size: 0.95em;
        line-height: 1.8;
    }

    .category-title {
        width: 100%;
        max-width: 250px;
        margin-bottom: 30px;
    }

    .member-grid {
        gap: 20px;
        padding-bottom: 15px;
    }

    .member-grid .member-card {
        width: 280px;
        min-width: 280px;
    }

    /* フッター */
    footer {
        padding: 60px 0 40px;
    }

    .contact-text p {
        font-size: 0.9em;
    }

    .contact-info-section {
        max-width: 100%;
        padding: 0 20px;
    }

    .contact-office {
        font-size: 1.1em;
    }

    .contact-email-box {
        max-width: 100%;
        padding: 12px 20px;
    }

    .contact-email-box p {
        font-size: 1em;
    }

    .contact-phone {
        font-size: 1.1em;
    }

    .contact-phone-social {
        flex-direction: column;
        gap: 15px;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .copyright {
        font-size: 0.75em;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
        justify-content: center;
    }

    .header-left {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .header-right {
        position: absolute;
        right: 0;
        display: flex;
    }

    .header-right nav {
        display: none;
    }

    .brand h2 {
        font-size: 2em;
    }

    .hero-message p {
        font-size: 1em;
    }

    .back-to-top {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
    }
}
