/* SP用・・・・・・・・・・・・・・・・・・ */

@media (max-width: 550px) {

    /* index.htmlに関わる */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
        font-size: 19px;
    }

    /* SPではカーソル合わせると半透明を解除*/
    a:hover {
        opacity: 1;
    }

    /* PC用グローバルナビを非表示にしてヘッダーの高さをSPヘッダーに揃える */
    .header__nav {
        display: none;
    }


    .header__logo {
        display: none;
    }

    /* スマホではサイドのお問い合わせバナーを非表示 */
    #sidelink {
        display: none;
    }

    /* sp時のみ固定ヘッダーの高さ分スライダー画像の上に隙間を */
    .header-space {
        display: block;
        height: 3.4rem;
        background-color: rgb(189, 189, 189);
    }

    /* SP用のみの固定ヘッダー部分 */
    #fixed_header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        margin: 0;
        padding: 0;
        background-color: white;
        width: 100%;
        height: 3.5rem;
        z-index: 10;
        box-shadow: 0 5px 5px -1px rgba(0, 0, 0, 0.2);
        align-items: center;
    }

    #fixed_header,
    #fixed_footer {
        width: 100%;
        /* max-width:100vw; */
        margin: 0 auto;
    }

    #logo img {
        width: 55%;
        display: flex;
        height: auto;
        margin-left: 25px;
        margin-top: 10px;
    }

    /* ハンバーガーメニュー */
    .menu-icon {
        display: flex;
        font-size: xx-large;
        cursor: pointer;
        margin-left: auto;
        margin-right: 10%;
        height: fit-content;
        width: 8px;
        margin-top: -40px;
    }

    .menu-icon.open {
        content: "✕";
        /* ☓マークのユニコード */
        font-size: 1rem;
    }

    #hamburger-menu {
        display: none;
        position: absolute;
        top: 8vh;
        right: 0;
        left: 50vw;
        background-color: rgba(0, 0, 0, 0.795);
        text-align: left;
        z-index: 10;
    }

    #hamburger-menu li {
        padding: 6% 0;
        min-width: 10rem;
        list-style: none;
        border-bottom: 1px solid #dadada;
        /* ハンバーガーメニューのリスト上下幅 */
        padding: 25% 0;
    }

    #hamburger-menu li:last-child {
        border-bottom: none;
    }

    #hamburger-menu a {
        margin-left: 0;
        padding: 20% auto 20% auto;
        color: white;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: bold;
        display: block;
    }

    /* PCスライドショーを非表示 */
    #MainImage {
        display: none;
    }

    #MainImage-sp {
        display: block;
    }

    /* SP時のコンテンツの幅を統一 */
    .wrapper {
        width: 80%;
        /* 画面幅に合わせて調整 */
        max-width: none;
    }

    .main-contents {
        margin-top: 5vh;
    }

    /* ページタイトル */
    #page-title {
        font-size: 1.5rem;
        margin-top: 5vh;
        margin-bottom: 2vh;
        font-weight: 500;
    }

    h2,
    .company h2 {
        font-size: 2rem;
    }

    /* トップページNEWS部分 */
    .info {
        height: fit-content;
        margin: 0 auto;
        white-space: normal;
    }

    #Home .info h2 {
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
    }

    #Home .info .top-post {
        width: 85%;
    }

    /* ▼topページのみに適用－ニュースタイトル */
    #Home #top-from-news1,
    #Home #top-from-news2 {
        display: block;
        line-height: 1.15rem;
        padding-left: 0.3rem;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #Home p.news-date {

        width: auto;
        display: inline;
    }

    #Home .news-lead {
        color: rgb(95, 95, 95);
    }


    #Home .news-lead {
        display: inline;
        margin: 0;
        padding: 0;
        white-space: normal;
        /* デフォルトの折り返し動作に戻す */
        overflow: visible;
        /* はみ出た部分を隠さず表示する */
    }

    /* トップページのニュース見出しからジャンプしたニュース記事の上部をヘッダー分空ける */
    #top-from-news1,
    #top-from-news2 {
        scroll-margin-top: 5rem;
    }

    /* トップページニュース見出しのフォントサイズなど */
    #Home .news-date,
    #Home .news-title {
        font-size: 0.8rem;
        margin: 0 auto 1rem auto;
        font-weight: 300;
        text-align: justify;
    }

    #Home .news-description {
        display: none;
    }


    /* メインコピー */
    #Home .main-copy {
        margin-top: 7rem;
        height: auto;
        max-width: 100%;

    }

    .main-copy .pc {
        display: none;
    }

    #Home .main-copy .sp {
        display: block;
        letter-spacing: 0.1rem;
        font-size: 0.95rem;
        font-weight: 300;
        line-height: 2.1rem;
        width: 97%;
        padding: 0;
        text-align: justify;
    }

    /* 背景和柄 */
    .background-img1,
    .background-img2 {
        max-width: 80%;
        left: 10%;
    }

    /* 背景和柄1 */
    .main-copy .background-img1 {
        top: -5%;
    }

    /* 背景和柄2 */
    .products .background-img2 {
        max-width: 80%;
        top: 30%;
        left: 10%;
    }

    #Home h1 {
        font-size: 1.9rem;
        font-weight: 500;
        line-height: 2.5rem;
        margin: 0 0 2vh 0;
        padding: 0;
        letter-spacing: 0.5rem;
        text-align: center;
    }

    #Home .main-copy h2 {
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    #Home .main-copy h2 br {
        display: none;
    }

    .products {
        margin-top: 6rem;
    }

    .products h2 {
        display: none;
    }

    .products p {
        display: inline;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 0;
    }

    .backpack {
        margin-top: 3rem;
    }

    .products a {
        padding: 0;
        margin: 0 auto;
    }

    .products img {
        top: 3rem;
        margin: 0 auto;
        height: auto;

    }

    /* トップページブランドバナー部分 */
    .brand h2 {
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .brand p {
        font-size: 0.8rem;
    }

    .bland-bannar {
        height: 10rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0;
    }

    .bland-bannar img {
        min-width: 100%;
        padding: 0;
    }

    .brand {
        margin-top: 10rem;
        margin-bottom: 2rem;
    }

    /* フッター */
    .footer .global-menu {
        display: none;
    }

    .footer {
        margin: 0 auto;
        height: 25rem;
    }

    .company-logo {
        display: flex;
        flex-direction: column;
        /* 縦方向に並べる */
        align-items: center;
        /* 中央揃え（オプション） */
        text-align: center;
        /* テキストを中央揃え（オプション） */
    }

    .footer img {
        padding-top: 1rem;
        margin: 0 auto;
        width: 80%;
        display: block;
    }

    .footer__adress {
        display: block;
        font-size: 0.75rem;
        font-weight: 200;
        letter-spacing: 0.02rem;
        margin: 2rem auto 0.2rem;
        padding: 0;
        height: 2rem;
        line-height: 1rem;
    }

    .sp-br {
        display: block;
    }

    .contact-info {
        line-height: 2rem;
        font-size: 0.9rem;
        font-weight: 400;
        letter-spacing: 0.03rem;
    }

    .footer__copyright {
        text-align: center;
        font-size: 0.5rem;
        padding: 0;
        margin-top: 0;
        width: 100%;
    }

    .sns-pc {
        display: none;
    }

    .sns-sp {
        display: flex;
        margin: 0 auto;
        width: 20vw;
        height: fit-content;
        gap: 15px;

    }

    .sns-sp a img {
        max-width: 7vw;
        width: 100%;
    }

    /* SP用青い固定フッター */
    #fixed_footer {
        display: block;
        height: 5rem;
        background-color: #154060;
        bottom: 0;
        position: fixed !important;
        color: white;
        margin: 0 auto;
        z-index: 100;
        letter-spacing: 0.1px;
    }

    #fixed_footer a {
        text-decoration: none;
        color: white;
        text-align: left;
    }

    #fixed_footerlink {
        margin: 0 auto;
        display: flex;
        width: 62vw;
        padding-top: 1vh;
    }

    #fixed_footer .fixed-inquiry {
        font-size: 1.3rem;
        font-weight: 600;
    }

    #fixed_footer p {
        font-size: 0.7rem;
        font-weight: 300;
    }

    #fixed_footer .fixed-mail {
        max-width: 15vw;
        width: 100%;
        height: auto;
        margin: 0 5vw 0;
        padding: 0;
    }

    /* 新着情報ページのみに適用 */
    #News .main-contents {
        width: 100%;
        padding: 0;
    }

    #News .news-title {
        display: block;
        font-size: 0.9rem;
        font-weight: 500;
        text-align: left;
        line-height: 1.3rem;
        text-align: justify;
    }

    #News .news-title br {
        display: none;
    }

    #News .news-date {
        color: rgb(100, 100, 100);
        margin-right: 20px;
    }

    #News .news-description {
        font-size: 0.85rem;
        font-weight: 300;
        line-height: 1.35rem;
        letter-spacing: 0.1rem;
        text-align: justify;
    }

    /* ニュース記事の写真のキャプション */
    #News figcaption {
        /* text-align: center; */
        font-size: 0.75rem;
        margin-top: -1.5rem;
        margin-bottom: 1rem;
        /* padding: 0; */
    }

    #News .news1 .news-img,
    #News .news2 .news-img,
    #News .news3 .news-img,
    #News .news4 .news-img {
        display: block;
        height: auto;

    }

    #News .news4 img {
        width: 100%;

    }


    #News .news3 .news-img {
        display: block;
        height: auto;
        max-width: 700px;
        width: 100%;
    }

    #News .news2 .news-img-left,
    #News .news2 .news-img-right {
        width: 100%;
        /* 左側の幅を50%に設定 */
    }

    #News .news2 .news-img-left img {
        height: 17rem;
        margin-top: 0;
    }



    #News .news-img img {
        margin-bottom: 30px;
    }

    #News .space1 {
        height: 100px;
        width: 100%;
        color: white;
    }

    /* 製品案内ページのみに適用 */
    #Products .wrapper {
        width: 95%;
        margin: 0 auto;
        padding: 0;
    }


    .category {
        font-size: 1rem;
        font-family: 500;
    }

    #Products .main-contents p {
        font-size: 0.7rem;
    }

    #Products .page-title {
        margin-bottom: 1vh;
        width: 100%;
    }


    #セット div,
    #単品 div,
    #防災大賞 div {
        flex: 0 0 50%;
        max-width: 100%;
        font-size: 0.8rem;
    }

    #セット div img,
    #単品 div img,
    #防災大賞 div img {
        width: 95%;
    }

    #Products .product p {
        letter-spacing: 0.5px;
    }

    #Products #prize {
        scroll-margin-top: 6rem;
        /* 固定ヘッダーの高さに合わせる */
    }

    /* 製品詳細のみに適用 /////////////////////////////////*/
    #Product .wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #Product .main-contents {
        display: block;
        margin-top: 0;
    }

    #Product #prev,
    #Product #next {
        /* top: 45%; */
        opacity: 0
    }

    #Product .product-details {
        width: 80%;
        margin: 5vh auto;
    }

    div .product-details hr {
        display: none;
    }

    div .thumbnail-container {
        margin-top: 5px;
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }

    /* 製品詳細ページギャラリー */
    .gallery {
        position: relative;
        max-width: 530px;
        /* 例: 固定幅をパーセンテージに変更 */
        width: 100%;
        margin-right: 70px;
        /* マージンも相対的に変更 */
    }

    .gallery img {
        box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.027);
        border: none;
    }

    .main-image img {
        width: 100%;
        height: auto;
    }

    .thumbnail {
        width: 100%;
        cursor: pointer;
    }

    .thumbnail:hover {
        transform: scale(1.1);
    }

    #prev,
    #next {
        position: absolute;
        top: 35%;
        background-color: #000;
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 25px;
        padding: 8px;
        opacity: 0.5;
    }

    #prev {
        left: 0;
    }

    #next {
        right: 0;
    }


    /* 製品詳細ページ文字情報・・ */
    div .product-details {
        max-width: 400px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    div .product-details hr {
        height: 2.1px;
        padding: 0;
        margin: 0;
        background-color: rgb(0, 0, 0);
    }

    /* 品番 */
    .number {
        margin-top: 25px;
        width: fit-content;
        padding: 5px 15px 5px 15px;
        background-color: rgb(0, 0, 0);
        font-size: 0.9rem;
        font-weight: 300;
        color: white;
        letter-spacing: 0.1rem;
        margin-bottom: 15px;
    }

    /* 製品名 */
    .main-contents h2 {
        font-size: 3.5rem;
        font-weight: 600;
        letter-spacing: 0.2rem;
        font-size: 24px;
        margin-bottom: 5px;
    }

    /* スマホ時のみ現れる長い商品名の改行 */
    .productname-br {
        display: block;
    }

    /* 価格 */
    .price {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
        padding: 10px 0 10px 0;
        display: flex;
        margin-bottom: 10px;
        align-items: center;
        color: rgb(0, 0, 0);
    }

    .price-num {
        padding-left: 5px;
        font-size: 1.2rem;
        font-weight: 500;
    }

    /* 大項目名 */
    #Product h3 {
        height: auto;
        font-weight: 500;
        display: block;
        align-items: center;
        text-align: center;
        padding: 10px 15px 10px 15px;
    }

    .product-details .description {
        font-size: 1rem;
        padding: 10px;
        line-height: 2rem;
        margin-bottom: 40px;
        font-weight: 300;
    }

    .product-details table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .product-details th,
    .product-details td {
        font-size: 0.9rem;
        text-align: left;
        padding: 8px;

    }

    .product-details th {
        width: 25%;
        background-color: rgb(0, 0, 0);
        font-weight: 500;
        color: white;
        text-align: center;
        border-bottom: 1.5px solid #ffffff;
        border-top: 1.5px solid rgb(0, 0, 0);
    }

    .product-details th br {
        display: none;
    }

    .product-details table tr:last-child th {
        border-bottom: 1.5px solid rgb(0, 0, 0);

    }

    .product-details td {
        line-height: 1.5rem;
        font-weight: 300;
        font-size: 0.8rem;
        padding: 15px;
        border: 1.5px solid rgb(0, 0, 0);
    }

    #Product .price {
        font-size: 0.9rem;
        letter-spacing: 0;
    }

    .product-details th br {
        display: block;
    }


    /*会社案内,お問い合わせのテーブルに適用 ・・・・・・・・・ */
    #Company table {

        border-right: none;
    }

    #Company table tr {
        display: flex;
        flex-direction: column;
        /* border-bottom: 1px solid rgb(0,0,0); */
        margin-bottom: 5vh;
        height: auto;
    }

    #Company table th,
    #Company table td {
        display: block;
        width: 100%;
        text-align: center;
        border: none;
    }

    #Company table th {
        display: flex;
        /* Flexboxを有効化 */
        justify-content: center;
        align-items: center;
        /* 垂直方向の中央揃え */
        text-align: center;
        font-weight: bold;
        height: 6vh;
        background-color: rgb(0, 0, 0);
        color: white;
        padding: 0;
        margin: 0;
    }

    #Company table td {
        margin-top: 3vh;
        margin-bottom: 10px;
        padding-left: 0;
        font-size: 0.9rem;
        font-weight: 300;
        height: auto;
    }

    #Company table .pc-only {
        display: none;
    }

    #Company table {
        width: 95%;
        border-bottom: solid 2px rgb(0, 0, 0);
    }

    #Company table td .sp-br {
        display: block;
    }

    #Company .top-message {
        display: block;
        width: 100%;
    }

    #Company .top-message-wrap {
        margin: 80px 0;
        height: autot;
        padding: 0;
    }

    .top-message-lead br {
        display: block;
    }

    #page-title2 {
        font-weight: 500;
    }

    .top-message-lead {
        font-size: 1.1rem;
        text-align: center;
        width: fit-content;
        margin: 3vh auto 4vh;
        /* padding: 1vh; */
    }

    .top-message-description {
        font-size: 0.9rem;
    }

    .top-message-text {
        max-width: 100%;
        width: 100%;
        padding: 0;
        text-align: justify;
    }

    .top-img-wrap {
        max-width: 100%;
        width: 100%;
        padding: 0;
        height: fit-content;
        margin: 2vh auto;
    }

    .top-img-wrap img {
        width: 90%;
        /* 画像のスタイル */
        padding: 2rem;
        margin-bottom: -4rem;
    }


    .top-img-wrap p {

        width: 100%;
        padding: 0;
    }



    /*お問い合わせのみに適用 ////////////////////////////// */

    .contact-mail-description p {
        font-size: 0.9rem;
        margin-top: 2rem;
    }

    /* テーブル全体をブロック表示に */
    table.contact-mail-form-body {
        display: block;
        width: 100%;
    }

    /* 各行をブロック表示にし、マージンを追加 */
    table.contact-mail-form-body tr {
        display: block;
        /* 行間のスペースを調整 */
    }

    /* thとtdをブロック表示にし、幅を100%に設定 */
    table.contact-mail-form-body th,
    table.contact-mail-form-body td {
        display: block;
        width: 100%;
        /* テキストを左揃えに（必要に応じて変更） */
    }

    table.contact-mail-form-body td {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* thのスタイルを調整 */
    table.contact-mail-form-body th {
        display: flex;
        background-color: #f9f9f9;
        /* 背景をグレーに */
        color: rgb(0, 0, 0);
        box-sizing: border-box;
        /* パディングを含めて幅を計算 */
        margin: 0 auto;
        text-align: center;
        align-items: center;
        justify-content: center;
        height: 7vh;
    }

    /* tdのスタイルを調整 */
    table.contact-mail-form-body td {
        box-sizing: border-box;
        /* パディングを含めて幅を計算 */
        background-color: white;
    }

    #Contact label {
        font-size: 1rem;
        color: rgb(0, 0, 0);
        font-weight: bold;
    }

    .contact-mail-form-body input[type=text],
    .contact-mail-form-body input[type=email],
    .contact-mail-form-body input[type=tel],
    .contact-mail-form-body input[type=number],
    .contact-mail-form-body textarea {
        max-width: 90%;
    }

    /* 性別の行のスタイル調整 */
    #RowMessageSex .col-input {
        display: flex;
        /* 横並びにするためにFlexboxを使用 */
        align-items: center;
        /* 垂直方向の中央揃え */
        flex-wrap: wrap;
        /* 必要に応じて折り返し */
    }

    #RowMessageSex .col-input input,
    #RowMessageSex .col-input label {
        margin-right: 10px;
        /* 要素間の余白を調整 */
    }

    /* お問い合わせ項目の行のスタイル調整 */
    #RowMessageCategory .col-input {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding-left: 15px;
    }

    #RowMessageRoot br {
        display: inline;
    }

    #RowMessageCategory .col-input input,
    #RowMessageCategory .col-input label {
        margin-right: 10px;
        /* 要素間の余白を調整 */
    }

    #RowMessageSex td label,
    #RowMessageCategory td label {
        font-size: 1rem;
        font-weight: 300;
    }

    #RowMessageCategory .col-input input[type="checkbox"] {
        margin: 0;
        margin-right: 5px;
    }

    /* PCではお問い合わせの２項目の改行を表示*/
    #RowMessageCategory .col-input br {
        display: block;
    }

    /* ラジオボタンのスタイル調整 */
    #RowMessageSex .col-input input[type="radio"] {
        margin-left: 12vw;
        margin-right: 5px;
        /* ラジオボタンとラベルの間隔を調整 */
    }

    /* 必要に応じてthやtrのパディングとマージンをリセット */
    #RowMessageSex th,
    #RowMessageSex tr {
        padding: 0;
        margin: 0 auto;
    }

    /* 住所 */
    #MailMessageAddress1 {
        font-size: 1rem;
    }

    /* 画像の文字を入力する箇所 */
    #MailMessageRoot {
        font-size: 1rem;
    }

    /* リセットボタンとサブミットボタンのテキスト色を黒に設定 */
    .contact-mail-form-submit input[type="reset"],
    .contact-mail-form-submit input[type="submit"] {
        color: rgb(0, 0, 0);
    }

    /* 入力内容確認ぺージのみ適用 */
    #Confirm td.col-input {
        text-align: center;
    }

    /* メール送信成功ページのみ適用 */

    #Mail-success .contact-wagara {
        top: 20%;
    }

    #Mail-success #page-title {
        margin: 8rem auto 0 auto;
        font-size: 1.5rem;
        font-weight: 500;
    }

}