@charset "UTF-8";

/* ==================================================
   1. ヘッダーバナー & SNSリンク
   ================================================== */
.header-banner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.header-banner h1 {
    margin: 0;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.sns-link {
    position: absolute;
    top: 24.16%;
    height: 45.83%;
}

.sns-link.facebook { left: 70.25%; width: 7.00%; }
.sns-link.twitter  { left: 80.50%; width: 6.75%; }
.sns-link.instagram{ left: 90.50%; width: 6.50%; }


/* ==================================================
   2. お知らせ & 資料請求
   ================================================== */
.flex.--between.news {
    align-items: flex-start;
    gap: 16px;
    margin: 16px 0 24px;
}

/* お知らせスクロール枠 */
.update-scroll {
    flex: 1;
    max-height: 90px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 4px 8px;
    font-size: 12px;
    margin: 0;
    list-style: none;
}

.update-scroll li {
    padding-left: 105px;
    text-indent: -105px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.side-request {
    width: fit-content;
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
    font-size: 13px;
}

.side-request p {
    margin: 4px 0 0;
}


/* ==================================================
   3. メインレイアウト & カラム幅
   ================================================== */
.section-container {
    margin-bottom: 24px;
}

.section-logo {
    margin: 2rem 0 0;
}

.section-container:first-child .section-logo {
    margin-top: 0;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex.--between {
    justify-content: space-between;
    gap: 12px;
}

.top-left {
    width: 100%;
    max-width: 540px;
}

.top-right {
    width: 100%;
    max-width: 230px;
}


/* ==================================================
   4. 見出し & タイトルコンポーネント (旧デザイン忠実再現)
   ================================================== */
/* 青枠セクションタイトル */
.block-ttl {
    display: flex;
    margin: 2rem 0 1rem;
    background: #fff;
    border-top: 2px solid #0064b9;
    border-right: 2px solid #0064b9;
    border-bottom: 2px solid #0064b9;
    line-height: 1;
}

.block-ttl:first-of-type {
    margin-top: 1em;
}

.block-ttl span:first-child {
    padding: 10px 20px;
    background: #0064b9;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.block-ttl span:last-child {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #0064b9;
}

/* 各種サブ見出し */
.heading-top-sub {
    width: 100%;
    max-width: 550px;
    margin: 1rem 0 .5rem;
    padding: 0 0 4px 6px;
    border-bottom: 1px solid #ddd;
    border-left: 4px solid #008000;
    font-weight: 600;
    font-size: 14px;
}

.heading-top-sub:first-child {
    margin-top: 0;
}

.heading-top-sub.--blue {
    border-left-color: #0064b9;
}

/* その他商品 緑ヘッダー */
.other-header {
    text-align: center;
    background: #9ACE73;
    border: 3px solid #008000;
    font-size: 18px;
    letter-spacing: 0.1em;
    padding: 8px;
    color: #FFF;
    font-weight: bold;
    margin: 3rem 0 1rem;
}


/* ==================================================
   5. ボタン & 枠付きリンク (.btn-page, .box-link)
   ================================================== */
.btn-page {
    margin: 0 0 6px;
}

.sub-nav + div {
    margin-top: 2em;
}

.btn-page a {
    display: block;
    line-height: 32px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    background: #3b59ba;
    border-radius: 2px;
    border: 2px solid #3b59ba;
    text-decoration: none;
    box-shadow: 2px 2px 2px #ccc;
}

.arrow::after {
    content: "\003E";
    display: inline-block;
    padding-left: 1em;
    font-size: 12px;
    font-weight: bold;
}

.box-link {
    width: 100%;
	margin: 0;
}

.dl-box {
    margin-top: 1em;
}

/* ==================================================
   7. その他商品カード (.etc_itemBox)
   ================================================== */
.etc_itemBox {
    width: calc(100% / 3 - 1rem);
    margin: 0;
}

.etc-ttl {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 65px;
    border-bottom: 1px solid #ccc;
    padding-left: 15px;
    background: linear-gradient(to bottom, #ccc 0%, #ccc 50%, #008000 50%, #008000 100%) left / 6px 100% no-repeat;
}

.etc_head {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    margin: 0;
}

.u-fit .etc_head {
    line-height: 1.2;
    font-size: 18px;
}

.etc-ttl span {
    font-size: 14px;
    font-weight: bold;
    color: #999;
}

.etc_itemBox_img {
    margin: 6px 0 12px;
    text-align: center;
}

.etc_itemBox_txt {
    margin-bottom: 16px;
    padding: 2px;
    font-size: 13px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.etc_itemBox .btn-wrap {
    text-align: center;
}


/* ==================================================
   8. 各箇所の個別サイズ・配置定義
   ================================================== */

/* 右側ナビリンク集 */
.sub-nav {
    font-size: 13px;
    margin-bottom: 8px;
    word-break: keep-all;
}

.cad-link-box {
    margin: 1.5em 0;
}

/* 左カラム内、linkのまとめ用 */
.l-wrapper {
    gap: 12px;
    margin-bottom: 1em;
    align-items: flex-end;
}

.l-wrapper.gr-panel {
    align-items: flex-start;
}

.l-wrapper a {
    display: block;
    text-align: center;
    font-size: 14px;
}

.note {
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.5;
}

/* フッターお問い合わせ・カウンター */
.footer-counter {
    margin-top: 16px;
    text-align: center;
}

.counter-since {
    font-size: xx-small;
    color: #0000A0;
}

.txt-green { color: #008000; }
.txt-red   { color: #FF0000; }


@media (hover: hover) {
    .btn-page a:hover {
        color: #3b59ba;
        background: #ffffff;
        transition: all 0.3s ease 0s;
    }

    .btn-page a:hover .arrow::after {
        color: #3b59ba;
    }
}

/* ==================================================
   レスポンシブ設定 (スマホ・タブレット)
   ================================================== */
@media screen and (max-width: 819px) {

    .top-left,
    .top-right {
        max-width: 90%;
        margin: 0 auto;
    }

    .l-wrapper.flex {
        justify-content: center;
    }

    .l-wrapper a {
        margin: 0 auto;
    }

    .top-left.ichi-smart a {
        display: flex;
        justify-content: center;
    }


}
@media screen and (max-width: 768px) {
    .update-scroll {
        width: 100%;
    }

    .side-request {
        margin: 0 auto;
        text-align: center;
    }

    .section-container {
        margin-top: 3rem;
    }

    .section-container:first-of-type {
        margin-top: 0;
    }

    .block-ttl {
        flex-direction: column;
        line-height: 1.4;
        border-left: 2px solid #0064b9;
    }

    .block-ttl span:last-child {
        padding: 6px 12px;
        font-size: 14px;
    }

    .flex.--between {
        flex-direction: column;
    }

    .flex.--between:has(.etc_itemBox) {
        flex-direction: row;
    }

    .sub-nav {
        word-break: keep-all;
        line-height: 2;
    }

    .u-fit .etc_head br {
        display: none;
    }

    .etc-ttl {
        height: auto;
    }
    
    .etc_itemBox {
        width: calc(100% / 2 - 1rem);
    }
    
}

@media screen and (max-width:490px) {

    .flex.--between:has(.etc_itemBox) {
        flex-direction: column;
        gap: 3rem;
    }
    .etc_itemBox {
        width: 100%;
    }
}