/* style.css (トップページ用に追加・修正) */

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #e0f7fa, #fce4ec); /* グラデーション背景 */
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明の白背景 */
    padding: 2em 3em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative; /* アニメーションの基準点 */
    overflow: hidden; /* 波紋がはみ出さないように */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/anime_header_bg.png'); /* ヘッダー背景画像 (用意する必要があります) */
    background-size: cover;
    opacity: 0.6;
    z-index: -1;
}

header h1 {
    font-size: 3em;
    color: #ff69b4;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5em;
    animation: fadeInUp 1s ease-out; /* フェードインアニメーション */
}

header p {
    color: #555;
    font-size: 1.2em;
    animation: fadeInUp 1.2s ease-out 0.2s; /* 少し遅れてフェードイン */
}

/* 検索セクション */
#search-section {
    padding: 3em;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    margin: 2em auto;
    max-width: 700px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out 0.4s; /* スライドインアニメーション */
}

#search-section label {
    display: block;
    margin-bottom: 0.8em;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

#search-section input[type="text"] {
    width: 70%;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1.1em;
    margin-bottom: 1em;
}

#search-section button[type="submit"] {
    background-color: #00bfff;
    color: #fff;
    padding: 1em 2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

#search-section button[type="submit"]:hover {
    background-color: #1e90ff;
}

/* 最近登録されたアニメ */
#recent-animes {
    padding: 3em;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin: 2em auto;
    max-width: 960px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 1s ease-out 0.6s; /* 左からスライドイン */
}

#recent-animes h2 {
    font-size: 2.2em;
    color: #ff69b4;
    margin-bottom: 1em;
    text-align: center;
}

#recent-animes ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    list-style: none;
    padding: 0;
}

#recent-animes li {
    background-color: #fff;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

#recent-animes li:hover {
    transform: translateY(-5px); /* 少し持ち上がるアニメーション */
}

#recent-animes h3 {
    color: #00bfff;
    margin-top: 0;
    margin-bottom: 0.8em;
    font-size: 1.5em;
}

#recent-animes img {
    border-radius: 6px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8em;
}

#recent-animes p {
    color: #555;
    margin-bottom: 1em;
}

#recent-animes a {
    color: #00bfff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#recent-animes a:hover {
    color: #1e90ff;
    text-decoration: underline;
}

/* フッター */
footer {
    text-align: center;
    padding: 2em;
    background-color: #333;
    color: #fff;
    margin-top: 3em;
}

/* アニメーション定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* テキスト選択の禁止 */
body {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}