@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    color: #000;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.section {
    padding: 2rem 0 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

/* ===== ヘッダー・ナビ ===== */
nav.nav {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fff;
    padding: 40px 60px;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    line-height: 29px;
}

/* PC用メニュー */
ul.nav--list {
    display: flex;
    gap: 32px;
}

li.nav--item a {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    position: relative;
}

li.nav--item a:hover {
    text-decoration: none;
}

li.nav--item a::after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    bottom: 0;
    height: 2px;
    left: 0;
    background-color: white;
    transition: all 0.4s ease-in;
}

li.nav--item a:hover::after {
    width: 100%;
}

/* ===== ヒーローセクション ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    background-position: center;
    background-size: cover;
}

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

.swiper-button-next,
.swiper-button-prev {
    color: darkgray;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
}

h1.title {
    font-weight: bold;
    font-size: 72px;
    line-height: 96px;
    color: #fff;
    margin-bottom: 34px;
}

p.title {
    font-weight: bold;
    font-size: 40px;
    line-height: 60px;
    color: #fff;
    margin-bottom: 34px;
}

/* ===== ハンバーガー ===== */
.burger {
    position: relative;
    width: 30px;
    height: 22px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 2000;
    display: none;
    /* デフォルト非表示 */
}

.burger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    top: 18px;
}

/* 開いた時の「×」 */
.burger[data-state="open"] span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger[data-state="open"] span:nth-child(2) {
    opacity: 0;
}

.burger[data-state="open"] span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* ===== aboutセクション ===== */
.about__container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.about__img {
    width: 45%;
    max-width: 500px;
}

.about__data {
    flex: 1;
}

.about__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about__description {
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== ブログセクション ===== */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    color: #2e8b57;
    text-align: center;
}

.blog .container, .product-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.blog-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card img {
    width: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 1.2rem;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.blog-info p {
    line-height: 1.6;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

/* ===== アクセス ===== */
.access-wrapper {
    text-align: center;
}

.access-info {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 1024px) {
    body {
        font-size: 18px;
    }

    nav.nav {
        padding: 30px;
    }

    h1.title {
        font-size: 48px;
        line-height: 60px;
    }

    p.title {
        font-size: 28px;
        line-height: 42px;
    }
}

@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }

    /* モバイルメニュー */
    .nav--list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(147, 154, 156, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(-20%);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        z-index: 999;
        display: none;
        /* 初期非表示 */
    }

    .nav--list[data-state="open"] {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* 順番に表示 */
    .nav--list li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav--list[data-state="open"] li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav--list[data-state="open"] li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav--list[data-state="open"] li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav--list[data-state="open"] li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav--list[data-state="open"] li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav--list[data-state="open"] li:nth-child(5) {
        transition-delay: 0.5s;
    }

    section.hero {
        height: 70vh;
    }

    h1.title {
        font-size: 36px;
        line-height: 48px;
    }

    p.title {
        font-size: 24px;
        line-height: 36px;
    }

    .about__container {
        flex-direction: column;
        text-align: center;
    }

    .about__img {
        width: 100%;
        max-width: 100%;
    }

    .blog .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card img {
        max-height: 250px;
        object-fit: cover;
    }
}

@media screen and (max-width: 480px) {
    nav.nav {
        padding: 20px;
    }

    h1.title {
        font-size: 28px;
        line-height: 38px;
    }

    p.title {
        font-size: 20px;
        line-height: 28px;
    }

    .blog-info {
        font-size: 0.9rem;
        padding: 1rem;
    }

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