/* ============================================================
   Diary 求人サイト v2 — Contact セクション + モバイル下部固定バー
   - 上品ブランドトーンに合わせた応募導線UI
   - 既存 .rc-fixed-bar とは別系統 .rc-h2-fixed-bar として刷新
   ============================================================ */

/* ============================================================
   Contact セクション（フッター直前）— 店長からのメッセージ形式
   - 店長の円形写真 + 手紙風メッセージ + 署名 + 3つの CTA
   ============================================================ */
.rc-h2-contact {
    background: var(--rch2-bg-base);  /* #FAF7F2 — 交互パターン一貫性 */
    padding: 100px 4rem;
}
.rc-h2-contact-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* 店長の円形写真 */
.rc-h2-contact-portrait-wrap {
    display: flex;
    justify-content: center;
    margin: 48px 0 40px;                        /* サイズUPに合わせて余白も少しゆったり */
}
.rc-h2-contact-portrait {
    width: 160px;                               /* 100 → 160 (店長の表情がちゃんと読める存在感) */
    height: 160px;
    border-radius: 50%;
    padding: 5px;                               /* 4 → 5 でリング感をキープ */
    border: 1px solid var(--rch2-accent-light);
    background: #fff;
    box-sizing: border-box;
}
.rc-h2-contact-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.rc-h2-contact-portrait-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rch2-bg-base);
    color: var(--rch2-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;                            /* 36 → 56 で円のサイズに比例 */
}

/* メッセージ本文 */
.rc-h2-contact-message {
    max-width: 640px;                           /* 600 → 640 で改行が自然に */
    margin: 0 auto;
    text-align: center;
    font-family: var(--rch2-font-serif);
    font-size: 16px;                            /* 14.5 → 16 で店長メッセージの存在感UP */
    color: var(--rch2-text-sub);
    line-height: 1.95;
    letter-spacing: 0.06em;
}
.rc-h2-contact-message p {
    margin: 0 0 24px;
}
.rc-h2-contact-message p:last-child {
    margin-bottom: 0;
}

/* 署名 */
.rc-h2-contact-signature {
    margin: 32px auto 0;
    max-width: 600px;
    text-align: center;
    font-family: var(--rch2-font-en);
    font-style: italic;
    font-size: 12.5px;
    color: var(--rch2-text-light);
    letter-spacing: 0.2em;
}

/* 3つの CTA ボタン */
.rc-h2-contact-actions {
    display: flex;
    gap: 28px;
    max-width: 900px;
    margin: 56px auto 0;
    justify-content: center;
}
.rc-h2-contact-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: transparent;
    border: 0.5px solid var(--rch2-line);
    border-radius: 0;
    text-decoration: none;
    color: var(--rch2-text-main);
    text-align: center;
    transition: background-color 0.3s ease;
}
.rc-h2-contact-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}
.rc-h2-contact-btn-icon {
    font-size: 34px;
    color: var(--rch2-accent);
    margin-bottom: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}
.rc-h2-contact-btn:hover .rc-h2-contact-btn-icon {
    transform: translateY(-3px);
}
.rc-h2-contact-btn-label {
    font-family: var(--rch2-font-serif);
    font-size: 16px;
    color: var(--rch2-text-main);
    letter-spacing: 0.22em;
    line-height: 1.6;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.rc-h2-contact-btn:hover .rc-h2-contact-btn-label {
    color: var(--rch2-accent-strong);
}
.rc-h2-contact-btn-sub {
    font-family: var(--rch2-font-display);   /* Marcellus — 数字が雑誌的に映える */
    font-style: normal;
    font-size: 15px;                          /* 12px → 15px 視認可能に */
    color: var(--rch2-text-sub);              /* light → sub で少し濃く */
    letter-spacing: 0.08em;
    line-height: 1.55;
    margin-bottom: 18px;
}
.rc-h2-contact-btn-line {
    width: 32px;
    height: 1px;
    background: var(--rch2-accent-light);
    margin: 0 auto;
    transition: width 0.35s ease, background-color 0.25s ease;
}
.rc-h2-contact-btn:hover .rc-h2-contact-btn-line {
    width: 60px;
    background: var(--rch2-accent);
}

/* ============================================================
   モバイル下部固定バー（新ブランドトーン版）
   - 旧 .rc-fixed-bar を置き換える .rc-h2-fixed-bar
   ============================================================ */
.rc-h2-fixed-bar {
    display: none;  /* デフォルト非表示。モバイルでのみ表示（後述のメディアクエリで） */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--rch2-line);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 100;
    /* 初期下からスライドイン */
    transform: translateY(100%);
    animation: rch2FixedBarSlideUp 0.4s ease-out 0.2s forwards;
}
@keyframes rch2FixedBarSlideUp {
    to { transform: translateY(0); }
}
.rc-h2-fixed-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--rch2-text-main);
    transition: opacity 0.2s ease;
    border-right: 1px solid var(--rch2-line);
}
.rc-h2-fixed-bar-item:last-child {
    border-right: none;
}
.rc-h2-fixed-bar-item:active,
.rc-h2-fixed-bar-item:hover {
    opacity: 0.65;
}
.rc-h2-fixed-bar-icon {
    font-size: 20px;
    color: var(--rch2-accent);
    margin-bottom: 4px;
    line-height: 1;
}
.rc-h2-fixed-bar-label {
    font-family: var(--rch2-font-serif);
    font-size: 10.5px;
    color: var(--rch2-text-main);
    letter-spacing: 0.08em;
    line-height: 1;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 1024px) {
    .rc-h2-contact { padding: 88px 2.5rem; }
}

/* モバイル: 固定バー表示 + Contactセクションを縦並びに */
@media (max-width: 768px) {
    .rc-h2-contact {
        padding: 80px 1.5rem;
    }
    .rc-h2-contact-portrait { width: 120px; height: 120px; }   /* 88 → 120 でモバイルも存在感UP */
    .rc-h2-contact-portrait-wrap { margin: 36px 0 32px; }
    .rc-h2-contact-message {
        font-size: 13.5px;
        line-height: 1.95;
    }
    .rc-h2-contact-message p { margin-bottom: 20px; }
    .rc-h2-contact-signature {
        font-size: 12px;
        margin-top: 28px;
    }

    /* CTA は縦並び、アイコン左+テキスト右 */
    .rc-h2-contact-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 44px;
    }
    .rc-h2-contact-btn {
        flex: none;
        width: 100%;
        max-width: 320px;
        flex-direction: row;
        gap: 18px;
        padding: 20px 24px;
        justify-content: flex-start;
        align-items: center;
        background: #fff;
    }
    .rc-h2-contact-btn-icon {
        margin-bottom: 0;
        font-size: 26px;
        flex-shrink: 0;
    }
    .rc-h2-contact-btn-text {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    .rc-h2-contact-btn-label {
        font-size: 14.5px;
        letter-spacing: 0.18em;
        margin-bottom: 4px;
        text-align: left;
    }
    .rc-h2-contact-btn-sub {
        font-size: 11px;
        margin-bottom: 0;
        text-align: left;
    }
    /* モバイルでは装飾罫線を非表示（縦並びでスペース節約） */
    .rc-h2-contact-btn-line { display: none; }

    /* 固定バー表示開始 */
    .rc-h2-fixed-bar {
        display: flex;
    }
    /* 固定バー分の余白を body に確保（コンテンツが隠れないように） */
    body {
        padding-bottom: 64px;
    }
}

/* 小型モバイル */
@media (max-width: 380px) {
    .rc-h2-contact { padding: 72px 1.2rem; }
    .rc-h2-fixed-bar-label { font-size: 10px; }
}
