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

:root {
    --header-height: 5.625rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    margin: 0;
    padding: 0;
}

p {
    font-family: 'Noto Serif JP', serif;
    text-align: justify;
    text-justify: inter-ideograph;
    font-size: 0.9125rem;
    line-height: 1.7;
    color: #555;
    margin: 0.9375rem auto;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 45ch;
}

/* ヘッダー */
.header {
    padding: 1.875rem 0;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

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

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

.logo img {
    height: 1.875rem;
    width: auto;
    max-width: 100%;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 0;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.875rem;
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #666;
}

/* メニューオーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 18%;
    height: auto;
    min-height: 50vh;
    max-height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-overlay.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.5rem;
    margin-top: 6rem;
    padding-right: 1rem;
}

.menu-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    text-align: right;
}

.menu-link:hover {
    color: #666;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .menu-overlay {
        width: 21%;
    }
    
    .menu-nav {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .menu-overlay {
        width: 72%;
    }
    
    .menu-link {
        font-size: 1.125rem;
    }
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 90svh;
    margin-top: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3.75rem 2.5rem;
    padding-top: 3.75rem;
    padding-bottom: 3rem;
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background-color: #fff;
}

.hero-title {
    margin-bottom: 0.625rem;
    width: 100%;
}

.hero-title img {
    height: auto;
    width: 48.884%;
    max-width: 100%;
    object-fit: contain;
}

/* デフォルト（タブレット・デスクトップ）: 黒ロゴを表示 */
.hero-title .logo-white {
    display: none;
}

.hero-title .logo-black {
    display: block;
}

.hero-description {
    font-size: 0.9125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.875rem;
    margin-left: 0;
    margin-right: 0;
    width: 80%;
    max-width: 335px;
    padding: 0;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #000;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #000;
}

.btn-hero {
    margin: 0;
    display: block;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.btn-hero:hover {
    background-color: #000;
    color: #fff;
}

/* セクション共通 */
section {
    padding: 5rem 0;
    min-height: 92.5vh;
}

/* ヒーローセクションは例外 */
.hero {
    height: 90vh;
    padding: 0;
}

.section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.3125rem;
    text-align: left;
}

/* 顧客課題セクション */
.issue {
    background-color: #fff;
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
}

.issue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.issue-image {
    width: 100%;
}

.issue-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.issue-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.issue-quote {
    width: 100%;
    max-width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 auto;
    font-style: italic;
    text-align: center;
}


.btn-issue {
    margin: 0 auto;
    display: block;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.btn-issue:hover {
    background-color: #000;
    color: #fff;
}

/* 顧客課題の背景セクション */
.causes {
    background-color: #f5f5f0;
    min-height: auto;
    padding: 5rem 0;
}

.causes-items {
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
    margin-top: 2.5rem;
}

.cause-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.cause-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.625rem;
    font-family: 'Noto Serif JP', serif;
}

.cause-description {
    font-family: 'Noto Serif JP', serif;
    text-align: justify;
    text-justify: inter-ideograph;
    font-size: 0.9125rem;
    line-height: 1.7;
    color: #555;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
}

.cause-icon {
    margin: 1.25rem 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cause-icon svg {
    width: 80px;
    height: 80px;
}

.cause-data {
    margin-top: 0;
    width: 100%;
}

.cause-data-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
    padding: 0;
    text-align: center;
}

.cause-data-value {
    font-family: 'Barlow', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
    padding: 0;
    text-align: center;
    line-height: 1.2;
}

.cause-data-source {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.625rem;
    color: #333;
    margin-top: 1rem;
    padding: 0 1rem;
    text-align: center;
    line-height: 1.5;
}

/* アプローチセクション */
.approach {
    background-color: #f5f5f0;
}

.approach-hero-image {
    width: 100%;
    margin-bottom: 1.875rem;
}

.approach-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.approach-items {
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
}

/* タブレット以上で横一列に並べる */
@media (min-width: 769px) {
    /* Heroセクション: 左に画像、右にテキスト */
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-image {
        display: block;
    }

    .hero-content {
        background-color: #fff;
    }

    .hero-description {
        color: #333;
    }

    .btn-hero {
        background-color: transparent;
        color: #333;
        border: 1px solid #333;
    }

    /* 顧客課題セクション: 左にテキスト、右に画像 */
    .issue {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .issue .container {
        width: 100%;
    }

    .issue-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    /* アプローチセクション: タイトルとヒーロー画像の左端を揃える */
    .approach .section-title {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    /* アプローチセクション: ヒーロー画像の最大幅 */
    .approach-hero-image {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    /* アプローチセクション: 3列の横並び */
    .approach-items {
        flex-direction: row;
        gap: 2.5rem;
    }

    .approach-item {
        flex: 1;
    }

    /* approach-item-descriptionとcase-boxの距離を縮める */
    .approach-item-description {
        margin-bottom: -0.625rem;
    }

    /* case-boxの上の余白を削減 */
    .case-box {
        margin-top: 0;
    }

    /* チームセクション: 1列レイアウト */
    .team-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2.5rem;
    }

    /* チームメンバーをグリッドレイアウトに */
    .team-members {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* チームメンバーの画像サイズを80%に縮小 */
    .team-member .member-photo {
        width: 4.5rem !important;
        height: 4.5rem !important;
        min-width: 4.5rem !important;
    }

    /* 名前のフォントサイズを80%に縮小 */
    .team-member .member-name {
        font-size: 0.96rem !important;
    }

    /* 役職テキストのフォントサイズを調整 */
    .team-member .member-role {
        font-size: 0.748rem !important;
        line-height: 1.5 !important;
    }

    /* 学歴テキストのフォントサイズをmember-roleと同じに */
    .team-member .member-education {
        font-size: 0.748rem !important;
    }

    /* member-info-topの高さを統一（2行のmember-roleに合わせる） */
    .team-member .member-info-top {
        height: 5.2rem;
        justify-content: flex-start;
    }

    /* 経歴テキストのフォントサイズを80%に縮小 */
    .team-member .member-bio {
        font-size: 0.72rem !important;
    }

    /* チーム紹介文を中央揃えに */
    .team-intro {
        text-align: center;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        max-width: none;
    }

    /* 顧客課題の背景セクション: 3カラムレイアウト */
    .causes-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        flex-direction: row;
        align-items: start;
    }

    .cause-item {
        align-items: center;
        display: grid;
        grid-template-rows: auto auto auto 1fr;
        height: 100%;
    }

    .cause-title {
        min-height: 3em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cause-description {
        text-align: justify;
        text-justify: inter-ideograph;
        min-height: 12em;
        display: flex;
        align-items: flex-start;
    }

    .cause-icon {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cause-data {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .cause-data-label,
    .cause-data-value,
    .cause-data-source {
        text-align: center;
    }

    .cause-data-label {
        min-height: 2.5em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cause-data-source {
        min-height: 4em;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
}

.approach-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.approach-image {
    width: 100%;
    max-width: 31.25rem;
}

.approach-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.approach-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-top: 1.25rem;
    margin-bottom: -1.25rem;
    font-family: 'Noto Serif JP', serif;
}

.approach-item-description {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.case-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: transform 0.2s ease;
}

.case-box-link:hover {
    transform: translateY(-2px);
}

.case-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 1.25rem;
    border: 1px solid black;
    margin-top: 0.625rem;
    flex-direction: column;
    gap: 0.9375rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-box-link:hover .case-box {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #333;
}

.case-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(68, 68, 68);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-divider {
    width: 100%;
    height: 1px;
    background-color: rgb(68, 68, 68);
    margin-bottom: 1.25rem;
}

.case-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9375rem;
}

.case-link {
    font-size: 0.875rem;
    color: #333;
    flex: 1;
    transition: color 0.3s;
    display: inline;
}

.case-arrow {
    width: auto;
    height: 1.25rem;
    flex-shrink: 0;
    max-width: 100%;
    transition: transform 0.2s ease;
}

.case-box-link:hover .case-link {
    color: #666;
}

.case-box-link:hover .case-arrow {
    transform: translateX(4px);
}

/* チームセクション */
.team {
    background-color: #fff;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 2.5rem auto 2.5rem auto;
    max-width: 800px;
    text-align: center;
}

.team-image {
    width: 100%;
}

.team-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.team-value {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.value-statement {
    font-size: 0.875rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 auto 0.625rem auto;
    padding: 0;
    width: 100%;
    text-align: center;
}

.value-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: none;
    text-align: center;
}

.team-intro {
    margin: 0 auto 2.5rem auto;
    padding: 0;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.team-members {
    gap: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.member-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

.member-photo {
    width: 9.375rem;
    height: 9.375rem;
    min-width: 9.375rem;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #e0e0e0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.member-bio-container {
    width: 100%;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: -0.7rem;
    margin-top: -0.3rem;
}

.member-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: -0.5rem;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.member-education {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.member-bio {
    font-size: 1.075rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    text-justify: inter-ideograph;
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}

.team-more {
    text-align: center;
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* お問い合わせセクション */
.contact {
    background-color: #fff;
    padding: 3rem 0 5rem 0;
    padding-top: calc(var(--header-height) + 2rem);
    min-height: auto;
}

/* contact.htmlのフォームページのみクリーム色背景 */
.contact-page .contact {
    background-color: #f5f5f0;
}

/* コンタクトページ：上部（イントロ部分） */
.contact-intro {
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* コンタクトページ：下部（フォーム部分） */
.contact-form-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-image {
    width: 100%;
}

.contact-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.btn-contact {
    margin: 0 auto;
    display: block;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.btn-contact:hover {
    background-color: #000;
    color: #fff;
}

.contact-examples {
    margin: 0 0 1.25rem 0;
}

.contact-examples-title {
    font-family: 'Noto Serif JP', serif;
    text-align: justify;
    text-justify: inter-ideograph;
    font-size: 0.9125rem;
    line-height: 1.7;
    color: #555;
    margin: 0 auto 0.625rem auto;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 45ch;
}

.contact-examples-list {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9125rem;
    line-height: 1.7;
    color: #555;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 45ch;
    list-style-type: none;
    text-align: center;
}

.contact-examples-list li {
    margin-bottom: 0.2rem;
}

.contact-examples-list li::before {
    content: "・";
}

/* フッター */
.footer {
    background-color: #fff;
}

.footer-text {
    font-size: 0.625rem;
    margin: 0.625rem auto;
    width: 100%;
    text-align: center;
}

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

    .hero {
        min-height: 90svh;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        background-image: url('image/top/head.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        padding: 3.75rem 1.25rem;
        padding-top: calc(3.75rem + 1.875rem + 1.875rem);
        padding-bottom: 0;
        padding-left: 2.5rem;
        max-width: 100%;
        margin: auto auto 3.75rem auto;
        width: 100%;
        position: relative;
        z-index: 1;
        background-color: transparent;
    }

    .hero-title {
        margin-bottom: 0.625rem;
    }

    .hero-title img {
        width: 48.884%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* モバイル: 白ロゴを表示、黒ロゴを非表示 */
    .hero-title .logo-white {
        display: block;
    }

    .hero-title .logo-black {
        display: none;
    }

    .hero-subtitle {
        color: #fff;
        width: 48.884%;
        max-width: 100%;
        font-size: clamp(0.625rem, 2.5vw, 0.75rem);
        white-space: nowrap;
    }

    .hero-description {
        font-size: 1.125rem;
        color: #fff;
        width: 80%;
        max-width: none;
        text-align: justify;
        text-justify: inter-ideograph;
        margin-bottom: 1.875rem;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .btn-hero {
        border-color: #fff;
        color: #fff;
    }

    .btn-hero:hover {
        background-color: #fff;
        color: #333;
    }

    .issue-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 1.875rem;
    }

    .issue-quote {
        width: 100%;
        max-width: 100%;
        font-size: 1.4625rem;
    }

    .approach-hero-image {
        margin-bottom: 1.875rem;
    }

    .approach-items {
        gap: 2.5rem;
    }

    .approach-item-description {
        margin-bottom: -0.625rem;
    }

    .case-box {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
    }

    .team-content {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }

    .team-members {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .member-top {
        gap: 1rem;
    }

    .member-photo {
        width: 7.5rem;
        height: 7.5rem;
        min-width: 7.5rem;
    }

    .member-name {
        font-size: 1.25rem;
    }

    .member-role {
        font-size: 0.8rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .member-education {
        font-size: 0.875rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    /* member-info-topの高さを統一（2行のmember-roleに合わせる） */
    .member-info-top {
        min-height: 5rem;
    }

    .member-bio {
        font-size: 1.0125rem;
    }

    section {
        padding: 3.75rem 0;
    }

    .issue {
        padding-top: calc(var(--header-height) + 1.5rem);
    }

    /* issue.htmlのスマホビュー専用：issueセクションの上部余白を削減 */
    .issue-page .issue {
        padding-top: var(--header-height);
    }

    .approach {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .nav {
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    .team-intro {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .contact {
        padding: 2rem 0;
        padding-top: calc(var(--header-height) + 1.5rem);
        margin-bottom: 3rem;
    }

    /* issue.htmlのスマホビュー専用：問い合わせボタン下に余白を追加 */
    .issue-page .contact {
        margin-bottom: 5rem;
    }

    .contact-intro {
        margin-bottom: 2rem;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 1.875rem;
    }

    .contact-form-section {
        padding: 0 0.5rem;
    }

    /* 顧客課題の背景セクション: モバイルレイアウト */
    .causes {
        padding: 3.75rem 0;
    }

    .causes-items {
        gap: 2.5rem;
    }

    .cause-title {
        font-size: 1.2375rem;
        margin-top: 1rem;
    }

    .cause-description {
        padding: 0 0.5rem;
    }

    .cause-data-label {
        font-size: 1rem;
    }

    .cause-data-source {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
}

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

    .hero-content {
        padding: 2.5rem 1rem;
        padding-top: calc(2.5rem + 1.875rem + 1.875rem);
        padding-bottom: 0;
        padding-left: 2rem;
    }

    .hero-title img {
        width: 48.884%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero-subtitle {
        width: 48.884%;
        max-width: 100%;
        font-size: clamp(0.5625rem, 3vw, 0.6875rem);
        white-space: nowrap;
    }

    .hero-description {
        font-size: 1rem;
        color: #fff;
        width: 80%;
        max-width: none;
        text-align: justify;
        text-justify: inter-ideograph;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .issue-quote {
        font-size: 1.3rem;
    }

    .value-text {
        font-size: 1.25rem;
    }

    .team-members {
        display: flex;
        flex-direction: column;
        gap: 1.875rem;
    }

    .member-top {
        gap: 0.75rem;
    }

    .member-photo {
        width: 5rem;
        height: 5rem;
        min-width: 5rem;
    }

    .member-name {
        font-size: 1.125rem;
    }

    .member-role {
        font-size: 0.8125rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .member-education {
        font-size: 0.8125rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    /* member-info-topの高さを統一（2行のmember-roleに合わせる） */
    .member-info-top {
        min-height: 4.5rem;
    }

    .member-bio {
        font-size: 0.95rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .issue {
        padding-top: calc(var(--header-height) + 1rem);
    }

    /* issue.htmlの小型スマホビュー専用：issueセクションの上部余白を削減 */
    .issue-page .issue {
        padding-top: var(--header-height);
    }

    .approach {
        padding-top: calc(var(--header-height) + 1.5rem);
    }

    .contact {
        padding: 1.5rem 0;
        padding-top: calc(var(--header-height) + 1rem);
        margin-bottom: 2.5rem;
    }

    /* issue.htmlの小型スマホビュー専用：問い合わせボタン下に余白を追加 */
    .issue-page .contact {
        margin-bottom: 4rem;
    }

    .contact-intro {
        margin-bottom: 1.5rem;
    }

    .contact-form-section {
        padding: 0 0.25rem;
    }

    /* 顧客課題の背景セクション: 小型スマホレイアウト */
    .causes {
        padding: 2.5rem 0;
    }

    .causes-items {
        gap: 2rem;
    }

    .cause-title {
        font-size: 1.2375rem;
        margin-top: 1rem;
    }

    .cause-data-label {
        font-size: 0.9375rem;
    }

    .cause-data-value {
        font-size: 2rem;
    }

    .cause-data-source {
        font-size: 0.6875rem;
    }

    .value-section,
    .vision-section,
    .mission-section {
        padding: 1.5rem 0;
    }

    .mission-section {
        padding-bottom: 5rem;
    }

    .company-value .value-text {
        font-size: 0.9rem;
    }
}

/* 会社概要ページ */
.company-info {
    background-color: #fff;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.company-info .container {
    width: 100%;
}

.company-info .section-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.company-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-image {
    width: 100%;
}

.company-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.company-details {
    width: 100%;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #000;
    font-size: 0.9125rem;
    line-height: 1.7;
}

.company-table th {
    background-color: #f5f5f0;
    color: #333;
    font-weight: 400;
    width: 30%;
}

.company-table td {
    background-color: #fff;
    color: #333;
}

/* タブレット・デスクトップビュー: 画像左、テーブル右 */
@media (min-width: 768px) {
    .company-content {
        flex-direction: row;
        gap: 2.5rem;
        align-items: flex-start;
    }

    .company-image {
        width: 45%;
        flex-shrink: 0;
    }

    .company-details {
        width: 55%;
        flex-grow: 1;
        padding: 0 6rem;
    }
}

.value-section,
.vision-section,
.mission-section {
    background-color: #fff;
    padding: 2.5rem 0;
    min-height: auto;
}

.mission-section {
    padding-bottom: 8rem;
}

.company-value {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.company-value .value-statement {
    font-size: 0.875rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 auto 0.625rem auto;
    padding: 0;
    width: 100%;
    text-align: center;
}

.company-value .value-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: none;
    text-align: center;
}

/* 会社概要ページのレスポンシブ */
@media (max-width: 768px) {
    .company-info {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 2rem;
        min-height: auto;
    }

    .company-table {
        font-size: 0.875rem;
    }

    .company-table th,
    .company-table td {
        padding: 0.75rem;
    }

    .company-value .value-text {
        font-size: 1rem;
    }

    .value-section,
    .vision-section,
    .mission-section {
        padding: 2rem 0;
    }

    .mission-section {
        padding-bottom: 6rem;
    }
}

/* スクロールスナップ（タブレット・デスクトップのみ） */
@media (min-width: 768px) {
    html {
        scroll-snap-type: y proximity;
        scroll-behavior: smooth;
    }

    .hero,
    .issue,
    .approach,
    .team,
    .contact {
        scroll-snap-align: start;
    }
}

/* スマホビュー: スムーズスクロールのみ適用 */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
    }
}

/* スマホビューでヘッダーに被らないようにパディングを追加 */
@media (max-width: 767px) {
    .issue,
    .approach,
    .team,
    .contact {
        padding-top: var(--header-height);
    }
}

/* お問い合わせフォーム */
.contact-form {
    margin-top: 2.5rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.required {
    color: #d32f2f;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 0.9375rem;
    color: #333;
    background-color: #fff;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #4a4a4a;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #999;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #aaa;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit-btn:hover:not(:disabled) {
    background-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9375rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    opacity: 1;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
    opacity: 1;
}

/* フォームのレスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form {
        margin-top: 2rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
    }

    .form-submit-btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* iOS でのズームを防ぐ */
    }
}

/* 事例ページスタイル */
/* ヒーローセクション */
.case-hero {
    width: 100%;
    margin-top: var(--header-height);
    padding: 0;
    overflow: hidden;
    display: block;
    min-height: auto;
}

.case-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
}

/* 事例コンテンツセクション */
section.case-content {
    background-color: #fff;
    padding: 1rem 0 3rem 0;
}

.case-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.case-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.case-main-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.26rem;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.case-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9125rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
    text-justify: inter-ideograph;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.case-image {
    width: 100%;
    margin: 2rem 0;
    padding-left: 0;
    padding-right: 0;
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.case-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: #333;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid #333;
    cursor: pointer;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s;
}

.case-btn:hover {
    background-color: #000;
    color: #fff;
}

/* タブレット・デスクトップ対応 */
@media (min-width: 768px) {
    .case-hero {
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }

    section.case-content {
        padding: 1.5rem 0 5rem 0;
    }

    .case-container {
        max-width: 750px;
        padding: 0 2.5rem;
    }

    .case-section-title {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .case-main-title {
        font-size: 1.47rem;
        margin-bottom: 2.5rem;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }

    .case-text {
        font-size: 1rem;
        line-height: 1.9;
        margin-bottom: 2.5rem;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }

    .case-image {
        margin: 3rem 0;
        padding-left: 0;
        padding-right: 0;
    }

    .case-btn {
        margin-top: 3rem;
    }
}
