/*
    style.css
---------------------------------------------------------------------------*/
:root {
    --colorRed: #ff3030;
    --colorOrange: #eb9800;
    --colorGreen: #6f6;
    --colorBlue: #255af9;
    --colorSky: #7090f9;
    --colorWhite: #fff;
    --colorPink: #ff51ea;
    --colorYellow: #efef00;
    --colorGray: #666;
    --colorBlack: #111;
    --colorPurple: #66f;

    --colorBack: #fffff9;
    --colorFont: #113;
    --colorLink: #117;
    --colorBorder: #ccb;
    --colorButtonBack: #7d9dfd;
    --colorButtonHover: #7090f9;

    --colorDivHover: #eee;
    --colorMidashi: #b9b9af;

    --headerHeight: 80px;
    --mobileHeader: 55px;
    --menuWidth: 260px;
    --menuMargin: 30px;
    --footerHeight: 6.5em;

    --fontSans: "YuGothic", "Hiragino Sans", "Meiryo", "MS PGothic", sans-serif;
    --fontSerif: "BIZ UDPMincho", "YuMincho", "MS PMincho", serif;
}

* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

body {
    font-family: var(--fontSerif);
    font-weight: 400;
    font-style: normal;
    font-size: 1.08em;
    font-feature-settings: "palt";
    color: var(--colorFont);
    background: var(--colorBack);
    line-height: 2;
}
@media screen and (max-width: 768px) {
    body {
        font-weight: 500;
        font-size: 1.08em;
    }
}

a {
    color: var(--colorFont);
}

h1 {
    font-size: 120%;
    margin: 1em 0;
}
h2 {
    font-size: 110%;
}
h3,
h4 {
    font-size: 100%;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
}

hr {
    border: none;
    border-top: 1px solid var(--colorBorder);
    margin: 0.5em 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.vTable {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 2em;
    line-height: 3;
}
.vTable tr {
    border-bottom: 1px solid #ccc;
}
.vTable th,
.vTable td {
    font-size: 1em;
    line-height: 1.5;
}
.vTable th {
    text-align: left;
    padding: 0.5em 1em 0.5em 0;
    white-space: nowrap;
    vertical-align: top;
    width: 10px;
}
.vTable th[colspan="2"] {
    font-size: 120%;
    padding-top: 1em;
}
.vTable td {
    padding: 0.5em 0.5em 0.5em 0;
}
.vTable td input {
    width: 100%;
}
@media screen and (max-width: 768px) {
    /* width:768px 以下のとき */
    .vTable th,
    .vTable td {
        display: block;
        font-size: 90%;
    }
    .vTable th {
        padding: 0.3em 0.5em 0.3em 0;
    }
    .vTable th[colspan="2"] {
        font-size: 110%;
        padding-top: 0.8em;
    }
    .vTable td {
        padding: 0.3em 0.3em 0.3em 0;
    }
}

/* ヘッダー */
#header {
    box-sizing: border-box;
    width: 100vw;
    padding-top: 10px;
    height: var(--headerHeight);
    background: var(--colorBack);
    z-index: 89;

    position: fixed;
    top: 0;
    left: 0;
    /* margin-bottom: 1em; */

    /* alt */
    color: var(--colorBlack);
    font-size: 130%;

    display: flex;
    align-items: stretch;
}
@media screen and (min-width: 768px) {
    /* width:768px 以上のとき */
    #header {
    }
}

#header .div_logo {
    box-sizing: border-box;
    text-align: left;
    vertical-align: middle;
    padding-left: 20px;
    min-width: 190px;
}
#header .div_logo img {
    height: 40px;
}
@media screen and (min-width: 768px) {
    /* width:768px 以上のとき */
    #header .div_logo img {
        height: 60px;
    }
}

#header .div_tools {
    box-sizing: border-box;
    flex-grow: 1;
    padding-right: 20px;
    text-align: right;
}
#header .div_tools img {
    height: 32px;
    border-radius: 50% 50% 0 50%;
    /* background-color: var(--colorSky); */
    background-color: #93bbfe;
    cursor: pointer;
    vertical-align: middle;
}
@media screen and (min-width: 768px) {
    /* width:768px 以上のとき */
    #header .div_tools img {
        height: 40px;
    }
}
#header .div_tools img:hover {
    background-color: var(--colorBorder);
}

#header img[src="/img/icon_close.webp"] {
    display: none;
}
@media screen and (min-width: 768px) {
    /* width:768px 以上のとき */
    #header img[src="/img/icon_menu.webp"] {
        display: none;
    }
}

/* スライド */
.splide {
    box-sizing: border-box;
}
.splide__track {
    width: 100%;
    height: 100%;
}
.splide__slide {
    /* スライドのサイズを調整、中身のテキスト配置調整、背景色 */
    color: #111;
    width: 100%;
    height: 100%;
    text-align: center;
    cursor: pointer;
    background-color: var(--colorBack);
}
.splide__slide:nth-child(4n + 1) {
    /* background: center/100% url("/img/background_01.webp") no-repeat; */
    background: center/100% url("/img/background_06.webp") no-repeat;
}
.splide__slide:nth-child(4n + 2) {
    /* background: center/100% url("/img/background_02.webp") no-repeat; */
    background: center/100% url("/img/background_01.webp") no-repeat;
}
.splide__slide:nth-child(4n + 3) {
    background: center/100% url("/img/background_03.webp") no-repeat;
}
.splide__slide:nth-child(4n + 4) {
    background: center/100% url("/img/background_04.webp") no-repeat;
}

/* PC用メニュー */
#menu {
    box-sizing: border-box;
    position: fixed;
    display: inline-block;
    top: var(--headerHeight);
    left: 0;
    width: var(--menuWidth);
    height: 100vh;
    margin-right: var(--menuMargin);
    padding: 1em 0;
    border-right: 1px solid var(--colorBorder);
    line-height: 2.5;
    vertical-align: top;
    z-index: 101;
    background: var(--colorBack);
}
@media screen and (max-width: 768px) {
    /* width:768px 以下のとき */
    #menu {
        left: calc(0 - var(--menuWidth));
        border-top-right-radius: 6px;
        z-index: 103;
    }
}

#menu li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1em 0 20px;
}
#menu li:hover {
    background-color: #eeeee6;
}
#menu li a {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* メインエリア */
#main {
    box-sizing: border-box;
    display: inline-block;
    width: 100vw;
    margin-top: var(--headerHeight);
    padding: 1em 20px var(--footerHeight);
}
@media screen and (min-width: 768px) {
    #main {
        width: calc(100vw - var(--menuWidth) - var(--menuMargin) - 4em);
        max-width: 1000px;
        padding: 1em 20px var(--footerHeight) 0;
        margin-left: calc(var(--menuWidth) + var(--menuMargin));
    }
}

#main .content {
    line-height: 2.2;
    margin-bottom: 3em;
}

#main .foot {
    margin: 3em 0 2em 0;
    font-size: 85%;
    text-align: center;
}

#main > img {
    width: 100%;
    border-radius: 8px;
}

/* フッター */
#footer {
    clear: both;

    position: fixed;
    z-index: 102;
    top: calc(100vh - var(--footerHeight));
    left: 0;

    width: 100vw;
    height: var(--footerHeight);
    padding: 1em 0;

    text-align: center;
    font-size: 85%;
    font-family: var(--fontSans);
    background: #ccc;
}

#footer a {
    text-decoration: none;
    color: var(--colorFont);
}
#footer a:hover {
    text-decoration: underline;
}

#footer .link {
    font-size: 90%;
}

/* パーツ定義 */
.midashi {
    border-left: 16px solid var(--colorMidashi);
    border-bottom: 1px solid var(--colorMidashi);
    border-radius: 8px;
    padding-left: 0.5em;
    margin-top: 1em;
}
.midashi a {
    text-decoration: none;
    color: var(--colorFont);
}
.midashi a:hover {
    text-decoration: underline;
}

/* フォーム定義 */
label {
    /* font-size: 110%; */
    /* font-weight: bold; */
    margin: 0 0.5em;
}

.button,
a.button,
button.button {
    display: inline-block;
    font-size: 88%;
    height: 2.5em;
    /* font-weight: bold; */
    font-family: var(--fontSans);
    margin: 0 auto 0.5em;
    padding: 0 1em;
    border-radius: 4px;
    cursor: pointer;
    background: var(--colorButtonBack);
    color: #060606;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.button:hover,
a.button:hover,
button.button:hover {
    background: var(--colorButtonHover);
}

input[type="text"],
input[type="password"] {
    box-sizing: border-box;
    font-size: 1em;
    border: 1px solid var(--colorBorder);
    border-radius: 4px;
    padding: 2px 4px;
    background-color: var(--colorBack);
}

.pointer {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.small {
    font-size: 85%;
}

.large {
    font-size: 110%;
}

.sans {
    font-family: var(--fontSans);
}
.serif {
    font-family: var(--fontSerif);
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.fullWidth {
    width: 100%;
}

.halfWidth {
    width: 49%;
}

.floatLeft {
    float: left;
}

.floatRight {
    float: right;
}

.floatClear {
    clear: both;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topMargin {
    margin-top: 2em;
}

.bottomMargin {
    margin-bottom: 2em;
}

.err_message {
    color: var(--colorRed);
}

/* modal */
#curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 90;
}

#confirm,
#alert {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 80%;
    max-width: 400px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--colorBorder);
    border-radius: 4px;
    background-color: var(--colorBack);
    padding: 1.5em 2.5em;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 110;
}
#confirm p,
#alert p {
    font-size: 110%;
    margin-bottom: 20px;
}
#confirm button {
    margin-right: 15px;
}

.whatsnew {
    white-space: pre-wrap;
    margin-bottom: 1em;
}
.whatsnew img {
    width: 100%;
    margin: 1em 0;
}

#progress {
    font-size: 80%;
}
#progress .here {
    background-color: var(--colorYellow);
}

.products .inline_icon {
    font-size: 75%;
}
.products .inline_icon img {
    height: 1.5em;
    width: 1.6em;
    margin-left: 0.5em;
    margin-bottom: -0.3em;
}

/* トップへ戻る */
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #00bcd4;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}
.pagetopArrow {
    display: block;
    height: 10px;
    width: 10px;
    border-top: 3px solid #00bcd4;
    border-right: 3px solid #00bcd4;
    transform: translateY(20%) rotate(-45deg);
}

.grecaptcha-badge {
    z-index: 103;
}

.menu_icon {
    width: 1.2em;
    margin-bottom: -0.2em;
}

.smallIcon {
    width: 1.2em;
}

#submenu {
    display: none;
}
@media screen and (max-width: 768px) {
    display: block;
}

.subMenu {
    margin-left: 1.5em;
    font-size: 85%;
}
