
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15rem;
}


header h1 a:hover {
    color: rgb(0, 0, 0);
}


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


/* ヘッダー */
header {
    text-align: center;
    margin: 80px 0;
    margin-bottom: 20rem;
}
.icon{
    width: 30px;
}
header h1 {
    font-family: 'Brush Script MT', cursive;
    font-size: 2.5em;
}
.search-bar {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.search-bar input {
    /* width: 50px; */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}
.search-bar button {
    padding: 10px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    background-color: #f0f0f0;
    cursor: pointer;
}
.content {
    width: 100%;
    /* max-width: 800px; */
    /* display: flex; */
    flex-direction: column;
    align-items: center;
}
.section {
    margin: 20px 0;
}
.section h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.loading img {
    width: 400px;
    height: 300px;
}


/* フッターナビゲーションのデザイン */
footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.nav-content{
    margin-left: 5rem;
}

/* 全体のフッター設定 */
.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* トグルボタン */
.footer-toggle {
    display: none; /* デフォルトで非表示（スマホでのみ表示） */
    width: 100%;
    padding: 10px;
    background-color: #444;
    color: #fff;
    border: none;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

/* フッターナビ */
.footer-nav {
    display: flex;
    justify-content: center;
    /* justify-content: space-between; */
    align-items: center;
    background-color: #333;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease, padding 0.3s ease; /* アニメーション追加 */
    height: 80px; /* 初期高さ */
    overflow: hidden;
}

/* 各リンクのスタイル */
.footer-nav a.footer-a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    margin: 0 8px; /* 各要素間の間隔を具体的な値で指定 */
}

/* アイコンのサイズと背景 */
.footer-nav .icon {
    width: 30px;
    height: 30px;
    background-color: rgb(224, 224, 224);
    border-radius: 50%;
    padding: 4px;
    margin-bottom: 3px; /* テキストとの間隔 */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* ホバー時のエフェクト */
.footer-nav a.footer-a:hover {
    color: #00bcd4;
}

.footer-nav a.footer-a:hover .icon {
    transform: scale(1.1);
    background-color: rgba(0, 188, 212, 0.4);
}

/* スマホ用デザイン */
@media (max-width: 768px) {
    .nav-content{
        margin-left: 0;
    }

    .footer-toggle {
        display: block; /* スマホでトグルボタンを表示 */
    }

    .footer-nav {
        flex-direction: column;
        justify-content: flex-start;
        height: 0; /* 初期状態で完全非表示 */
        padding: 0; /* 初期状態でパディングをなくす */
    }

    .footer-nav.show {
        height: auto; /* 表示状態で自動調整 */
        padding: 10px; /* 表示状態でパディング復活 */
    }
}
/* --------------------------------------------------------------- */


/* ハンバーガーメニュー */
nav {
    position: fixed;
    top: 0;
    right: -300px; /* 初期位置は右外 */
    width: 300px;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.9);
    transition: right 0.4s ease; /* スライドアニメーション */
    z-index: 2;
    padding-top: 60px;
    overflow-y: auto; /* スクロールを許可 */
}

/* ハンバーガーボタンのスタイル */
#humOpen {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 3;
}

#humClose {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    cursor: pointer; /* 背景クリックを可能に */
    transition: opacity 0.3s ease;
}

/* チェック時の動作 */
#humCheck:checked ~ nav {
    right: 0; /* メニューを右側に表示 */
}
/* メニューが開いた時 */
#humCheck:checked ~ #humClose {
    display: block;
    opacity: 1; /* 背景を明確に */
}

/* ナビゲーションメニューのリスト */
nav ul.inner {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height:50px;
    text-align: left;

}

nav ul.inner li:last-child {
    border-bottom: none;
}

nav ul.inner li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: color 0.3s ease;
}

nav ul.inner li a:hover {
    color: #00bcd4; /* ホバー時の色変更 */
}


/* アラート */
.pic-container {
    width: 100vw;
    height: 100vh;
    padding: 2rem 6rem;
    box-sizing: border-box;
    background-color: #fefefe;
}

.alert {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 5rem;
    box-shadow: 0 0 5px #999;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #333;
    gap: 0.5rem;
    line-height: 1.5;
    z-index: 1;
    background-color: white;
}

.alert i {
    font-size: 1.3rem;
}

.alert>a {
    cursor: pointer;
    color: #D4D4D4;
    margin-left: auto;
}

.hide-box {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 1s;
}

.alert-success {
    border-left: 5px solid #5CBD9D;
}

.alert-error {
    border-left: 5px solid #E74C3C;
}

.alert-warning {
    border-left: 5px solid #F29C33;
}

.alert-info {
    border-left: 5px solid #3998DB;
}

.fa-check-circle {
    color: #5CBD9D;
}

.fa-times-circle {
    color: #E74C3C;
}

.fa-exclamation-triangle {
    color: #F29C33;
}

.fa-exclamation-circle {
    color: #3998DB;
}


header h1 {
    margin: 0;
    font-size: 2.5em;
}

header h1 a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}


/* 戻るボタン */
/* ボタンのスタイル */
.back-button {
    position: fixed;
    bottom: 20px;      /* 画面下から20px */
    right: 20px;       /* 画面右から20px */
    width: 60px;       /* ボタンの幅 */
    height: 60px;      /* ボタンの高さ */
    background-color: #4CAF50; /* ボタンの背景色 */
    color: #fff;       /* テキストの色 */
    border: none;
    border-radius: 50%;  /* 丸くする */
    font-size: 16px;     /* テキストの大きさ */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* ボタンに影を付ける */
    text-decoration: none; /* リンクの下線を削除 */
    transition: background-color 0.3s; /* ホバー時の色変化 */
}

/* ホバー効果 */
.back-button:hover {
    background-color: #45a049;
}




/* スマホサイズ */
@media (max-width: 768px) {
    /* 戻るボタン */
    /* ボタンのスタイル */
    .back-button {
        position: fixed;
        bottom: 20px;      /* 画面下から20px */
        right: 60px;       /* 画面右から20px */
        width: 60px;       /* ボタンの幅 */
        height: 60px;      /* ボタンの高さ */
        background-color: #4CAF50; /* ボタンの背景色 */
        color: #fff;       /* テキストの色 */
        border: none;
        border-radius: 50%;  /* 丸くする */
        font-size: 16px;     /* テキストの大きさ */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* ボタンに影を付ける */
        text-decoration: none; /* リンクの下線を削除 */
        transition: background-color 0.3s; /* ホバー時の色変化 */
    }

    /* ホバー効果 */
    .back-button:hover {
        background-color: #45a049;
    }
}
