/* 2025年度対応スタイル */

/* 合格者の声ページ レスポンシブ対応 - タブレット・スマホ閲覧時 */
@media screen and (max-width: 948px) {
    /* コンテンツボディの調整 */
    #contents-body {
        width: unset !important;
    }
    
    #contents div#contents-body {
        padding: 20px 0px 40px;
    }
    
    /* ボイスセクションの調整 */
    #voice {
        width: unset !important;
        background: none !important;
        background-image: none !important;
        background-repeat: no-repeat !important;
    }
    
    /* ボイスセクション内の画像調整 */
    #voice h3 img {
        width: 100% !important;
        height: auto !important;
    }
    
    /* voice h3の下マージンを0に */
    #voice h3 {
        margin-bottom: 0 !important;
    }
    
    /* examineセクションの調整 */
    #examine {
        width: 100% !important;
    }
    
    /* examine内の画像要素を縦並びに */
    #examine-img1, #examine-img2 {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    
    /* examine-img1の下マージンを0に */
    #examine-img1 {
        margin-bottom: 0 !important;
    }
    
    /* examine内の画像を中央揃えに */
    #examine-img1 img, #examine-img2 img {
        max-width: 489px !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }
    
    /* examine-img1画像の上マージン調整（タブレット時） */
    #examine-img1 img {
        margin-top: 30px;
    }
    
    /* examine内のテキストを中央揃えコンテナ内で左揃えに */
    #examine-img1 p:not(:first-child), #examine-img2 p:not(:first-child) {
        max-width: 489px !important;
        margin: 0 auto;
        text-align: left;
    }
    
    /* examine-img1内のp要素の左マージンを0に */
    #examine-img1 p {
        margin-left: 0 !important;
    }
    
    /* 選択されたテキストのスタイル調整 */
    #examine-img1 p:nth-child(2) {
        max-width: 489px;
        margin: 10px auto 0 auto !important;
        text-align: left;
        padding: 0;
    }
    
    /* スマホ表示時に改行を無効化 */
    #examine-img1 p:nth-child(2) br {
        display: none;
    }
    
    /* スマホ専用：examine-img1画像の上マージンを15pxに */
    #examine-img1 img {
        margin-top: 15px !important;
    }
    
    /* キャッチ画像の調整 */
    #catch img {
        width: 100% !important;
        height: auto !important;
    }
    
    /* メッセージエリアの縦並び対応 */
    #message-area1, #message-area2, #message-area3, #message-area4, #message-area5 {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    #message-area1 .message-table,
    #message-area2 .message-table,
    #message-area3 .message-table,
    #message-area4 .message-table,
    #message-area5 .message-table {
        width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
        background-size: 104% auto !important;
    }
    
    #message-area1 .message-tr,
    #message-area2 .message-tr,
    #message-area3 .message-tr,
    #message-area4 .message-tr,
    #message-area5 .message-tr {
        display: block !important;
        width: 100% !important;
    }
    
    #message-area1 .message-td,
    #message-area2 .message-td,
    #message-area3 .message-td,
    #message-area4 .message-td,
    #message-area5 .message-td {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    
    /* メッセージタイトルの調整 */
    .message-title {
        width: 100% !important;
        background-repeat: no-repeat, no-repeat, repeat-x !important;
        background-image: url('../img/message-title_sp_r.jpg'), url('../img/message-title_sp_l.jpg'), url('../img/message-title_sp_c.jpg') !important;
        background-position: right 4% center, left center, 50% center !important;
        background-size: auto auto, auto auto, 50% 60px !important;
    }
    
    /* パーソン要素の調整 */
    .person {
        width: 92% !important;
    }
    
    /* ガード要素の調整 */
    .guard {
        width: 92% !important;
    }
    
    /* メッセージ行の背景画像調整 */
    .message-tr {
        background-repeat: no-repeat !important;
        background-size: 104% auto !important;
        background-image: none !important;
    }
    
    /* message-area5のみ背景画像を表示 */
    #message-area5 .message-tr {
        background-image: url('../img/message-tr.gif') !important;
        background-repeat: repeat-x !important;
        background-position: 9px bottom !important;
    }
    
    /* message-area5の背景画像とパディングを無効化 */
    #message-area5 {
        background: none !important;
        background-image: none !important;
        padding-bottom: 0px !important;
    }
    
    /* 空白用の段落要素を非表示 */
    .empty-space {
        display: none !important;
    }
}

/* スマホ専用の追加調整 */
@media screen and (max-width: 600px) {
    /* コンテンツボディの上のパディングを0に */
    #contents div#contents-body {
        padding-top: 0 !important;
    }
    
    /* キャッチ要素のマージンボトムを0に */
    #catch {
        margin-bottom: 0 !important;
    }
    
    /* キャッチ画像を非表示にし、テキストを表示 */
    #catch img {
        display: none !important;
    }
    
    #catch-text {
        display: block;
        font-size: 120% !important;
        font-family: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
        text-align: left;
        margin: 20px 0;
        background-image: url('../img/catch_sp.jpg');
        background-position: top right;
        background-repeat: no-repeat;
        background-size: 100px 50px;
    }
    
    #catch-text .highlight {
        font-size: 130%;
        color: #ff2e67;
        font-weight: bold;
    }
    
    /* voice背景画像を無効化 */
    #voice {
        background: none !important;
        background-image: none !important;
    }
    
    /* voice-hd画像をスマホ専用画像に切り替え */
    #voice h3 img[src*="voice-hd.jpg"] {
        content: url('../img/voice-hd_sp.jpg');
    }
    
    /* voice説明文をスマホ閲覧時のみ表示 */
    .voice-description {
        display: block;
        margin-top: 5px;
        font-size: 12px;
    }
    
    /* メッセージテーブルの背景画像調整（スマホ専用） */
    #message-area1 .message-table,
    #message-area2 .message-table,
    #message-area3 .message-table,
    #message-area4 .message-table,
    #message-area5 .message-table {
        background-size: 104% auto !important;
    }
}

/* タブレット・PC閲覧時はテキストを非表示 */
@media screen and (min-width: 601px) {
    #catch-text {
        display: none;
    }
    
    /* voice説明文をタブレット・PC閲覧時は非表示 */
    .voice-description {
        display: none;
    }
}
