/* --- 共通変数・基本設定 --- */
:root {
    --hr-blue: #007AFF;
    --hr-dark: #1a1a1a;
    --hr-gray: #f8f9fa;
    --text-main: #333;
    --text-sub: #666;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: #fff;
}

/* Funeral Mission & Vision スタイル */
.m-v-container {
    max-width: 800px;   /* ← これを追加 */
    margin: 40px auto;  /* ← まとめてもOK */
    padding: 30px;
    background: rgba(255, 255, 255, 0.6); /* 柔らかな透過白 */
    border-left: 4px solid #007AFF; /* アクセントのバイオレット */
    text-align: left;
}

.m-v-row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.m-v-row:last-child {
    margin-bottom: 0;
}

.m-v-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #007AFF;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    min-width: 80px;
    border-right: 1px solid #ddd;
}

.m-v-desc {
    font-size: 1.05rem;
    font-weight: 500;
    color: #444;
    margin: 0;
    line-height: 1.6;
}


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

/* --- メインビジュアル（特定技能と統一） --- */
.hr-main-visual {
    display: flex;
    align-items: center;
    min-height: 85vh;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hr-content-left {
    flex: 1;
    padding: 60px 8%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hr-category-group { margin-bottom: 25px; }
.hr-category-tag {
    display: block;
    color: var(--hr-blue);
    font-family: 'Montserrat';
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.hr-sub-category { font-size: 0.9rem; color: #666; font-weight: 500; }

/* --- Mission & Vision 共通コンテナ --- */
.hr-m-v-container {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05); /* ほんの少し背景を浮かせる */
    border-left: 2px solid var(--hr-blue, #004098); /* 信頼のブルーまたはゴールド */
    max-width: 600px;
}

.m-v-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
}

.m-v-item:last-child {
    margin-bottom: 0;
}

/* ラベル部分：Mission/Vision */
.m-v-label {
    min-width: 80px;
    text-align: left;
}

.m-v-label .en {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--food-gold); /* ゴールドで格調高く */
    letter-spacing: 0.1em;
    line-height: 1;
}

.m-v-label .jp {
    display: block;
    font-size: 0.65rem;
    color: #999;
    margin-top: 4px;
}

/* テキスト部分 */
.m-v-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--food-dark);
    line-height: 1.6;
    margin: 0;
}

/* 3行タイトル */
/* --- 全体の余白調整 --- */
.hr-title {
    margin-bottom: 10px;
    font-weight: 500; /* 以前の調整に合わせて細めに */
    font-size: clamp(2rem, 4vw, 3.2rem);
}
.hr-title .phrase {
    display: block;
    word-break: keep-all;
}

.hr-lead {
    margin-top: 40px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.hr-license-box {
    display: inline-block;
    padding: 12px 24px;
    background: var(--hr-gray);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    width: fit-content;
}

.hr-content-right {
    flex: 1.2;
    height: 85vh;
    position: relative;
}

.hr-visual-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}


/* FOR BUSINESS タグ（共通タグデザイン） */
.tag {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--hr-blue);
}

/* --- 各共通セクション --- */
.hr-section { padding: 100px 0; }
.bg-light { background: var(--hr-gray); }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 800; }
.section-sub { text-align: center; color: var(--text-sub); margin-bottom: 60px; }

.intro-box-refine {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
}

/* --- 仕組みセクション --- */
/* --- 仕組みセクション（左右分割への再修正） --- */
#about-system .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右50%ずつ */
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左側：テキストエリア */
.about-text-area {
    width: 100%;
    text-align: left;
}

/* 右側：図解エリアをモダンに */
.about-visual-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 背景に薄い円形の装飾（モダン演出） */
.about-visual-area::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0,122,255,0.1) 0%, rgba(0,122,255,0) 70%);
    z-index: 0;
}

.modern-diagram {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08); /* 柔らかく深い影 */
    transition: transform 0.4s ease;
}

.modern-diagram:hover {
    transform: translateY(-10px);
}

.modern-diagram img {
    width: 100%;
    height: auto;
    display: block;
    /* 画像自体の色味が強い場合は、少し透過させたりフィルタをかけることも可能 */
}

/* --- メインビジュアル タイトル改行崩れ対策 --- */
.hr-title .phrase {
    display: block;
    white-space: nowrap; /* フレーズ内での意図しない改行を完全に防ぐ */
}

.about-main-desc {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 青い線の太さと高さをボックスに合わせる */
.system-box {
    padding: 25px 30px;
    background: #fff;
    border-left: 6px solid var(--hr-blue); /* 線の太さを少し強調 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0; /* 右側だけ角を丸くすると綺麗です */
}


/* --- タイムライン --- */
.timeline { max-width: 900px; margin: 50px auto 0; position: relative; padding-left: 140px; }
.timeline::before { content: ''; position: absolute; left: 160px; top: 0; bottom: 0; width: 2px; background: #eee; }
.timeline-item { position: relative; margin-bottom: 60px; }
.time-label { position: absolute; left: -140px; top: 0; width: 120px; text-align: right; font-family: 'Montserrat'; font-weight: 800; color: var(--hr-blue); font-size: 1rem; }
.time-content { background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); position: relative; }
.time-content::before { content: ''; position: absolute; left: -25px; top: 28px; width: 10px; height: 10px; background: var(--hr-blue); border-radius: 50%; }

/* --- 強み（Feature） --- */
.myanmar-merit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.support-item { text-align: left; padding: 40px; border-left: 4px solid var(--hr-blue); background: #fff; transition: 0.3s; }
.support-item h3 { color: var(--hr-blue); margin-bottom: 15px; font-size: 1.25rem; }

/* --- 派遣実績 --- */
.ssw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.ssw-item { background: #fff; border: 1px solid #eee; padding: 20px 10px; text-align: center; border-radius: 8px; font-size: 0.85rem; font-weight: 700; transition: 0.3s; }
.price-note { text-align: center; margin-top: 20px; font-size: 0.8rem; color: #999; }

/* --- 特定技能CTA --- */
.group-cooperation { padding: 100px 0; background: var(--hr-gray); }
.coop-card { background: var(--hr-dark); color: #fff; padding: 80px; border-radius: 40px; text-align: center; max-width: 1000px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.group-tag { display: inline-block; color: var(--hr-blue); font-family: 'Montserrat'; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; }
.btn-secondary { display: inline-block; padding: 18px 45px; border: 2px solid var(--hr-blue); color: #fff; text-decoration: none; border-radius: 50px; font-weight: 700; margin-top: 30px; transition: 0.3s; }
.btn-secondary:hover { background: var(--hr-blue); transform: translateY(-3px); }

/* --- 締め --- */
.hr-closing { padding: 120px 0; text-align: center; }
.closing-tag { color: var(--hr-blue); font-family: 'Montserrat'; font-weight: 700; letter-spacing: 3px; display: block; margin-bottom: 20px; }
.btn-primary { background: var(--hr-blue); color: #fff; text-decoration: none; padding: 20px 60px; border-radius: 60px; font-weight: 700; display: inline-block; transition: 0.4s; }


/* --- Footer (フッター) --- */
.main-footer {
    background: #1a1c20; /* 深いダークグレー */
    color: #fff;
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: 'Montserrat';
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.footer-logo small {
    display: block;
    font-size: 0.75rem;
    font-family: 'Noto Sans JP';
    font-weight: 500;
    color: var(--hr-blue); /* ロゴのサブテキストにアクセント */
    margin-top: 5px;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.footer-contact span {
    display: block;
    font-family: 'Montserrat';
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* フッターナビゲーション */
.footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.nav-group h4 {
    font-family: 'Montserrat';
    font-size: 1rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
}

.nav-group h4 small {
    display: block;
    font-size: 0.65rem;
    color: var(--hr-blue);
    margin-top: 5px;
}

.nav-group ul {
    list-style: none;
    padding: 0;
}

.nav-group ul li {
    margin-bottom: 12px;
}

.nav-group ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-group ul li a:hover {
    color: var(--hr-blue);
    padding-left: 5px;
}



/* スマホ対応 */
@media (max-width: 991px) {
    .hr-main-visual { 
        display: block; 
        min-height: auto; 
        padding-top: 70px;
    }

    /* メインビジュアル画像を上に */
    .hr-content-right { 
        width: 100%; 
        height: 300px; 
        display: block;
        order: -1; /* HTMLがflexなら有効 */
    }
    
    .hr-visual-img { 
        clip-path: none; 
        height: 100%;
        width: 100%;
    }

    .hr-content-left { 
        width: 100%;
        padding: 40px 20px; 
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hr-title {
        align-items: center; 
        text-align: center;
        font-size: 1.6rem;
    }
        .hr-lead {
        font-size: 0.8rem;   /* 少しだけ小さく */
        line-height: 1.8;    /* 読みやすさ維持 */
    }

        /* 導入文 */
    .intro-box-refine {
        font-size: 0.95rem;      /* 少し小さく */
        line-height: 1.8;        /* 行間広げて読みやすく */
        padding: 0 10px;         /* 端詰まり防止 */
    }

    .intro-box-refine br {
        display: none;           /* ←これ重要：強制改行を消す */
    }

    /* Mission / Vision 全体 */
    .m-v-container {
        padding: 20px;
        margin: 30px auto;
    }

    .m-v-row {
        flex-direction: column;  /* 縦並びにする */
        align-items: flex-start;
        gap: 8px;
    }

    /* Mission / Vision タグ */
    .m-v-tag {
        font-size: 0.75rem;
        border-right: none;      /* 縦線消す */
    }

    /* 本文 */
    .m-v-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    

    /* --- 仕組みセクション（左右分割）のスマホ調整 --- */
    .section-title {
        font-size: clamp(1.5rem, 4.5vw, 1.8rem);
        letter-spacing: 0.02em; /* 少し詰める */
    }
    
    #about-system .about-grid { 
        display: flex;
        flex-direction: column; /* 縦並び */
        gap: 30px;
    }

    .about-visual-area {
        order: -1; /* 図解をテキストの上に配置 */
        width: 100%;
    }

    .modern-diagram {
        padding: 20px; /* スマホでは余白をタイトに */
        width: 100%;
        max-width: 400px; /* スマホで大きくなりすぎないよう調整 */
    }

    .about-text-area {
        width: 100%;
        text-align: center; /* スマホでは中央寄せが綺麗 */
    }

        .about-main-desc {
        font-size: 0.95rem;   /* 少しだけ小さく */
        line-height: 1.8;     /* 読みやすさ維持 */
    }

    .system-box {
        font-size: 0.9rem;    /* ボックス内も少し小さく */
        line-height: 1.8;
    }

    /* 共通タイルのレスポンシブ */
    .ssw-grid, .myanmar-merit-grid { 
        grid-template-columns: 1fr; 
    }

    /* タイムライン */
    .timeline { padding-left: 40px; }
    .timeline::before { left: 15px; }
    .time-label { position: relative; left: 0; text-align: left; margin-bottom: 10px; display: block; }
    .time-content::before { left: -30px; }

    /* CTAカード */
    .coop-card { padding: 40px 20px; border-radius: 20px; }
}