@media screen and (max-width: 639px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* 共通ヘッダー：見た目を大きく変えず、指で押せる範囲を48pxにする */
    #page_header {
        height: 48px;
    }

    #page_wrapper {
        padding-top: 48px;
    }

    #page_header #logo {
        top: 0;
        left: 12px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: 48px;
        padding: 0 5px;
    }

    #page_header #form_search_wrapper {
        top: 48px;
    }

    #hm_menu_opener,
    #hm_menu_closer,
    #hm_menu_search_opener,
    #hm_menu_search_closer {
        top: 0;
        box-sizing: border-box;
        width: 48px;
        height: 48px;
        font-size: 22px;
        line-height: 48px;
        text-align: center;
        touch-action: manipulation;
    }

    #hm_menu_opener,
    #hm_menu_closer {
        right: 0;
    }

    #hm_menu_search_opener,
    #hm_menu_search_closer {
        right: 48px;
    }

    #hm_menu_wrapper {
        top: 48px;
    }

    #page_sidebar_pulltab {
        top: 53px;
    }

    /* 横メニュー：主要カテゴリとカテゴリ階層を指で押しやすくする */
    #page_sidebar a.cp_btn {
        display: flex;
        box-sizing: border-box;
        width: 100px;
        min-height: 44px;
        margin: 8px auto;
        padding: 7px 6px;
        align-items: center;
        justify-content: center;
        line-height: 1.35;
        touch-action: manipulation;
    }

    #page_sidebar .category_level0,
    #page_sidebar .category_level1,
    #page_sidebar .category_level2,
    #page_sidebar .category_level3,
    #page_sidebar .category_level4 {
        height: auto;
        min-height: 44px;
    }

    #page_sidebar .category_level0 a,
    #page_sidebar .category_level1 a,
    #page_sidebar .category_level2 a,
    #page_sidebar .category_level3 a,
    #page_sidebar .category_level4 a {
        display: flex;
        box-sizing: border-box;
        min-height: 44px;
        padding-top: 8px;
        padding-bottom: 8px;
        align-items: center;
        line-height: 1.35;
        touch-action: manipulation;
    }

    /* 検索結果：並び替えを押しやすくする */
    .content_sortorder_wrapper {
        line-height: 44px;
    }

    select.content_search_order {
        box-sizing: border-box;
        min-height: 44px;
        margin-left: 5px;
        padding: 8px 34px 8px 12px;
        border: 1px solid #9fcdd0;
        border-radius: 8px;
        background-color: #fff;
        color: #33494a;
        font-size: 16px;
    }

    /* 検索結果：画像と名前をまとめたカード全体のタップ感を明確にする */
    .search_material > a {
        display: block;
        border-radius: 7px;
        touch-action: manipulation;
        transition: opacity .15s ease, transform .15s ease;
    }

    .search_material > a:active {
        opacity: .72;
        transform: scale(.985);
    }

    /* カテゴリ一覧：小さいカテゴリチップを読みやすく、押しやすくする */
    a.category_navigation_link {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 14px;
        line-height: 20px;
        touch-action: manipulation;
    }

    /* 素材セット：個別画像名をスマホでも読みやすくする */
    .material_set_preview_caption {
        margin-bottom: 12px;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    /* お問い合わせ：iPhoneで拡大されない16pxと、十分な入力高を確保 */
    #contact_name,
    #contact_email,
    #contact_message {
        box-sizing: border-box;
        width: 100%;
        border: 1px solid #9fcdd0;
        border-radius: 8px;
        background: #fff;
        color: #33494a;
        font-size: 16px;
        line-height: 1.5;
    }

    #contact_name,
    #contact_email {
        min-height: 48px;
        padding: 11px 13px;
    }

    #contact_message {
        min-height: 170px;
        padding: 12px 13px;
        resize: vertical;
    }

    /* パンくず・フッターも文字の周囲までタップできるようにする */
    .content_breadcrumbs_wrapper a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        touch-action: manipulation;
    }

    #page_footer_menu_wrapper #page_footer_menu .page_footer_menu_item {
        min-height: 44px;
        line-height: 44px;
    }

    #page_footer_menu_wrapper #page_footer_menu .page_footer_menu_item a {
        display: block;
        min-height: 44px;
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid rgba(66, 148, 160, 0.55);
        outline-offset: 2px;
    }
}
