/* Love Animals 8 - 動物解説ページ共通CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #C7B299;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    text-align: center;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* ヘッダー */
.header {
    background-color: #A67C52;
    padding: 20px;
}

.header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logos a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.header-logos a:hover {
    transform: scale(1.05);
}

.header-logos img {
    height: 40px;
    width: auto;
    display: block;
}

/* セクション共通 */
.section-top {
    padding: 40px 20px;
}

.section-border {
    background-color: #4E3A3D;
    height: 10px;
}

.section-copy {
    padding: 30px 20px;
}

.section-description {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* キャラクター画像 */
.character-image {
    margin-bottom: 20px;
}

.character-image img {
    max-width: 300px;
    width: 80%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.character-image img.loaded {
    opacity: 1;
}

.character-name {
    margin-bottom: 20px;
}

.character-name img {
    height: 80px;
    width: auto;
    max-width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.character-name img.loaded {
    opacity: 1;
}

/* タイプ情報 */
.type-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.type-info img {
    width: auto;
    max-width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.type-info img.loaded {
    opacity: 1;
}

.type-info .type-en {
    height: 30px;
}

.type-info .type-word {
    height: 20px;
}

/* キャッチコピー */
.catch-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.catch-content img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.catch-content img.loaded {
    opacity: 1;
}

.catch-content .catch-main {
    max-width: 95%;
    height: 28px;
    width: auto;
}

.catch-content .catch-en {
    max-width: 95%;
    height: 50px;
    width: auto;
}

/* 説明コンテンツ */
.description-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.description-content img {
    max-width: 500px;
    width: 95%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.description-content img.loaded {
    opacity: 1;
}

/* タイトル画像ラッパー（5, 8, 13番） */
.description-content .desc-title-wrapper {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    padding-top: 30px;
    border-top: 3px solid #4E3A3D;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* 最初のタイトル画像ラッパー（5番）は上部マージンとボーダーなし */
.description-content .desc-title-wrapper:first-child {
    margin-top: 0;
    border-top: none;
}

/* タイトル画像のサイズ */
.description-content .desc-title-wrapper img {
    max-width: 300px;
    width: 80%;
}

/* ボタンエリア */
.button-area {
    background-color: #C7B299;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.button-area button,
.button-area a {
    background-color: #A67C52;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button-area button:hover,
.button-area a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* フッター */
.footer {
    background-color: #C7B299;
    padding: 20px;
}

.footer img {
    max-width: 400px;
    width: 70%;
    height: auto;
}

/* レスポンシブ */
@media (min-width: 769px) {
    .container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-logos img {
        height: 30px;
    }

    .character-image img {
        max-width: 300px;
    }

    .character-name img {
        height: 85px;
    }

    .type-info .type-en {
        height: 26px;
    }

    .type-info .type-word {
        height: 18px;
    }

    .catch-content .catch-main {
        height: 26px;
        width: auto;
    }

    .catch-content .catch-en {
        height: 26px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .character-image img {
        max-width: 250px;
    }

    .character-name img {
        height: 90px;
    }

    .type-info .type-en {
        height: 23px;
    }

    .type-info .type-word {
        height: 20px;
    }

    .catch-content .catch-main {
        height: 23px;
        width: auto;
    }

    .catch-content .catch-en {
        height: 38px;
        width: auto;
    }

    .description-content .desc-title-wrapper {
        padding-top: 20px;
        border-top-width: 2px;
        margin-top: 15px;
    }

    .description-content .desc-title-wrapper img {
        max-width: 240px;
    }

    .button-area button,
    .button-area a {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* シェアボタンセクション */
.share-section {
    background-color: #fff;
    padding: 30px 20px;
    margin: 0px 0;
}

.share-container {
    max-width: 500px;
    margin: 0 auto;
}

.share-title {
    font-size: 18px;
    font-weight: bold;
    color: #4E3A3D;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #fff;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button svg {
    flex-shrink: 0;
}

.share-x {
    background-color: #000;
}

.share-x:hover {
    background-color: #333;
}

.share-line {
    background-color: #06C755;
}

.share-line:hover {
    background-color: #05B04B;
}

.share-facebook {
    background-color: #1877F2;
}

.share-facebook:hover {
    background-color: #0C63D4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .share-section {
        padding: 25px 15px;
    }

    .share-title {
        font-size: 16px;
    }

    .share-buttons {
        gap: 12px;
    }

    .share-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .share-button svg {
        width: 20px;
        height: 20px;
    }
}
