@charset "utf-8";

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

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

header {
    background-color: #2e8b57;
    color: #F4F5F7;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1, h2, h3 {
    font-family: 'Darumadrop One', sans-serif;
}

.style-h1{
    text-align: center;
    font-size: 2.5em;
    margin: 0;
    color: #eddf49;
}

h3{
    color: #2e8b57;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #F4F5F7;
    text-decoration: none;
    font-size: 1.2em;
}

a {
    text-decoration: none;
}

#stories a:hover {
    text-decoration: underline;
}

button:focus {
    outline: 2px solid #32cd32;
}

.hero {
    background: url('images/hero-bg.png') no-repeat center center/cover;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('images/peace2.webp') no-repeat center center/cover;
    background-size: auto;
    /* transform: translateZ(0); */
}

.hero-content {
    position: relative;
    text-align: center;
    color: #F4F5F7;
    padding: 20px;
    background: rgba(0, 174, 81, 0.9);
    border-radius: 10px;
    margin-top: 20%;
    opacity: 0; /* 初期状態は透明 */
    transition: opacity 0.5s;
}

.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
}

.hero-content.scroll-fade-in {
    opacity: 1;
}

section {
    margin: 40px 0;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

section p, section article p, section ul {
    font-size: 1.1em;
    line-height: 1.5;
}

.container {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.container a:hover{
    color: #eddf49;
}

.about, .articles, .resources, .forum, .contact {
    padding: 20px 0;
}

.articles article {
    background: #F4F5F7;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.message {
    background-color: #F4F5F7;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.message p {
    margin-bottom: 15px;
}

/* 桜を表示するコンテナのスタイル */
.cherry-blossom-container {
    position: relative;
    height: 80vh; /* コンテナの高さ */
    width: 100%; /* コンテナの横幅 */
    overflow: hidden; /* コンテナからはみ出した要素を隠す */
  }
  
  /* 桜の花びらのスタイル */
  .petal {
    position: absolute;
    background-color: #ffc0cb; /* 花びらの色 */
    border-radius: 150% 0 150% 0;
    animation: animate-petal 10s linear;
  }
  
  .petal::after {
    content: "";
    position: absolute;
    top: -14%;
    left: -10%;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffc0cb;
    border-radius: 150% 0 150% 0;
    transform: rotate(15deg);
  }
  
  /* 花びらが降るアニメーション */
  @keyframes animate-petal {
    0% {
      top: 0;
      opacity: 0;
      transform: rotate(0deg);
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      top: 100vh;
      transform: rotate(3000deg);
    }
  }

  /* ホーム　最新ニュース */
.content-section article{
background-color: #F4F5F7;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.articles article {
    margin-bottom: 20px;
}

/* 各ページ共通 */
.content-section {
    max-width: auto;
    background-color: #fbf9df;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* 各コンテナー */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* サポートツール */
.resources ul {
    list-style: disc inside;
    text-align: left;
}

/* ホーム　戦争の影響 */

.impact-h4{
    font-size: 20px;
}

.impact-ul{
    text-align: left;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    background-color: #2e8b57;
    color: #F4F5F7;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #32cd32;
}

.event-button{
    margin-top: 20px;
}


/* ストーリー */
.story {
    margin-bottom: 40px;
    padding: 40px;
    background-color: #F4F5F7;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.story h2 {
    font-size: 2em;
    color: #4a90e2;
}

.story img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.story p {
    line-height: 1.6;
}

.story ul {
    list-style-type: disc;
    padding-left: 20px;
}

.story ul li {
    margin-bottom: 10px;
}

.story a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

.story a:hover {
    text-decoration: underline;
}



/* コミュニティ */
.forum h2 {
    font-family: 'Darumadrop One', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: #2e8b57;
}

.forum .search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.forum .search-bar input[type="text"] {
    width: 60%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.forum .thread-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.forum .thread-card {
    background-color: #F4F5F7;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.forum .thread-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.forum .thread-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

.forum .thread-card .thread-meta {
    font-size: 0.9em;
    color: #999;
}

.forum .new-thread-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.forum .new-thread-button button {
    background-color: #2e8b57;
    color: #F4F5F7;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

#new-thread-btn:hover {
    background-color: #32cd32;
    color: #eddf49;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
}

.thread-list {
    margin-bottom: 40px;
}

.thread-card {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

.thread-card h3 {
    margin-top: 0;
}

.thread-meta {
    font-size: 0.9em;
    color: #666;
}

/* お問い合わせ */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
    margin-bottom: 5px;
}

form input, form textarea {
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

form button {
    background-color: #2e8b57;
    color: #F4F5F7;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

form button:hover {
    background-color: #32cd32;
    color: #eddf49;
}

/* 各コンテナーのシャドウ */
.shadow{
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* トップボタン */
.top-link{
    display: none;
}

.top-link.open{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: #A8DBA8;
    color: #000;
    border: none;
    border-radius: 50%;
    text-align: center;
    line-height: 1.3;
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 500;
}

/* フッター */
footer {
    background-color: #2e8b57;
    color: #F4F5F7;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}


/* スマホサイズのレスポンシブ対応 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .container {
        width: 90%;
        padding: 10px;
    }

    .hero {
        padding: 50px 20px;
        height: auto;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .message {
        padding: 20px;
    }

    /* カルーセルのスタイル */
.message-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.message-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.message-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.message-slide p {
    font-size: 1.2em;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

    .message-slider {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .message-slide {
        flex: none;
        scroll-snap-align: start;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }
    
    .message-slide p {
        font-size: 1.2em;
        line-height: 1.5;
        text-align: center;
        margin: 0;
    }

    section h2 {
        font-size: 1.5em;
    }

    section p, section article p, section ul {
        font-size: 1em;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        font-size: 1em;
        padding: 8px 15px;
    }

    .forum .search-bar input[type="text"] {
        width: 100%;
    }

    .forum .thread-list {
        flex-direction: column;
        gap: 10px;
    }

    .forum .thread-card {
        width: 100%;
    }
}

/* メディアクエリを使用してiPhone 13 Pro用にフォントサイズを調整 */
@media screen and (max-width: 390px) {
    .hero h2 {
        font-size: 18px;
    }
    .hero p {
        font-size: 10px;
    }

    .message-slide{
        font-size: 18px;
    }

    .cherry-blossom-container{
        height: auto;
    }
}
