/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Borel', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    background-color: #FAF3E8;
    color: #5C4A3C;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* 横並び */
    align-items: center;
    /* 縦位置を揃える */
    justify-content: space-between;
    /* 左右に配置 */
}

.header-nav {
    display: flex;
    gap: 40px;
    white-space: nowrap;
}

.header-nav a {
    font-size: 26px;
    font-family: 'Borel', cursive, 'Hiragino Mincho ProN', serif;
    color: #7A5C3D;
    text-decoration: none;
    writing-mode: horizontal-tb;
    padding: 8px 12px;
    transition: all 0.3s ease;
}


.header-nav a:hover {
    background-color: #FCEBB2;
    /* ホバー時に背景色を追加 */
    color: #A67C52;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #7A5C3D;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}


.header-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-text {
    text-align: center;
}

.header-icon {
    position: absolute;
    left: 20px;
    top: -10px;
}

.header-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;

}

.site-title {
    font-family: 'Borel', cursive, 'Hiragino Mincho ProN', serif;
    font-size: 64px;
    color: #5C4A3C;
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
    width: 100%;
}

/* メインビジュアル */
.hero {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 15% 15%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text-left {
    position: absolute;
    left: 150px;
    top: 65%;
    transform: translateY(-50%);
    color: white;
    font-size: 33px;
    line-height: 2;
    writing-mode: vertical-rl;
    text-orientation: upright;
    z-index: 10;
}

.hero-text-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
}

.hero-text-center h2 {
    font-family: 'Borel', cursive;
    font-size: 48px;
    font-weight: normal;
    margin-left: 100px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text-right {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    line-height: 2;
    writing-mode: vertical-rl;
    text-orientation: upright;
    z-index: 10;
}

/* コンセプトセクション */
.concept {
    background-color: #FAF3E8;
    padding: 80px 20px;
    text-align: center;
}

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

.concept-container {
    position: relative;
    /* ← 飛行機の基準位置になる */
}

.concept-subtitle {
    font-size: 30px;
    color: #5C4A3C;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.concept-title {
    font-size: 40px;
    color: #5C4A3C;
    margin-bottom: 50px;
    font-weight: bold;
    letter-spacing: 2px;
}

.view-more-wrapper {
    display: flex;
    justify-content: center;
    /* 中央寄せ */
    align-items: center;
    margin-bottom: 100px;
}



.view-more-button {
    display: inline-block;
    background-color: #FBD864;
    padding: 15px 80px;
    border-radius: 50px;
    margin: 0 auto 60px auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.view-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.view-more-button span {
    display: block;
    font-family: 'Borel', cursive;
    font-size: 40px;
    color: #5C4A3C;
    letter-spacing: 2px;
    line-height: 1.1;
    text-align: center;
}

.japanese-subtitle {
    font-size: 20px !important;
    font-weight: 100;
    font-family: 'Hiragino Mincho ProN', serif;
    display: block;
    margin-top: 5px;
    color: #7A5C3D;
    opacity: 0.9;
    line-height: 1.2;
    top: -180px;
}

.concept-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.airplane-icon {
    position: absolute;
    top: 50%;
    /* ボタンの縦中央に合わせる */
    right: calc(50% - 380px);
    /* ボタンの中央から左へずらす（調整値） */
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    object-fit: contain;
    filter: brightness(0.6) contrast(1.2);
    z-index: 2;
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-8px) translateX(5px);
    }

    50% {
        transform: translateY(-5px) translateX(10px);
    }

    75% {
        transform: translateY(-8px) translateX(5px);
    }
}

.flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.flag-item:hover {
    transform: translateY(-5px);
}

.flag-item img {
    width: 120px;
    height: 90px;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    transition: transform 0.3s ease;
}

.flag-item:hover img {
    transform: scale(1.1);
}

.flag-item span {
    font-size: 32px;
    color: #5C4A3C;
    font-weight: bold;
}

/* レシピセクション */
.recipes {
    background-color: #F1F49C;
    padding: 80px 20px;
}

.recipe-card {
    max-width: 900px;
    margin: 0 auto 100px;
    background-color: #FAF3E8;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    scroll-margin-top: 80px;
}

.recipe-header {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.flags-decoration {
    margin-bottom: 0;
    position: absolute;
    top: -20px;
    left: -400px;
    width: 500px;
    height: auto;
    z-index: 20;
    transform: rotate(-30deg);
    transform-origin: left top;
}

.flags-decoration2 {
    margin-bottom: 0;
    position: absolute;
    top: -20px;
    left: 750px;
    width: 500px;
    height: auto;
    z-index: 20;
    transform: rotate(30deg);
    transform-origin: right top;
}

.recipe-number {
    font-family: 'Borel', cursive;
    font-size: 72px;
    color: #5C4A3C;
    margin: 0;
    font-weight: normal;
    line-height: 1;
    position: absolute;
    top: 200px;
    left: 0;
}

.recipe-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.recipe-image-wrapper {
    text-align: center;
}

.recipe-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.recipe-title {
    font-size: 16px;
    color: #5C4A3C;
    margin: 10px 0;
    line-height: 1.6;
}

.recipe-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ingredients h4,
.instructions h4 {
    font-size: 18px;
    color: #5C4A3C;
    margin-bottom: 15px;
    border-bottom: 2px solid #7DB88E;
    padding-bottom: 5px;
}

.ingredients h5 {
    font-size: 15px;
    color: #5C4A3C;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.ingredients ul,
.instructions ol {
    padding-left: 25px;
    line-height: 1.8;
    color: #5C4A3C;
}

.ingredients li,
.instructions li {
    margin-bottom: 8px;
    font-size: 14px;
}

.instructions li strong {
    color: #7DB88E;
    font-weight: bold;
}

.instructions li.warning {
    background-color: #FFF3CD;
    padding: 10px;
    border-left: 4px solid #FFC107;
    margin: 10px 0;
    list-style: none;
    margin-left: -25px;
    border-radius: 4px;
}

/* Page Topボタン */
.page-top-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 0;
    margin-bottom: 0px;
}

.page-top-button {
    display: inline-block;
    background-color: #FBD864;
    padding: 12px 60px;
    right: 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.page-top-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-top-button span {
    font-family: 'Borel', cursive;
    font-size: 22px;
    color: #5C4A3C;
    letter-spacing: 2px;
}

.page-top-wrapper .airplane-icon {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin-left: -30px;
    /* ← これは元のままにして */
    position: relative;
    /* ← これが重要 */
    left: 10px;
    /* ← 追加：飛行機だけ右に移動 */
    top: 20px;
    filter: brightness(0.6) contrast(1.2);
    z-index: 2;
    animation: fly 3s ease-in-out infinite;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recipe-header {
        position: static;
        margin-bottom: 20px;
    }

    .recipe-details {
        grid-template-columns: 1fr;
    }
}

.wave-divider {
    width: 100%;
    height: 80px;
    /* ← 高さがないと見えません */
    overflow: hidden;
    margin: 60px 0;
    /* レシピ間に余白 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-svg {
    width: 130%;
    /* 動きを分かりやすくするため幅を広めに */
    height: 80px;
    animation: waveMove 4s ease-in-out infinite;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards, waveMove 4s ease-in-out infinite;
}

.wave-svg path {
    stroke: white;
    /* 白い手書き風線 */
    stroke-width: 5;
    /* 少し太めで見えやすい */
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.15));
    /* やさしい影 */
}

/* フェードイン */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 左右にふんわり揺れるアニメーション */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50px);
    }

    100% {
        transform: translateX(0);
    }
}


/* フッター */
.footer {
    background: linear-gradient(180deg, #F5E5A8 0%, #FBD864 100%);
    padding: 60px 20px 30px;
    border-top: 3px solid #7DB88E;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(92, 74, 60, 0.2);
    margin-bottom: 30px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    font-family: 'Borel', cursive;
    font-size: 48px;
    color: #5C4A3C;
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 16px;
    color: #5C4A3C;
    font-style: italic;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

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

.footer-heading {
    font-family: 'Borel', cursive;
    font-size: 20px;
    color: #5C4A3C;
    margin-bottom: 5px;
    font-weight: normal;
}

.footer-email {
    font-size: 14px;
    color: #5C4A3C;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #7DB88E;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: block;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-notice {
    font-size: 12px;
    color: #5C4A3C;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 13px;
    color: #5C4A3C;
    font-weight: bold;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        align-items: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-logo {
        font-size: 36px;
    }

    .social-icons {
        justify-content: center;
    }
}