@charset "utf-8";

/* ==========================================================================
   contentfreeinfo_pos_selection.css
   POSレジ選定ページ専用スタイル
   ========================================================================== */

/* 基本設定（変数定義） */
:root {
    --pos-primary-color: #0056b3;
    --pos-secondary-color: #f0f8ff;
    --pos-accent-color: #ff7a00;
    --pos-text-color: #333333;
    --pos-bg-color: #ffffff;
    /* --pos-gray-bg: #f9f9f9; 削除しても問題ありませんが、念のため変数は残しておきます */
}

/* ページ全体のスコープ（他ページへの影響防止） */
.content_pos_selection {
    /* 勝手に追加していた余白のグレー背景設定を削除しました */
}

/* ▼ 新規追加：PC用 目次の下余白 ▼ */
.content_pos_selection .mokuji {
    margin-bottom: 50px;
}

/* 目次のリンクスタイル（通常時は黒・下線なし / ホバー時は青・下線あり） */
.content_pos_selection .mokuji a,
.content_pos_selection .mokuji a:link,
.content_pos_selection .mokuji a:visited {
    color: #000000;
    text-decoration: none;
}

.content_pos_selection .mokuji a:hover {
    color: #035fb4;
    text-decoration: underline;
}

/* コンテンツコンテナ（PC幅を1000pxに変更） */
/* ※タイトル(#pageHead)の下に配置されるメインコンテンツの枠 */
.pos_selection_container {
    max-width: 1000px; /* ここを1000pxに変更済み */
    margin: 50px auto;
    background-color: var(--pos-bg-color);
    color: var(--pos-text-color);
    line-height: 1.8;
}

.pos_selection_container img {
    max-width: 80%;
	margin: 0 auto;
    height: auto;
}

/* 導入文テキスト（16pxに変更済み） */
.pos_selection_container .intro-text {
    font-size: 16px; /* ここを16pxに変更済み */
    margin-bottom: 40px;
}

/* 見出しの中央寄せ用ラッパー */
.pos_selection_container .title-wrapper {
    text-align: center;
}

/* ▼ 修正：3つの重要ポイントの背景エリア ▼
   カードとの重なりを防ぐため、上下だけでなく左右にも十分な余白(padding)を設定します */
.pos_selection_container .points-section {
    background-color: var(--pos-secondary-color);
    padding: 50px; /* 上下左右に50pxの余白を追加 */
    border-radius: 8px; /* 全体のデザインに合わせて角丸を追加すると綺麗です */
    margin-bottom: 40px; /* 次のセクションとの余白 */
}

.pos_selection_container .section-title {
    text-align: center;
    font-size: 29px;
    color: var(--pos-primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--pos-primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* 評価基準カード（2カラム化） */
.pos_selection_container .point-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center; /* 画像とテキストを中央で揃える */
    gap: 30px;
}

/* 最後のカードの下は余白をなくす */
.pos_selection_container .point-card:last-child {
    margin-bottom: 0;
}

/* 02のカードのみ左右反転 */
.pos_selection_container .point-card.card-reverse {
    flex-direction: row-reverse;
}

/* 評価基準の画像エリア（幅45%） */
.pos_selection_container .point-img {
    width: 45%;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 評価基準のテキストエリア（幅55%） */
.pos_selection_container .point-card-text {
    width: 55%;
}

.pos_selection_container .point-card h3 {
    color: var(--pos-primary-color);
    font-size: 21px;
    margin-top: 0;
    margin-bottom: 15px;
}

.pos_selection_container .point-card span.num {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
}

/* 製品紹介セクション */
.pos_selection_container .product-section {
    padding: 60px 30px 0; /* 下部の余白を調整 */
}

.pos_selection_container .product-header {
    text-align: center;
    margin-bottom: 40px;
}

.pos_selection_container .product-header h2 {
    font-size: 32px;
    color: var(--pos-primary-color);
}

.pos_selection_container .product-header p {
    font-size: 19px;
    font-weight: bold;
}

/* ヘッダー内の製品画像を中央寄せにするスタイル */
.pos_selection_container .product-header img {
    display: block;
    margin: 25px auto 0;
}

/* 4つの強みセクション */
.pos_selection_container .feature-section {
    padding-top: 20px; /* 上部の余白を調整 */
}

/* 製品紹介サブタイトル（h3・薄い緑色のマーカー） */
.pos_selection_container .product-subtitle {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto 30px;
    width: fit-content;
    background: linear-gradient(transparent 60%, #d1e7dd 60%); /* 薄い緑色のマーカー */
    padding: 0 10px;
}

/* 4つの強み共通ボックス */
.pos_selection_container .feature-box {
    margin-bottom: 40px;
}

/* 4つの強み 見出し（薄い水色背景＋青色ドット枠） */
.pos_selection_container .feature-box h4.feature-title {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--pos-secondary-color); /* 薄い水色 */
    border: 2px dotted var(--pos-primary-color); /* 青色のドット枠 */
    color: var(--pos-primary-color);
    padding: 15px 20px;
    font-size: 19px;
    border-radius: 6px;
    margin-top: 0;
    margin-bottom: 20px;
}

.pos_selection_container .feature-num {
    font-size: 26px;
    font-weight: bold;
    color: var(--pos-primary-color);
    flex-shrink: 0;
}

.pos_selection_container .feature-txt {
    font-weight: bold;
}

/* 02, 04用：特徴リスト（箇条書き） */
.pos_selection_container .feature-list {
    padding-left: 24px;
    list-style-type: none; /* デフォルトの●を削除 */
}

/* リストアイテムの2カラムレイアウト化 */
.pos_selection_container .feature-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px; /* タイトルと説明文の隙間 */
    padding: 20px 0; /* 上下の余白を追加 */
}

/* リストアイテム間の区切り線（最後の項目には出さない） */
.pos_selection_container .feature-list li:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* 短い区切り線 */
    height: 1px;
    background-color: #e0e0e0;
}

/* ●を◆に変更する疑似要素 */
.pos_selection_container .feature-list li::before {
    content: "◆";
    position: absolute;
    left: -20px;
    top: 22px; /* ◆の位置を微調整(padding分下げる) */
    color: var(--pos-primary-color); /* 色をテーマカラーの青に設定 */
}

.pos_selection_container .feature-list-title {
    width: 35%; /* 小見出しの幅 */
    flex-shrink: 0;
}

.pos_selection_container .feature-list-desc {
    width: 65%; /* テキストの幅（多め） */
}

/* 小見出しのテキスト色（リンクと誤認させないよう通常色に戻す） */
.pos_selection_container .feature-list li strong {
    color: var(--pos-text-color);
}

/* 03セルフ運用専用の2カラムスタイル（画像左・テキスト右） */
.pos_selection_container .operation-container {
    margin-top: 20px;
}

.pos_selection_container .operation-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 0;
    position: relative;
}

/* 項目間のセンター区切り線（最後の項目には出さない） */
.pos_selection_container .operation-item:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: #e0e0e0;
}

/* 画像エリアの設定（幅40%・テキスト重視で画像はコンパクトに） */
.pos_selection_container .operation-img {
    width: 30%;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
}

/* テキストエリアの設定（幅60%） */
.pos_selection_container .operation-text {
    width: 60%;
}

.pos_selection_container .operation-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--pos-text-color);
}

.pos_selection_container .operation-desc {
    font-size: 16px;
    color: var(--pos-text-color);
    margin: 60px 0; /* PC時のみの余白 */
}

/* 共通お問い合わせボタンの改行防止 */
.content_pos_selection .commonContactBox .btn a {
    white-space: nowrap !important;
}

/* このページ限定で共通お問い合わせエリアを安全に装飾する上書き */
.content_pos_selection .commonContactBox {
    border-radius: 10px !important;
    overflow: hidden; /* 角丸からはみ出す中身を隠す設定 */
    margin-top: 60px !important; 
}

/* ==========================================================================
   レスポンシブ対応（スマホ表示用）
   ========================================================================== */
@media (max-width: 768px) {

    /* ▼ 新規追加：スマホ用 画面端に文字が詰まるのを防ぐ左右の余白設定 ▼ */
    .pos_selection_container .section_block {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    .content_pos_selection .commonContactBox {
        margin-left: 20px !important;
        margin-right: 20px !important;
        width: auto !important; /* 画面外へのはみ出しを防止 */
    }
    /* ▲ ここまで左右の余白設定 ▲ */

    /* ▼ スマホ用：目次のスタイル ▼ */
    .content_pos_selection .mokuji {
        padding: 15px 10px;
        margin: 25px 20px; /* ここでmarginが上書きされるため、PC用の50pxは無効化されます */
        background: #fff; 
        border: 1px solid #d8e6ea;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .content_pos_selection .mokuji-midashi {
        text-align: center;
        font-weight: bold;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #d8e6ea;
        color: #333;
        font-size: 15px;
    }
    .content_pos_selection .mokuji ol { 
        margin: 0; 
        padding: 0; 
        list-style: none; 
        counter-reset: mokuji-counter; 
    }
    .content_pos_selection .mokuji ol li {
        display: flex; 
        align-items: flex-start;
        margin-bottom: 12px; 
        font-size: 13px;
        line-height: 2em; 
        counter-increment: mokuji-counter; 
    }
    .content_pos_selection .mokuji ol li::before {
        content: counter(mokuji-counter) "."; 
        flex-shrink: 0;
        width: 20px; 
        font-weight: bold;
        color: #333;
    }
    .content_pos_selection .mokuji ol li:last-child { 
        margin-bottom: 0; 
    }
    .content_pos_selection .mokuji ol li a { 
        display: inline; 
        line-height: 2em; 
        padding: 0; 
    }
    /* ▲ ここまで目次のスタイル ▲ */

    /* ▼ スマホ用：背景エリアの余白をリセット ▼ */
    .pos_selection_container .points-section {
        padding: 20px; /* スマホでは余白を狭くして見やすく */
    }

    .pos_selection_container .section-title {
        font-size: 24px;
    }
    
    /* スマホ時は評価基準カードを1カラム（縦並び）にリセット */
    .pos_selection_container .point-card,
    .pos_selection_container .point-card.card-reverse {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .pos_selection_container .point-img,
    .pos_selection_container .point-card-text {
        width: 100%;
    }

    .pos_selection_container .product-header h2 {
        font-size: 26px;
    }
    .pos_selection_container .product-subtitle {
        font-size: 18px;
    }
    
    /* スマホ用の見出し調整 */
    .pos_selection_container .feature-box h4.feature-title {
        align-items: flex-start;
        padding: 15px;
        font-size: 18px;
    }
    .pos_selection_container .feature-num {
        font-size: 21px;
    }

    /* 02, 04用：スマホでは2カラムを解除して縦並びにする */
    .pos_selection_container .feature-list li {
        flex-direction: column;
        gap: 5px;
        padding: 15px 0;
    }
    .pos_selection_container .feature-list li::before {
        top: 17px;
    }
    .pos_selection_container .feature-list-title,
    .pos_selection_container .feature-list-desc {
        width: 100%;
    }

    /* 03セルフ運用スマホ対応（縦並びにし、画像を幅100%に拡大） */
    .pos_selection_container .operation-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    .pos_selection_container .operation-img,
    .pos_selection_container .operation-text {
        width: 100%;
    }
    .pos_selection_container .operation-desc {
        margin: 0; /* スマホでは余白をリセット */
    }

    /* スマホなどでボタンが画面外にはみ出ないための安全対策 */
    .content_pos_selection .commonContactBox .btn a {
        white-space: normal !important; 
        word-break: break-all;
    }
}