@charset "UTF-8";

/* ====================================
   トップページ専用スタイル
   ==================================== */

/* 共通レイアウト調整 */
.section-padding {
    padding: 80px 0;
}
.bg-gray {
    background-color: #fcf8f5; /* ごく薄いオレンジベージュ */
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 見出し共通 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: 36px;
    color: var(--color-sub); /* ブラウン */
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--color-main); /* オレンジ */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.section-title-sm {
    font-size: 24px;
    color: var(--color-main);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* ボタン共通 (Secondary) */
.btn-secondary {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    font-weight: bold;
    transition: all 0.3s;
    background: #fff;
}
.btn-secondary:hover {
    background: var(--color-main);
    color: #fff;
}
.btn-area {
    text-align: center;
    margin-top: 40px;
}

/* ====================================
   ① メインビジュアル (FV)
   ==================================== */
.fv {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左寄せ */
    overflow: hidden;
    margin-top: 70px;
}

/* 背景画像設定 */
.fv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/top/prits_top_mainvisual_3.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.95);
}

.fv-bg:after {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: -1;
}

/* テキストエリア */
.fv-content {
    text-align: left;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    color: #fff;
    animation: fadeIn 1.5s ease;
}

.fv-catch-en {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.fv-catch-jp {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.fv-lead {
    font-size: 16px;
    line-height: 1.8;
    opacity: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

/* スクロールダウン表示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.8);
    animation: scrollMove 2s infinite;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.5);
    margin: 10px auto 0;
}

/* ====================================
   ② 導入・コンセプト (Intro)
   ==================================== */
.intro {
    position: relative;
    background-color: #fffaf6;
    overflow: hidden;
    text-align: center;
}

.intro::before {
    content: "OUTSOURCING";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: var(--color-main);
    opacity: 0.1;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

.intro .container {
    position: relative;
    z-index: 1;
}

.intro .section-title-sm::before {
    content: "";
    display: block;
    width: 2px;
    height: 60px;
    background-color: var(--color-main);
    margin: 0 auto 30px;
}

.intro .section-title-sm {
    font-size: 32px;
    color: var(--color-sub);
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.intro-text {
    line-height: 2.2;
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.highlight {
    color: var(--color-main);
    font-weight: bold;
    background: linear-gradient(transparent 70%, rgba(230, 81, 0, 0.15) 70%);
    padding: 0 4px;
}

/* ====================================
   ③ 事業内容 (Service) - 4項目フロー版
   ==================================== */
.service-flow-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
}

/* カード共通 */
.flow-card {
    background: #fff;
    padding: 30px 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    border-top: 5px solid var(--color-main);
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flow-card.main-card {
    border-top-color: var(--color-sub);
    background-color: #fff;
}

.flow-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 81, 0, 0.1);
}

/* 画像アイコン */
.card-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.flow-card h4 {
    color: var(--color-sub);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.3;
}
.flow-card p {
    font-size: 13px;
    color: #666;
    font-weight: bold;
    margin: 0;
}

/* 矢印アイコン */
.flow-arrow-icon {
    font-size: 20px;
    color: #ddd;
    font-weight: bold;
    display: flex;
    align-items: center;
}


/* ====================================
   ④ 強み (Why PRITS?)
   ==================================== */
.strength {
    background-color: #efebe9; 
    position: relative;
    overflow: hidden;
}

.strength::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.3) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

.strength-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.strength-item {
    background: #fff;
    border: none;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 6px solid var(--color-main);
    box-shadow: 0 10px 25px rgba(78, 52, 46, 0.08);
    transition: transform 0.3s;
}

.strength-item:hover {
    transform: translateY(-5px);
}

.strength-item h4 {
    color: var(--color-sub);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* ====================================
   ⑤ お知らせ (News)
   ==================================== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
}
.news-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    align-items: baseline;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item time {
    width: 120px;
    font-family: monospace;
    color: #888;
}
.news-title {
    flex: 1;
}

/* ====================================
   ⑥ 会社情報 (Company)
   ==================================== */
.access-grid {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.access-info h4 {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-main);
    display: inline-block;
    padding-bottom: 5px;
}
.access-info dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px 0;
}
.access-info dt {
    font-weight: bold;
    color: var(--color-sub);
}
.btn-area-left {
    margin-top: 30px;
    text-align: left;
}

/* ====================================
   アニメーション定義
   ==================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollMove {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* ====================================
   レスポンシブ (SP) - 最後にまとめる
   ==================================== */
@media (max-width: 900px) {
    /* メインビジュアル */
    .fv-bg:after {
        background: rgba(0,0,0,0.3);
    }
    .fv-content {
        text-align: center;
        padding: 0 20px;
    }
    .fv-catch-en { font-size: 28px; }
    .fv-catch-jp { font-size: 16px; }

    /* 事業内容カード */
    .service-flow-grid {
        flex-direction: column; /* 縦積みに */
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    .flow-arrow-icon {
        transform: rotate(90deg); /* 矢印回転 */
        font-size: 30px;
        margin: 0 auto; /* 中央配置 */
    }
    .flow-card {
        width: 100%;
        min-height: auto;
    }

    /* 会社情報 */
    .access-info dl {
        grid-template-columns: 1fr;
    }
    .access-info dt { margin-top: 15px; }

    /* お知らせ */
    .news-item { flex-direction: column; }
}