/* --- Reset & Basic --- */
*,
*::before,
*::after {
  box-sizing: border-box; /* ← この3行を追記 */
}
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
body {
    font-family: 'Noto Serif JP', serif;
    color: #333;
    background-color: #fff;
}

/* --- Common Layout --- */
.section-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.lp-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    word-break: keep-all;
}
.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.section-title {
    color: #fff;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    
}
.header-logo img {
    height: 40px;
    width: auto;
}
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #bdbcbc;
    display: block;
    transition: all 0.3s;
}
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.hamburger-menu.active span { background-color: #fff; }

.global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transition: right 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.global-nav.active { right: 0; }
.nav-list { text-align: center; }
.nav-list li a {
    color: #fff;
    font-size: 24px;
    display: block;
    padding: 15px;
    transition: opacity 0.3s;
}
.nav-list li a:hover { opacity: 0.7; }

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
}
.hero-section .section-bg-image { object-position: 50% 0%; }
.hero-section .section-overlay { 
    background: linear-gradient(to left, rgba(0,0,0,0.6) 200px, rgba(0,0,0,0) 60%);
}
.hero-container {
    display: flex;
    justify-content: flex-end;
}
.hero-text-content {
    color: #fff;
    max-width: 50%;
}
.hero-catchphrase { font-size: 42px; line-height: 1.5; }
.hero-body { font-size: 16px; margin-top: 20px; line-height: 1.8; display: block; }
.hero-name { font-size: 24px; margin-top: 30px; text-align: right; }
.hero-sp-addition { display: none; } /* PCでは非表示 */
.sp-addition-title { margin-bottom: 20px; }
.career-section .section-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.6) 200px, rgba(0,0,0,0) 60%);
}
/* --- Career Section --- */
.career-section {
    position: relative;
    min-height: 650px; /* セクションの高さを維持 */
    color: #fff;
    /* 前景コンテンツを中央に配置するための設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 60px 0;
}
.career-section .section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.career-section .section-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.career-section .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.career-section .career-container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

/* PC: タイトル */
.career-section .section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

/* PC: 経歴リストと小さな画像のラッパー */
.career-content-wrapper {
    display: flex;
    justify-content: space-evenly;
    gap: 30px; /* テキストと画像の間の余白 */
}

/* PC: 経歴リストのスタイリング */
.career-history {
    text-align: left;
    width: 20vw;
    box-sizing: border-box;
}
.career-history h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.career-history ul li {
    font-size: 16px;
    padding: 8px 0;
    color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}
.career-history li {
    width: 100%;
}
.career-section ul li:first-child {
    border-top: 1px solid #e0e0e0;
}

/* PC: 小さな画像のスタイリング */
.career-inset-image {
    width: 420px;
    height: auto;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.career-section ul {
    width: 100%;
    max-width: 350px;
}

/* --- Handling Fields Section --- */
.handling-fields-section { background-color: #f0f0f0; }
.section-title-standalone {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
    font-weight: bold;
}
.grid-columns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:30px
}

.column {
    padding: 20px;
    background-color: #97979733;
    border-radius: 20px;
}

.column h2 {
    margin-bottom: 20px;
    text-align: center;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.field-item {
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: box-shadow 0.3s;
}
.field-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.field-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}
.field-name { font-size: 16px; font-weight: bold; }

/* --- Reasons Section --- */
.reasons-section .section-overlay { background-color: rgba(0, 0, 0, 0.5); }
.reasons-section .section-title { color: #ffffff; }
.reasons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #333;
}
.reason-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-left: 5px solid #8a7d6e;
}
.reason-item h3 { font-size: 24px; margin-bottom: 15px; }
.reason-item p { line-height: 1.8; }

/* --- Flow Section --- */
.flow-section .section-overlay { background-color: rgba(0, 0, 0, 0.5); }
.flow-section .section-title { color: #ffffff; }
.flow-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.flow-step-number {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-right: 20px;
    padding-top: 5px;
}
.flow-content-group {
    flex: 1;
    display: flex;
    gap: 15px;
}
.flow-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}
.flow-content h4 { font-size: 24px; margin-bottom: 10px; }
.flow-content p { line-height: 1.8; font-size: 16px; }
.flow-content.split { background-color: rgba(255, 255, 255, 0.7); }

/* --- Footer Contact --- */
.site-footer-contact {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
}
.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    padding: 10px 0;
}
.contact-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.contact-text-icon {
    display: flex;
    align-items: center;
    background: #fffcf4;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.contact-text-icon img { height: 24px; margin-right: 8px; }
.contact-text-icon:hover { transform: scale(1.1); }
.contact-button img { width: 60%; height: auto; }
#form-modal-open-button span{
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
}

/* --- Form Modal --- */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* JSでflexに変更 */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}
.form-modal.is-visible { display: flex; opacity: 1; }
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    line-height: 1;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}
.modal-title { margin-bottom: 20px; text-align: center; }
/* Contact Form 7 Styles */
/* --- お問い合わせフォーム全体 --- */
.wpcf7-form {
    font-size: 16px;
}

/* --- 各入力項目のラッパー --- */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

/* --- 入力フィールド、セレクトボックス、テキストエリア共通 --- */
.wpcf7-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 崩れ防止 */
}

/* --- テキストエリアの高さ --- */
textarea.wpcf7-form-control {
    height: 120px;
}

/* --- 送信ボタン --- */
.wpcf7-submit {
    width: 100%;
    padding: 15px;
    background-color: #8a7d6e;  
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.3s;
}

/* --- 送信ボタン（ホバー時） --- */
.wpcf7-submit:hover {
    opacity: 0.8;
}

/* === ▼ レイアウト崩れ修正 ▼ === */

/* ラジオボタンとチェックボックスの項目を横並びに */
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
    display: inline-block; /* 横並びにする */
    margin: 0 20px 0 0;  /* 右側に余白を設ける */
}

.wpcf7-form-control .wpcf7-radio {
    padding: 3px;
}

/* ラジオボタンとラベルの縦位置を中央に揃える */
.wpcf7-form .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
}

/* --- Responsive (SP) --- */
@media (max-width: 900px) {
    .lp-section { padding: 60px 0; }
    .section-title { font-size: 28px; }

    /* --- Header --- */
    .site-header { padding: 10px 15px; }

    /* --- Hero --- */
    .hero-section {
        height: 70vh;
        min-height: 500px;
        align-items: flex-end; /* テキストを下部に */
        padding-bottom: 80px;
    }
    .hero-section .section-bg-image { object-position: 50% 20%; }
    .hero-section .section-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.6) 200px, rgba(0,0,0,0) 60%);
    }
    .hero-container {
        display: flex;
        justify-content: center;
    }
    .hero-text-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-catchphrase { font-size: 28px; }
    .hero-body { display: none; } /* スマホでは非表示 */
    .hero-name { font-size: 20px; text-align: center; margin-top: 15px; }
    /* スマホ用追加ブロックを表示 */
    .hero-sp-addition {
        display: block;
        background-color: #4a4a4a; /* 画像に合わせた背景色 */
        color: #fff;
        padding: 40px 0;
        text-align: center;
        line-height: 1.8;
    }
    
    /* --- Career --- */ 
    @media (max-width: 900px) {
        .career-section {
            position: relative;
            min-height: 650px; /* スマホでも高さを維持 */
            padding: 60px 0;
            box-sizing: border-box;
        }
        .career-inset-image {display: none;}
        .career-history h3 {display: none;}
        .career-section .career-container {
            
            position: static;
            min-height: 0;
            display: block; /* flexを解除 */
        }

        /* スマホ: 画像はセクション全体の背景になる */
        .career-section .section-bg-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .career-section .section-title {
            margin-bottom: -50px;
        }

        /* スマホ: テキストは画像の上にオーバーレイされる */
        .career-section .career-history {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            /* flexを使って内容を下部に配置 */
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding: 60px 20px;
            color: #fff; /* テキストは白 */
        }
        
        .career-section ul {
            max-width: none;
        }

        /* 視認性向上のためのグラデーションオーバーレイ */
        .career-section .section-overlay {
            background: linear-gradient(to top, rgba(0,0,0,0.6) 200px, rgba(0,0,0,0) 65%);
        }

        .career-section .section-title ,
        .career-history ul li {
            color: #fff;
            text-align: center;
        }

        .career-section ul li {
            border-color: rgba(255, 255, 255, 0.4);
        }
    }
    /* --- Handling Fields --- */
    @media (max-width: 768px) {
        .grid-columns {display: flex; flex-direction: column;}
        .fields-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
        .field-name { font-size: 14px; }
        .field-icon { width: 30px; height: 30px; }
    }

    /* --- Reasons --- */
    .reason-item h3 { font-size: 20px; }
    
    /* --- Flow --- */
    .flow-item { flex-direction: column; align-items: center; text-align: start; }
    .flow-step-number { margin-right: 0; margin-bottom: 10px; }
    .flow-content-group { flex-direction: column; width: 100%; }
    .flow-content h4{ font-size: 20px; }
    /* --- Footer --- */
    .footer-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap:10px;
        padding: 10px 0;
    }
    .contact-button-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    .contact-button-wrapper span {
        font-size: 12px;
    }
    .contact-text-icon {
        display: flex;
        align-items: center;
        background: #fffcf4;
        padding: 10px 20px;
        border-radius: 30px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        border: none;
        cursor: pointer;
        transition: transform 0.2s;
    }
    #form-modal-open-button span{
        font-family: 'Noto Serif JP', serif;
        font-size: 12px;
    }
    .contact-text-icon img { height: 24px; margin-right: 8px; }
    .contact-text-icon:hover { transform: scale(1.1); }
    .contact-button img { width: 60%; height: auto; }

}