/**
 * コーティング事業部ページ専用スタイル
 * タイトル行は style.css の共通セクションタイトル行を使用
 */

/* ② 導入文は recruit-intro（recruit.css）を使用 */

/* スクロールインアニメーション：初期状態 */
.recruit-intro:not(.is-inview) .recruit-intro-img { opacity: 0; transform: translateX(-24px); }
.recruit-intro:not(.is-inview) .recruit-intro-body { opacity: 0; transform: translateX(24px); }
.coating-materials-item:not(.is-inview) { opacity: 0; transform: translateY(56px); }
.coating-service-item:not(.is-inview) { opacity: 0; transform: translateY(32px); }
.coating-strength-lead:not(.is-inview) { opacity: 0; transform: translateY(32px); }
.coating-strength-item:not(.is-inview) { opacity: 0; transform: translateY(32px); }
.coating-position-row:not(.is-inview) .coating-position-img-col { opacity: 0; transform: translateX(-24px); }

/* スクロールインアニメーション：is-inview で発火（ふわっと・次々に） */
.recruit-intro.is-inview .recruit-intro-img {
    animation: coating-fade-in-left 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.recruit-intro.is-inview .recruit-intro-body {
    animation: coating-fade-in-right 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes coating-fade-in-left {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes coating-fade-in-right {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
/* 各ブロックごとに画面に入ったタイミングでアニメーション（ふわっと・次々に） */
.coating-materials-item.is-inview {
    animation: coating-materials-fade-up 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.coating-materials-item.is-inview:nth-child(1) { animation-delay: 0s; }
.coating-materials-item.is-inview:nth-child(2) { animation-delay: 0.2s; }
.coating-materials-item.is-inview:nth-child(3) { animation-delay: 0.4s; }
.coating-materials-item.is-inview:nth-child(4) { animation-delay: 0.6s; }
.coating-materials-item.is-inview:nth-child(5) { animation-delay: 0.8s; }
.coating-materials-item.is-inview:nth-child(6) { animation-delay: 1s; }
.coating-service-item.is-inview {
    animation: coating-fade-up 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.coating-service-item.is-inview:nth-child(1) { animation-delay: 0s; }
.coating-service-item.is-inview:nth-child(2) { animation-delay: 0.35s; }
.coating-service-item.is-inview:nth-child(3) { animation-delay: 0.7s; }
.coating-strength-lead.is-inview {
    animation: coating-fade-up 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.coating-strength-item.is-inview {
    animation: coating-fade-up 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.coating-strength-item.is-inview:nth-child(1) { animation-delay: 0s; }
.coating-strength-item.is-inview:nth-child(2) { animation-delay: 0.25s; }
.coating-strength-item.is-inview:nth-child(3) { animation-delay: 0.5s; }
.coating-strength-item.is-inview:nth-child(4) { animation-delay: 0.75s; }
.coating-position-row.is-inview .coating-position-img-col {
    animation: coating-fade-in-left 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes coating-fade-up {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes coating-materials-fade-up {
    from { opacity: 0; transform: translateY(56px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .recruit-intro:not(.is-inview) .recruit-intro-img,
    .recruit-intro:not(.is-inview) .recruit-intro-body,
    .coating-materials-item:not(.is-inview),
    .coating-service-item:not(.is-inview),
    .coating-strength-lead:not(.is-inview),
    .coating-strength-item:not(.is-inview),
    .coating-position-row:not(.is-inview) .coating-position-img-col { opacity: 1; transform: none; }
    .recruit-intro.is-inview .recruit-intro-img,
    .recruit-intro.is-inview .recruit-intro-body,
    .coating-materials-item.is-inview,
    .coating-service-item.is-inview,
    .coating-strength-lead.is-inview,
    .coating-strength-item.is-inview,
    .coating-position-row.is-inview .coating-position-img-col { animation: none; opacity: 1; transform: none; }
}

/* ========== 取扱い部材ギャラリー（画面いっぱい・3列2行・タイトル画像上・ホバーで動き） ========== */
.coating-materials {
    padding: 0 0 4rem;
    background: #fafafa;
}

.coating-materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
    margin-top: 3rem;
}

.coating-materials-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.coating-materials-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.coating-materials-item:hover img {
    transform: scale(1.08);
}

.coating-materials-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.coating-materials-item:hover::before {
    opacity: 0.7;
}

.coating-materials-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    padding: 0 1rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.coating-materials-item:hover .coating-materials-label {
    transform: translate(-50%, -50%) scale(1.05);
}

.coating-materials-grid--3 {
    grid-template-rows: 1fr;
}

@media (max-width: 767px) {
    .coating-materials-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    .coating-materials-grid--3 {
        grid-template-rows: repeat(2, 1fr);
    }
    .coating-materials-label {
        font-size: 0.95rem;
    }
}

/* ========== ビジュアル区切り ========== */
.coating-visual-break {
    width: 100%;
    overflow: hidden;
}

.coating-visual-break img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.coating-visual-break--narrow img {
    height: 220px;
}

/* ========== ③ 事業内容 ========== */
.coating-service-section {
    padding: 0 0 4rem;
    background: #fff;
}
.coating-service-section .container {
    padding-top: 3rem;
}

.coating-service-section .container {
    max-width: 1100px;
}

.coating-service-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.coating-service-item:last-child {
    border-bottom: none;
}

.coating-service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.coating-service-item:nth-child(even) .coating-service-img-wrap {
    order: 2;
}

.coating-service-item:nth-child(even) .coating-service-body {
    order: 1;
}

.coating-service-img-wrap {
    flex: 0 0 380px;
    width: 380px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.coating-service-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 7 / 5;
    object-fit: cover;
}

.coating-service-body {
    flex: 1 1 320px;
}

/* 事業内容ブロックの見出しは company-block-head（company.css）を使用 */

.coating-service-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    margin: 0;
}

@media (max-width: 767px) {
    .coating-service-item,
    .coating-service-item:nth-child(even) {
        flex-direction: column;
    }
    .coating-service-img-wrap {
        width: 100%;
        max-width: 100%;
    }
    .coating-service-item:nth-child(even) .coating-service-img-wrap,
    .coating-service-item:nth-child(even) .coating-service-body {
        order: unset;
    }
}

/* ========== ④ 強み・特徴 ========== */
.coating-strength {
    padding: 0 0 5rem;
    background: #fff;
    position: relative;
}

.coating-strength .container {
    padding-top: 2.5rem;
    max-width: 1140px;
}

.coating-strength-lead {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin: 0 auto 3.5rem;
    max-width: 720px;
    text-align: center;
}
.coating-strength-lead strong {
    color: #0378ad;
    font-weight: 600;
}

.coating-strength-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coating-strength-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.coating-strength-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(3, 120, 173, 0.2);
}

.coating-strength-img-wrap {
    position: relative;
    aspect-ratio: 520 / 280;
    overflow: hidden;
}
.coating-strength-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.coating-strength-item:hover .coating-strength-img-wrap img {
    transform: scale(1.05);
}
.coating-strength-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.coating-strength-number {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #0378ad;
    z-index: 2;
}
.coating-strength-icon {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0378ad 0%, #0496c7 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(3, 120, 173, 0.25);
}

.coating-strength-body {
    padding: 1.75rem 1.5rem 2rem;
}
.coating-strength-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.6rem;
    letter-spacing: 0.02em;
}
.coating-strength-body p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

@media (max-width: 991px) {
    .coating-strength-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .coating-strength {
        padding: 0 0 3.5rem;
    }
    .coating-strength-lead {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
    .coating-strength-img-wrap {
        aspect-ratio: 16 / 9;
    }
    .coating-strength-body {
        padding: 1.5rem 1.25rem;
    }
    .coating-strength-body h3 {
        font-size: 1.05rem;
    }
    .coating-strength-body p {
        font-size: 0.85rem;
    }
}

/* ========== ⑤ ビジュアル：画像2枚横並び（全幅） ========== */
.coating-position {
    padding: 0 0 4rem;
    background: #fff;
}
.coating-position-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.coating-position-img-col {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
    overflow: hidden;
}

.coating-position-img-col .coating-position-img-wrap {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    min-height: 280px;
    overflow: hidden;
}

.coating-position-img-col .coating-position-img-wrap img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .coating-position-img-col .coating-position-img-wrap img {
        min-height: 200px;
    }
}

/* ⑥ お問い合わせ誘導は contact-cta（style.css）を使用 */