.header {
    position: static;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.95) 0%, rgba(17, 17, 17, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 120px;
    max-width: 600px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

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

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 24px;
}

.menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-menu:hover .menu-icon {
    transform: scale(1.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
}

.main-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.top-banner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.description {
    background: #ffffff;
    padding: 36px;
}

.description-content {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0;
    box-sizing: border-box;
}

.description-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.description-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.description-text:last-child {
    margin-bottom: 0;
}

.description-text-centered {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: rgb(34, 34, 34);
    line-height: 1.8;
    margin: 0 auto;
    text-align: left;
    max-width: 95%;
    padding: 20px 2%;
    box-sizing: border-box;
}

.main {
    padding: 0;
}

@media (max-width: 768px) {
    .description {
        padding: 30px 0;
    }
    
    .description-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .description-text {
        font-size: 14px;
    }
}

/* Frame 625389 - Campaign Information Panel Styles */
.frame-625389 {
    background: #ffffff;
    padding: 36px;
}

.frame-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
}

/* Section 1: Frame 625421 - Header Section */
.frame-625421.header-section {
    width: 100%;
    max-width: 560px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.frame-625358.campaign-header-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    border-bottom: 4px solid rgb(177, 150, 86);
    background: transparent;
}

.campaign-header-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgb(68, 68, 68);
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.8;
}

/* Section 2: Frame 625333 - Date Range Section */
.frame-625333.date-range-section {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-top: 1px solid rgb(141, 141, 141);
    border-bottom: 1px solid rgb(141, 141, 141);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.frame-625319.labels-section {
    width: 100%;
    padding-left: 16px;
}

.period-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgb(34, 34, 34);
    letter-spacing: 0.6px;
    line-height: 1.25;
}

.frame-625332.dates-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 16px;
}

.start-date,
.end-date {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
    line-height: 1.0;
    white-space: nowrap;
}

.date-separator {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgb(34, 34, 34);
    margin: 0 4px;
}

/* Section 3: Frame 625320 - Point Usage Section (Hidden) */
.frame-625320.point-usage-section {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-top: 1px solid rgb(141, 141, 141);
    border-bottom: 1px solid rgb(141, 141, 141);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.frame-625320 .labels-section {
    padding-left: 16px;
}

.frame-625320 .dates-container {
    padding-left: 16px;
}

/* Section 4: Frame 625393 - Campaign Details Section */
.frame-625393.campaign-details-section {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

/* Section 5: Notes Section (Bottom) */
.notes-section {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
    border-top: 1px solid rgb(141, 141, 141);
    border-bottom: 1px solid rgb(141, 141, 141);
    padding: 20px;
    box-sizing: border-box;
}

.notes-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.notes-header .campaign-header-badge {
    border-bottom: 4px solid rgb(177, 150, 86);
}

.notes-header .campaign-header-text {
    color: rgb(68, 68, 68);
}

/* Expandable Content Areas */
.expandable-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.expandable-content.collapsed {
    max-height: 0;
    padding: 0 16px;
}

.campaign-details-toggle {
    cursor: pointer;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.toggle-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(34, 34, 34);
}

.prize-content-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    margin: 0 auto 36px auto;
    max-width: 100%;
    width: 100%;
}

.participation-flow-section {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.flow-header {
    background: #000000;
    color: #ffffff;
    padding: 12px 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flow-expand-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}


.arrow-icon {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-top: 2px solid #000000;
    border-right: 2px solid #000000;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.3s ease;
}

.arrow-icon.rotated::after {
    transform: translate(-50%, -50%) rotate(135deg);
}

.flow-content {
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.flow-content.collapsed {
    max-height: 0;
}

.flow-step-container {
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.flow-step-container:last-child {
    border-bottom: none;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-number-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.number {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.flow-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    width: 100%;
}

.step-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 8px;
    max-width: 90%;
}

.official-x-button {
    background: linear-gradient(135deg, #b19656, #d4af37);
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
    box-sizing: border-box;
}

.official-x-button:hover {
    background: linear-gradient(135deg, #a08545, #c29f26);
    transform: translateY(-1px);
}

.button-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.post-preview {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    width: 100%;
    margin: 20px auto;
}


.post-content {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-text-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-text-bar {
    height: 12px;
    background: #c1c1c1;
    border-radius: 6px;
}

.post-text-bar:not(.short) {
    width: 200px;
}

.post-text-bar.short {
    width: 120px;
}

.hashtag-text {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #21A2F7;
    text-align: left;
}

.post-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}




.step-note {
    margin-top: 16px;
    text-align: center;
}

.note-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgb(34, 34, 34);
    margin: 0 0 12px 0;
}

/* Prize Standalone Section */
.prize-standalone-section {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    margin: 16px 0;
    padding: 0;
}

/* Prize Header Styles */
.prize-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgb(68, 68, 68);
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.8;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 4px solid rgb(177, 150, 86);
    display: inline-block;
}

.prize-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mystery-content {
    text-align: center;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.795 / 1; /* デフォルトはblack画像のアスペクト比 */
    overflow: hidden;
}

.mystery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* レスポンシブ対応 - ミステリー画像 */
@media (max-width: 768px) {
    .mystery-content {
        aspect-ratio: auto; /* JSで動的に設定されるアスペクト比を維持 */
    }
}

@media (max-width: 480px) {
    .mystery-content {
        aspect-ratio: auto; /* JSで動的に設定されるアスペクト比を維持 */
    }
}

.prize-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.prize-period {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: rgb(34, 34, 34);
}

.prize-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: rgb(34, 34, 34);
    line-height: 1.4;
}

.flow-step {
    padding: 12px;
    background: #e8f4fd;
    border-radius: 4px;
    margin-bottom: 12px;
}

.step-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(34, 34, 34);
}

.hashtag-section {
    text-align: center;
    padding: 16px;
    background: #fff3cd;
    border-radius: 4px;
}

.hashtag {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgb(177, 150, 86);
}

.close-section {
    text-align: center;
    padding: 12px 16px;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.3s ease-out;
}

.close-section.hidden {
    opacity: 0;
    pointer-events: none;
}

.close-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.close-arrow {
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #ffffff;
    border-right: 1.5px solid #ffffff;
    transform: translateY(1px) rotate(-45deg);
    display: inline-block;
}

.close-label {
    /* 閉じるテキスト用のスタイル */
}

/* Large Desktop */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .description-content {
        max-width: 1000px;
    }
    
    .species-content {
        max-width: 1000px;
    }
    
    .species-grid {
        max-width: 800px;
        gap: 16px;
        grid-template-rows: repeat(6, auto);
    }
    
    .species-title {
        font-size: 20px;
    }
    
    .decoration-top,
    .decoration-bottom {
        max-width: 500px;
    }
    
    .frame-content {
        max-width: 700px;
        padding: 0 40px;
    }
    
}

/* Standard Desktop */
@media (min-width: 1200px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0;
        margin: 0 auto;
    }
    
    .species-grid {
        max-width: 700px;
        gap: 16px;
        grid-template-rows: repeat(6, auto);
    }
    
    .description-content {
        max-width: 900px;
    }
    
    .species-content {
        max-width: 900px;
    }
    
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 20px;
    }
    
    .container {
        padding: 0;
    }
    
    .frame-content {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .frame-625421.header-section,
    .frame-625333.date-range-section,
    .frame-625393.campaign-details-section {
        max-width: none;
        width: 100%;
    }
    
    .description-content {
        max-width: 90%;
    }
    
    .species-content {
        max-width: 90%;
    }
    
    .species-grid {
        max-width: 500px;
        gap: 16px;
        grid-template-rows: repeat(6, auto);
    }
}

/* Tablet Responsive */
@media (max-width: 768px) {
    html {
        width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        background: #ffffff !important;
    }
    
    .main-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    .top-banner {
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow: visible;
    }
    
    .description {
        padding: 30px 0;
    }
    
    .frame-625389 {
        padding: 20px;
    }
    
    .species-selection-section {
        padding: 20px;
    }
    .flow-expand-icon {
        right: 12px;
    }
    
    .arrow-icon {
        width: 20px;
        height: 20px;
    }
    
    .arrow-icon::after {
        width: 8px;
        height: 8px;
        border-width: 2px;
    }
    .header {
        height: 70px;
        max-width: 100%;
    }
    
    .header-content {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .header-menu {
        right: 16px;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .menu-icon {
        width: 20px;
        height: 20px;
    }
    
    .banner-image {
        width: 100%;
        height: 200px;
        object-fit: contain;
        background: #ffffff;
    }
    
    .description {
        padding: 30px 0;
    }
    
    .description-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .description-text {
        font-size: 14px;
    }
    
    .description-text-centered {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 17px;
        font-weight: 700;
        color: rgb(34, 34, 34);
        padding: 15px;
        width: 90%;
        text-align: left;
        margin: 0 auto;
        display: block;
        box-sizing: border-box;
    }
    
    .description-content {
        padding: 0;
        margin: 0 auto;
        text-align: center;
    }
    
    .frame-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    
    .campaign-header-text {
        font-size: 20px;
    }
    
    .dates-container {
        flex-direction: row;
        align-items: center !important;
        gap: 4px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .date-separator {
        display: inline;
    }
    
    .expandable-content {
        padding: 12px;
    }
    
    .notes-section {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 0;
    }
    
    .footer-content {
        max-width: 100%;
        margin: 0;
        padding: 20px;
        position: static;
        left: auto;
        transform: none;
    }
    
    .footer {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    .prize-standalone-section {
        width: 100%;
    }
    
    .species-selection-section {
        padding: 40px 0;
    }
    
    .species-content {
        margin: 0 16px;
    }
    
    .species-header {
        gap: 16px;
    }
    
    .decoration-top,
    .decoration-bottom {
        max-width: 300px;
    }
    
    .species-title {
        font-size: 16px;
    }
    
    .species-grid {
        max-width: 100%;
        margin: 30px auto 0 auto;
        padding: 0 16px;
        gap: 12px;
        grid-template-rows: repeat(6, auto);
    }
    
    .species-card {
        border-radius: 6px;
        height: auto;
        min-height: unset;
    }
    
    .post-preview {
        max-width: 100%;
        margin: 12px 0;
    }
    
    .flow-step-container {
        padding: 24px 16px;
        gap: 16px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .step-number-image {
        width: 50px;
        height: 50px;
    }
    
    .step-description {
        font-size: 18px;
        max-width: 95%;
        margin-bottom: 12px;
    }
    
    .official-x-button {
        min-width: 200px;
        padding: 12px 24px;
    }
    
    
    
    .button-text {
        font-size: 15px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    html {
        width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }
    
    .main-container,
    .top-banner,
    .container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .banner-image {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        object-fit: cover;
    }
    
    .main-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    .top-banner {
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
    }
    
    .description {
        padding: 20px 0;
    }
    
    .frame-625389 {
        padding: 16px;
    }
    
    .species-selection-section {
        padding: 24px 16px;
    }
    .flow-expand-icon {
        right: 10px;
    }
    
    .flow-title {
        padding-right: 40px;
    }
    
    .flow-step-container {
        padding: 20px 12px;
        gap: 14px;
    }
    
    .step-description {
        font-size: 16px;
        max-width: 95%;
    }
    
    .official-x-button {
        min-width: 180px;
        padding: 10px 20px;
    }
    .header {
        height: 60px;
        max-width: 100%;
    }
    
    .header-content {
        padding: 0 12px;
        max-width: 100%;
    }
    
    .header-menu {
        right: 12px;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .menu-icon {
        width: 18px;
        height: 18px;
    }
    
    .banner-image {
        width: 100vw;
        height: auto;
        object-fit: cover;
    }
    
    .description {
        padding: 20px 0;
    }
    
    .description-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .description-text {
        font-size: 13px;
    }
    
    .description-text-centered {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: rgb(34, 34, 34);
        padding: 12px 3%;
        max-width: 94%;
        text-align: left;
        margin: 0 auto;
        display: block;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0;
    }
    
    .frame-content {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .frame-625421.header-section,
    .frame-625333.date-range-section,
    .frame-625393.campaign-details-section {
        max-width: none;
        width: 100%;
    }
    
    .campaign-header-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .flow-title {
        font-size: 16px;
    }
    
    .frame-625333.date-range-section {
        padding: 16px 12px;
    }
    
    .frame-625332.dates-container {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding-left: 0;
        flex-wrap: wrap;
    }
    
    .start-date,
    .end-date {
        font-size: 12px;
        white-space: nowrap;
        line-height: 1.0;
    }

    .species-content {
        margin: 0 12px;
    }
    
    .species-header {
        gap: 12px;
    }
    
    .decoration-top,
    .decoration-bottom {
        max-width: 250px;
    }
    
    .species-title {
        font-size: 14px;
    }
    
    .species-grid {
        padding: 0 12px;
        gap: 10px;
        margin: 24px auto 0 auto;
        grid-template-rows: repeat(6, auto);
    }
    
    .species-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    
    
    .button-text {
        font-size: 14px;
    }
    
    .post-preview {
        padding: 12px;
    }
    
    .notes-section-bottom {
        padding: 30px 0;
    }
    
    .footer-content {
        max-width: 100%;
        margin: 0;
        padding: 16px;
        position: static;
        left: auto;
        transform: none;
    }
    
    .footer {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    .close-text {
        font-size: 12px;
    }
    
    .close-section {
        padding: 10px 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .species-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .species-card:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    .header-menu:hover .menu-icon {
        transform: none;
    }
    
    .header-menu:active .menu-icon {
        transform: scale(0.95);
    }
    
    .official-x-button:hover {
        transform: none;
        background: linear-gradient(135deg, #b19656, #d4af37);
    }
    
    .official-x-button:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #a08545, #c29f26);
    }
    
    /* Ensure minimum touch target size of 44px */
    .species-card,
    .official-x-button,
    .close-section,
    .flow-expand-icon {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Notes Content Styles */
.notes-content {
    padding-left: 8px;
    text-align: left;
}

.notes-intro {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 0;
    padding: 0;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0;
}

.note-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
    line-height: 1.6;
    margin-bottom: 4px;
    padding-left: 12px;
    position: relative;
    text-align: left;
}

.note-item:before {
    content: "・";
    color: rgb(0, 0, 0);
    position: absolute;
    left: 0;
    font-weight: 700;
    width: 12px;
}

.note-item-intro {
    padding-left: 0;
}

.note-item-intro:before {
    content: none;
}

.note-item:last-child {
    margin-bottom: 0;
}

.privacy-link {
    color: rgb(177, 150, 86);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-link:hover {
    color: rgb(157, 130, 66);
    text-decoration: underline;
}

.hero {
    padding: 60px 20px;
    text-align: center;
}

/* Species Selection Section */
.species-selection-section {
    background: #ffffff;
    padding: 36px;
}

.species-content {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: center;
}

.species-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.decoration-top,
.decoration-bottom {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.species-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #B1953C;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-line {
    line-height: 1.4;
}

.species-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 16px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.species-card {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px;
    width: 100%;
    height: auto;
}

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

.species-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background-color: #f0f0f0;
    max-width: 100%;
}

.species-image:not([src]),
.species-image[src=""] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%23f0f0f0"/><text x="50%" y="50%" text-anchor="middle" dominant-baseline="middle" fill="%23999">画像読込中</text></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Notes Section Bottom */
.notes-section-bottom {
    background: #ffffff;
    padding: 36px;
}

.footer {
    background: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 36px;
    box-sizing: border-box;
}

.footer-content p {
    margin: 0 0 40px 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #666666;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.share-button.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.share-button.retry {
    background: #B1953C;
    color: #ffffff;
}

.share-button.retry:hover {
    background: #a08545;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .result-content {
        padding: 30px 16px;
    }
    
    .species-result-image {
        width: 150px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-description {
        font-size: 16px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button {
        width: 200px;
        text-align: center;
    }
}

/* Bottom Links Section */
.bottom-links-section {
    text-align: center;
    padding: 24px 0;
    margin-top: 20px;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-link:hover {
    color: #333333;
    text-decoration: underline;
}

.link-icon {
    font-size: 10px;
    color: #666666;
    border: 1px solid #666666;
    padding: 2px 3px;
    border-radius: 2px;
    line-height: 1;
    display: inline-block;
}

.powered-by {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powered-by-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666666;
}

.rakusta-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .links-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .powered-by {
        font-size: 11px;
    }
}


