/* ==========================================================================
   [0.0] ドキュメント情報
   プロジェクト: 御幸建設グループの契約を知る
   作成日: 2026年4月7日
   更新日: 2026年4月7日
   管理番号: Ver. 1.2.0 (ボタン幅・レイアウトの均等化)
   ========================================================================== */

/* ==========================================================================
   [1.0] ヒーローエリア
   ========================================================================== */

/* [1.1] ヒーロー背景設定 */
.c-contract-hero {
    position: relative;
    height: 300px;
    background: #000;
    overflow: hidden;
}

/* [1.2] ヒーロー画像 */
.c-contract-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* [1.3] ヒーローテキスト配置 */
.c-contract-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

/* [1.4] ヒーロータイトル */
.c-contract-hero__title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   [2.0] パンくずリスト
   ========================================================================== */

.c-breadcrumb {
    background: #f4f4f4;
    padding: 15px 0;
    margin-bottom: 40px;
}

.c-breadcrumb__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.c-breadcrumb__item::after {
    content: ">";
    margin: 0 10px;
    color: #999;
}

.c-breadcrumb__item:last-child::after {
    display: none;
}

.c-breadcrumb__link {
    text-decoration: none;
    color: #0070b8;
}

/* ==========================================================================
   [3.0] レイアウト構成・各セクション
   ========================================================================== */

.l-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.c-contract-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.c-contract-section--blue { border-top: 8px solid #0070b8; }
.c-contract-section--pink { border-top: 8px solid #e6007e; }
.c-contract-section--orange { border-top: 8px solid #f39800; }

.c-company-label {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.c-contract-section--blue .c-company-label { color: #0070b8; }
.c-contract-section--pink .c-company-label { color: #e6007e; }
.c-contract-section--orange .c-company-label { color: #f39800; }

/* ==========================================================================
   [4.0] 契約リスト項目（レイアウト調整）
   ========================================================================== */

/* [4.1] 項目全体
 * align-items: stretch; 子要素の高さを揃えます。
 */
.c-contract-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-contract-item:last-child { border-bottom: none; }

/* [4.2] テキストエリア
 * flex: 1; 残りの幅をすべて専有させます。
 */
.c-contract-text {
    flex: 1;
    padding-right: 30px;
}

.c-contract-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.c-contract-info {
    font-size: 0.9rem;
    color: #666;
}

/* [4.3] アクションエリア（固定幅設定）
 * flex: 0 0 220px; 幅を220pxで固定し、伸縮させないことで位置を揃えます。
 * text-align: right; ボタンを右側に寄せます。
 */
.c-contract-actions {
    flex: 0 0 220px;
    text-align: right;
}

/* ==========================================================================
   [5.0] ボタン・ラベル（幅の統一）
   ========================================================================== */

/* [5.1] PDF閲覧ボタン / 準備中ラベル 共通設定
 * width: 100%; 固定幅のアクションエリア内で最大幅まで広げます。
 * これにより、文字数に関わらずすべてのボタンの幅が揃います。
 */
.c-btn-sample, 
.c-label-prepare {
    display: inline-block;
    width: 100%;
    max-width: 220px;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.c-btn-sample {
    background: #0070b8;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.c-btn-sample:hover {
    opacity: 0.8;
}

.c-label-prepare {
    background: #eee;
    color: #888;
}

/* ==========================================================================
   [6.0] 提携システム・パートナー
   ========================================================================== */

/* [6.1] エリア全体
 * 背景を白（#fff）に設定し、上部の色付きセクションと明確に分離。
 * シャドウを少し強めにして、情報の「まとめ」としての存在感を出します。
 */
.c-system-area {
    background: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 20px;
}

/* [6.2] セクションタイトル
 */
.c-system-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #333;
    text-align: center; /* タイトルを中央寄せに */
}

/* [6.3] グループ分け
 */
.c-system-group {
    margin-bottom: 40px;
}

.c-system-group:last-child {
    margin-bottom: 0;
}

/* [6.4] サブタイトル（保証会社など）
 */
.c-system-subtitle {
    font-weight: bold;
    color: #0070b8; /* タイトル色をブランドカラーに */
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* タイトルの前に細い棒を入れる装飾 */
.c-system-subtitle::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: #0070b8;
    margin-right: 10px;
    border-radius: 2px;
}

/* [6.5] タグリスト
 */
.c-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* [6.6] タグ単体（デザイン更新）
 * 背景を非常に薄いグレーにし、枠線をなくしてモダンな印象に。
 */
.c-tag-item {
    background: #f4f7f9;
    color: #444;
    padding: 10px 20px;
    border-radius: 50px; /* 丸みのあるカプセル型に */
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

/* ホバー時にブランドカラーが少し出る演出 */
.c-tag-item:hover {
    background: #0070b8;
    color: #fff;
    border-color: #0070b8;
}

/* ==========================================================================
   [7.0] レスポンシブ
   ========================================================================== */

@media screen and (max-width: 768px) {
    .c-system-area {
        padding: 30px 20px;
    }

    .c-tag-item {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

/* ==========================================================================
   [7.0] レスポンシブ (768px以下)
   ========================================================================== */

@media screen and (max-width: 768px) {
    .c-contract-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .c-contract-actions {
        flex: none; /* 固定幅を解除 */
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
    
    .c-btn-sample, 
    .c-label-prepare {
        max-width: none; /* スマホ時は全幅に広げる */
    }
}

/* ボタンエリアのレイアウト調整 */
.c-contract-actions {
    display: flex;
    flex-direction: column; /* ボタンを縦に並べる */
    gap: 10px;               /* ボタンの間に10pxの隙間を作る（これが重要！） */
    min-width: 120px;
}

/* 画像に基づいた青色ボタンのデザイン */
.c-btn-blue {
    display: block;
    padding: 10px 15px;
    background-color: #0071bc; /* 画像に近い濃い青色 */
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
    line-height: 1.4;
}

.c-btn-blue:hover {
    background-color: #005a96; /* ホバー時に少し暗くする */
}