/* 基本設定 */

:root {
    --theme-color: #747895;

    --text-color: #222222;
    --sub-text-color: #777777;

    --background-color: #F6F5F2;
    --border-color: #eeeeee;
}


body {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    background: #ffffff;
    color: #222;
}

button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* アプリ全体 */

.app {
    width: 100%;
    min-height: 100dvh;
    background-color: var(--background-color);
}

/* ヘッダー */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #F6F5F2;
    display: flex;
    align-items: center;

    padding: 50px 20px 16px;
    justify-content: space-between;

    padding-top: max(24px, env(safe-area-inset-top));
}

.home-button {
    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header-logo {
    width: 200px;
    height: auto;
}

.mypage-button {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0;
    border: none;
    background: transparent;
}

.mypage-button img {
    width: 28px;
    height: 28px;
}

/* ページ切り替え */

.page {
    display: none;
}

.page.active {
    display: block;
    animation: page-dissolve 0.3s ease;
}

/* 非選択タブ */
.nav-item {
    color: #AAAAAA;
    -webkit-tap-highlight-color: transparent;
}

.nav-item .nav-icon {
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

/* 選択中タブ */
.nav-item.active {
    color: var(--theme-color);
}

/* 下部ナビ */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    display: flex;
    background: #fff;
    border-top: 1px solid #ddd;
    padding-bottom: 20px;
}

.bottom-nav button {
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: bold;
}

@keyframes page-dissolve {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (min-width: 600px) {
    .app {
        width: 393px;
        margin-inline: auto;
    }
}