.frontpage-top {
    padding-top: 18rem;
}

.swiper-wrapper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    /* このクラス内には何も指定をしないこと  */
}

.banner-link {
    display: block;
    width: auto;
    height: auto;
    transition: 0.6s;
    -webkit-transition: 0.6s;
    -moz-transition: 0.6s;
    -ms-transition: 0.6s;
    -o-transition: 0.6s;
}

.banner-link:hover {
    opacity: 0.8;
}

.banner-image {
    width: 100% !important;
    height: auto !important;
}

/* タブレットサイズでの画像サイズ調整 */
@media screen and (max-width: 1880px) {
    .banner-link {
        width: 100%;
        height: auto; /* タブレットでの固定高さ */
    }
}

/* ページネーションのスタイル調整 */

.swiper-pagination {
    display: none; /* デフォルトで非表示 */
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #8e0a01;
}

/* 1024px以上の場合のみページネーションを表示 */
@media screen and (min-width: 1024px) {
    .swiper-pagination {
        display: block;
    }
}

.index_menu {
    display: flex;
}
.index_menu div {
    width: calc(100% / 3);
    list-style: none;
    margin: 1px 1px 0px 1px;
}

/* ヘッダー基本設定 */
header {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    background-color: #fff;
    z-index: 100;
    box-shadow: 0 1rem 2rem -1rem #c0c0c0;
}

/* お知らせバー */
.header-notice {
    background-color: #fff;
    font-size: 12px;
}

.header-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5em;
}

.header-notice-highlight {
    color: #cc0000;
}

.header-notice-text {
    margin-bottom: 0;
}

.header-notice-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-notice-links a {
    color: #333;
    text-decoration: none;
}

.header-notice-links a:hover {
    color: #cc0000;
}

.header-notice-separator {
    color: #333;
}

/* メインヘッダー */
.header-main {
    border-bottom: 1px solid #e0e0e0;
}

.header-main-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

/* ロゴ */
.header-logo {
    margin: 10px;
    width: 150px;
}

.header-logo img {
    width: 150px;
    height: 78px;
    aspect-ratio: 211 / 110;
}

/* 検索フォーム */
.header-search {
    flex-grow: 1;
    max-width: 800px;
}

.header-search-inner {
    display: flex;
    height: 40px;
    border: 2px solid #cc0000;
    border-radius: 4px;
    overflow: hidden;
}

.header-search-category {
    width: 16em;
    border: none;
    outline: none;
    border-right: 1px solid #e0e0e0;
    padding: 0 10px;
    background: #fff;
    appearance: none; /* デフォルトの矢印を非表示 */
    background-image: url("../images/header-images/arrow-icon.svg");
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: right 10px center; /* 位置を調整 */
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.header-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0 15px;
}

.header-search-button {
    width: 60px !important;
    background: #cc0000 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ユーティリティメニュー */
.header-utility {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.header-utility li {
    display: contents;
}
.header-utility img {
    height: 33px;
    width: 30px;
}

.header-utility-item {
    text-decoration: none;
    color: #333;
    font-size: 12px;
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    gap: 0.5rem;
    place-content: center;
    place-items: center;
}

.header-utility-item:hover {
    color: #cc0000;
}
.header-utility-item span {
    font-size: 0.9em;
}
/* ナビゲーション */
.header-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.header-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    font-weight: bold;
    font-size: 1.5rem;
}

.header-nav-item img {
    height: revert-layer !important;
    width: 30px;
}

.header-nav-item:hover {
    color: #cc0000;
}

.header-nav-arrow {
    font-size: 12px;
    margin-left: 4px;
}

/* ドロップダウンメニュー */
.header-nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    background-color: #cc0000;
    color: white;
}

.dropdown-menu li:first-child a {
    border-radius: 4px 4px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 4px 4px;
}

.dropdown-menu li a:hover {
    background-color: #e60012;
}

#menu-test_gnav {
    margin: 0;
    list-style: none;
}

/* スマートフォン用ヘッダーのスタイル （~480px） */

/* 1段目 */
.sp-header {
    width: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.sp-header-top {
    background: #fff;
    padding: 5px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.sp-fee-notice {
    margin: 0;
    font-size: 10px;
    text-align: center;
}

/* 2段目 */
.sp-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.sp-logo {
    margin: 0;
}

.sp-logo img {
    width: 100px;
    height: auto;
    vertical-align: middle;
}

.sp-header-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sp-header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.sp-header-icon img {
    width: 30px;
    height: 30px;
}

.sp-header-icon span {
    font-size: 10px;
    margin-top: 5px;
}

.sp-menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #333;
}

/* サイドメニュー */
.sp-side-menu {
    position: fixed;
    top: 0;
    right: -70%; /* 初期状態では画面外に配置 */
    width: 70%;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    transition: right 0.3s ease-in-out;
}

.sp-side-menu.active {
    right: 0; /* メニューを表示 */
}

.sp-side-menu-header {
    background-color: #bb0611;
    padding: 15px;
}

.sp-side-menu-header p {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.sp-side-menu-search {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.search-input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    -webkit-transform: translateY(-50%) !important;
    -moz-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
    -o-transform: translateY(-50%) !important;
}

.sp-side-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-side-menu-nav li {
    border-bottom: 1px solid #e0e0e0;
}

.sp-side-menu-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.arrow {
    color: #999;
}

/* 背景オーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.menu-overlay.active {
    display: block;
}

/* メディアクエリ */

/* タブレット用のヘッダースタイル (481px ~ 1024px) */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    /* メインヘッダーのコンテナ調整 */
    .container {
        padding: 0 10px;
    }

    .notice-first-line {
        display: block;
    }

    /* ロゴサイズの調整 */
    .header-logo img {
        height: 60px;
        width: 120px;
    }

    /* 検索フォームの調整 */
    .header-search {
        max-width: 500px;
        margin: 0 10px;
    }

    /* カテゴリ選択の調整 */
    .header-search-category {
        width: 120px;
        height: 40px;
    }

    /* ユーティリティメニューの調整 */
    .header-utility {
        gap: 10px;
    }

    .header-utility img {
        height: 30px;
        width: 30px;
    }

    .header-utility-item span {
        font-size: 10px;
    }

    /* ナビゲーションの調整 */
    .header-nav-list {
        gap: 20px;
    }

    .header-nav-item {
        font-size: 14px;
    }

    /* お知らせバーのテキスト調整 */
    .header-notice-text {
        font-size: 11px;
    }

    .header-notice-links {
        font-size: 11px;
        gap: 5px;
    }
}

@media screen and (min-width: 481px) {
    .sp-header {
        display: none;
    }
}

@media screen and (max-width: 481px) {
    .header-main,
    .header-nav,
    .header-notice {
        display: none;
    }

    .frontpage-top {
        padding-top: 12rem;
    }
}

/* タブレットサイズのメニュー (481px ~ 740px) */
@media screen and (min-width: 481px) and (max-width: 740px) {
    /* 既存のヘッダー要素を非表示 */
    .header-utility,
    .header-nav {
        display: none;
    }

    /* タブレット用メニューバーの表示 */
    .tablet-menu-bar {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
    }

    .tablet-menu-button {
        display: flex;
        align-items: center;
        border: none;
        background: none;
        padding: 4px;
        cursor: pointer;
        color: #333;
    }

    .tablet-menu-button img {
        width: 20px;
        height: 20px;
        padding-left: 10px;
    }

    /* タブレット用メニュー一覧 */
    .tablet-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 35%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .tablet-menu.active {
        display: block;
    }

    .tablet-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tablet-menu-list li {
        border-bottom: 1px solid #e0e0e0;
    }

    .tablet-menu-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 10px;
        text-decoration: none;
        color: #333;
        font-size: 12px;
    }

    .tablet-menu-list a:hover {
        background-color: #f5f5f5;
    }
}

/* 740px以下では非表示 */
@media screen and (max-width: 480px) {
    .tablet-menu-bar {
        display: none;
    }
}

/* 741px以上では非表示 */
@media screen and (min-width: 741px) {
    .tablet-menu-bar {
        display: none;
    }
}

/** トップページ以外の下層ページ **/
#side-fixed {
    background-color: #eeeeee;
    padding: 15px;
    border: 0 !important;
}

/* 共通のセクションスタイル */
#side .widget {
    margin-bottom: 20px;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* 見出し共通スタイル */
#side h3 {
    font-size: 16px !important;
    background-color: #cc0000;
    color: #fff !important;
    padding: 10px !important;
    margin: 0 !important;
    line-height: normal;
}

/* リスト共通スタイル */
#side ul {
    margin-top: 1em !important;
}
#side ul.menu {
    padding: 0;
}
#side ul.menu li.menu-item {
    padding: 5px;
    padding-left: 1.7em !important;
    position: relative;
}
#side ul.menu li.menu-item::before {
    position: absolute;
    content: "";
}
#menu-osusumekiji li.menu-item::before {
    display: inline-block;
    margin-top: 10px;
    width: 8px;
    height: 8px;
    vertical-align: top;
    border-radius: 5px;
    background-color: #333333;
    left: 7px;
}
#menu-guide li.menu-item::before {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    left: 0px;
}
#menu-guide li#menu-item-12798::before {
    background-image: url(../images/side-menu/icon1.svg);
}
#menu-guide li#menu-item-12799::before {
    background-image: url(../images/side-menu/icon2.svg);
}
#menu-guide li#menu-item-12800::before {
    background-image: url(../images/side-menu/icon3.svg);
}
#menu-guide li#menu-item-12801::before {
    background-image: url(../images/side-menu/icon4.svg);
}
#menu-guide li#menu-item-12802::before {
    background-image: url(../images/side-menu/icon5.svg);
}
#side ul li:last-child {
    border-bottom: none;
}

#side ul li a {
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    padding: 0 !important;
}
#side ul li a:hover {
    color: #dc143c;
}
@media screen and (max-width: 1024px) {
    /* サイドメニューを非表示 */
    #primary {
        display: block !important;
    }
    #primary .grid {
        margin: 0 0 20px 0px;
    }
    #sidebar {
        display: none !important;
    }

    /* メインコンテンツを画面幅いっぱいに */
    #main {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* カテゴリーリスト特有のスタイル */

.category-list {
    list-style: none;
    font-size: 16px;
}

.category-list li {
    padding: 10px !important;
    margin-bottom: 13px !important;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-list img {
    width: 30px;
    height: 30px;
    padding-right: 5px;
    aspect-ratio: 1 / 1;
}

.category-list a {
    display: flex;
    align-items: center;
}

.category-list .img-container {
    width: 35px; /* 正方形のスペースの幅 */
    height: 30px; /* 正方形のスペースの高さ */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* サイズを固定 */
}

.category-list li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

/* おすすめ記事特有のスタイル */
.article-list {
    padding-left: 0;
    list-style-position: inside;
}

.article-list li {
    font-size: 14px;
    padding: 5px;
    text-indent: -1.4em !important; /* ディスクの分だけ左にずらす */
    padding-left: 1.4em !important; /* インデント分を戻す */
}
.article-list li::marker {
    margin-right: 0 !important;
}
.article-list a:hover {
    color: #cc0000 !important;
}

/* ご利用ガイドリスト特有のスタイル */
.guide-list li {
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    padding: 5px;
}

.guide-list a {
    display: flex;
    align-items: center;
}

.guide-list img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.guide-list a:hover {
    color: #cc0000;
}

/* バナー */
.side-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 30px;
}

.side-banner {
    display: block;
}

.side-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* メインコンテンツ全体 */
.main-content {
    flex: 1;
    padding: 0 30px;
}

.main-content a {
    text-decoration: none;
    transition: 0.6s;
}

/* セクション共通 */
.section-title {
    font-size: 32px;
    margin-top: 25px;
    margin-bottom: 20px;
    padding-bottom: 1%;
    border-bottom: 2px solid #cc0000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* 最新記事 */

.content-site-link {
    background: #056644;
    color: #fff;
    font-size: 20px;
    padding: 0.35em;
    text-decoration: none;
    border-radius: 0.35em;
}

.articles-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.article-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

.article-item a {
    color: #000000 !important;
}

.article-item img {
    width: 300px;
    height: auto;
}

.article-info {
    padding: 3%;
}

.content-site-link:hover {
    opacity: 0.7;
    color: #ffffff !important;
}

.article-item a:hover {
    color: #000000 !important;
}
.article-item:hover {
    background-color: #f5f5f5;
}

/* 商品カテゴリ */
.product-categories {
    margin-bottom: 30px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.category-img {
    padding: 1em;
    width: 80%;
    height: auto;
    margin: 0 auto;
}
.category-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.category-name {
    text-align: center;
    font-size: 16px;
    color: #000000;
}

.category-item:hover {
    background: #f5f5f5;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* 商品セクション */
.products-section a {
    color: #000000;
}
.product-item a:hover {
    color: #000000 !important;
}
.list-page-guide {
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    justify-content: start;
}

.products-section {
    overflow: hidden;
}

.product-item {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.product-img img {
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 4%;
}

.product-name {
    font-size: 14px;
    margin-bottom: 5%;
    white-space: nowrap;
}

.product-price {
    font-size: 10px;
    text-align: right;
}

.product-price span {
    color: #cc0000;
    font-size: 16px;
    margin: 0 0 0 5px;
}

.product-item:hover {
    background-color: #f5f5f5;
}

.list-page-guide:hover {
    color: #cc0000;
}

/* お知らせ */
.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-list .news-item:first-child {
    padding-top: 0%;
}

.news-item time {
    width: 8.5rem;
    display: inline-block;
}

.news-item a {
    width: 900px; /* リンクテキストの最大幅 */
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 任意の行数を指定 */
}

.news a {
    color: #000000;
}

.news-info {
    white-space: nowrap;
}

.news-category {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #cc0000;
    color: #fff;
    width: 7rem;
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}

.news-icon {
    margin-left: auto;
    color: #cc0000;
}

.news-item a:hover {
    color: #cc0000;
}

/* 主な取り扱いメーカー */
.maker-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
a.maker-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.maker-img{
    padding: 1em;
    width: 80%;
    height: auto;
    margin: 0 auto;
}
.maker-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.maker-name {
    text-align: center;
    font-size: 16px;
    color: #000000;
}
@media screen and (max-width: 1024px) {
    .content-site-link {
        font-size: 16px;
        padding: 2px 4px;
    }
    .latest-articles {
        overflow: hidden;
    }

    .products-grid {
        grid-template-columns: repeat(5, 200px);
        gap: 15px;
    }
}

@media screen and (max-width: 740px) {
    .content-site-link {
        font-size: 12px;
    }

    .category-item {
        padding: 5px;
    }

    .category-img {
        padding: 0.5em;
        width: 100%;
    }

    .category-img img {
        width: 100%;
        height: 80px;
        object-fit: contain;
    }

    .category-name {
        margin-top: 5px;
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .list-page-guide {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 0 15px;
    }

    .product-categories {
        padding-bottom: 30px;
    }
    .categories-grid {
        gap: 10px;
    }
    .category-img img {
        width: 100%;
        height: 60px;
        object-fit: contain;
    }

    .category-name {
        font-size: 10px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .list-page-guide {
        font-size: 12px;
    }

    .news-category {
        padding: 2px 4px;
        border-radius: 10%;
        font-size: 11px;
    }

    .news-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-info {
        margin-bottom: 8px;
    }
}
/* contents */
#primary {
    margin-bottom: 2rem;
}

/* ===== OCR section ===== */
.ocr-section {
    --ocr-max-width: 1100px;
    --ocr-gap: 24px;
    --ocr-radius: 12px;
    --ocr-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    --ocr-border: 1px solid #e9eef3;

    padding: 32px 16px;
    background: #fff;
}

.ocr-container {
    max-width: var(--ocr-max-width);
    margin-inline: auto;
}

.ocr-title {
    font-size: clamp(18px, 2.2vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 左に小さなライン装飾（任意） */
.ocr-title::before {
    content: "";
    width: 6px;
    height: 20px;
    border-radius: 999px;
    background: #ccc;
    display: inline-block;
}

/* グリッド */
.ocr-grid {
    display: grid;
    gap: var(--ocr-gap);
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
.ocr-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 560px) {
.ocr-grid {
    grid-template-columns: 1fr;
}
}

/* カード */
.ocr-card {
    margin: 0;
    background: #fff;
    border: var(--ocr-border);
    border-radius: var(--ocr-radius);
    box-shadow: var(--ocr-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ocr-card:where(:hover, :focus-within) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.ocr-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;          /* 枠に収めつつ歪ませない */
    display: block;
}

/* キャプション */
.ocr-card__caption {
    padding: 10px 12px 12px;
    font-size: 14px;
    color: #243043;
    text-align: center;
    background: #fff;
}
    
/* 画像ボックスはアスペクト固定で整える */
.ocr-card__media {
    position: relative;
    aspect-ratio: 4 / 3;          /* 画像比率はお好みで */
    background: #f6f8fb;
    overflow: hidden;
}
/* footer */
#foot-in {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
}
.footer_banner {
    max-width: 95%;
    width: 1100px;
    margin: 0 auto 3rem;
}

.footer_banner img {
    width: 100%;
    height: auto;
}

.footer_banner :hover {
    opacity: 0.8;
}

.footer-wrapper {
    width: 100%;
}

.footer-main {
    padding: 10px 8px;
    background-color: #fff2f2;
}

.footer-bottom {
    height: 85px;
    padding: 8px 16px;
    background-color: #ffdddd !important;
    border-top: 1px solid #000000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-column {
    width: 25%;
}

.footer-heading {
    font-size: 20px;
    font-weight: bold;
    color: #8e0a01;
    margin-bottom: 0%;
    margin-top: 1em;
    line-height: unset !important;
}

.footer-list {
    list-style: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-inline-start: 0px;
    margin: 1em 0;
}
#foot-in ul li {
    margin: 0 !important;
}
.footer-list a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
}

.footer-list a:hover {
    color: #8e0a01 !important;
}

.footer-text {
    font-size: 14px;
    margin: 1em 0;
}

.footer-incom-logo {
    width: 250px;
    height: auto;
}

.footer-incom-logo:hover {
    opacity: 0.6;
}

.footer-nmedia-logo {
    width: 145px;
    height: auto;
}

.footer-nmedia-logo:hover {
    opacity: 0.6;
}

.footer-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 36px;
    font-size: 14px;
}

.footer-link {
    text-decoration: none;
    position: relative;
}
.footer-link::after {
    position: absolute;
    content: "|";
    right: -22px;
}
.footer-link:last-child::after {
    display: none;
}
.footer-link:hover {
    color: #8e0a01 !important;
}

.footer-social-link:hover {
    opacity: 0.6;
}

.footer-social {
    width: 50px;
    height: 50px;
}

.footer-social svg {
    width: 100%;
    height: 100%;
}
#copyright {
    border-top: 1px solid #333 !important;
    background-color: #fff2f2 !important;
}
#footer .copy {
    margin-top: 10px !important;
}
.footer-copyright {
    text-align: center;
}

.footer-copyright-text {
    font-size: 13px;
}

.footer-wordpress-text {
    font-size: 12px;
}

@media screen and (max-width: 1024px) {
    .footer-content {
        flex-wrap: wrap;
    }

    .footer-column {
        width: 50%;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-list {
        align-items: center;
    }

    .footer-text {
        text-align: center;
        margin-bottom: 0px;
    }

    .footer-incom-logo,
    .footer-nmedia-logo {
        display: block;
        margin: 0 auto;
    }

    .footer-links {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 600px) {
    .footer-column {
        width: 100%;
    }

    .footer-links {
        font-size: 10px;
    }

    .footer-incom-logo {
        padding-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .footer-links {
        font-size: 10px;
        gap: 6px;
    }

    .footer-list {
        font-size: 12px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-copyright-text {
        font-size: 10px;
    }

    .footer-wordpress-text {
        font-size: 9px;
    }
}

/* breadcrumbs */

.breadcrumbs-wrap {
    width: 1100px;
    margin: 0 auto;
    max-width: 95%;
}

.breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1em;
}

.breadcrumbs li {
    margin-right: 1rem;
    font-size: 13px;
}

.breadcrumbs li:last-child {
    margin-right: 0;
}

.breadcrumbs li > a {
    color: var(--orange);
    text-decoration: none;
}

/** フォーム関連 **/
.wpcf7-textarea {
    width: 100% !important;
}
