@charset "UTF-8";
/* ==================================================
   page-award.css (完全版・修正済)
   受賞実績・各種方針ページ専用のデザイン
   ================================================== */

/* --------------------------------------------------
   1. ページヘッダー (グラデーション背景など)
   -------------------------------------------------- */
.page-header-section {
    background-color: #004098;
    background-image: linear-gradient(135deg, #004098 0%, #002860 100%);
    color: #fff;
    padding: 40px 0 60px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    box-sizing: border-box;
}

.page-header-section::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 10px;
    background: repeating-linear-gradient(45deg, #c5a059, #c5a059 10px, #b08d4a 10px, #b08d4a 20px);
}

.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2;
}

.header-content { text-align: center; }

.company-name-sub {
    display: block; font-size: 1rem; letter-spacing: 0.1em; opacity: 0.9;
    margin-bottom: 10px; font-weight: bold; color: #c5a059;
}

.main-page-title {
    font-size: 2.4rem; font-weight: bold; margin-bottom: 20px; letter-spacing: 0.05em; line-height: 1.3;
}

.header-lead-text {
    font-size: 1rem; opacity: 0.9; font-weight: normal; margin-top: 15px;
    display: inline-block; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 15px;
}

/* パンくずリスト */
.custom-breadcrumbs { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 30px; }
.custom-breadcrumbs ol { display: flex;justify-content: flex-end; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.custom-breadcrumbs li:not(:last-child)::after {
    content: '>'; margin: 0 10px; font-size: 0.7em; opacity: 0.7;
}
.custom-breadcrumbs a {
    color: #fff; text-decoration: none; transition: opacity 0.3s; border-bottom: 1px solid transparent;
}
.custom-breadcrumbs a:hover { opacity: 1; border-bottom: 1px solid #fff; }

/* --------------------------------------------------
   2. 共通ラッパー
   -------------------------------------------------- */
.award-wrapper {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333; line-height: 1.6; width: 100%;
}
.award-wrapper img { max-width: 100%; height: auto; vertical-align: bottom; }
.award-wrapper a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
.award-wrapper a:hover { opacity: 0.8; }

/* --------------------------------------------------
   3. トップセクション (7つの実績アイコン)
   -------------------------------------------------- */
.award-top-section {
    background-color: #f9f9fc; padding: 60px 0; text-align: center;
    width: 100vw; margin-left: calc(50% - 50vw);
}
.award-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.award-header { margin-bottom: 50px; }
.philosophy-img { max-width: 600px; width: 90%; height: auto; margin: 0 auto 25px; display: block; }
.award-header p { font-size: 1.1rem; color: #555; font-weight: 500; line-height: 1.8; }

.icon-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.icon-card {
    background: #fff;
    width: calc((100% - 60px) / 4);
    min-width: 240px;
    border: 1px solid #e0e0e0; border-top: 4px solid #c5a059; border-radius: 8px;
    padding: 25px 15px;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.3s ease;
}
.icon-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0, 64, 152, 0.1); }

.icon-title {
    color: #004098; font-size: 1rem; font-weight: 700;
    margin-bottom: 15px; position: relative; padding-bottom: 8px; white-space: nowrap;
}
.icon-title::after {
    content: ''; display: block; width: 30px; height: 2px;
    background: #c5a059; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
}
.icon-box {
    width: 100%; min-height: 120px; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.icon-box img { max-width: 45%; height: auto; object-fit: contain; }

.icon-desc {
    text-align: left; width: 100%; border-top: 1px dotted #ddd; padding-top: 15px;
}
.icon-desc small { display: block; color: #888; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 5px; }
.icon-desc strong { display: block; font-size: 0.95rem; color: #004098; margin-bottom: 10px; line-height: 1.4; }
.icon-text { font-size: 0.85rem; color: #555; line-height: 1.6; }
.icon-text b { color: #333; }


/* --------------------------------------------------
   4. 詳細実績エリア (GPTWなど)
   -------------------------------------------------- */
.award-detail-section {
    background-color: #fff; padding: 80px 0 100px;
    width: 100vw; margin-left: calc(50% - 50vw);
}
.detail-container { width: 85%; max-width: 1400px; margin: 0 auto; }

/* ★追加：集合画像のスタイル */
.award-main-visual {
    width: 100%; margin-bottom: 50px; text-align: center;
}
.award-main-visual img {
    width: 100%; max-width: 1000px; height: auto; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-heading-main {
    font-size: 2rem; text-align: center; margin-bottom: 30px; font-weight: bold; letter-spacing: 0.05em;
}
.detail-heading-sub {
    font-size: 1.5rem; color: #004098;
    border-left: 6px solid #c5a059; padding-left: 15px;
    margin: 60px 0 30px; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 10px;
}

/* GPTW まとめゾーン */
.gptw-zone {
    background: #f4f8fb; padding: 30px; border-radius: 12px; margin-bottom: 60px;
}
.gptw-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.gptw-card {
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s; display: flex; flex-direction: column;
}
.gptw-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.gptw-card a { display: flex; flex-direction: column; height: 100%; }

.gptw-header-text {
    padding: 20px; background: #fff; border-bottom: 1px solid #f0f0f0;
    font-size: 1.15rem; color: #333; flex-grow: 1;
}
.gptw-header-text strong { display: block; color: #cc0000; font-size: 1.1rem; margin-top: 5px; }
.check-mark { color: #cc0000; font-weight: bold; margin-right: 5px; }

.gptw-img-box { width: 100%; background: #fff; display: flex; align-items: center; justify-content: center; }
.gptw-img-box img { width: 100%; height: auto; display: block; }

.gptw-btn {
    background: #004098; color: #fff; text-align: center;
    padding: 10px; font-size: 0.85rem; font-weight: bold; margin-top: auto;
}
.gptw-span-full { grid-column: span 2; }


/* その他 実績 (3列) */
.others-grid-3col {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 60px;
}
.detail-card-vertical {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 10px;
    overflow: hidden; transition: all 0.3s; height: 100%; display: flex; flex-direction: column;
}
.detail-card-vertical:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.detail-card-vertical a { display: flex; flex-direction: column; height: 100%; }

.detail-text-top { padding: 20px; background: #fff; flex-grow: 1; }
.detail-title {
    font-size: 1.05rem; font-weight: bold; color: #004098;
    border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 10px;
}
.detail-desc { font-size: 0.9rem; color: #555; line-height: 1.6; }
.detail-img-bottom { width: 100%; border-top: 1px solid #eee; }
.detail-img-bottom img { width: 100%; height: auto; display: block; }


/* その他の認定 (3列・バッジ付き) */
.cert-section-title {
    font-size: 1.5rem; color: #004098;
    border-left: 6px solid #c5a059; padding-left: 15px;
    margin: 60px 0 30px; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.cert-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px;
}
.cert-item {
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    padding: 20px 10px; text-align: center; transition: all 0.3s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    text-decoration: none; color: inherit; height: 100%; position: relative;
}
.cert-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: #c5a059; }

.cert-badge {
    font-size: 1.2rem; padding: 4px 12px; border-radius: 12px; color: #fff; font-weight: bold; margin-bottom: 10px; display: inline-block; line-height: 1.5;
}
.badge-cert { background-color: #004098; }
.badge-reg  { background-color: #28a745; }
.badge-dec  { background-color: #e0a800; }
.badge-award { background-color: #cc0000; }

.cert-img-box {
    width: 100%; height: 250px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; overflow: hidden;
}
.cert-img-box img { width: 100%; height: 100%; object-fit: contain; }
.cert-name { font-size: 1rem; font-weight: bold; color: #333; line-height: 1.5; }


/* --------------------------------------------------
   5. 方針・取り組みエリア
   -------------------------------------------------- */
.policy-section {
    background-color: #f9f9fc; padding: 80px 0; width: 100vw; margin-left: calc(50% - 50vw);
}
.initiative-section {
    background-color: #fff; padding: 80px 0; width: 100vw; margin-left: calc(50% - 50vw);
}

.policy-card {
    background: #fff; border-radius: 12px; padding: 40px; margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-top: 5px solid #004098;
}
.policy-title {
    font-size: 1.4rem; font-weight: bold; color: #333;
    border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 25px;
    display: flex; align-items: center;
}
.policy-title::before {
    content: ''; display: inline-block; width: 8px; height: 24px;
    background-color: #c5a059; margin-right: 12px; border-radius: 2px;
}
.policy-subtitle {
    font-size: 1.1rem; color: #004098; font-weight: bold; margin-bottom: 15px;
}
.policy-text { font-size: 0.95rem; line-height: 1.8; color: #444; margin-bottom: 20px; }

.policy-list { list-style: none; padding: 0; margin: 0; }
.policy-list li {
    margin-bottom: 20px; padding-left: 1.5em; position: relative; font-weight: bold; color: #333;
}
.policy-list li::before { content: "✔"; color: #cc0000; position: absolute; left: 0; top: 0; }
.policy-list li p { font-weight: normal; font-size: 0.9rem; color: #666; margin-top: 5px; line-height: 1.6; }

.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    max-width: 100%; background: #000; border-radius: 8px; margin: 20px 0;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.policy-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.policy-grid-2col .policy-card { margin-bottom: 0; height: 100%; }

.initiative-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 60px; }
.initiative-item { text-align: center; }
.initiative-item img {
    width: 100%; height: auto; border-radius: 8px; transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.initiative-item img:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.initiative-link {
    display: inline-block; margin-top: 10px; color: #004098; font-weight: bold; text-decoration: none;
}
.initiative-link::before { content: "▶"; font-size: 0.8em; margin-right: 5px; }

.other-initiative-box {
    background: #fdfdfd; border: 1px solid #eee; padding: 30px;
    border-radius: 8px; margin-bottom: 30px;
}
.other-initiative-title {
    font-size: 1.2rem; font-weight: bold; color: #333;
    margin-bottom: 10px; border-bottom: 1px solid #ddd; padding-bottom: 10px;
}
.ma-image { width: 100%; height: auto; border-radius: 8px; margin-top: 15px; display: block; }

/* ナビゲーション全体の枠 */
.policy-nav-container {
    background-color: #f4f4f4; /* 薄いグレーの背景 */
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0; /* 上下の余白 */
    text-align: center; /* 中央寄せ */
}

/* 「各種方針へ移動」の文字 */
.policy-nav-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* ボタンの並び */
.policy-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* ボタン同士の間隔 */
}

/* 各ボタンのデザイン */
.policy-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #333; /* 枠線 */
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border-radius: 50px; /* 丸みをつける */
    font-size: 14px;
    transition: all 0.3s ease;
}

/* マウスを乗せた時の動き */
.policy-btn:hover {
    background-color: #333; /* 背景を黒に */
    color: #fff !important; /* 文字を白に */
    transform: translateY(-2px); /* 少し浮き上がる */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 影をつけて見やすく */
}

/* ★追加：ボタンの中にある全ての要素（pタグなど）も強制的に白くする */
.policy-btn:hover * {
    color: #fff !important;
}

/* --- スムーズスクロール（まだ入れてなければ追加） --- */
html {
    scroll-behavior: smooth;
}

/* 認定・登録・宣言 */
/* --- フィルタリングボタンのデザイン --- */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px; /* リストとの間隔 */
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 50px; /* 丸みのあるデザイン */
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* ホバー時とアクティブ時のスタイル */
.filter-btn:hover,
.filter-btn.active {
    background-color: #007bff; /* メインカラー（お好みの色に変更可） */
    color: #fff;
    border-color: #007bff;
}

/* --- フィルタリング動作（非表示用） --- */
/* アニメーション用（フェードイン） */
.cert-item {
    animation: fadeIn 0.5s ease;
}

/* 非表示にするクラス */
.cert-item.hide {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================================
   6. レスポンシブ対応 (SP/Tablet)
   ================================================== */
@media (max-width: 1024px) {
    .icon-card { width: calc((100% - 20px) / 2); }
}

@media (max-width: 900px) {
    .detail-container { width: 95%; }
    .gptw-span-full { grid-column: span 1; }
    .gptw-grid { grid-template-columns: 1fr; }
    .others-grid-3col { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* ヘッダー */
    .page-header-section { padding: 30px 0 50px; }
    .main-page-title { font-size: 1.8rem; }
    .header-lead-text { font-size: 0.9rem; text-align: left; display: block; }
    .custom-breadcrumbs { margin-bottom: 20px; font-size: 0.75rem; }

    /* アイコン */
    .icon-card { width: 100%; }
    
    /* 詳細グリッド */
    .gptw-grid, .others-grid-3col, .cert-grid { grid-template-columns: 1fr; }
    
    /* 集合画像 */
    .award-main-visual { margin-bottom: 30px; }

    /* ★その他の認定（バッジ）を強制2列にする魔法 */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .cert-item { padding: 15px 5px !important; }
    .cert-img-box { height: 100px !important; margin-bottom: 10px !important; }
    .cert-name { font-size: 0.75rem !important; line-height: 1.4; }
    .cert-badge { font-size: 0.7rem !important; padding: 3px 8px !important; margin-bottom: 5px !important; }

    /* 方針・取り組み */
    .policy-card { padding: 25px; }
    .policy-grid-2col { grid-template-columns: 1fr; gap: 20px; }
    .initiative-grid { grid-template-columns: 1fr; gap: 20px; }
    .policy-title { font-size: 1.2rem; }

    .gptw-zone {padding: 5px;}
    .gptw-header-text {padding: 5px;}
    .gptw-header-text strong{font-size: 1rem;}
    .cert-badge {font-size: 0.8rem }
}

/* --- D&I AWARD トピックスエリア --- */
.award-topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列表示 */
    gap: 40px;
    margin-bottom: 80px;
    align-items: start; /* 上揃え */
}

.award-topic-item {
    display: flex;
    flex-direction: column;
}

.topic-caption {
    font-weight: bold;
    color: #333;
    margin-bottom: 0; /* マージンは下のボックス側で制御 */
    font-size: 1.05rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

/* 賞状画像の枠デザイン（動画と同じ比率にする） */
.award-certificate-box {
    position: relative;
    width: 100%;
    /* 動画(16:9)と同じ高さを確保するための魔法の記述 */
    padding-top: 56.25%; 
    
    background-color: #f9f9f9; /* 余白部分の色 */
    border: 1px solid #eee;
    border-radius: 8px;
    
    /* 動画エリア(.video-wrapper)と同じマージンを持たせる */
    margin: 20px 0; 
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 枠の中の画像を調整 */
.award-certificate-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 重要：画像を切り取らず、枠内に全体が収まるようにする */
    object-fit: contain; 
    
    /* 画像が枠パンパンにならないよう、少し余白を空ける */
    padding: 15px; 
    box-sizing: border-box; /* paddingを含めたサイズ計算にする */
    
    /* 画像自体の影（お好みで。枠内にあるので無くてもOK） */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* スマホ対応 */
@media (max-width: 768px) {
    .award-topics-grid {
        grid-template-columns: 1fr; /* スマホでは縦並び */
        gap: 40px;
    }
}