.shop-body, .shop-body * { box-sizing: border-box; }

body.shop-body {
    margin: 0;
    color: #686868;
    font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: -0.4px;
    background: #fff url("../images/comm/bg1.jpg") repeat-x left top;
}

img { border: 0; vertical-align: top; }
a { color: #e07020; text-decoration: none; }
button, input { font-family: inherit; }

.news-board {
    min-height: 600px;
    padding: 16px 24px 24px;
    background: url("../images/comm/sub_body_bg.gif") repeat-y left top;
}
.news-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    width: 96%;
    margin: 0 auto 0;
}
.news-board-top { display: block; margin: 0 auto; }
.news-board-row {
    display: grid;
    grid-template-columns: 8% 1fr 15% 7% 4%;
    align-items: center;
    width: 97%;
    height: 38px;
    margin: 0 auto;
    background: url("../images/service/faq_list_line.gif") repeat-x left bottom;
    color: #686868;
    font-size: 12px;
}
.news-board-row .no,
.news-board-row .hit,
.news-board-row time { text-align: center; }
.news-board-row a { color: #686868; text-decoration: none; }
.news-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 97%;
    height: 39px;
    margin: 12px auto 0;
    background: url("../images/service/board_page_bg.gif") repeat-x center top;
}
.news-paging a { color: #686868; text-decoration: none; }
.news-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 16px 0 0;
}
.news-search button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.install-guide {
    padding: 12px 0 20px 30px;
    background: url("../images/comm/sub_body_bg.gif") repeat-y left top;
}
.install-guide img { display: block; margin: 0 0 8px; }
.install-note {
    margin: 0 0 12px;
    color: #3f3f3f;
    font-size: 12px;
    line-height: 1.6;
}

.data-page {
    min-height: 600px;
    padding: 16px 24px 24px;
    background: url("../images/comm/sub_body_bg.gif") repeat-y left top;
}
.data-page > img,
.data-page .data-guide { display: block; }
.data-spec-label { margin: 12px auto 8px; text-align: center; }
.data-spec {
    width: 570px;
    margin: 0 auto;
    background: #dbcfac;
    color: #3f3f3f;
    font-size: 12px;
}
.data-spec td { background: #fff; vertical-align: middle; }
.data-spec td.label { width: 101px; background: #fffae7; }
.data-spec td.center { text-align: center; }
.data-center { padding-top: 8px; text-align: center; }
.data-block { margin-top: 28px; }
.data-downloads { padding: 13px 0 0 40px; }
.data-downloads a { margin-right: 8px; }
.data-warn {
    margin: 15px 0 0;
    color: red;
    text-align: center;
}
.data-drivers { padding: 8px 0 0 30px; }
.data-drivers a { margin-right: 28px; }
.data-guide { margin: 8px 0 0 6px; }

.subpage { width: 960px; margin: 0; padding: 0 0 24px; }

.sub-head { display: flex; align-items: flex-start; width: 958px; }
.sub-logo { width: 227px; height: 105px; }
.sub-head-main { width: 731px; text-align: right; }
.sub-tagline { margin: 13px 15px 3px 0; }
.sub-menu { width: 731px; height: 47px; }

.sub-frame {
    display: flex;
    align-items: flex-start;
    width: 960px;
}

.sub-side {
    width: 201px;
    flex: none;
    padding: 0 0 16px;
    background: url("../images/comm/sub_left_bg.gif") no-repeat left top;
}

.game-start {
    width: 154px;
    margin: 10px auto 8px;
    padding: 0 0 8px;
    text-align: center;
}

.game-start .start-btn { margin: 0 0 6px; line-height: 0; }

.game-start a {
    position: relative;
    display: block;
    line-height: 0;
}

.game-start img { width: 154px; height: auto; }

.tooltip { position: relative; }
.tooltip .tooltiptext {
    display: none;
    position: absolute;
    z-index: 999;
    left: 50%;
    bottom: -62px;
    min-width: 140px;
    margin-left: -54px;
    padding: 16px 6px 8px;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 11px;
    line-height: 17px;
    text-align: center;
    background: #fff7d6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.tooltip:hover .tooltiptext { display: block; }
.tooltip .tooltiptext:hover {
    display: none;
    pointer-events: none;
}

.member-slot {
    width: 167px;
    margin: 0 auto 10px;
}

.member-panel {
    box-sizing: border-box;
    width: 167px;
    height: 200px;
    margin: 0 auto 10px;
    padding: 50px 7px 0 10px;
    background: url("../images/comm/bg_login2.gif") no-repeat left top;
    color: #000;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: -1px;
    text-align: left;
}

.member-ok {
    box-sizing: border-box;
    width: 148px;
    height: 76px;
    padding: 7px;
    overflow: hidden;
    background: url("../images/comm/login_ok_bg.gif") no-repeat left top;
}
.member-nick { color: #de4204; font-weight: bold; }
.member-ruby { color: #fe5e39; font-weight: bold; font-size: 12px; }
.member-ok img { vertical-align: middle; }
.member-mail { margin-left: 2px; cursor: pointer; }
.member-actions { margin-top: 4px; }
.member-actions a,
.member-actions button {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
}
.member-actions a { margin: 1px 0; }
.member-actions form { margin: 1px 0 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.login-card {
    position: relative;
    box-sizing: border-box;
    width: 170px;
    height: 240px;
    margin: 0 auto 8px;
    padding: 50px 7px 0 10px;
    background: url("../images/comm/new_bg_login.jpg") no-repeat left top;
    color: #686868;
    font-size: 12px;
    letter-spacing: -1px;
    text-align: left;
}

.login-line {
    display: flex;
    align-items: flex-start;
    gap: 2px;
}
.login-fields input {
    display: block;
    box-sizing: border-box;
    width: 85px;
    height: 20px;
    margin: 0 0 3px;
    padding: 3px 3px 1px;
    border: 1px solid #d1b697;
    background: #fff;
    color: #666;
    font-family: inherit;
    font-size: 11px;
}
.go { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.save {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 3px;
    color: #686868;
    font-size: 11px;
    line-height: 15px;
}
.save input { margin: 0; }
.find { display: block; margin: 3px 0 0; line-height: 0; }
.find img { width: 148px; height: 20px; }
.openid {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 152px;
    height: 65px;
    margin-top: 3px;
    padding: 30px 0 0 24px;
    background: url("../images/newopenid/login-box.jpg") no-repeat left top;
}
.openid a { line-height: 0; }
.openid img { width: 18px; height: 18px; }

.cash-menu { width: 167px; margin: 8px auto 12px; line-height: 0; }
.cash-menu-body {
    padding: 4px 12px 2px;
    background: url("../images/left/left_body.gif") repeat-y center top;
}
.cash-menu-body a,
.cash-menu-body img { display: block; margin: 0 auto; }

.sub-main {
    width: 759px;
    flex: none;
    overflow: hidden;
    /* Banner sits above sub_body_bg (original notice_read table split). */
    background: transparent;
}
.ruby-banner,
.sheet-cap { display: block; width: 759px; height: auto; }
.ruby-body {
    width: 759px;
    margin: 0;
    padding: 8px 0 16px;
    overflow: hidden;
    color: #666;
    background: url("../images/comm/sub_body_bg.gif") repeat-y left top;
}

.notice {
    display: flex;
    align-items: flex-start;
    width: 700px;
    min-height: 72px;
    margin: 8px 0 0 25px;
}
.notice img { width: 60px; height: 60px; flex: none; }
.notice-links {
    flex: 1;
    min-width: 0;
    margin: 8px 8px 0;
    color: #e10600;
    font-weight: 800;
    line-height: 1.35;
}
.notice-links a { color: #e10600; font-weight: 800; }
.notice-date {
    width: 140px;
    flex: none;
    margin-top: 8px;
    color: #ff3300;
    font-weight: 800;
    line-height: 1.25;
}

.buy-head,
.step-img { display: block; margin: 18px 0 8px 37px; }
.buy-copy,
.buy-notes {
    width: 650px;
    margin: 10px 0 0 37px;
    line-height: 1.4;
}
.buy-copy a { color: #0000ee; text-decoration: underline; }
.buy-notes { color: #ff0066; }

.pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 86%;
    max-width: 86%;
    margin: 6px auto 0;
}
.pay {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 48%;
    flex: none;
    min-width: 0;
    cursor: pointer;
}
.pay input { flex: none; margin: 0; }
.pay-logos { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.pay-logos img,
.carrier-logos img { max-width: 230px; height: auto; }
.wm-caption { color: #999; font-size: 12px; line-height: 1.3; }
.pay-bank { width: 50%; }
.bank-note { width: 118px; flex: none; color: #ff6600; font-size: 12px; line-height: 1.25; }
.bank-note a { color: #ff6600; }
.carrier-logos { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.carrier-row { display: flex; align-items: center; gap: 6px; }

.qty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
    width: 86%;
    max-width: 86%;
    row-gap: 14px;
    margin: 12px auto 0;
}
.qty { display: flex; align-items: center; gap: 4px; min-width: 0; cursor: pointer; }
.qty input { flex: none; margin: 0; }
.qty img { width: 185px; max-width: calc(100% - 22px); height: auto; }
.qty-note { box-sizing: border-box; width: 86%; max-width: 86%; margin: 8px auto 4px; color: #666; text-align: right; }
.pay-actions { display: flex; justify-content: center; align-items: center; gap: 28px; width: 720px; padding: 16px 0 8px; }
.pay-actions button { border: 0; background: none; padding: 0; line-height: 0; cursor: pointer; }
.secure-bar { display: block; width: 650px; height: 30px; margin: 8px auto 16px; }

.news-read {
    box-sizing: border-box;
    width: 759px;
    min-height: 480px;
    margin: 0;
    padding: 16px 24px 0;
    background: url("../images/comm/sub_body_bg.gif") repeat-y left top;
}
.news-titlebar {
    box-sizing: border-box;
    width: 710px;
    height: 47px;
    padding-top: 10px;
    background: url("../images/news/title_top.gif") no-repeat left top;
}
.news-titleline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 590px;
    height: 27px;
    margin-left: 90px;
    padding: 0 8px;
    background: #ffebbf;
    color: #333;
    font-size: 12px;
    line-height: 27px;
}
.news-titleline span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.news-titleline time { flex: none; margin-left: 12px; }
.kokuchibun {
    width: 690px;
    margin: 0 auto;
    padding: 22px;
    color: #666;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0;
}
.kokuchibun p { margin: 0 0 12px; }
.kokuchibun img { max-width: 100%; height: auto; }
.news-pager {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 97%;
    height: 39px;
    margin: 16px auto 0;
    padding-left: 22px;
    /* 3x39 strip — must tile horizontally (original td background). */
    background: url("../images/service/board_page_bg.gif") repeat-x left top;
}
.news-pager img { display: block; }
.news-read-spacer {
    display: block;
    width: 759px;
    height: 25px;
    background: url("../images/comm/sub_body_bg.gif") repeat-y left top;
}

.sub-foot {
    box-sizing: border-box;
    width: 958px;
    margin-top: 60px;
    /* www2 copy_main: absolute in 759px column + margin-left:-177px ≈ 24px from page left */
    padding: 0 0 20px 24px;
    text-align: left;
    line-height: 0;
}
.sub-foot img { vertical-align: top; }
.sub-foot .foot-age,
.sub-foot .foot-mark { margin: 5px; }
