/* --- 基本設定 --- */
:root {
    --gu-color: #e53935;
    --choki-color: #1e88e5;
    --pa-color: #43a047;
    --extra-color: #8e24aa;
    --text-dark: #2c3e50;
    --text-light: #5a6a7a;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
}

html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Kiwi Maru', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-image: url('../img/animaltype/back.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- ヘッダー --- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    font-family: 'Kiwi Maru', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* --- スライドギミック用スタイル --- */
.slider-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    box-sizing: border-box;
    position: relative;
    background-color: transparent;
}

/* --- アニマルカード --- */
.animal-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    width: 100%;
    max-width: 380px;
    max-height: min(90vh, 520px);
    overflow-y: auto;
    box-sizing: border-box;
    overscroll-behavior-y: contain;
}

.animal-image-container {
    width: 100%;
    height: 150px;
    margin-bottom: 0.8rem;
    /* ↓↓ カード背景が透けて見えるように調整 ↓↓ */
    background-color: rgba(240, 242, 245, 0.8);
    /* 少し透明にする */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animal-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.animal-card h3 {
    margin: 0;
    font-family: 'Kiwi Maru', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

/* ▼▼▼ ここから追加・修正 ▼▼▼ */
.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -0.5rem 0 0rem 0;
}

.animal-type-icon {
    height: 4rem;
    width: auto;
}

.animal-type {
    display: inline-block;
    padding: 4px 12px;
    margin: 0;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

/* ▲▲▲ ここまで追加・修正 ▲▲▲ */


.description {
    margin: 0 0 0rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.strength {
    font-size: 0.9rem;
    padding: 0.3rem 1rem 0rem 1rem;
    margin: 0.6rem 0 0 0;
    border-top: #5a6a7a 1px solid;
}

.strength p {
    margin: 0;
}

.strength strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* タイプごとの色分け */
.animal-card[data-type="gu"] .animal-type {
    background-color: var(--gu-color);
}

.animal-card[data-type="gu"] .strength {
    border-color: var(--gu-color);
}

.animal-card[data-type="choki"] .animal-type {
    background-color: var(--choki-color);
}

.animal-card[data-type="choki"] .strength {
    border-color: var(--choki-color);
}

.animal-card[data-type="pa"] .animal-type {
    background-color: var(--pa-color);
}

.animal-card[data-type="pa"] .strength {
    border-color: var(--pa-color);
}

.animal-card[data-type="extra"] .animal-type {
    background-color: var(--extra-color);
}

.animal-card[data-type="extra"] .strength {
    border-color: var(--extra-color);
}

/* --- スクロールダウンの矢印 --- */
.scroll-down {
    position: absolute;
    bottom: 12vh;
    left: 48%;
    width: 30px;
    height: 30px;
    border-left: 7px solid #fff;
    border-bottom: 7px solid #fff;
    transform: rotate(-45deg);
    opacity: 0.9;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    40% {
        transform: translateY(-15px) rotate(-45deg);
    }

    60% {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* --- 目次ページ用スタイル --- */
.index-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    text-align: center;
}

.index-container h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.index-item {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: var(--bg-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.index-item img {
    width: 100%;
    max-width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.index-item p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}





/* Header対策 */

header {
	    margin-top: 26px;
}
	    
@media screen and (max-width:768px) {
header {
	    margin-top: 0px;
	}
}

/* サイトシール対策 20250707改訂*/

.corporate_logo {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 10px;
  display: flex;
  justify-content: start;
}

.corporate_logo img {
  height: 18px;
  width: auto;

}

@media only screen and (max-width: 768px) {
  .corporate_logo {
    justify-content: center;
  }
}

.site_seal {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.site_seal img{
    width: 115px;
    height: 57px;
}
.site_seal div.site_seal_left {
  padding: 40px 5px 40px 115px;
}
.site_seal div.site_seal_center {
  padding: 40px 5px 0px 5px;
}
.site_seal div.site_seal_right {
  padding: 40px 115px 40px 5px;
}

@media only screen and (max-width: 768px) {

  .site_seal {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
  }


  .site_seal a {
    display: block !important;
  }

  .site_seal div.site_seal_left {
    padding: 40px 5px 40px 0px;
  }
  .site_seal div.site_seal_center {
    padding: 0px 5px 0px 5px;
  }
  .site_seal div.site_seal_right {
    padding: 40px 0px 40px 5px;
  }

}

.footer_area_bg {
  background-color: #fff;

}
