/* ============================================
   年賀状サイト CSS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* ============================================
   基本スタイル
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
/*background-image:url(../images/bg.png);
*/
     background: #ededcb;
 
    color: #003366;
    min-height: 100vh;
    position: relative;
}

br.pc {
    display: block;
}

br.sp {
    display: none;
}

/* ============================================
   レイアウト
   ============================================ */
.wrapper {
    max-width: 1200px;
    margin: auto;
}

.wrapper.main-content {
    display: none;
}

.content {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 5% 0;
    align-items: center;
}

/* ============================================
   テキストエリア
   ============================================ */
.text-area {
    flex: 1 1 480px;
}

.text-area h1 {
    font-size: 2.7rem;
    font-weight: 400;
}

.text-area .sub {
    font-size: 1.3rem;
    margin-bottom: 0.3em;
}

.text-area h2 {
    color: #000;
}

.jp {
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: 500;
    line-height: 1.4;
    color: #002DB2;
    font-size: 1.3em;
}

.jp .newyear {
    color: #003768;
    font-size: 1.7rem;
}

.small {
    color: #003767;
    font-size: 1.3em;
    margin-bottom: 1em;
}

.gold-outline {
    font-size: 2.0rem;
    font-weight: 300;
    color: #000000;
    text-shadow:
        1px  1px 0 #d4af37,
       -1px  1px 0 #d4af37,
        1px -1px 0 #d4af37,
       -1px -1px 0 #d4af37,
        2px  2px 2px rgba(0,0,0,0.3);
}

/* ============================================
   画像エリア
   ============================================ */
.image-area {
    flex: 1 1 300px;
    text-align: right;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.horse-container {
    position: relative;
    margin-top: 100px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.horse-container .horse img {
    max-width: 481px;
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.horse {
    max-width: 100%;
    height: auto;
}

.food-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-60%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px 20px 20px;
    margin-bottom: 10px;
    z-index: 3;
}

.food-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    flex-shrink: 0;
}

.food-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-item.active {
    opacity: 1;
}

#food1 {
    transform: translateY(30px);
}

#food3 {
    width: 100px;
    height: 100px;
    transform: translateY(20px);
}

#food4 {
    transform: translateY(50px);
}

/* ============================================
   背景スクロール
   ============================================ */
.bg-scroll {
    width: 100%;
    height: 52px;
    background-image: url("../images/kusa.png");
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: auto 100%;
    animation: bg-loop 10s linear infinite;
}

/* ============================================
   フッター
   ============================================ */
footer {
    background: #238C00;
    color: #fff;
    padding: 30px 0 170px;
    width: 100%;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 5%;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.footer-inner .logo img {
    max-width: 200px;
}

.footer-inner .info {
    text-align: center;
    line-height: 2;
}

.footer-credit {
    text-align: right;
    font-size: 0.7em;
    padding: 10px 5% 0;
    max-width: 1200px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes bg-loop {
    from {
        background-position: -1887px 0;
    }
    to {
        background-position: 0 0;
    }
}

/* ============================================
   フェードアウトメッセージ
   ============================================ */
.fadeout {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    z-index: 9999;
    background: #238c00;
}

.message01 {
    display: inline;
}

.skyblue {
    color: #EDEDCB;
}

/* passing animation */
@-webkit-keyframes passing-bar {
    0% {
        left: 0;
        right: auto;
        width: 0;
    }
    50% {
        left: 0;
        right: auto;
        width: 100%;
    }
    51% {
        left: auto;
        right: 0;
        width: 100%;
    }
    100% {
        left: auto;
        right: 0;
        width: 0;
    }
}

@keyframes passing-bar {
    0% {
        left: 0;
        width: 0;
    }
    50% {
        left: 0;
        width: 100%;
    }
    51% {
        left: 0;
        width: 100%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

@-webkit-keyframes passing-txt {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes passing-txt {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.passing .passing-box {
    display: block;
    text-align: center;
}

.passing .passing-bar {
    position: relative;
    display: inline-block;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.passing .passing-bar:before {
    content: '';
    display: inline-block;
    width: 0;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: #238c00;
}

.passing .passing-txt {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.passing.move .passing-bar:before {
    -webkit-animation: passing-bar 1s ease 0s 1 normal forwards;
    animation: passing-bar 1s ease 0s 1 normal forwards;
}

.passing.move .passing-txt {
    -webkit-animation: passing-txt 0s ease .5s 1 normal forwards;
    animation: passing-txt 0s ease .5s 1 normal forwards;
}

.passing-txt h1 {
    font-size: 1.4em;
    margin-bottom: 0.4em;
}

.passing-txt p {
    margin-bottom: 0.5em;
    font-size: 1.0em;
}

/* ============================================
   レスポンシブデザイン
   ============================================ */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    br.pc {
        display: none;
    }

    br.sp {
        display: block;
    }

    .text-area h1 {
        font-size: 6.0vw;
    }

    .text-area .sub {
        font-size: 3.0vw;
    }

    .jp {
        font-size: 3.0vw;
    }

    .jp .newyear {
        font-size: 3.8vw;
    }

    .small {
        font-size: 3.0vw;
    }

    .gold-outline {
        font-size: 4.5vw;
    }
    .text-area {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 7vw;
    }
    .image-area {
        width: 100%;
        flex: 0 0 100%;
        text-align: right;
        display: flex;
        justify-content: flex-end;
    }

    .horse-container {
        margin-top: 13vw;
    }

    .horse-container .horse img {
        max-width: 62.4vw;
    }

    .food-container {
        gap: 2.6vw;
        padding: 5.2vw 2.6vw 2.6vw 2.6vw;
        max-width: 100%;
    }

    .food-item {
        width: 15vw;
        height: 15vw;
    }

    #food1 {
        transform: translateY(4.1vw);
    }

    #food3 {
        width: 19vw;
        height: 19vw;
        transform: translateY(3vw);
    }

    #food4 {
        transform: translateY(6.5vw);
    }

    .bg-scroll {
        height: 10vw;
        width: 100%;
    }

    footer {
        width: 100%;
        font-size: 3.0vw;
        padding: 5vw 5% 30vw;
    }

    .footer-inner .logo {
        font-size: 3.0vw;
    }

    .footer-inner .info {
        font-size: 3.0vw;
    }

    .footer-inner .logo img {
        max-width: 40vw;
    }

    .footer-credit {
        font-size: 2.1vw;
        padding: 2vw 5% 0;
    }
}
