/* --------------- 基本設定 --------------- */
html {
    background-color: #FFFFFF;
}

/* PC版のみ背景画像を表示 */
@media (min-width: 1024px) {
    html {
        background-image: url('../img/pc_back1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #eadfca;
    font-family: 'Libre Baskerville', 'Noto Sans JP', sans-serif;
    color: #4D301E;
    position: relative;
}

/* PC版のみ背景画像を表示 */
@media (min-width: 1024px) {
    body {
        background-image: url('../img/pc_back1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        z-index: 0;
    }
}


/* メインコンテンツラッパー */
.main-wrapper {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    background-color: #eadfca;
    position: relative;
}

@media (min-width: 1024px) {
    .main-wrapper {
        width: 375px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}


/* --------------- PC版ヘッダー --------------- */
.header-pc {
    display: none;
}

@media (min-width: 1024px) {
    .header-pc {
        display: flex;
        align-items: center;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        gap: 0;
    }

    .header-pc-logo {
        flex-shrink: 0;
        padding: 0 60px 0 0;
        background-color: transparent;
    }

    .header-pc-logo img {
        height: 100px;
        width: auto;
        display: block;
    }

    .header-pc-inner {
        flex-grow: 1;
        background-color: #aa998a;
        display: flex;
        align-items: center;
        /* ナビゲーションとSNSアイコンを中央に寄せる */
        justify-content: center;
        /* 左右のパディングを増やして、コンテンツを内側に寄せる */
        padding: 0 100px;
        height: 100px;
        border-radius: 45px 0 0 45px;
    }

    .header-pc-nav {
        display: flex;
        gap: 20px;
        flex-shrink: 0;
        /* SNSアイコンとの間に明示的な余白を設定 */
        margin-right: 80px;
    }

    .header-pc-link {
        font-family: 'Libre Baskerville', serif;
        font-size: 24px;
        color: #FFFFFF;
        text-decoration: none;
        letter-spacing: 0.05em;
        transition: opacity 0.3s;
        white-space: nowrap;
    }

    .header-pc-link:hover {
        opacity: 0.7;
    }

    .header-pc-icons {
        display: flex;
        gap: 20px;
        flex-shrink: 0;
    }

    .header-pc-sns {
        display: block;
        width: 40px;
        height: 40px;
    }

    .header-pc-sns img {
        width: 100%;
        height: 100%;
        display: block;
        filter: brightness(0) invert(1);
    }

    /* PC表示時はコンテンツを下にずらす */
    .main-wrapper {
        margin-top: 100px;
    }

    /* 特定のリンクの色を変更 */
    .header-pc-link.colored-link {
        color: #9ec3bc;
    }

    /* ホバー時の設定 (任意: 変更しない場合は省略可) */
    .header-pc-link.colored-link:hover {
        opacity: 0.7;
        /* 基本の.header-pc-link:hoverの設定を維持 */
    }
}

/* --------------- SP版ヘッダー --------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    min-height: 80px;
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 1024px) {
    .header-sp {
        display: none;
    }
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.header-icons {
    display: flex;
    gap: 30px;
    margin: 0 130px 0 85px;
}

.header-icons img {
    height: 24px;
    width: auto;
    cursor: pointer;
}

.header-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
}

.cloud-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 120%;
    height: auto;
    z-index: 1;
}

.hamburger {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 24px;
    height: 18px;
    z-index: 2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4D301E;
    border-radius: 2px;
}

/* --------------- ハンバーガーメニュー（オーバーレイ） --------------- */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 375px;
    height: 100vh;
    background-color: #eadfca;
    opacity: 0.85;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

.menu-overlay.active {
    right: 0;
}

.menu-header {
    position: relative;
    width: calc(100% + 20px);
    height: 120px;
    margin-bottom: 20px;
    margin-right: -20px;
    margin-top: 0;
}

.menu-cloud {
    position: absolute;
    top: 0;
    right: 0;
    width: 125px;
    height: auto;
}

.menu-close {
    position: absolute;
    top: 29px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 40px;
    color: #4D301E;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.menu-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: bold;
    color: #4D301E;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.menu-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.menu-section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: bold;
    color: #4D301E;
    margin: 0 0 -30px 0;
    letter-spacing: 0.05em;
}

.menu-button {
    background-color: #9DB5B2;
    color: #4D301E;
    text-decoration: none;
    padding: 8px 35px;
    border-radius: 20px;
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    border: 1px solid #4D301E;
    width: 120px;
    text-align: center;
    box-sizing: border-box;
}

.menu-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu-sns {
    display: flex;
    gap: 50px;
}

.sns-icon {
    display: block;
    width: 50px;
    height: 50px;
}

.sns-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.menu-copyright {
    font-family: 'Libre Baskerville', serif;
    font-size: 10px;
    color: #4D301E;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    gap: 5px;
}

.menu-copyright a {
    color: #4D301E;
    text-decoration: none;
}

.menu-copyright a:hover {
    text-decoration: underline;
}

/* --------------- FVセクション --------------- */
.fv-section {
    background-color: #eadfca;
    padding: 0 20px 40px;
    text-align: center;
    position: relative;
}

/* FVコンテンツの中央配置用コンテナ */
.fv-content {
    position: relative;
    width: 100%;
    max-width: 335px;
    height: 480px;
    margin: 30px auto 0;
}

/* クッキー配置の円形コンテナ */
.cookie-circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 335px;
    height: 480px;
}

/* クッキー画像の共通設定 */
.cookie-item {
    position: absolute;
    width: 55px;
    height: 55px;
    object-fit: contain;
}

/* 各クッキー用の円周上を回るアニメーション */
@keyframes orbit-0 {
    from {
        transform: rotate(0deg) translateX(140px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
}

@keyframes orbit-36 {
    from {
        transform: rotate(36deg) translateX(140px) rotate(-36deg);
    }

    to {
        transform: rotate(396deg) translateX(140px) rotate(-396deg);
    }
}

@keyframes orbit-72 {
    from {
        transform: rotate(72deg) translateX(140px) rotate(-72deg);
    }

    to {
        transform: rotate(432deg) translateX(140px) rotate(-432deg);
    }
}

@keyframes orbit-108 {
    from {
        transform: rotate(108deg) translateX(140px) rotate(-108deg);
    }

    to {
        transform: rotate(468deg) translateX(140px) rotate(-468deg);
    }
}

@keyframes orbit-144 {
    from {
        transform: rotate(144deg) translateX(140px) rotate(-144deg);
    }

    to {
        transform: rotate(504deg) translateX(140px) rotate(-504deg);
    }
}

@keyframes orbit-180 {
    from {
        transform: rotate(180deg) translateX(140px) rotate(-180deg);
    }

    to {
        transform: rotate(540deg) translateX(140px) rotate(-540deg);
    }
}

@keyframes orbit-216 {
    from {
        transform: rotate(216deg) translateX(140px) rotate(-216deg);
    }

    to {
        transform: rotate(576deg) translateX(140px) rotate(-576deg);
    }
}

@keyframes orbit-252 {
    from {
        transform: rotate(252deg) translateX(140px) rotate(-252deg);
    }

    to {
        transform: rotate(612deg) translateX(140px) rotate(-612deg);
    }
}

@keyframes orbit-288 {
    from {
        transform: rotate(288deg) translateX(140px) rotate(-288deg);
    }

    to {
        transform: rotate(648deg) translateX(140px) rotate(-648deg);
    }
}

@keyframes orbit-324 {
    from {
        transform: rotate(324deg) translateX(140px) rotate(-324deg);
    }

    to {
        transform: rotate(684deg) translateX(140px) rotate(-684deg);
    }
}

/* 全クッキーを中心に配置 */
.cookie-1,
.cookie-2,
.cookie-3,
.cookie-4,
.cookie-5,
.cookie-6,
.cookie-7,
.cookie-8,
.cookie-9,
.cookie-10 {
    top: 50%;
    left: 50%;
    margin-top: -27.5px;
    margin-left: -27.5px;
}

/* 各クッキーの個別アニメーション */
.cookie-1 {
    animation: orbit-36 60s linear infinite;
}

.cookie-2 {
    animation: orbit-0 60s linear infinite;
}

.cookie-3 {
    animation: orbit-324 60s linear infinite;
}

.cookie-4 {
    animation: orbit-288 60s linear infinite;
}

.cookie-5 {
    animation: orbit-252 60s linear infinite;
}

.cookie-6 {
    animation: orbit-216 60s linear infinite;
}

.cookie-7 {
    animation: orbit-180 60s linear infinite;
}

.cookie-8 {
    animation: orbit-144 60s linear infinite;
}

.cookie-9 {
    animation: orbit-108 60s linear infinite;
}

.cookie-10 {
    animation: orbit-72 60s linear infinite;
}

/* 中央のタイトル */
.fv-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    font-size: 30px;
    color: transparent;
    font-weight: 700;
    z-index: 10;
    -webkit-text-stroke: 1px #4D301E;
    paint-order: stroke fill;
}

/* 下部のキャッチコピー */
.fv-catchphrase {
    margin-top: 55px;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #594A3C;
}

/* 波のセクション */
.wave-separator {
    width: 100%;
    height: 100px;
    margin-top: -1px;
    display: block;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --------------- Aboutセクション（チョコブラウン） --------------- */
.about-section {
    background-color: #aa998a;
    padding: 60px 20px 60px;
    color: #FFFFFF;
}

.about-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 0.05em;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.about-text p {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    line-height: 2;
    margin: 0 0 24px 0;
    letter-spacing: 0.05em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* 2つ目の波（チョコブラウン→白） */
.wave-separator-white {
    width: 100%;
    height: 100px;
    margin-top: -1px;
    display: block;
    background-color: #aa998a;
}

.wave-separator-white svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --------------- LINE UPセクション（白背景） --------------- */
.lineup-section {
    background-color: #FFFFFF;
    padding: 60px 20px 80px;
}

.lineup-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 50px 0;
    color: #4D301E;
    letter-spacing: 0.1em;
}

.lineup-container {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.lineup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lineup-image-wrapper {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
}

.lineup-image {
    width: 100%;
    height: auto;
    display: block;
}

.lineup-button {
    display: inline-block;
    padding: 8px 30px;
    background-color: #eadfca;
    color: #4D301E;
    text-decoration: none;
    border: 1px solid #4D301E;
    border-radius: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: background-color 0.3s, color 0.3s;
}

.lineup-button:hover {
    background-color: #4D301E;
    color: #FFFFFF;
}

/* 3つ目の波（白→ベージュ） */
.wave-separator-beige {
    width: 100%;
    height: 100px;
    margin-top: -1px;
    display: block;
    background-color: #FFFFFF;
}

.wave-separator-beige svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --------------- NEWSセクション（ベージュ背景） --------------- */
.news-section {
    background-color: #eadfca;
    padding: 60px 0 80px;
}

.news-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 40px 0;
    color: #4D301E;
    letter-spacing: 0.1em;
    padding: 0 20px;
}

.news-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
}

.news-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #aa998a;
    border-radius: 3px;
}

.news-scroll-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
}

.news-item {
    display: block;
    width: 283px;
    flex-shrink: 0;
    text-decoration: none;
    color: #4D301E;
}

.news-image-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 10px 100px 10px 10px;
    margin-bottom: 12px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-date {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    color: #4D301E;
    margin: 0 0 5px 0;
}

.news-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    color: #4D301E;
    margin: 0;
    line-height: 1.5;
}

/* 4つ目の波（ベージュ→チョコブラウン） */
.wave-separator-footer {
    width: 100%;
    height: 100px;
    margin-top: -1px;
    display: block;
    background-color: #eadfca;
}

.wave-separator-footer svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --------------- フッター（チョコブラウン背景） --------------- */
.footer-section {
    background-color: #aa998a;
    padding: 60px 20px 40px;
    color: #FFFFFF;
    position: relative;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.footer-lineup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-lineup-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 -30px 0;
    letter-spacing: 0.05em;
}

.footer-lineup-button {
    background-color: #9DB5B2;
    color: #4D301E;
    text-decoration: none;
    padding: 8px 35px;
    border-radius: 20px;
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    border: 1px solid #4D301E;
    width: 120px;
    text-align: center;
    box-sizing: border-box;
}

.footer-sns {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-bottom: 100px;
}

.footer-sns-icon {
    display: block;
    width: 50px;
    height: 50px;
}

.footer-sns-icon img {
    width: 100%;
    height: 100%;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: center;
}

.footer-privacy {
    font-family: 'Libre Baskerville', serif;
    font-size: 10px;
    color: #FFFFFF;
    line-height: 2;
    margin: 0 0 20px 0;
}

.footer-privacy a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-privacy a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-family: 'Libre Baskerville', serif;
    font-size: 9px;
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0;
}

.top-button {
    position: fixed;
    bottom: 30px;
    right: 50%;
    transform: translateX(calc(187.5px - 25px));
    width: 50px;
    height: 76px;
    display: block;
    z-index: 100;
}

@media (min-width: 376px) {
    .top-button {
        right: calc(50% - 187.5px + 20px);
        transform: none;
    }
}

@media (min-width: 1024px) {
    .top-button {
        right: calc(50% - 187.5px + 20px);
        transform: none;
    }
}