@charset "UTF-8";

/* default ライトモード */
:root {
    --main-text-color: #000;
    /* メインのテキストカラー */
    --main-bg-color: #f8f8f8;
    /* メインの背景カラー */

    --secondary-text-color: #f8f8f8;
    /* セカンダリのテキストカラー */
    --secondary-bg-color: #000;
    /* セカンダリの背景カラー */

    --third-text-color: #555;
    --third-bg-color: #555;

    /* アクセントカラー */
    --accent-color: #44D62C;
}

/* change ダークモード */
@media (prefers-color-scheme: dark) {
    :root {
        --main-text-color: #fff;
        /* メインのテキストカラー */
        --main-bg-color: #000;
        /* メインの背景カラー */

        --secondary-text-color: #000;
        /* セカンダリのテキストカラー */
        --secondary-bg-color: #fff;
        /* セカンダリの背景カラー */

        --third-text-color: #ddd;
        --third-bg-color: #fff;

        /* アクセントカラー */
        --accent-color: #44D62C;

    }
}

/* Adsense用 */
.sp-adsence {
    width: 320px;
    height: 100px;
}

@media(min-width: 500px) {
    .sp-adsence {
        width: 468px;
        height: 60px;
    }
}

@media(min-width: 800px) {
    .sp-adsence {
        width: 728px;
        height: 90px;
    }
}

/* service-worker更新 */
#update-notification {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em;
    z-index: 10000;
}

@media only screen and (max-width: 768px) {
    #update-notification {
        bottom: 75px;
    }
}

html {
    font-size: 100%;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 60%;
    }
}

.white {
    color: var(--main-text-color);
}

.black {
    color: var(--secondary-text-color);
}

.bg-color {
    background-color: var(--main-bg-color);
}

.rock-contents {
    color: #000 !important;
}

.pc {
    display: block !important;
}

.sp {
    display: none !important;
}

@media only screen and (max-width: 768px) {
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
    }
}

* {
    margin: 0;
    padding: 0;
    line-height: 125%;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 100px;
}

@media only screen and (max-width: 768px) {
    body {
        padding-top: 45px;
        padding-bottom: 40px;
    }
}

li {
    list-style: none;
}

header {
    background-color: var(--secondary-bg-color);
    width: 100%;
    padding-top: 10px;
    position: fixed;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #44D62C;
}

@media only screen and (max-width: 768px) {
    header {
        padding: 0px;
        background-color: var(--main-bg-color);
    }
}

/* ヘッダーメニュー　*/

ul.header-dropmenu {
    list-style: none;
    width: 100%;
    height: 50px;
    margin: 0 auto;
    padding: 0;
    display: table;
    table-layout: fixed;
}

ul.header-dropmenu>li {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    background: var(--main-bg-color);
}

ul.header-dropmenu li a {
    display: block;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

ul.header-dropmenu li ul {
    visibility: hidden;
    width: 100%;
    list-style: none;
    position: absolute;
    top: 100%;
    left: -1px;
    margin: 0;
    padding: 0;
    /* マウスオーバー時の枠線 */
    border-top: none;
}

ul.header-dropmenu li:hover ul {
    visibility: visible;
}

ul.header-dropmenu li ul li {
    background: var(--main-bg-color);
    transition: all .2s ease;
}

ul.header-dropmenu>li:hover {
    background: #44D62C;
    border-bottom: none;
}

ul.header-dropmenu li:hover ul li:hover {
    background: #44D62C;
}

.slideshow-fade {
    position: relative;
    width: 100%;
    height: 150px;

    li {
        list-style: none;
        width: 100%;
        height: 100%;

        img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
        }
    }
}

@media only screen and (min-width: 768px) {
    .slideshow-fade {
        width: 50%;
        height: 250px;
        margin: auto;
    }
}

.button {
    width: 200px;
    height: 30px;
    border-radius: 1px;
    background-color: #44D62C;
    color: #fff;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    line-height: 20px;
    border: none;
    margin-right: auto;
    margin-left: auto;
    box-shadow: 0 0 8px var(--third-text-color);
    margin-bottom: 5px;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 15px;
}

.button-home {
    position: relative;
    /* 擬似要素を使うために相対位置を設定 */
    display: flex;
    /* Flexboxを使って中央揃え */
    justify-content: center;
    /* 横方向の中央揃え */
    align-items: center;
    /* 縦方向の中央揃え */
    width: 95%;
    height: 60px;
    border: none;
    font-weight: bold;
    background-color: #44D62C;
    /* バックグラウンドイメージがない場合の背景色 */
    background-size: cover;
    /* 画像をボタンに合わせてカバー */
    background-position: center;
    /* 画像の位置を中央に */
    background-repeat: no-repeat;
    /* 画像を繰り返さない */
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 8px var(--third-text-color);
    text-align: center;
    /* テキストを中央揃え */
    overflow: hidden;
    /* 擬似要素がボタン内に収まるように */
}

.button-home::before {
    content: '';
    /* 擬似要素の内容を空にする */
    position: absolute;
    /* 絶対位置でボタンの上に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* グレーのオーバーレイ（30%の透明度） */
    pointer-events: none;
    /* クリックイベントを無視する */
    z-index: 1;
    /* テキストの上に表示する */
}

.button-home span {
    position: relative;
    /* テキストがオーバーレイの上に来るように */
    z-index: 2;
    /* 擬似要素の下にテキストを表示 */
}

.fixed_btn {
    position: fixed;
    bottom: 90px;
    right: 10px;
    width: 100px;
    height: 40px;
    background-color: #44D62C;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 5px 5px;
    z-index: 8000;
    box-shadow: 0 0 5px var(--third-text-color);
}

.button:hover {
    opacity: 0.7;
}

@media only screen and (max-width: 768px) {
    .button:hover {
        opacity: 1;

    }
}

.white-bg {
    background-color: var(--main-bg-color);
}

.menu {
    display: flex;
    justify-content: center;
    gap: 0 150px;
    padding: 15px 0;
    font-weight: 700;
}

.nav__menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav__item {
    position: relative;
    margin-right: 20px;
    color: var(--secondary-text-color);
    font-weight: 400;

}

.nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: var(--secondary-bg-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.nav__submenu .nav__subitem {
    padding: 10px;
    white-space: nowrap;
}

.nav__submenu .nav__subitem a {
    text-decoration: none;
    color: var(--secondary-text-color);
}

.nav__submenu .nav__subitem a:hover {
    background-color: var(--secondary-bg-color);
}

.nav__dropdown:hover .nav__submenu {
    display: block;
}

.nav-content {
    background-color: var(--secondary-bg-color);
    opacity: 0.99;
    width: 80%;
    min-height: 70%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    padding: 10px 20px;
    overflow: auto;
    transform: translateX(100%);
    /* 画面外に配置 */
    transition-duration: 300ms;
}

.nav-content__list {
    margin-top: 2rem;
}

.nav-content__item {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--secondary-text-color);
}

@media only screen and (max-width: 768px) {
    .nav-content__item {
        margin-bottom: 20px;
    }
}

.nav-content__item a {
    color: var(--secondary-text-color);
}

#hamburger:checked~.nav-content {
    transform: translateX(0%);
}

.nav {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 10px;
}

.nav a {
    color: var(--secondary-text-color);
}

.title {
    color: var(--secondary-text-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@media only screen and (max-width: 768px) {
    .title {
        color: var(--main-text-color);
    }
}


a {
    text-decoration: none;
    color: var(--main-text-color);
}

.firstview {
    background-color: rgb(85, 85, 85);
    padding: 55px 0;
    border-bottom: 1px solid #44D62C;

}

@media only screen and (max-width: 768px) {
    .firstview {
        padding: 5px 5px;
    }
}

.firstview__title-box {
    text-align: center;
    padding: 10px 0;
}

@media only screen and (max-width: 768px) {
    .firstview__title-box {
        padding: 20px;
    }
}

.firstview__title {
    font-size: 2.0rem;
    color: white;
    letter-spacing: 0.14em;
    line-height: 125%;
}

@media only screen and (max-width: 768px) {
    .firstview__title {
        font-size: 2rem;
    }
}

.about {
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: #44D62C 1px solid;
}

.inner {
    max-width: 1000px;
    margin: auto;
}

@media only screen and (max-width: 768px) {
    .inner {
        padding: 0px 15px;
    }
}

.linked {
    padding-top: 125px !important;
    margin-top: -125px !important;
}

@media only screen and (max-width: 768px) {
    .linked {
        padding-top: 46px !important;
        margin-top: -36px !important;
    }
}

.flex-row-between {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

@media only screen and (max-width: 768px) {
    .flex-row-between {
        padding: 10px 20px;
    }
}

.flex-end {
    display: flex;
    justify-content: end;
    align-items: center;
}

.fas {
    font-size: 1.6rem;
}

.file-button::file-selector-button {
    font-weight: bold;
    color: white;
    background: #44D62C;
    border: 0;
    border-radius: 5em;
    padding: 8px 16px;
    text-align: center;
    box-shadow: 0 0 8px var(--third-text-color);
}

input[name="monster-list"] {
    width: 130px;
    height: 20px;
    color: black;
}

input[name="hamburger_menu"] {
    display: none;
}

.monster-inputtable {
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .monster-inputtable {
        text-align: left;
    }
}

.monster-inputtable label {
    font-size: 1.5rem;
    font-weight: 700;
}

.mongroup {
    max-width: 23px;
    margin-left: -5px;
    display: none;

}

.td-mon {
    display: flex;
    text-align: center;
    margin-right: 10px;
}

.colorbox {
    background-color: var(--main-bg-color);
    display: flex;
    justify-content: center;
    padding: 10px 10px;
}

.motherlook {
    background-color: var(--main-bg-color);
    display: flex;
    justify-content: center;
    color: var(--main-text-color);
}

.section-title {
    padding: 0 15px;
    border-left: 10px solid #44D62C;
}

.section-howto {
    position: relative;
    padding-left: 20px;
    /* 丸アイコンのスペースを確保 */
}

.section-howto::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #44D62C;
    border-radius: 50%;
}

.text-align-center {
    text-align: center;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #222;

}

.footer-sitemap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-sitemap h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.footer-sitemap ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-sitemap li {
    margin: 10px 20px;
}

.footer-sitemap a {
    color: white;
    text-decoration: none;
}

.footer-sitemap a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .footer-sitemap ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-sitemap li {
        margin: 10px 0;
    }
}

/* フッターのグリッドレイアウト */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

/* グリッドアイテムのスタイル */
.grid-item {
    text-align: center;
    /* テキストを中央揃え */
    border-radius: 8px;
    /* 角を丸くする */
}

/* リンクのスタイル */
.grid-item a {
    text-decoration: none;
    /* アンダーラインを削除 */
    color: #f8f8f8;
    /* リンクの文字色 */
    font-weight: bold;
    /* 太字にする */
    font-size: 14px;
    /* 文字サイズ */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 画面幅が狭い場合は2列に */
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* モバイルでは1列表示に */
    }
}


footer p {
    color: #fff;
    font-size: 1.2rem;
}


.margin-top-10 {
    margin-top: 10px;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

/* カスタム　*/

.resultbox {
    width: 80%;
    height: 100px;
    border-radius: 1px;
    background-color: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 1px solid #44D62C;
    margin: auto;
    font-size: 2.0rem;
}

@media only screen and (max-width: 768px) {
    .resultbox {
        font-size: 1.8rem;
    }
}

.table {
    display: none;
    border-collapse: separate;
}

.table td {
    text-align: center;
}



.table td img {
    width: 30px;
    height: auto;
    cursor: pointer;
}

.choice-table {
    border-right: 3px groove #888;
    position: relative;
    z-index: 1;
}

.swap-img {
    position: absolute;
    top: 140px;
    /* 画像の位置を調整 */
    right: -30px;
    /* 画像の位置を調整 */
    z-index: 2;
    /* ボーダーより高い z-index を指定 */
    cursor: pointer;
    /* クリック可能であることを示す */
}

.swap-img-tyrant {
    width: 50px;
    position: absolute;
    top: 220px;
    right: 330px;
    z-index: 2;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    .choice-table {
        border: none;
    }

    .swap-img {
        position: absolute;
        top: 200px;
        /* 画像の位置を調整 */
        right: 100px;
        /* 画像の位置を調整 */
        z-index: 2;
        /* ボーダーより高い z-index を指定 */
        cursor: pointer;
        /* クリック可能であることを示す */
        width: 40px !important;
    }

    .swap-img-tyrant {
        top: 180px;
        right: 30px;
        width: 40px !important;
    }
}

.rounded-border {
    background-color: var(--main-bg-color);
    border: 2px solid var(--secondary-bg-color);
    /* 枠線の太さや色を設定 */
    border-radius: 10px;
    /* 角の丸みを設定 */
    padding: 15px;
    /* コンテンツと枠線の間のスペースを設定 */
    text-align: center;
    /* コンテンツを中央揃えにする */
    position: fixed;
    margin: auto;
    top: 0px;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 10;

}

@media only screen and (max-width: 768px) {
    .rounded-border {
        top: 0;
    }

}

.tooltip {
    display: none;
    position: absolute;
    background-color: var(--main-bg-color);
    color: var(--secondary-text-color);
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
}

.textcenter {
    text-align: center;
}

.hover {
    position: relative;
    display: inline-block;
}

.hover .tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* 数値の＋－ボタン　*/
.number-input {
    display: flex;
    align-items: center;
}

.number-input input {
    width: 60px;
    text-align: center;
    margin: 0 5px;
}

.number-input button {
    width: 30px;
    height: auto;
    font-size: 18px;
    text-align: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    background-color: #44D62C;
    border: none;
    color: #fff;
}

/* inputの見え方　*/
.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

label,
input {
    margin-right: 10px;
    color: var(--main-text-color);
}

label input .acd-label {
    margin-right: none;
}


/* ハンバーガーメニュー　*/

.menu-icon {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    transform: translateY(-20%);
    /* 垂直方向に中央揃え */
    z-index: 100;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: width 0.01s ease-out;
    z-index: 200;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay-content a {
    padding: 8px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    display: block;
    transition: 0.3s;
}

.overlay-content a:hover,
.overlay-content a:focus {
    color: #f1f1f1;
}

.closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: white;
}

/* PC環境では右側25％を覆う */
.overlay.open {
    width: 25%;
}

/* スマホ環境では右側から90％を覆う */
@media screen and (max-width: 768px) {
    .overlay.open {
        width: 90%;
    }
}

/* 追従ボタンCSS */
.dark-light_btn {
    position: fixed;
    width: 20px;
    height: 20px;
    box-shadow: 5px 0 0 var(--main-bg-color);
    border-radius: 100vh;
    bottom: 80px;
    left: 10px;
    background-color: var(--secondary-bg-color);
    color: var(--main-text-color);
    z-index: 1000;
}

.dark-light_btn:hover {
    opacity: 0.8;
}


/* プライバシーポリシー */
.howto {
    margin-bottom: 15px;
    line-height: 30px;
}

@media screen and (max-width: 768px) {
    .howto {
        line-height: 20px;
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 768px) {
    .fontsize {
        font-size: 1.3rem;
    }
}

/* grid */
.container {
    display: grid;
    grid-template-columns: 28% 72%;
    /* 左側を30%、右側を70%に設定 */
}

.left,
.right {
    padding: 5px;
}

.left {
    display: flex;
    align-items: center;
}

.howto_toggle {
    margin-bottom: 5px;
    line-height: 25px;
}

@media screen and (max-width: 768px) {
    .howto_toggle {
        line-height: 10px;
        font-size: 1.2rem;
    }
}

/* PWA用スタイル　*/
.hidden {
    display: none;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px 0;
    z-index: 9999;
}

@media screen and (min-width: 768px) {
    .fixed-footer {
        display: none;
    }
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.footer-item img {
    width: 30px;
    margin-bottom: 5px;
}

.footer-item span {
    text-align: center;
    font-size: 1.2rem;
}