@charset "UTF-8";
/* ============================================================
   宮坂ゴムについて（トップ／NEWS & INFORMATION 上部に設置）
   2026-06-08 新規  ※index-test.php 専用の独立CSS（既存に依存しない）
   ブランドカラー：紺 #242e76 / #0d2870 ・アクセント橙 #f08300
   ============================================================ */

.mg-about {
    width: 100%;
    background: #ffffff;
    padding: 70px 3.2142857143vw;
    overflow: hidden;
}

.mg-about__inner {
    width: 100%;
    margin: 0;
}

/* --- 見出し --- */
.mg-about__title {
    color: #242e76;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 36px;
    padding-left: 18px;
    position: relative;
}

.mg-about__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1.1em;
    background: #f08300;
    border-radius: 3px;
}

/* --- 本文レイアウト --- */
.mg-about__body {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 左：イラスト＋リード文 */
.mg-about__lead {
    flex: 0 0 34%;
    max-width: 34%;
    text-align: left;
}

.mg-about__lead-txt {
    color: #333;
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 14px;
}

.mg-about__lead-link {
    display: inline-block;
    color: #0d2870;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #0d2870;
    padding-bottom: 2px;
    margin-bottom: 26px;
    transition: opacity .2s;
}

.mg-about__lead-link::after {
    content: " ›";
}

.mg-about__lead-link:hover {
    opacity: .6;
}

.mg-about__lead-img {
    width: 88%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* 右：カルーセル */
.mg-about__slider {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.mg-about__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    /* スクロールバーを隠す */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mg-about__track::-webkit-scrollbar {
    display: none;
}

.mg-about__card {
    flex: 0 0 31%;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.mg-about__card:hover {
    border-color: #c3c9e0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.mg-about__card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.mg-about__card-body {
    padding: 14px 16px 18px;
}

.mg-about__card-ttl {
    color: #242e76;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 6px;
}

.mg-about__card-desc {
    color: #555;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* --- ナビ（ドット＋矢印） --- */
.mg-about__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
}

.mg-about__bar {
    flex: 1 1 auto;
    height: 3px;
    background: #e3e3e3;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.mg-about__bar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: #242e76;
    border-radius: 2px;
}

.mg-about__arrows {
    display: flex;
    gap: 10px;
}

.mg-about__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #242e76;
    background: #fff;
    color: #242e76;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s, color .25s, opacity .25s;
}

.mg-about__arrow:hover {
    background: #242e76;
    color: #fff;
}

.mg-about__arrow:disabled {
    opacity: .3;
    cursor: default;
}

/* ============== レスポンシブ ============== */
@media only screen and (max-width: 900px) {
    .mg-about {
        padding: 60px 5%;
    }

    .mg-about__body {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .mg-about__lead {
        flex: none;
        max-width: 100%;
        text-align: left;
    }

    .mg-about__lead-img {
        width: 170px;
        margin: 6px auto 0;
    }

    .mg-about__card {
        flex-basis: 58%;
    }
}

@media only screen and (max-width: 600px) {
    .mg-about__title {
        font-size: 26px;
    }

    .mg-about__lead-img {
        width: 160px;
    }

    .mg-about__card {
        flex-basis: 80%;
    }

    .mg-about__arrow {
        width: 38px;
        height: 38px;
    }
}


/* ============================================================
   メインビジュアル（KV：テキスト左／画像右スライダー）
   ※ 画像は既存の common/img/top/kv--img--1.jpg / kv--img--2.jpg を再利用
   ============================================================ */

/* 既存 top-test.css の .topMain（height固定/overflow:hidden/top:100px）を無効化。
   top:100px は相対配置で見た目だけ下げており後続セクションが重なるため、
   高さ自動＋margin-top でオフセットを「流れの中」に置き換えて重なりを解消する。 */
.top .topMain {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    top: 0;
    margin-top: 81px;
}

.mg-kv {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

/* 画像は右寄せ（左に余白）・左角丸・右端までブリード */
.mg-kv__slider {
    position: relative;
    margin-left: 27%;
}

.mg-kv__slides {
    position: relative;
    width: 100%;
    /* 高さを画面基準にして、直下の NEWS をファーストビュー内に入れる。
       画面が低いPCでもキャッチコピーが収まる 420px を下限、
       大型モニタで間延びしないよう 640px を上限にしている。
       （比率固定をやめるため aspect-ratio は解除） */
    aspect-ratio: auto;
    height: clamp(420px, calc(100vh - 300px), 640px);
    overflow: hidden;
    border-radius: 24px 0 0 24px;
    background: #e9eef0;
}

.mg-kv__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}

.mg-kv__slide.is-active {
    opacity: 1;
}

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

/* 巨大テキストを左に配置（画像の左部分に重なる） */
.mg-kv__copy {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 4vw;
    transform: translateY(-50%);
    max-width: 64%;
}

.mg-kv__catch {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.6;
    letter-spacing: .04em;
    margin: 0;
    text-shadow:
        0 0 12px rgba(255, 255, 255, .98),
        0 0 24px rgba(255, 255, 255, .92),
        0 0 44px rgba(255, 255, 255, .8),
        0 2px 4px rgba(255, 255, 255, .9);
}

.mg-kv__catch-sub {
    display: block;
    margin-top: 24px;
    padding-left: 26px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: normal;
    color: #444;
    text-shadow:
        0 0 10px rgba(255, 255, 255, .98),
        0 0 20px rgba(255, 255, 255, .9),
        0 0 32px rgba(255, 255, 255, .8);
}

.mg-kv__dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.mg-kv__dot {
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 4px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: background .25s;
}

.mg-kv__dot.is-active {
    background: #fff;
}

@media only screen and (max-width: 1100px) {
    .mg-kv__catch {
        font-size: 42px;
    }

    .mg-kv__slider {
        margin-left: 22%;
    }
}

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

    /* スマホ：画像が上・テキストが下／左寄せ／文字小さめ */
    .mg-kv {
        display: flex;
        flex-direction: column-reverse;
    }

    .mg-kv__slider {
        margin-left: 0;
    }

    .mg-kv__copy {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 22px 5% 6px;
        text-align: left;
    }

    .mg-kv__catch {
        font-size: 22px;
        line-height: 1.85;
        text-align: left;
        text-shadow: none;
    }

    .mg-kv__catch-sub {
        font-size: 13px;
        margin-top: 14px;
        padding-left: 12px;
        text-shadow: none;
    }

    .mg-kv__slides {
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }
}

@media only screen and (max-width: 600px) {
    .mg-kv__catch {
        font-size: 20px;
    }
}


/* ============================================================
   採用情報（②）
   ============================================================ */
.mg-recruit {
    margin: 40px 3.2142857143vw;
    background: #eef2f6;
    border-radius: 24px;
    padding: 60px 5%;
}

.mg-recruit__inner {
    width: 100%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 230px;
}

.mg-recruit__title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #242e76;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 26px;
    padding-left: 18px;
    position: relative;
}

.mg-recruit__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1.1em;
    background: #f08300;
    border-radius: 3px;
}

.mg-recruit__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3a7bd5;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

/* 本文（左・③）＋ボタン4つ（右・④）を横並び。右端はキャラ用に空ける */
.mg-recruit__body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: calc(100% - 300px);
}

.mg-recruit__lead {
    flex: 0 0 36%;
    max-width: 36%;
    color: #555;
    font-size: 14px;
    line-height: 1.95;
    margin: 0;
}

.mg-recruit__links {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}

.mg-recruit__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid #d7dce7;
    color: #242e76;
    font-size: 15px;
    font-weight: 700;
    padding: 17px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.mg-recruit__links a:hover {
    background: #f0f4fb;
    border-color: #3a7bd5;
}

.mg-recruit__links a::after {
    content: "›";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3a7bd5;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

/* 右上：キャラクター＋吹き出し（大きめ・絶対配置） */
.mg-recruit__chara {
    position: absolute;
    top: -8px;
    right: 0;
    width: 300px;
    text-align: center;
}

.mg-recruit__catch {
    margin: 0 0 8px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.mg-recruit__balloon {
    display: inline-block;
    position: relative;
    background: #fff;
    border: 2px solid #242e76;
    border-radius: 28px;
    padding: 10px 22px;
    color: #242e76;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.mg-recruit__balloon .big {
    display: block;
    color: #d8261c;
    font-size: 19px;
    margin-top: 2px;
}

.mg-recruit__balloon::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid #242e76;
}

.mg-recruit__chara-img {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 1000px) {
    .mg-recruit__body {
        gap: 24px;
        max-width: calc(100% - 210px);
    }

    .mg-recruit__lead {
        flex-basis: 38%;
        max-width: 38%;
    }

    .mg-recruit__chara {
        width: 195px;
    }

    .mg-recruit__chara-img {
        width: 150px;
    }
}

@media only screen and (max-width: 768px) {
    .mg-recruit {
        margin: 24px 4%;
        padding: 40px 6%;
        border-radius: 16px;
    }

    .mg-recruit__inner {
        min-height: 0;
    }

    .mg-recruit__body {
        max-width: 100%;
        flex-direction: column;
        gap: 22px;
    }

    .mg-recruit__lead {
        flex: none;
        max-width: 100%;
    }

    .mg-recruit__chara {
        position: static;
        width: auto;
        margin: 28px auto 0;
    }

    .mg-recruit__chara-img {
        width: 170px;
    }
}

@media only screen and (max-width: 600px) {
    .mg-recruit__title {
        font-size: 26px;
    }

    .mg-recruit__links {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mg-recruit__links a {
        padding: 13px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .mg-recruit__links a::after {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 11px;
    }
}


/* ============================================================
   3カードリンク（会社情報／サスティナブル／ゴムチャンネル）
   ※ アイコンは既存画像を仮使用
   ============================================================ */
.mg-link3 {
    width: 100%;
    background: #eef2f6;
    padding: 70px 3.2142857143vw;
}

.mg-link3__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1260px;
    margin: 0 auto;
}

.mg-link3__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: transform .2s, box-shadow .2s;
}

.mg-link3__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.mg-link3__icon {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.mg-link3__icon img {
    max-height: 88px;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* 横長の絵は高さ基準だと極端に小さく見えるため幅基準で揃える */
.mg-link3__icon--wide img {
    max-height: none;
    width: 200px;
}

/* 画像内に余白を含むぶん、絵の実寸が他と揃うよう大きめに出す */
.mg-link3__icon--pad img {
    max-height: 104px;
}

.mg-link3__ttl {
    color: #242e76;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
}

.mg-link3__desc {
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .mg-link3 {
        padding: 50px 5%;
    }

    .mg-link3__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 480px;
        margin: 0 auto;
    }

    .mg-link3__card {
        padding: 30px 24px;
    }

    .mg-link3__icon {
        height: 88px;
        margin-bottom: 18px;
    }

    .mg-link3__icon img {
        max-height: 74px;
    }

    .mg-link3__icon--wide img {
        max-height: none;
        width: 170px;
    }

    .mg-link3__icon--pad img {
        max-height: 88px;
    }
}


/* ============================================================
   技術紹介（材料技術／機能材料）2カード ※カードは mg-about の意匠を流用
   ============================================================ */
.mg-tech {
    width: 100%;
    background: #ffffff;
    padding: 70px 3.2142857143vw 40px;
}

.mg-tech__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.mg-tech__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media only screen and (max-width: 600px) {
    .mg-tech {
        padding: 50px 5% 30px;
    }

    .mg-tech__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* ============================================================
   CTAバナー（青・仮／参考デザイン）
   ============================================================ */
.mg-cta {
    width: 100%;
    padding: 40px 3.2142857143vw;
}

.mg-cta__inner {
    max-width: 1260px;
    margin: 0 auto;
    background: #1659b6;
    border-radius: 16px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
}

.mg-cta__body {
    color: #fff;
    flex: 1 1 auto;
}

.mg-cta__ttl {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 18px;
}

.mg-cta__txt {
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 16px;
    opacity: .95;
}

.mg-cta__tel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.mg-cta__tel svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.mg-cta__img {
    flex: 0 0 auto;
    width: 240px;
    align-self: flex-end;
    margin-bottom: -48px;
}

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

@media only screen and (max-width: 768px) {
    .mg-cta {
        padding: 30px 4%;
    }

    .mg-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 28px;
        gap: 16px;
    }

    .mg-cta__ttl {
        font-size: 24px;
    }

    .mg-cta__tel {
        font-size: 32px;
    }

    .mg-cta__img {
        width: 160px;
        align-self: flex-end;
        margin-bottom: -36px;
    }
}


/* ============================================================
   宮坂ゴムの強み（参考：わたしたちの取組／画像なし・右2ボックス）
   ============================================================ */
.mg-strength {
    width: 100%;
    padding: 50px 3.2142857143vw;
    background: #eef2f6;
}

.mg-strength__box {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
    padding: 56px 5%;
}

.mg-strength__body {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.mg-strength__left {
    flex: 0 0 38%;
    max-width: 38%;
}

.mg-strength__intro {
    font-size: 14px;
    line-height: 1.95;
    color: #555;
    margin: 0 0 28px;
}

.mg-strength__catch {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 22px;
}

.mg-strength__sub {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

.mg-strength__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid #e2e6ee;
}

.mg-strength__cta-lead {
    flex: 0 0 auto;
}

.mg-strength__cta-ttl {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.mg-strength__cta-txt {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.mg-strength__tel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1659b6;
    font-size: 38px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .5px;
}

.mg-strength__tel svg {
    width: 32px;
    height: 32px;
    fill: #1659b6;
    flex: 0 0 auto;
}

.mg-strength__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1659b6;
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    padding: 18px 44px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .2s;
}

.mg-strength__contact:hover {
    opacity: .85;
}

.mg-strength__contact::after {
    content: "›";
    font-size: 18px;
}

@media only screen and (max-width: 768px) {
    .mg-strength__cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.mg-strength__grid {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mg-strength__item {
    background: #f3f6fa;
    border-radius: 10px;
    padding: 26px 24px;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

a.mg-strength__item:hover {
    background: #eaf0f8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 89, 182, .12);
}

.mg-strength__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.mg-strength__item-head h3 {
    margin: 0;
}

.mg-strength__item-img {
    flex: 0 0 auto;
    width: 120px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
}

.mg-strength__item h3 {
    color: #1659b6;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-left: 14px;
    position: relative;
}

.mg-strength__item h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1em;
    background: #1659b6;
    border-radius: 3px;
}

.mg-strength__item p {
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

@media only screen and (max-width: 900px) {
    .mg-strength__body {
        flex-direction: column;
        gap: 30px;
    }

    .mg-strength__left {
        flex: none;
        max-width: 100%;
    }

    .mg-strength__catch {
        font-size: 26px;
    }
}

@media only screen and (max-width: 600px) {
    .mg-strength {
        padding: 30px 4%;
    }

    .mg-strength__box {
        padding: 36px 24px;
        border-radius: 16px;
    }

    .mg-strength__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* スマホ（736px以下）も PC と同じ順序に：ゴムの物語が上、NEWS が下。
   .flex_ns が縦積みになる幅なので order だけで入れ替わる。
   先頭に来る側に上余白が無いと KV に接するため padding-top を補う */
@media only screen and (max-width: 736px) {
    #home_news_area .home_news_2 {
        order: 1;
        padding-top: 36px;
    }

    #home_news_area .home_news {
        order: 2;
        padding-top: 36px;
    }
}


/* ============================================================
   NEWS ＆ ゴムの物語：左右と比率の入れ替え（2026-08-20）
   左＝ゴムの物語（大きく）／右＝NEWS（従来のゴムの物語のサイズ感）。
   DOM は触らず order で入れ替えているので、読み上げ・SEO 上の順序は
   NEWS が先のまま。SP（736px以下）は従来どおり NEWS が先の縦積み。
   ============================================================ */

@media only screen and (min-width: 737px) {

    /* KV を詰めたぶん、NEWS の上余白も詰めて初期表示に入れる（PC のみ） */
    #home_news_area {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #home_news_area .home_news {
        flex: 0 0 34%;
        order: 2;
    }

    #home_news_area .home_news_2 {
        flex: 0 0 64%;
        order: 1;
    }

    /* 幅が狭くなるので見出しと本文を縮める */
    #home_news_area .home_news .headline h2.en {
        font-size: 24px;
    }

    #home_news_area .home_news .newsArea {
        padding: 18px 0 0;
    }

    #home_news_area .home_news .newsArea dl {
        padding: 10px 16px;
    }

    /* ゴムの物語：カードを NEWS 列と同じ高さまで伸ばし、
       余った縦幅を写真に吸わせて左右の下端を揃える。
       写真の高さを固定しないので、記事の件数や折り返しが変わっても揃い続ける。
       🔴 横方向は必ず「縦積み（flex-direction: column）」にすること。
          row にすると、カード内の入れ子リンクをブラウザが分割して生成する
          空の <a> が2つ目のフレックスアイテムになり、カード幅が半分になる */
    #home_news_area .home_news_2 {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* 既存の align-items:center を打ち消す */
        justify-content: flex-start;
    }

    #home_news_area .home_news_2 .pro_info,
    #home_news_area .home_news_2 .pro_info>a,
    #home_news_area .home_news_2 .pro_info .inner {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    /* 入れ子リンクが分割された古い構造でも崩れないための保険 */
    #home_news_area .home_news_2 .pro_info>a:empty {
        display: none;
    }

    #home_news_area .home_news_2 .pro_info .inner>a {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    #home_news_area .home_news_2 .pro_info .imgArea {
        flex: 1 1 0;
        min-height: 300px;
        /* NEWS 側が短いときに写真が潰れない下限 */
        overflow: hidden;
        border-radius: 1em 1em 0 0;
    }

    #home_news_area .home_news_2 .pro_info .imgArea img {
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    /* テキスト部を詰めて「詳細はこちら」を上げる。
       写真は flex: 1 1 0 なので、詰めたぶんだけ自動で高くなる */
    #home_news_area .home_news_2 .pro_info .txtArea {
        flex: 0 0 auto;
        padding: 14px 26px 12px;
        position: relative;
        /* 「詳細はこちら」の絶対配置の基準 */
    }

    #home_news_area .home_news_2 .pro_info .inner h2 {
        font-size: 26px;
        line-height: 1.3;
        margin: 0 0 6px;
    }

    #home_news_area .home_news_2 .pro_info .inner .txtArea p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 0;
        padding-right: 150px;
        /* ボタンの場所を確保。無いと説明文が2行目でボタンに潜り込む */
    }

    /* 「詳細はこちら」を流れから外して右下へ。1行分（約38px）が写真に回る */
    #home_news_area .home_news_2 .pro_info .placemen_r {
        position: absolute;
        right: 26px;
        bottom: 12px;
        margin-top: 0;
    }
}