@charset "UTF-8";

/* ==============================================
   トップページ専用スタイル
   ============================================== */

/* メインコンテンツエリア */
.site-main {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

/* ==============================================
   HEROセクション (Vision)
   ============================================== */

/* 全体の余白調整 */
.hero-section {
    width: 100%;
    margin-bottom: 80px; 
}

/* 左右に並べるコンテナ */
.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;        /* 横並び */
    align-items: center;  /* 垂直方向中央揃え */
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    /* 画面が狭くなっても横並びを維持するための設定 */
    flex-wrap: nowrap;    
    gap: 20px;            /* 画像と文字の間隔 */
}

/* --- 左側：テキストエリア --- */
.hero-text-side {
    width: 48%; /* 半分弱を確保 */
    flex-shrink: 0; /* 縮みすぎないように */
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #3a4149;
    margin: 0 0 40px 0;
    line-height: 1;
}

/* 特徴的な白いカードのデザイン */
.hero-vision-card {
    background-color: #fff;
    padding: 40px 50px;
    
    /* 斜めカット */
    clip-path: polygon(
        0 0,
        90% 0,
        100% 20%,
        100% 100%,
        10% 100%,
        0 80%
    );
    
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

.hero-catch-top,
.hero-catch-bottom {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3a4149;
    line-height: 1.4;
    white-space: nowrap; /* 勝手に改行されないようにする */
}
.hero-catch-top { margin: 0 0 10px 0; }
.hero-catch-bottom { margin: 0; text-align: right; }


/* --- 右側：画像エリア --- */
.hero-image-side {
    width: 48%; /* 半分弱を確保 */
    flex-shrink: 1; /* 画面が狭いときは画像の方を優先的に縮める */
}

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


/* --- ★ここが重要：スマホ対応（縮小して維持） --- */
@media screen and (max-width: 768px) {
    .hero-section {
        margin-bottom: 50px;
    }

    .hero-container {
        /* 縦並びにはせず、横並び(row)を維持します */
        flex-direction: row; 
        padding: 0 10px;     /* 外側の余白を狭く */
        gap: 10px;           /* 真ん中の隙間も狭く */
    }

    /* タイトル文字サイズを画面幅(vw)に合わせて可変にする */
    .hero-title {
        font-size: 13vw;     /* 画面幅の13%くらいの大きさ */
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    /* 白いカードの余白をギュッと小さく */
    .hero-vision-card {
        padding: 15px 10px; /* 上下15px, 左右10px */
    }

    /* キャッチコピーも画面幅に合わせて小さく */
    .hero-catch-top,
    .hero-catch-bottom {
        font-size: 3.8vw;   /* 画面幅の3.8%くらいの大きさ */
        line-height: 1.2;
    }
}


/* ★修正ポイント1：Vision Card (一番上の白いカード)
   900px → 1000px に変更して、下のセクションと幅を合わせました。
*/
.vision-card {
    background-color: #fff;
    padding: 60px;
    border-radius: 30px;
    max-width: 1000px;
    /* 【修正】幅を統一 */
    margin: 0 auto;
    line-height: 2;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.vision-lead {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.8;
}

.vision-highlight {
    color: #008080;
    font-weight: bold;
}

.vision-card p {
    margin-bottom: 24px;
}

.vision-card p:last-child {
    margin-bottom: 0;
}


/* ==============================================
   Productセクション
   ============================================== */

.product-section {
    max-width: 1000px;
    /* 既に1000pxなので維持 */
    margin: 80px auto 0;
    padding: 0 0;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: normal;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

@media screen and (max-width: 768px) {
    .product-section {
        margin-top: 60px;
    }

    .section-title {
        font-size: 2rem;
    }
}


/* ==============================================
   サービス詳細カードセクション (toboso Order / toboso Job)
   ============================================== */

/* ★修正ポイント2：詳細カードのコンテナ
   900px → 1000px に変更
*/
.service-details-container {
    max-width: 1000px;
    /* 【修正】幅を統一 */
    margin: 60px auto 100px;
    padding: 0 0;
}

.service-detail-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    line-height: 1.8;
}

.service-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #333;
}

.badge-order {
    background-color: #FFEF96;
}

.badge-job {
    background-color: #D6EAF8;
}

.service-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.service-badge+.service-heading {
    margin-top: 0;
}

.service-detail-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #444;
}

@media screen and (max-width: 768px) {
    .service-detail-card {
        padding: 30px 20px;
    }

    .service-badge {
        font-size: 1rem;
    }
}


/* ==============================================
   Corporate Profile (会社概要) セクション
   ============================================== */

/* ★修正ポイント3：会社概要
   900px → 1000px に変更
*/
.corporate-section {
    max-width: 1000px;
    /* 【修正】幅を統一 */
    margin: 100px auto;
    padding: 0 0;
}

.corporate-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 1rem;
}

.corporate-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

.corporate-table th {
    width: 30%;
    text-align: left;
    padding: 25px;
    font-weight: normal;
    color: #666;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.corporate-table td {
    width: 70%;
    padding: 25px;
    color: #333;
    line-height: 1.8;
    border-bottom: 1px solid #eee;
}

.corporate-table tr:last-child th,
.corporate-table tr:last-child td {
    border-bottom: none;
}

@media screen and (max-width: 768px) {

    .corporate-table th,
    .corporate-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-bottom: none;
    }

    .corporate-table th {
        padding-bottom: 5px;
        font-weight: 700;
        background-color: transparent;
    }

    .corporate-table td {
        padding-top: 0;
        padding-bottom: 25px;
    }
}


/* ==============================================
   Member (メンバー紹介) セクション
   ============================================== */

.member-section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 0;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
}

.member-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    box-sizing: border-box;
}

/* ▼▼▼ 画像の枠の設定 ▼▼▼ */
.member-img-wrapper {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 25px;
    overflow: hidden;
    border-radius: 10px;
}

/* ▼▼▼ 画像自体の設定 ▼▼▼ */
.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; 
}

.member-name-ja {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.member-name-en {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-family: sans-serif;
}

.member-role {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto 25px; 
    width: fit-content;  
    
    color: #333;
    line-height: 1.5;
    text-align: left;    
}

.member-desc {
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}

/* ==============================================
   SP（スマホ）対応
   ============================================== */
@media screen and (max-width: 768px) {
    .member-grid {
        /* スマホでも縦並び(column)にはせず、横並びを維持します */
        gap: 20px; /* スマホ用に隙間を少し狭くします */
    }
    
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; 
    }
    .member-card {
        width: 100%; 
        padding: 20px 8px; 
    }

    /* スマホで2列にするとカード幅が狭くなるため、中の要素も少し小さく調整すると綺麗です */
    .member-img-wrapper {
        max-width: 120px;
        margin: 0 auto 15px;
    }

    .member-name-ja {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
        .member-name-en {
        display: block;
        font-size: 0.7rem;
        color: #666;
        padding-top: 5px;
        margin-bottom: 15px;
        font-family: sans-serif;
    }

    .member-role {
        font-size: 0.75rem; 
        letter-spacing: -0.03em;
        
        /* ★ここを変更：スマホ版でも左右中央寄せ(auto)を適用 */
        margin: 0 auto 15px; 
        
        line-height: 1.4; 
        text-align: left; 
        
        /* はみ出し防止の記述はそのまま */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .member-desc {
        font-size: 0.8rem; /* 説明文の文字サイズを少し小さく */
        line-height: 1.6;
    }
}
/* ==============================================
   Contact (お問い合わせ) セクション
   ============================================== */

/* ★修正ポイント4：お問い合わせ
   800px → 1000px に変更
*/
.contact-section {
    max-width: 1000px;
    /* 【修正】幅を統一 */
    margin: 100px auto 120px;
    padding: 0 0;
}

.contact-form {
    margin-top: 40px;
    /* フォーム自体が広がりすぎないように最大幅は抑えつつ、左揃え（デフォルト）で配置 */
    max-width: 800px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: normal;
    color: #444;
    font-size: 1rem;
}

/* 入力欄（白背景・枠線あり） */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #aaa;
    background-color: #fff;
}

::placeholder {
    color: #ccc;
}

.form-privacy {
    text-align: center;
    /* 同意チェックは中央のままでバランスを取っています */
    margin-bottom: 40px;
    font-size: 14px;
}

/* もし同意チェックも左に寄せたい場合はここを text-align: left; にしてください */

.privacy-link {
    color: #5baae9;
    text-decoration: underline;
    cursor: pointer;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background-color: #3a4149;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.8;
}


/* ==============================================
   Modal (モーダルウィンドウ)
   ============================================== */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    
    /* ★修正1: iOSのアドレスバー対策（100vhだとバーに隠れるためdvhを使う） */
    height: 100%;      /* 古いブラウザ用 */
    height: 100dvh;    /* 現代のスマホ用（アドレスバーを除いた高さ） */
    
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    
    /* ★修正2: iPhoneのセーフエリア（ノッチやホームバー）を避ける */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 20px;  /* 左右にも少し余白を強制 */
    padding-right: 20px;
    box-sizing: border-box; /* paddingを含めたサイズ計算にする */
    
    /* 背景スクロールの連鎖を防ぐ */
    overscroll-behavior: contain;
}

.modal-content {
    background-color: #fff;
    width: 100%;        /* 左右の余白はoverlayのpaddingで管理するため100%に */
    max-width: 800px;
    
    /* ★修正3: 高さを少し控えめにする（90%だと詰まりすぎるため80%程度に） */
    max-height: 80vh;   
    max-height: 80dvh;  
    
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 16px;
    box-sizing: border-box;
    
    /* 念のためmargin autoで中央配置を強化 */
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    
    /* ヘッダーが縮まないように固定 */
    flex-shrink: 0;
}

.modal-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    
    /* タップしやすいように少しエリアを広げる */
    padding: 0 10px;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    
    /* スマホでの慣性スクロールを滑らかにする */
    -webkit-overflow-scrolling: touch; 
}

.modal-body h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer-text {
    margin-top: 40px;
    text-align: right;
    color: #666;
    font-size: 12px;
}


/* ==============================================
   SP（スマホ）対応
   ============================================== */
@media screen and (max-width: 768px) {
    .site-main {
        padding: 20px 15px;
    }

    .vision-card {
        padding: 30px 20px;
        border-radius: 15px;
        font-size: 0.95rem;
    }

    .vision-lead {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

/* ==============================================
   Contact Form 7 送信ボタンの強制スタイル修正
   ============================================== */

/* inputタグになっても、プラグインのスタイルに負けないように !important をつけます */
input.submit-btn,
.wpcf7-submit.submit-btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    background-color: #3a4149 !important; /* 濃いグレー */
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: opacity 0.3s !important;
    
    /* スマホ(iOS)などで勝手に丸くならないようにする設定 */
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

/* ホバー時の設定 */
input.submit-btn:hover,
.wpcf7-submit.submit-btn:hover {
    opacity: 0.8 !important;
    background-color: #3a4149 !important; /* 色が変わらないように固定 */
}

/* ==============================================
   Contact Form 7 メッセージのデザイン調整
   ============================================== */

/* 送信完了/エラーメッセージ共通の設定 */
.wpcf7-response-output {
    border: none !important;       /* ★これで不自然な枠線が消えます */
    padding: 20px 0 !important;    /* 上下の余白を少し調整 */
    margin: 0 !important;          /* 余計な外側の余白を削除 */
    text-align: center;            /* メッセージを中央寄せ */
    font-weight: bold;             /* 文字を太くして読みやすく */
    line-height: 1;
}

/* 送信成功時のメッセージ色（緑系） */
.wpcf7-mail-sent-ok {
    color: #008080;                /* サイトのテーマカラーに合わせる */
}

/* エラー時のメッセージ色（赤系） */
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    color: #e74c3c;                /* エラーだと分かるように赤色にする */
}