@charset "utf-8";

/*
yamanishi 専用CSS
*/

/* ==========================================================================
   ユーティリティ
   ========================================================================== */

.border-brand-red {
    border-color: #e50012 !important;
}

/* ==========================================================================
   事業案内ページ共通
   ========================================================================== */

/* MENUボタン: 白背景・赤文字に反転 */
body.is-project .navToggle {
    background-color: #fff;
    border-color: #fff;
}

body.is-project .navToggle__label {
    color: #e60012;
}

body.is-project .navToggle__bars span {
    background-color: #e60012;
}

/* お問い合わせヘッダー: 電話番号 */
.inquiry-header .inquiry-phone {
    font-size: 28px;
}

@media (min-width: 768px) {
    .inquiry-header .inquiry-phone {
        font-size: 36px;
    }
}

/* 事業案内ヘッダー: bg-project.png 背景セクション */
.project-header {
    position: relative;
    background: url("../img/bg-project.png") no-repeat bottom center / cover;
    padding-top: 100px;
    padding-bottom: 48px;
}

.project-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-top: calc((33 / 640) * 100%);
    background: url("../img/bg-project-after.png") no-repeat bottom center / cover;
}

@media (min-width: 768px) {
    .project-header {
        padding-top: 140px;
        padding-bottom: 80px;
    }
}

/* 事業案内タイトル */
.project-header .project-label {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.project-header .project-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .project-header .project-title {
        font-size: 40px;
    }
}

@media (min-width: 1200px) {
    .project-header .project-title {
        font-size: 52px;
    }
}

/* 事業案内 アイキャッチ画像（赤パネル＋ずらし） */
.project-img-wrap {
    position: relative;
    z-index: 0;
}

.project-img-wrap::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100%;
    height: 100%;
    background-color: #890d23;
    border-radius: 16px;
    z-index: -1;
    
}

@media (min-width: 768px) {
    .project-img-wrap::before {
        top: 12px;
        left: 12px;
    }

    .project-img-wrap.project-img-wrap-business-list {
        left: 16px;
    }
}

@media (min-width: 1200px) {
    .project-img-wrap::before {
        left: 16px;
    }
}

.project-img-wrap .media-shadow {
    position: relative;
    border: 6px solid #e50012;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .project-img-wrap .media-shadow {
        border-width: 12px;
    }
    .project-img-wrap:hover .media-shadow {
        transform: translate(12px, 12px);
    }
}

@media (min-width: 1200px) {
    .project-img-wrap:hover .media-shadow {
        transform: translate(16px, 12px);
    }
}

.project-img-wrap .media-shadow img {
    display: block;
    width: 100%;
}

/* 事業案内 特徴ボックス */
.project-feature-box {
    display: flex;
    align-items: center;
    background-color: #df272d;
    border-radius: 8px;
    padding: 16px;
    color: #fff;
}

.project-feature-label {
    font-size: 18px;
    font-weight: bold;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 8px;
}

@media (min-width: 768px) {
    .project-feature-box {
        padding: 24px;
    }
    .project-feature-label {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

.project-feature-text {
    padding-left: 16px;
}

/* 事業案内 補足情報 */
.project-notes-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.project-notes-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}

.project-notes-summary {
    margin-top: 16px;
    font-size: 14px;
    color: #fff;
}

.project-notes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    color: #fff;
}

.project-notes-list li {
    font-size: 14px;
}

/* 取扱資材リスト */
.list-materials {
    list-style: none;
    padding-top: 16px;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.list-materials li::before {
    content: "・";
    color: #e60012;
    font-weight: bold;
}

@media (min-width:768px) {
    .list-materials {
        padding-top: 0;
    }
}

/* Cross-Section フロー図 */
.flow-circle {
    width: 250px;
    height: 250px;
}

.flow-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flow-label {
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.flow-connector {
    width: 14px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 10px;
    margin-bottom: 14px;
    background-color: #fff;
}

@media (min-width: 768px) {
    .flow-circle {
        width: 100px;
        height: 100px;
    }

    .flow-label {
        font-size: 14px;
    }

    .flow-connector {
        width: 28px;
        height: 10px;
        margin-top: -30px;
        margin-left: 7px;
        margin-right: 7px;
    }
}

@media (min-width: 768px) {

    .flow-label {
        font-size: 16px;
    }

    .flow-connector {
        margin-top: -20px;
    }
}

@media (min-width: 1200px) {
    .flow-circle {
        width: 180px;
        height: 180px;
    }
}

/* ==========================================================================
   事業一覧カード
   ========================================================================== */

/* モバイル・タブレット: カード全体に薄ピンク背景 */
.biz-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    width: calc(100% - 32px);
    height: 90%;
    background-color: #fef0f0;
    border-radius: 16px;
    z-index: -1;
}

@media (min-width: 768px) {
    .biz-card::before {
        left: 0;
        width: 90%;
        height: 100%;
    }
}

/* PC: ::beforeを消してテキスト列に直接背景 */
@media (min-width: 992px) {
    .biz-card::before {
        display: none;
    }

    .biz-card__body {
        position: relative;
    }

    .biz-card__body::before {
        content: "";
        position: absolute;
        top: -20px;
        left: -32px;
        width: 120%;
        height: calc(100% + 40px);
        background-color: #fef0f0;
        border-radius: 16px;
        z-index: -1;
    }
}

@media (min-width: 1200px) {
    .biz-card__body::before {
        top: -40px;
        left: -40px;
        width: 140%;
        height: calc(100% + 80px);
    }
}

/* 事業番号ラベル */
.biz-label {
    display: inline-block;
    background-color: #e50012;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    line-height: 1.4;
}

/* 事業名 */
.biz-title {
    font-weight: bold;
    color: #e50012;
    margin-bottom: 0;
}

/* 詳しく見るリンク */
.biz-link {
    display: inline-flex;
    align-items: center;
    color: #e50012;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.biz-link .circle-arrow {
    width: 40px;
    height: 40px;
    background: #e50012;
    border: solid 1px #e50012;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.biz-link:hover .circle-arrow {
    background: #fff;
    border-color: #e50012;
    transform: scale(1.18);
}

.biz-link .arrow-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.biz-link .arrow-wrap i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s ease;
}

.biz-link .arrow1 {
    opacity: 1;
}

.biz-link .arrow2 {
    transform: translate(-180%, -50%);
    opacity: 0;
}

.biz-link:hover .arrow1 {
    transform: translate(120%, -50%);
    opacity: 0;
}

.biz-link:hover .arrow2 {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.biz-link:hover .arrow-wrap i {
    color: #e50012;
}

/* object-fit: cover（Bootstrap 5.2には未搭載） */
.img-cover {
    object-fit: cover;
}

/* 保有車両グリッド */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
}

@media (min-width: 768px) {
    .fleet-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fleet-item {
    padding: 24px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.fleet-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.fleet-count {
    margin-bottom: 0;
}

.fleet-num {
    display: inline-block;
    font-size: 48px;
    line-height: 1;
    color: #1a2744;
    border-bottom: 3px solid #e60012;
    margin-right: 4px;
}

/* お問い合わせ */
.mw_wp_form .form-control {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 16px;
}

.mw_wp_form input[type="submit"] {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mw_wp_form .form-back-wrap input[type="submit"] {
    padding: 1em 2em 1em 4em;
}

.mw_wp_form .form-submit-wrap input[type="submit"] {
    padding: 1em 4em 1em 2em;
}

.mw_wp_form .btn-submit {
    background-color: #e60012;
    border-color: #e60012;
    color: #fff;
}

/* お問い合わせフォーム 送信ボタン 矢印アニメーション */
.form-submit-wrap {
    display: inline-block;
    position: relative;
}

.form-submit-wrap .btn-submit {
    padding-right: 64px;
}

.form-submit-wrap .form-submit-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: unset;
    border-radius: 50%;
    pointer-events: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
}

.form-submit-wrap .form-submit-arrow .arrow-wrap i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    transition: transform 0.35s ease, opacity 0.35s ease, color 0.3s ease;
}

.form-submit-wrap .form-submit-arrow .arrow2 {
    transform: translate(-180%, -50%);
    opacity: 0;
}

.form-submit-wrap:hover .form-submit-arrow {
    border-color: #fff;
    transform: translateY(-50%) scale(1.18);
}

.form-submit-wrap:hover .form-submit-arrow .arrow-wrap i {
    color: #fff;
}

.form-submit-wrap:hover .form-submit-arrow .arrow1 {
    transform: translate(120%, -50%);
    opacity: 0;
}

.form-submit-wrap:hover .form-submit-arrow .arrow2 {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* お問い合わせフォーム 戻るボタン 矢印アニメーション */
.form-back-wrap {
    display: inline-block;
    position: relative;
}

.form-back-wrap .btn-secondary {
    padding-left: 64px;
}

.form-back-wrap .form-back-arrow {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: unset;
    border-radius: 50%;
    pointer-events: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
}

.form-back-wrap .form-back-arrow .arrow-wrap i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    transition: transform 0.35s ease, opacity 0.35s ease, color 0.3s ease;
}

.form-back-wrap .form-back-arrow .arrow2 {
    transform: translate(80%, -50%);
    opacity: 0;
}

.form-back-wrap:hover .form-back-arrow {
    border-color: #fff;
    transform: translateY(-50%) scale(1.18);
}

.form-back-wrap:hover .form-back-arrow .arrow-wrap i {
    color: #fff;
}

.form-back-wrap:hover .form-back-arrow .arrow1 {
    transform: translate(-220%, -50%);
    opacity: 0;
}

.form-back-wrap:hover .form-back-arrow .arrow2 {
    transform: translate(-50%, -50%);
    opacity: 1;
}

@media (min-width: 768px) {
    #mw_wp_form_mw-wp-form-587 .mwform-radio-field.vertical-item {
        width: 50%;
    }
    #mw_wp_form_mw-wp-form-587 .vertical-item + .vertical-item {
        margin-top: 0;
    }
}

/* お問い合わせ 確認ページ */
.mw_wp_form_confirm .confirm-column {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   お知らせページ（page-info）
   ========================================================================== */

/* カテゴリーフィルター ラベル */
.info-filter-label {
    position: relative;
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.info-filter-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5em;
    height: 2px;
    background-color: #3c3c3c;
}

/* フィルターボタン群: モバイルは横並び、PCは縦並び */
.info-filter-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 992px) {
    .info-filter-btns {
        flex-direction: column;
    }
}

/* 各フィルターボタン */
.info-filter-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #e60012;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #e60012;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.info-filter-btn:hover,
.info-filter-btn.is-active {
    background-color: #e60012;
    color: #fff;
    border: 1px solid #e60012;
}

/* 記事リスト */
.info-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 記事アイテム */
.info-post-item {
    border-top: 1px solid #dee2e6;
}

.info-post-item:last-child {
    border-bottom: 1px solid #dee2e6;
}

/* 記事リンク */
.info-post-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.info-post-link:hover {
    background-color: #fef0f0;
}

.info-post-link:hover .info-post-title {
    color: #e60012;
}

@media (min-width: 768px) {
    .info-post-link {
        gap: 24px;
        padding: 32px 0;
    }
}

/* サムネイル */
.info-post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #e60013;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .info-post-thumb {
        width: 160px;
        height: 120px;
    }
}

.info-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* アイキャッチなし時: ロゴをcontainで表示 */
.info-post-thumb.is-default img {
    object-fit: contain;
    padding: 12px;
}

/* 記事本文エリア */
.info-post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 記事タイトル */
.info-post-title {
    color: #e60013;
    font-weight: bold;
    margin: 0;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .info-post-title {
        font-size: 18px;
    }
}

/* メタ（カテゴリー＋日付） */
.info-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* カテゴリーバッジ */
.info-cat-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 100px;
    background-color: #ffe4e7;
    color: #e60013;
}

/* 日付 */
.info-post-date {
    font-size: 13px;
    color: #727171;
}

/* ==========================================================================
   ページネーション（Bootstrap 5）
   ========================================================================== */

.area-pagenation .page-link {
    color: #e60012;
    border-color: #e60012;
    padding: 8px 12px;
    margin: 0;
}

.area-pagenation .page-item:first-child .page-link {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.area-pagenation .page-item:last-child .page-link {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.area-pagenation .page-link:hover,
.area-pagenation .page-link:focus {
    color: #e60012;
    background-color: #fef0f0;
    border-color: #e60012;
}

.area-pagenation .page-item.active .page-link {
    background-color: #e60012;
    border-color: #e60012;
    color: #fff;
}