/* ==========================================================================
   SGマーク登録工場認定ページ
========================================================================== */

.sgmark-sec {
    position: relative;
    padding: 0 0 70px;
    overflow: hidden;
}

/* --------------------------------------------------------------------
   紺→白 グラデーション帯
   紺べた5mm → グラデーション5mm → 白べた10mm（合計20mm）
-------------------------------------------------------------------- */
.sgmark-band {
    width: 100%;
    height: 20mm;
}

.sgmark-band-top {
    background: linear-gradient(
        to bottom,
        #1b2f63 0mm,
        #1b2f63 5mm,
        #ffffff 10mm,
        #ffffff 20mm
    );
}

.sgmark-band-bottom {
    background: linear-gradient(
        to bottom,
        #ffffff 0mm,
        #ffffff 10mm,
        #1b2f63 15mm,
        #1b2f63 20mm
    );
}

/* --------------------------------------------------------------------
   コンテンツ共通
-------------------------------------------------------------------- */
.sgmark-inner {
    text-align: center;
    padding-top: 30px;
}

.sgmark-logo {
    width: 200px;
    margin: 0 auto 20px;
}
.sgmark-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.sgmark-sub {
    text-align: center;
    color: #3f9b5c;
    font-weight: bold;
    line-height: 1.8;
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.sgmark-ttl {
    text-align: center;
    color: #1b2f63;
    font-weight: bold;
    font-size: 3.2rem;
    letter-spacing: .05em;
    margin-bottom: 16px;
}
.sgmark-ttl-accent {
    margin-left: .3em;
}

.sgmark-desc {
    text-align: center;
    font-size: 1.5rem;
    color: #1b2f63;
    margin-bottom: 24px;
}

.sgmark-divider {
    position: relative;
    max-width: 640px;
    margin: 0 auto 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
}
.sgmark-divider .star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 12px;
    color: #c9a227;
    font-size: 1.6rem;
}

/* --------------------------------------------------------------------
   安心を支える４つの品質管理 ボックス（紺塗りつぶし・白枠・白文字）
-------------------------------------------------------------------- */
.sgmark-box {
    position: relative;
    max-width: 900px;
    margin: 60px auto 40px;
    background: #1b2f63;
    border: 2px solid #ffffff;
    border-radius: 20px;
    padding: 46px 20px 36px;
}

.sgmark-box-ttl {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    white-space: nowrap;
    background: #fff;
    color: #1b2f63;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 0 20px;
    border: 2px solid #1b2f63;
    border-radius: 30px;
    line-height: 2.4;
    z-index: 1;
}

.sgmark-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}
.sgmark-items li {
    width: 100%;
    max-width: 220px;
    text-align: center;
}
.sgmark-items .icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.sgmark-items .icon svg {
    width: 46px;
    height: 46px;
}
.sgmark-items .item-ttl {
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.sgmark-items .item-txt {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------
   SGマークとは？ リンクボタン
-------------------------------------------------------------------- */
.sgmark-link-wrap {
    text-align: center;
    margin-bottom: 60px;
}
.sgmark-link-btn {
    display: inline-block;
    padding: 14px 44px;
    border: 2px solid #1b2f63;
    border-radius: 30px;
    color: #1b2f63;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .3s, color .3s;
}
.sgmark-link-btn:hover {
    background: #1b2f63;
    color: #fff;
}

/* --------------------------------------------------------------------
   対応機種ギャラリー（タイル表示・PCは大判サイズ・中央揃え・リンク付き）
-------------------------------------------------------------------- */
.sgmark-models {
    margin-bottom: 60px;
}
.sgmark-models-ttl {
    text-align: center;
    color: #1b2f63;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.sgmark-models-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 360px);
    justify-content: center;
    gap: 28px;
    max-width: 1460px;
    margin: 0 auto;
}
.sgmark-models-list li {
    text-align: center;
}
.sgmark-models-list figure {
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
}
.sgmark-models-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sgmark-models-list .model-name {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

/* 対応機種：リンク化に伴うスタイル */
.sgmark-models-list a.model-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.sgmark-models-list a.model-link figure {
    transition: opacity .3s, transform .3s;
}
.sgmark-models-list a.model-link:hover figure {
    opacity: .8;
    transform: translateY(-4px);
}
.sgmark-models-list a.model-link .model-name {
    transition: color .3s;
}
.sgmark-models-list a.model-link:hover .model-name {
    color: #1b2f63;
}

/* --------------------------------------------------------------------
   よくある質問（アコーディオン / details-summary）
-------------------------------------------------------------------- */
.sgmark-faq {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.sgmark-faq-ttl {
    text-align: center;
    color: #1b2f63;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid #ccd3e0;
}
.faq-item:first-child {
    border-top: 1px solid #ccd3e0;
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px 18px 4px;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq-q::-webkit-details-marker {
    display: none;
}
.faq-q::marker {
    content: "";
}

.q-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1b2f63;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.q-txt {
    color: #1b2f63;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.6;
}

.faq-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: #1b2f63;
    transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before {
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}
.faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 40px 22px 4px;
}
.a-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c9a227;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.a-txt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* ==========================================================================
   レスポンシブ
========================================================================== */
@media screen and (max-width: 767px) {
    .sgmark-logo { width: 100px; }
    .sgmark-sub { font-size: 1.2rem; margin-bottom: 20px; }
    .sgmark-ttl { font-size: 2rem; }
    .sgmark-desc { font-size: 1.2rem; }

    .sgmark-box { margin: 46px auto 30px; padding: 36px 16px 28px; border-radius: 16px; }
    .sgmark-box-ttl { font-size: 1.4rem; }

    .sgmark-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }
    .sgmark-items li { max-width: 200px; }
    .sgmark-items .icon { width: 70px; height: 70px; }
    .sgmark-items .icon svg { width: 36px; height: 36px; }
    .sgmark-items .item-ttl { font-size: 1.1rem; }
    .sgmark-items .item-txt { font-size: 0.95rem; }

    .sgmark-link-btn { padding: 12px 32px; font-size: 1.1rem; }

    .sgmark-models-list {
        grid-template-columns: repeat(auto-fill, 200px);
        justify-content: center;
        gap: 16px;
        max-width: 100%;
        padding: 0 16px;
    }
    .sgmark-models-list .model-name { font-size: .9rem; margin-top: 6px; }

    .faq-q { padding: 16px 32px 16px 2px; gap: 10px; }
    .q-txt { font-size: 1rem; }
    .faq-a { padding: 0 32px 18px 2px; gap: 10px; }
}

@media screen and (max-width: 480px) {
    .sgmark-ttl { font-size: 1.6rem; }
    .sgmark-box-ttl { font-size: 1.2rem; padding: 0 14px; }

    .sgmark-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    .sgmark-items li { max-width: 160px; }

    .sgmark-models-list {
        grid-template-columns: repeat(auto-fill, 175px);
        gap: 12px;
        padding: 0 12px;
    }


}
.mainimg.sub h2 .top {
    color: #2e7d32; /* 濃いめの緑 */
}
.mainimg.sub h2 .bottom {
    color: #4caf50; /* やや明るい緑 */
}