/* グループトップ: 人材紹介事業と教育事業を左右に並べるヒーロー */
.home main{ padding-top: 72px; }
.gtop-split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(32rem, 44vw, 40rem);
}
.gtop-half{
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
    text-decoration: none;
    background-color: #173a62;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}
.gtop-half--recruit{ background-image: url("../images/hero_index.jpg"); background-position: 55% 30%; }
.gtop-half--edu{ background-image: url("../images/hero_education.jpg"); background-position: 28% center; border-left: 2px solid #fff; }
.gtop-half::before{ content: ""; position: absolute; inset: 0; background: rgba(10, 40, 75, 0.58); transition: background 0.25s ease; }
.gtop-half:hover::before, .gtop-half:focus-visible::before{ background: rgba(10, 40, 75, 0.42); }
.gtop-half:focus-visible{ outline: 4px solid #d9670f; outline-offset: -4px; }
.gtop-half-body{ position: relative; display: block; width: 100%; box-sizing: border-box; padding: 3rem 3rem 3.5rem; max-width: 36rem; margin: 0 0 0 auto; }
.gtop-half--edu .gtop-half-body{ margin: 0 auto 0 0; }
.gtop-half-title{ display: block; margin: 0 0 1rem; font-size: 2.3rem; font-weight: 800; line-height: 1.35; }
.gtop-half-lead{ display: block; margin: 0 0 1.8rem; font-size: 1rem; line-height: 1.9; color: #eaf2fb; }
.gtop-half-btn{ display: inline-block; padding: 0.9rem 1.8rem; background: #d9670f; color: #fff; font-weight: 700; border-radius: 4px; }
.gtop-half:hover .gtop-half-btn{ background: #b8560c; }
.sr-only{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px){
    .gtop-split{ grid-template-columns: 1fr; min-height: 0; }
    .gtop-half{ min-height: 22rem; }
    .gtop-half--edu{ border-left: 0; border-top: 2px solid #fff; background-position: 100% center; }
}
@media (max-width: 760px){
    .gtop-half-body, .gtop-half--edu .gtop-half-body{ max-width: none; margin: 0; padding: 2rem 1.4rem 2.2rem; }
    .gtop-half-title{ font-size: 1.8rem; }
}
}
.home .gtop-split{ margin: 0; padding: 0; width: 100%; max-width: none; box-sizing: border-box; }

/* 教育事業: 原稿用紙のキャッチ（教育事業ページと共通のモチーフ） */
.gtop-half--edu{ flex-direction: column; justify-content: space-between; align-items: stretch; }
.gtop-genko{
    --cell: clamp(46px, 5.2vw, 64px);
    position: relative;
    display: grid;
    gap: calc(var(--cell) * .42) 0;
    padding: calc(var(--cell) * .42 + 1.6rem) 3rem 0;
    width: max-content;
}
.gtop-genko .genko-row{ display: grid; grid-template-columns: repeat(5, var(--cell)); border-left: 1.5px solid #a8d8d0; }
.gtop-genko .cell{
    position: relative; width: var(--cell); height: var(--cell);
    border: 1.5px solid #a8d8d0; border-left: 0; display: grid; place-items: center;
    font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 900; font-size: calc(var(--cell) * .62); line-height: 1;
    color: #1b3433; background: #fff;
}
.gtop-genko .cell[data-r]::before{
    content: attr(data-r); position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); text-align: center;
    font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 700; font-size: calc(var(--cell) * .2); letter-spacing: .06em; color: #fff; line-height: 1;
}
.gtop-genko .cell.punct{ place-items: end start; padding: 0 0 calc(var(--cell) * .08) calc(var(--cell) * .14); }
@media (max-width: 760px){
    .gtop-genko{ --cell: min(15vw, 56px); padding: calc(var(--cell) * .42 + 1.4rem) 1.4rem 0; }
}
.home main .gtop-split{ padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }

/* ヒーローの中央揃え */
.gtop-half{ justify-content: center; text-align: center; }
.gtop-half-body, .gtop-half--edu .gtop-half-body{ margin: 0 auto; text-align: center; }
.gtop-half--edu{ align-items: center; justify-content: space-between; }
.gtop-genko{ margin: 0 auto; }
@media (max-width: 760px){
    .gtop-half-body, .gtop-half--edu .gtop-half-body{ margin: 0 auto; }
}

/* トップのCTA：人材の相談／日本語の相談 */
.gcta{ background: #f1f6fb; border-top: 1px solid #d9e3ee; border-bottom: 1px solid #d9e3ee; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; margin: 3rem 0 0; }
.gcta-inner{ max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.gcta-text h2{ margin: 0 0 1rem; font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.5; color: #0a3d68; text-align: left; letter-spacing: .02em; }
.gcta-text p{ margin: 0 0 .9rem; line-height: 2; color: #2a3b4d; font-size: 1rem; max-width: 34em; }
.gcta-text .gcta-tel{ margin-top: 1.4rem; font-size: .95rem; color: #5b6b7a; }
.gcta-text .gcta-tel a{ font-weight: 700; font-size: 1.15rem; color: #0a3d68; text-decoration: none; margin: 0 .2em; }
.gcta-actions{ display: grid; gap: .9rem; }
.gcta-btn{ display: block; padding: 1.1rem 1.4rem; border: 2px solid #0a3d68; background: #fff; color: #0a3d68; text-decoration: none; border-radius: 6px; transition: background .2s, color .2s; }
.gcta-btn strong{ display: block; font-size: 1.1rem; line-height: 1.5; }
.gcta-btn span{ display: block; font-size: .85rem; opacity: .8; margin-top: .15rem; }
.gcta-btn:hover, .gcta-btn:focus-visible{ background: #0a3d68; color: #fff; }
.gcta-btn--main{ background: #d9670f; border-color: #d9670f; color: #fff; }
.gcta-btn--main:hover, .gcta-btn--main:focus-visible{ background: #b8560c; border-color: #b8560c; }
.gcta-note{ margin: .2rem 0 0; font-size: .85rem; color: #5b6b7a; }
@media (max-width: 860px){ .gcta-inner{ grid-template-columns: 1fr; } }
.home main > .gcta{ max-width: none; width: 100%; box-sizing: border-box; margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; }
.gcta-text h2{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-wrap: balance; word-break: auto-phrase; }
.gcta-text p{ word-break: auto-phrase; text-wrap: pretty; }
