@charset "UTF-8";

/* ============================================
   custom_layout.css
   ヘッダー・NEWS・TOPICS・CATEGORY
   
   ※ custom_base.css の後に読み込む
============================================ */

/* ============================================
   1. ヘッダー (slim_header)
============================================ */
.ec-headerRole {
    max-width: none;
    background: rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 15px 30px;
    z-index: 999;
}

.ec-headerRole .ec-headerTitle a,
.ec-headerNav .ec-headerNav__itemLink,
.ec-headerNav .ec-headerNav__item .ec-headerNav__itemIcon,
.ec-cartNavi,
.ec-categoryNaviRole__title,
.ec-headerRole .ec-categoryNaviRole {
    color: #000;
}

.ec-headerRole .ec-headerTitle {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 0 30px;
}

.ec-headerRole .ec-headerNav {
    margin-right: 0;
}

.ec-headerRole .ec-headerNaviRole {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0 0 0 auto;
}

.ec-headerNav .ec-headerNav__item {
    font-size: 14px;
}

.ec-headerNav .ec-headerNav__itemIcon {
    display: inline-block;
    margin-right: 5px;
    margin-left: 5px;
    font-size: 14px;
}

.ec-cartNavi {
    padding: 3px 0 0 10px;
}

.ec-headerNavSP {
    top: 8px;
}

.ec-headerNav,
.ec-headerRole .ec-categoryNaviRole {
    display: none;
}

.headimg {
    width: 3%;
}

/* ============================================
   2. NEWS
============================================ */
.ec-newsRole .ec-newsRole__news {
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

.ec-newsRole__newsItem,
.ec-newsRole__newsHeading,
.ec-newsRole__newsDescription,
.ec-newsRole__newsItem.is_active,
.ec-newsRole__newsItem.is_active .ec-newsRole__newsHeading,
.ec-newsRole__newsItem.is_active .ec-newsRole__newsDescription {
    background: none !important;
    background-color: transparent !important;
}

.ec-newsRole {
    max-width: none;
    margin: 60px auto;
    padding: 0 20px;
}

.ec-newsRole .ec-secHeading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 16px;
}

.ec-newsRole .ec-secHeading__en {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.ec-newsRole .ec-secHeading__line {
    display: none;
}

.ec-newsRole .ec-secHeading__ja {
    font-size: 12px;
    color: var(--color-text-sub);
}

.ec-newsRole__news {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ec-newsRole__newsItem {
    border-bottom: 1px solid #e0e0e0 !important;
}

.ec-newsRole__newsHeading {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 6px 16px;
    cursor: pointer;
}

.ec-newsRole__newsHeading:hover .ec-newsRole__newsTitle,
.ec-newsRole__newsHeading:hover .ec-newsRole__newsCloseBtn {
    color: var(--color-primary);
}

.ec-newsRole__newsDate {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    min-width: 100px;
    flex-shrink: 0;
}

.ec-newsRole__newsColumn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

.ec-newsRole__newsTitle {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    transition: color var(--transition-fast);
}

.ec-newsRole__newsClose {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ec-newsRole__newsCloseBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text);
    transition: transform var(--transition-normal), color var(--transition-fast);
}

.ec-newsRole__newsCloseBtn i {
    font-size: 14px;
}

.ec-newsRole__newsItem.is_active .ec-newsRole__newsCloseBtn {
    transform: rotate(180deg);
}

.ec-newsRole__newsDescription {
    display: none;
    padding: 0 16px 6px 140px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-sub);
}

.ec-newsRole__newsDescription a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.ec-newsRole__newsDescription a:hover {
    text-decoration: underline;
}

#news_readmore {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#news_readmore:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   3. TOPICS
============================================ */
.ec-topicRole {
    padding: 40px 20px 60px;
    background-color: var(--color-bg-gray);
}

.ec-topicRole > .ec-role,
div.ec-topicRole div.ec-role {
    max-width: 90% !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.ec-topicRole .ec-secHeading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 16px;
}

.ec-topicRole .ec-secHeading__en {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.ec-topicRole .ec-secHeading__line {
    display: none;
}

.ec-topicRole .ec-secHeading__ja {
    font-size: 12px;
    color: var(--color-text-sub);
}

.ec-topicRole__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.ec-topicRole__listItem {
    position: relative;
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ec-topicRole__listItem a {
    display: block;
    overflow: hidden;
}

.ec-topicRole__listItem img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.ec-topicRole__listItem a:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

.ec-topicRole__listItemTitle {
    margin: 0;
    padding: 6px 20px 6px 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
    background-color: var(--color-white);
}

.ec-topicRole__listItemTitle::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* ============================================
   4. CATEGORY
============================================ */
.ec-categoryRole {
    padding: 40px 20px 60px;
    background-color: var(--color-bg-gray);
}

.ec-categoryRole > .ec-role,
div.ec-categoryRole div.ec-role {
    max-width: 90% !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.ec-categoryRole .ec-secHeading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 16px;
}

.ec-categoryRole .ec-secHeading__en {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.ec-categoryRole .ec-secHeading__line {
    display: none;
}

.ec-categoryRole .ec-secHeading__ja {
    font-size: 12px;
    color: var(--color-text-sub);
}

.ec-categoryRole__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.ec-categoryRole__list:last-child {
    margin-bottom: 0;
}

.ec-categoryRole__listItem {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ec-categoryRole__listItem a {
    display: block;
    overflow: hidden;
}

.ec-categoryRole__listItem img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.ec-categoryRole__listItem a:hover img {
    transform: scale(1.05);
}

/* ============================================
   5. その他レイアウト関連
============================================ */
div.ec-eyecatchRole__intro {
    padding-left: 5%;
    margin-top: 5%;
}

div.ec-newsRole {
    margin-bottom: 80px;
}

.ecRole_image {
    width: 96%;
    min-width: 360px;
}

img.tokutenimg {
    width: 100%;
}

.tokutencontent {
    width: 90%;
    margin-bottom: 80px;
}

div.-eyecatchRole__intro,
.memberRole_image {
    margin-top: 50px;
}

div.plus-eyecatchRole {
    display: flex;
}

div.announceblock {
    width: 90%;
    margin: 24px auto;
    font-size: 16px;
}

p.announce {
    text-align: left;
    font-size: 16px;
    color: #333333;
    margin: 8px 0 0 0;
}

div.mybutton {
    text-align: center;
}

/* 特商法 */
tr.tokushoho_line {
    border: 0.3px solid #222222;
}

/* 見積書 */
div.getestima_logo > img {
    width: 48%;
}

div.getestima_stamp {
    margin: 40px 0 8px 88px;
}

div.getestima_stamp > img {
    width: 50%;
}

/* ============================================
   6. ヘッダー - PC（768px以上）
============================================ */
@media (min-width: 768px) {
    .ec-headerNav .ec-headerNav__itemLink,
    .ec-headerRole .ec-categoryNaviRole__title,
    .ec-headerRole .ec-categoryNaviRole li a,
    .ec-cartNavi {
        transition: color var(--transition-normal), background-color var(--transition-normal);
    }

    .ec-headerRole:hover {
        background: rgba(255, 255, 255, 1);
    }

    .ec-headerNav .ec-headerNav__item .ec-headerNav__itemIcon,
    .ec-cartNavi {
        color: #000;
    }

    .ec-headerRole .ec-categoryNaviRole li a {
        width: 180px;
        color: #000;
        background: rgba(255, 255, 255, 1);
    }

    .ec-headerRole .ec-categoryNaviRole ul ul {
        left: 180px;
    }

    .ec-headerRole .ec-categoryNaviRole li a:hover {
        background: rgba(250, 250, 250, 1);
        color: #3DBD5D !important;
    }

    .ec-headerRole .ec-categoryNaviRole li ul:before {
        color: #000;
    }

    .ec-headerNav .ec-headerNav__itemLink:hover,
    .ec-headerRole .ec-categoryNaviRole__title:hover,
    .ec-cartNavi:hover {
        color: #3DBD5D !important;
    }

    .front_page .ec-headerRole {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        transition: 0.4s;
    }

    .ec-headerRole a:hover {
        text-decoration: none;
        opacity: 0.8;
    }

    .ec-headerRole .ec-headerTitle {
        margin: 0;
    }

    .ec-headerRole .ec-headerNav {
        margin-right: 20px;
    }

    .ec-headerNav .ec-headerNav__item {
        margin: 0 16px;
    }

    .ec-headerNav .ec-headerNav__item .ec-headerNav__itemIcon {
        display: none;
    }

    .ec-headerNav .ec-headerNav__item a {
        font-size: 11px;
        font-weight: bold;
    }

    .ec-headerRole .ec-cartNavi {
        padding: 12px 17px 10px;
    }

    .ec-headerNav {
        display: block;
    }

    .ec-headerRole .ec-categoryNaviRole {
        position: relative;
        padding: 0;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        margin-right: 18px;
        transform: translateY(1px);
        max-width: none;
        width: auto;
        display: block;
    }

    .ec-headerRole .ec-categoryNaviRole__title {
        cursor: pointer;
    }

    .ec-headerRole .ec-categoryNaviRole__item {
        position: absolute;
        top: 0;
        left: 0;
        display: none;
        padding-top: 45px;
    }

    .ec-headerRole .ec-categoryNaviRole:hover .ec-categoryNaviRole__item {
        display: block;
    }

    .ec-headerRole .ec-categoryNaviRole ul {
        margin: 0;
        padding: 0;
    }

    .ec-headerRole .ec-categoryNaviRole ul ul {
        position: absolute;
        top: 0;
    }

    .ec-headerRole .ec-categoryNaviRole ul ul li {
        display: none;
    }

    .ec-headerRole .ec-categoryNaviRole li:hover > ul > li {
        display: block;
    }

    .ec-headerRole .ec-categoryNaviRole li {
        list-style: none;
        position: relative;
        box-sizing: border-box;
    }

    .ec-headerRole .ec-categoryNaviRole li a {
        display: block;
        padding: 12px 18px;
    }

    .ec-headerRole .ec-categoryNaviRole li ul:before {
        content: "\f054";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 8px;
        position: absolute;
        top: 18px;
        right: auto;
        left: -16px;
    }
}

/* ============================================
   7. レイアウト - スマホ（768px以下）
============================================ */
@media (max-width: 768px) {
    /* 会員登録関連 */
    div.ec-eyecatchRole__intro {
        padding-left: 0;
        margin-top: 16px;
    }

    .ec-eyecatchRole {
        flex-direction: column;
    }

    .ecRole_image {
        min-width: auto;
        width: 100%;
    }

    .tokutencontent {
        margin-bottom: 40px;
    }

    /* NEWS */
    .ec-newsRole {
        margin: 40px auto;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ec-newsRole .ec-secHeading {
        padding: 0 0 12px 0;
        margin-left: 0;
        margin-right: 0;
    }

    .ec-newsRole .ec-newsRole__news {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ec-newsRole__newsItem {
        position: relative;
    }

    .ec-newsRole__newsHeading {
        display: grid;
        grid-template-columns: 80px 1fr 24px;
        align-items: center;
        gap: 6px;
        padding: 10px 0;
        width: 100%;
    }

    .ec-newsRole__newsDate {
        min-width: auto;
        font-size: 12px;
    }

    .ec-newsRole__newsColumn {
        display: contents;
    }

    .ec-newsRole__newsTitle {
        word-break: break-word;
        font-size: 14px;
        line-height: 1.8;
    }

    .ec-newsRole__newsClose {
        position: static;
        justify-self: end;
    }

    .ec-newsRole__newsCloseBtn {
        width: 20px;
        height: 20px;
    }

    .ec-newsRole__newsDescription {
        padding: 0 0 12px 0;
        line-height: 2.0;
    }

    .ec-newsRole .ec-secHeading__en {
        font-size: 20px;
    }

    /* TOPICS */
    .ec-topicRole {
        padding: 30px 15px 40px;
    }

    .ec-topicRole__list {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ec-topicRole__listItemTitle {
        font-size: 14px;
        padding: 14px 16px 14px 28px;
    }

    .ec-topicRole__listItemTitle::before {
        left: 12px;
    }

    .ec-topicRole .ec-secHeading__en {
        font-size: 20px;
    }

    /* CATEGORY */
    .ec-categoryRole {
        padding: 30px 15px 40px;
    }

    .ec-categoryRole__list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 12px;
    }

    .ec-categoryRole__listItem {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .ec-categoryRole .ec-secHeading__en {
        font-size: 20px;
    }
}

/* ============================================
   custom_layout.css ここまで
============================================ */