@charset "UTF-8";

/* 共通部分 */
/* :root {
    --primary-color: #E65100;
    --primary-hover: #BF360C;
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #F9F9F7;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-card: 0 4px 12px rgba(0,0,0,0.05);
} */

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

body {
    font-family: 'Noto Sans JP',sans-serif;
    background-color: #F9F9F7;
    color: #333333;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition:0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* ヘッダー */
main {
    padding-top: 80px;
}

.header {
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    padding: 6px 0;
    top: 0;
    left: 0;
    z-index: 10;
}

.header-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100%;
    max-width: 250px;
    line-height: 0;
}

.global-navi .menu{
    display: flex;
    align-items: center;
    font-size: 14px;
}

.global-navi .menu .menu-first span:hover {
    opacity: 0.5;
}

.global-navi .menu > li {
    margin-left: 60px;
}

.global-navi .menu .menu-first {
    position: relative
}

.global-navi .menu .menu-first span {
    cursor: pointer;
}

.global-navi .menu .menu-first span::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 1px #E65100;
    border-right: solid 1px #E65100;
    margin: 0 auto;
    transform: rotate(135deg);
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
}

.global-navi .menu .menu-first .menu-second {
    width: 180px;
    background-color: #FFFFFF;
    padding: 10px 20px;
    position: absolute;
    top: 50px;
    left: 0;
    display: none;
}

.global-navi .menu .menu-first .menu-second li {
    margin-bottom: 10px;
}

.mask {
    display: none;
}

.menu {
    display: flex;
    align-items: center;
}

.menu-item {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 70vh;
    background-image: url(../img/top-misoshiru.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-search {
    display: flex;
    background: #fff;
    padding: 5px;
    border-radius: 50px;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.hero-search button {
    background-color: #E65100;
    color: #fff;
    border: none;
    width: 50px;
    height: 45px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* 検索結果エリアの表示・非表示アニメーション用 */
#result-container {
    background: #fff;
    padding: 20px 16px;
    margin-top: 20px;
    border-radius: 12px 12px 0 0;
    min-height: 300px;
}

/* 検索結果のリスト（縦並び） */
.recipe-grid-vertical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 検索結果カードのデザイン（既存のカードデザインを微調整） */
.result-card {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
}

.result-thumb {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.result-meta {
    font-size: 0.8rem;
    color: #666666;
}

.result-highlight {
    color: #E65100;
    font-weight: bold;
    margin-right: 5px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 5px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.hero-tag:hover {
    background: #fff;
    color: #E65100;
    opacity: 1;
}

/* コンテナ・セクション */
.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-header,
.section-header-flex {
    margin-bottom: 30px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 2px solid #E65100;
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.5rem;
    color: #333333;
}

.section-desc {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.view-more {
    font-size: 0.9rem;
    color: #E65100;
    font-weight: 500;
    position: relative;
    padding-right: 1.5%;
}

.view-more::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 1px #E65100;
    border-right: solid 1px #E65100;
    transform: rotate(45deg);
    position: absolute;
    top: 0.5rem;
    right: 0.3rem;
}

.view-more:hover {
    opacity: 0.5;
}

/* 目的から探す（カテゴリー）・3カラム */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.scene-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow:  0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s,box-shadow 0.3s;
}

.scene-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.scene-icon{
    max-width: 140px;
}

.scene-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #E65100;
}

.scene-card p {
    font-size: 1rem;
    color: #666666;
}

.scene-text {
    width: 250px;
    border-bottom: 1px dotted #666666;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.list-box {
    text-align: left;
}

.list-box p {
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.list-text {
    position: relative;
}

.list-text::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 1px #E65100;
    border-right: solid 1px #E65100;
    transform: rotate(45deg);
    position: absolute;
    top: 0.8rem;
    right: 9rem;
}

/* レシピグリッド */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.recipe-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-3px);
}

.card-thumb img {
    max-width: 100%;
}

.card-title{
    margin-bottom: 10px;
}

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}


@media screen and (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    /* ハンバーガーメニューのボタン作成（スマホ） */
    .hamburger {
        width: 50px;
        height: 50px;
        background-color: #E65100;
        border-radius: 10px;
        cursor: pointer;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 30;
    }

    .hamburger span {
        width: 30px;
        height: 2px;
        background-color: #fff;
        border-radius: 1px;
        display: inline-block;
        position: absolute;
        left: 10px;
        transition: all 0.4s;
    }

    .hamburger.active span {
        background-color: #fff;
    }

    .hamburger span:nth-of-type(1) {
        top: 16px;
    }

    .hamburger span:nth-of-type(2) {
        top: 25px;
    }

    .hamburger span:nth-of-type(3) {
        top: 34px;
    }

    /* ボタンを押した際に表示されるメニューを作成（スマホ） */
    .global-navi {
        width: 80%;
        height: 100vh;
        background-color: #fff;
        position: fixed;
        top: 0;
        left: -120%;
        z-index: 20;
        transition: all 0.6s;
    }

    .global-navi.active {
        left: 0;
    }

    .global-navi .menu {
        width: 100%;
        height: 100vh;
        flex-direction: column;
        padding: 80px 0;
        overflow: auto;
    }

    .global-navi .menu > li {
        width: 100%;
        border-top: solid 1px #1f1f1f;
        margin-left: 0;
    }

    .global-navi .menu > li a {
        width: 100%;
        display: block;
        padding: 20px;
    }

    .global-navi .menu .menu-first span {
        display: block;
        padding: 20px;
    }

    .global-navi .menu .menu-first span::before {
        content: "";
        width: 15px;
        height: 1px;
        background-color: #1f1f1f;
        position: absolute;
        top: 30px;
        right: 20px;
    }

    .global-navi .menu .menu-first span::after {
        width: 1px;
        height: 15px;
        background-color: #1f1f1f;
        border: none;
        transform: none;
        position: absolute;
        top: 23px;
        right: 26px;
        left: auto;
    }

    .global-navi .menu .menu-first span.active::after {
        content: none;
    }

    .global-navi .menu .menu-first .menu-second {
        width: 100%;
        position: static;
        padding: 0 0 0 40px;
    }

    .global-navi .menu .menu-first .menu-second li {
        border-top: solid 1px #eee;
        margin-bottom: 0;
    }

    .menu-item {
        gap: 30px 0;
    }

    /* ボタンを押した際の動作を作成（スマホ） */
    .global-navi.active {
        opacity: 1;
        visibility: visible;
        transition: all 0.6s;
    }

    .hamburger.active span:nth-of-type(1) {
        top: 24px;
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-of-type(3) {
        top: 24px;
        transform: rotate(45deg);
    }

    .mask.active {
        width: 100%;
        height: 100%;
        background: #000;
        display: block;
        opacity: 0.8;
        position: fixed;
        top: 0;
        left: 0;
    }

    /* 検索結果のリスト（縦並び） */
    .recipe-grid-vertical {
        grid-template-columns: 1fr;
    }

    /* シーンナビ（3カラム） */
    .scene-grid {
    grid-template-columns: repeat(1, 1fr);
    }

    /* レシピグリッド */
    .recipe-grid {
        height: auto;
        grid-template-columns: repeat(1, 1fr);
    }


}