@charset "UTF-8";
:root {
    --color-brand: #432;
    --color-brand-light: #543;
    --color-accent: #e30425;
    --color-bg: #FAF7F0;
    --color-text: #000;
    --color-white: #fff;
    --transition: .2s ease;
}
/* 共通部分
------------------------------- */
html {
    font-size: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
}
body{
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
}
a {
    text-decoration: none;
    word-wrap:break-word;
    transition: color var(--transition);
}
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
img {
    max-width: 100%;
}
/* FOOTER
------------------------------- */

footer {
    background: var(--color-brand);
    text-align: center;
    padding: 10px 0;
}
footer p {
    color: var(--color-white);
    font-size: 1.0rem;
}
/* HEADER
------------------------------- */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2%;
}
.logo {
    width: 110px;
    margin-top: 14px;
}
.main-h1 {
    font-size: 1.25rem;
    margin-top: 10px;
    /* text-transform: uppercase; */
}
.main-h1 a {
    color: var(--color-white);
}
.main-nav {
    display: flex;
    font-size: 1.25rem;
    margin-top: 10px;
    list-style: none;
}
.main-nav li {
    margin-left: 36px;
}
.main-nav a {
    color: var(--color-white);
}
.main-nav a:hover {
    color: var(--color-accent);
}
.page-header {
    display: flex;
    justify-content: space-between;
}

/* HOME
------------------------------- */
.home-content {
    text-align: center;
    margin-top: 10%;
}
.home-content p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 10px auto 20px;
    text-align: justify;
    background: rgba(0,0,0,.7);
    border-radius: 5px;
    padding: 16px 32px;
}
/* 全体のタイトル */
.page-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-family: 'Philosopher', serif;
    text-transform: none;
    font-weight: normal;
}
/* ボタン */
.button-container {
    display: flex;
    justify-content: center;
}
.button {
    font-size: 1.375rem;
    background: var(--color-brand);
    color: var(--color-white);
    border-radius: 5px;
    padding: 8px 24px;
    margin: 20px 20px 40px;
    transition: background var(--transition), transform var(--transition);
}
.button:hover {
    background: var(--color-brand-light);
    transform: translateY(-2px);
}
/* 大きな背景画像 */
.big-bg {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
#home {
    background-image: url(../images/main-bg.jpg);
    background-image: image-set(url(../images/main-bg.webp) type("image/webp"), url(../images/main-bg.jpg) type("image/jpeg"));
    background-color: #000;
    min-height: 100vh;
}
/* Sub page
------------------------------- */
#sub-page {
    background-image: url(../images/sub-bg.jpg);
    background-image: image-set(url(../images/sub-bg.webp) type("image/webp"), url(../images/sub-bg.jpg) type("image/jpeg"));
    background-color: #000;
    height: 230px;
}
#sub-page .page-title {
    text-align: center;
    margin: 20px 0;
}

/* 記事部分 */
article {
    width: 74%;
}
/* サイドバー */
aside {
    width: 22%;
}
aside img{
    width: 100%;
}
.app-store-logo{
    padding: 7%;
}
.sub-contents {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 50px;
    color: #000;
}
.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.app-icon {
    border-radius: 50%;
    height: 50px;
    width: 50px;
}
.app-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 2rem;
    font-weight: normal;
    margin-left: 10px;
}
.app-faq {
    list-style-position: inside;
}
.app-answer{
    margin: 10px 0 30px 0;
}

article p {
    margin-bottom: 1rem;
}
article p a {
    color: var(--color-text);
}
article p a:hover {
    color: var(--color-accent);
}

article hr {
    margin-top: 40px;
    margin-bottom: 20px;
}
.sub-title {
    font-size: 1.375rem;
    padding: 0 8px 8px;
    border-bottom: 2px var(--color-accent) solid;
    font-weight: normal;
}
aside p {
    padding: 12px 10px;
}
.sub-menu {
    margin-bottom: 60px;
    list-style: none;
}
.sub-menu li {
    border-bottom: 1px #ddd solid;
}
.sub-menu a {
    color: var(--color-brand);
    padding: 10px;
    display: block;
}
.sub-menu a:hover {
    color: var(--color-accent);
}

/* SNS */
#sns {
    padding: 40px 0 50px 0;
    color: #000;
}
#sns .wrapper {
    display: block;
}
#sns .sub-title {
    margin-bottom: 20px;
}
#sns a {
    color: var(--color-brand);
}
#sns a:hover {
    color: var(--color-accent);
}
.sns-box {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
#sns p {
    margin-bottom: 1rem;
}
.email{
    margin: 4px 0 0 0;
    text-align: center;
}
.email a {
    color: var(--color-text);
}
.email a:hover {
    color: var(--color-accent);
}

#sns ol {
    counter-reset: my-counter;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
#sns li {
    line-height: 1.5;
    padding-left: 30px;
    margin: 4px 0;
    position: relative;
}
#sns li:before {
    content: counter(my-counter);
    counter-increment: my-counter;
    background-color: var(--color-brand);
    border: 1px solid;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 22px;
    width: 22px;
    color: var(--color-white);
    font-size: 85%;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 0;
}

/* タブレット版
------------------------------- */
@media (max-width: 768px) {
    .sub-contents {
        flex-direction: column;
    }
    article,
    aside {
        width: 100%;
    }
    aside {
        margin-top: 30px;
    }
}

/* モバイル版
------------------------------- */
@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
        align-items: center;
    }

    /* HEADER */
    .main-nav {
        font-size: 1rem;
        margin-top: 10px;
    }
    .main-nav li {
        margin: 0 20px;
    }

    /* HOME */
    .home-content {
        margin-top: 20px;
    }
    .home-content p {
        font-size: 1.125rem;
        margin: 10px 5% 10px 5%;
        width: 90%;
    }
    .button-container {
        flex-direction: column;
        justify-content: center;
    }
    .button {
        margin: 10px 25%;
    }
    /* Android iPhone */
    #sub-page {
        height: 180px;
    }
    .sub-contents {
        flex-direction: column;
    }
    article,
    aside {
        width: 100%;
    }
    .app-title {
        font-size: 1.375rem;
    }
    .app-icon {
        height: 35px;
        width: 35px;
    }
    .app-store-logo{
        padding: 5% 25%;
    }
    .play-store-logo{
        padding: 0 20%;
    }
    /* About */
    .sns-box {
        width: 100%;
    }
}
