/**
 * ホームページ専用スタイル
 * Web1.0 / GeoCities風のデザイン
 * ルール: グラデーション、シャドウ、角丸は使用禁止
 */

.home-main {
    background-color: rgb(248, 248, 248);
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.home-content {
    background-color: #ffffff;
    border: 5px double rgb(113, 175, 182);
    padding: 30px;
    position: relative;
}

/* カウンターセクション */
.counter-section {
    text-align: center;
    margin: 5px 0 10px 0;
}

.counter-text {
    font-size: var(--min-font-size, 1.125rem);
    color: #666666;
    margin: 0;
}

.counter-number {
    color: #ff0000;
    font-size: 1rem;
}

/* Marquee アニメーション */
.marquee-wrapper {
    overflow: hidden;
    margin: 5px 0;
    width: 100%;
    max-width: 100%;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation-timing-function: steps(200, end);
    animation-duration: 20s;
    animation-iteration-count: infinite;
}

/* 下側のmarquee（右から左） */
.marquee-wrapper:last-child .marquee-text {
    padding-left: 100%;
    animation-name: marquee-right-to-left;
}

/* 上側のmarquee（左から右） */
.marquee-wrapper:first-child .marquee-text {
    padding-right: 100%;
    animation-name: marquee-left-to-right;
}

@keyframes marquee-right-to-left {
    0% {
        transform: translate(0%);
    }
    100% {
        transform: translate(-100%);
    }
}

@keyframes marquee-left-to-right {
    0% {
        transform: translate(0%);
    }
    100% {
        transform: translate(100%);
    }
}

/* ウェルカムセクション */
.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgb(184, 217, 224);
    border: 3px dashed rgb(113, 175, 182);
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: rgb(113, 175, 182);
    margin-bottom: 10px;
}

.blink-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.welcome-section .subtitle {
    font-size: 1.3rem;
    color: #ffffff;
}

/* コンテンツ行（画像と説明を横並び） */
.content-row {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    align-items: flex-start;
}

/* メイン画像セクション */
.main-image-section {
    flex-shrink: 0;
    text-align: center;
}

.main-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border: 2px solid #333;
}

.image-placeholder {
    padding: 40px;
    background-color: #f0f0f0;
    border: 2px dashed #999;
    color: #666;
    font-size: 1.2rem;
    max-width: 350px;
}

.image-placeholder .small-text {
    font-size: var(--min-font-size, 1.125rem);
    margin-top: 10px;
    color: #999;
}

/* サイト説明セクション */
.about-section {
    flex: 1;
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: rgb(113, 175, 182);
    margin-bottom: 20px;
}

.star {
    color: rgb(113, 175, 182);
    font-size: 1.5rem;
    animation: rotate 3s linear infinite;
    display: inline-block;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-content {
    line-height: 2;
    font-size: 1.1rem;
    color: #333;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content p:first-child {
    color: rgb(113, 175, 182);
    font-size: 1.2rem;
}

/* 装飾要素 */
.decorative-elements {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.divider {
    font-family: monospace;
    color: #999;
    margin-bottom: 15px;
    font-size: var(--min-font-size, 1.125rem);
}

.last-updated {
    color: #666;
    font-size: var(--min-font-size, 1.125rem);
    font-style: italic;
}

/* NEWSセクション */
.news-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #ffffff;
    border: 3px double rgb(113, 175, 182);
}

.news-section-title {
    text-align: center;
    font-size: 1.8rem;
    color: rgb(113, 175, 182);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(113, 175, 182);
}

.news-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid rgb(113, 175, 182);
    background-color: #ffffff;
    padding: 15px;
}

.news-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: rgba(113, 175, 182, 0.1);
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: rgb(113, 175, 182);
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgb(95, 155, 162);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background-color: rgba(184, 217, 224, 0.2);
    border: 1px solid rgb(113, 175, 182);
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: rgba(184, 217, 224, 0.4);
}

.news-date {
    font-size: var(--min-font-size, 1.125rem);
    font-weight: 500;
    color: #ffffff;
    background-color: rgb(113, 175, 182);
    padding: 8px 12px;
    text-align: center;
    min-width: 100px;
    height: fit-content;
    flex-shrink: 0;
    border: 1px solid rgb(95, 155, 162);
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgb(70, 72, 88);
    line-height: 1.4;
}

.news-description {
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555555;
}

.news-link {
    display: inline-block;
    color: rgb(113, 175, 182);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--min-font-size, 1.125rem);
    padding: 6px 16px;
    border: 1px solid rgb(113, 175, 182);
    transition: all 0.3s ease;
}

.news-link:hover {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    text-decoration: none;
}

.news-more-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgb(113, 175, 182);
}

.news-more-btn {
    display: inline-block;
    color: rgb(113, 175, 182);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 24px;
    border: 2px solid rgb(113, 175, 182);
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.news-more-btn:hover {
    background-color: rgb(113, 175, 182);
    color: #ffffff;
    text-decoration: none;
}

/* レスポンシブ対応 */
/* 800px未満でのレイアウト調整 */
@media (max-width: 800px) {
    .content-row {
        flex-direction: column;
        gap: 20px;
    }

    .main-image-section {
        width: 100%;
        max-width: 100%;
    }

    .main-image {
        max-width: 100%;
        width: 100%;
    }

    .image-placeholder {
        max-width: 100%;
        width: 100%;
    }

    .about-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .home-content {
        padding: 20px;
    }

    .content-row {
        flex-direction: column;
        gap: 20px;
    }

    .main-image {
        max-width: 100%;
    }

    .image-placeholder {
        max-width: 100%;
    }

    .welcome-section h1 {
        font-size: 1.8rem;
    }

    .welcome-section .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-content {
        font-size: 1rem;
    }

    .counter-number {
        font-size: 1.5rem;
    }

    .news-section {
        padding: 20px;
        margin: 30px 0;
    }

    .news-section-title {
        font-size: 1.4rem;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-date {
        min-width: auto;
        width: fit-content;
    }

    .news-scroll-container {
        max-height: 400px;
    }
}
