@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;900&display=swap');

:root {
    /* Colors */
    --color-base: #faf8f5; /* 白〜生成り */
    --color-main: #ffde00; /* ロゴのイエロー（仮） */
    --color-text: #231815; /* ロゴの黒 */
    --color-accent: #956134; /* ロゴ内の茶色 */
    --color-white: #ffffff;
    
    /* Fonts */
    --font-ja: "M PLUS Rounded 1c", "Rounded M+ 2c", sans-serif;
    --font-en: "Avenir Next", "Avenir", sans-serif;
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-ja);
    color: var(--color-text);
    background-color: var(--color-base);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    font-family: var(--font-ja); /* 日本語見出しなのでRounded M+を使用 */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--color-main);
    z-index: -1;
    transform: translateY(-5px);
}

.section {
    padding: 45px 0 80px;
}

/* Header */
.header {
    background-color: var(--color-main);
    padding: 20px;
}

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

.logo {
    width: 250px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-accent);
}

/* Hero */
.hero {
    min-height: 50vh;
    background-color: var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 40px;
    text-align: center;
    position: relative;
}

/* 少しの遊び心として背景にパターンなどを入れたいところですが、今回はシンプルに */

/* ヒーロー用のアニメーション定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floaty {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-content {
    text-align: center;
    width: fit-content;
    opacity: 0;
    animation: 
        fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        floaty 5s ease-in-out infinite 1s;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content:hover {
    animation-play-state: paused;
    transform: scale(1.02) translateY(-8px) rotate(0deg);
}

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

.catchcopy {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.sub-catchcopy {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-align: left;
    width: 17em;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

/* About */
.about-content {
    text-align: center;
}

.about-text {
    display: inline-block;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    width: max-content;
    max-width: 100%;
}

.about-text p {
    margin-bottom: 20px;
}

/* Products */
.products {
    background-color: var(--color-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-base);
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.product-img {
    height: 220px;
    background-color: #eaddd3;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-family: var(--font-en);
    font-weight: 700;
    opacity: 0.6;
}

.product-img::after {
    content: 'Coming Soon';
}

.product-name {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-accent);
    padding: 0 15px;
    text-align: left;
    display: inline-block;
}

/* Works */
.works-content {
    background-color: var(--color-white);
    padding: 80px 70px;
    border-radius: 20px;
    border: 2px solid var(--color-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.works-intro {
    margin-bottom: 35px;
    text-align: center;
}

.works-text-inner {
    display: inline-block;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: var(--color-text);
    max-width: 25em;
}

.works-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.works-list li {
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
}

.works-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.works-contact {
    margin-top: 40px;
    padding-top: 35px;
    text-align: center;
    border-top: 1px dashed #ddd;
}

.works-contact p {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.works-contact a {
    display: inline-block;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent);
    position: relative;
    transition: opacity 0.3s ease;
}

.works-contact a:hover {
    opacity: 0.7;
}

.works-contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: transform 0.3s ease;
}

.works-contact a:hover::after {
    transform: scaleX(0.8);
}

/* Games */
.games-content {
    background-color: var(--color-white);
    padding: 70px 40px;
    border-radius: 20px;
    border: 2px solid var(--color-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
}

.games-desc {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* News */
.news {
    background-color: var(--color-main);
}

.news-content {
    text-align: center;
    background-color: var(--color-white);
    padding: 60px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-text-inner {
    display: inline-block;
    text-align: left;
    margin-bottom: 30px;
}

.news-text-inner p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.05em;
    word-break: keep-all;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(149, 97, 52, 0.3);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(149, 97, 52, 0.4);
}

/* Access */
.access-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: var(--color-white);
    padding: 50px;
    border-radius: 16px;
}

.info-list {
    flex: 1;
    min-width: 250px;
}

.info-list dt {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-accent);
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.info-list dd {
    margin-bottom: 25px;
    font-weight: 500;
}

.map-wrapper {
    flex: 1;
    min-width: 280px;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 80px 0 50px;
    text-align: center;
}

.neighbor-shop {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.neighbor-shop p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.neighbor-shop a {
    display: inline-block;
    color: #c49a45; /* 真鍮・ゴールドカラー */
    font-size: 1.15rem;
    transition: opacity 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid #c49a45;
    padding-bottom: 2px;
}

.chicori-jp {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-weight: 500;
    font-size: 0.85em;
}

.chicori-logo {
    height: 2.4em;
    width: auto;
    vertical-align: middle;
    margin-left: 6px;
    margin-bottom: 2px;
}

.neighbor-shop a:hover {
    opacity: 0.8;
}

.copyright {
    font-family: var(--font-en);
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Hamburger */
.hamburger {
    display: none;
}
.no-scroll {
    overflow: hidden;
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sp-only {
    display: none !important;
}
@media (max-width: 768px) {
    .sp-only {
        display: inline !important; /* spanなのでinline */
    }
    .pc-only {
        display: none !important;
    }
}

/* Media Queries (Mobile) */
@media (max-width: 768px) {
    .header {
        padding: 10px 20px 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 0;
    }

    .logo {
        width: 330px;
        max-width: 95%;
        margin-bottom: -20px;
    }
    
    .hamburger {
        display: block;
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background-color: var(--color-main);
        border: none;
        border-radius: 50%;
        z-index: 1000;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .hamburger span {
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: var(--color-text);
        left: 15px;
        transition: all 0.3s ease;
        border-radius: 3px;
    }
    
    .hamburger span:nth-child(1) { top: 18px; }
    .hamburger span:nth-child(2) { top: 28.5px; }
    .hamburger span:nth-child(3) { top: 39px; }
    
    .hamburger.is-active span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(250, 248, 245, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav a {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: auto;
        padding: 0 20px 40px;
        align-items: flex-start;
    }

    .hero-content {
        padding: 0;
        margin-top: -15px;
    }

    .catchcopy {
        font-size: 2.5rem;
        font-weight: 900;
     }

    .sub-catchcopy {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }

    .section {
        padding: 30px 0 60px;
    }
    
    .about-text {
        font-size: 1.05rem;
        font-weight: 500;
        width: 17.5em;
        max-width: 100%;
        text-align: left;
    }
    
    .works-content {
        padding: 40px 30px;
    }

    .works-text-inner, .works-list {
        max-width: 19em;
        margin-left: auto;
        margin-right: auto;
    }

    .works-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .news-content {
        padding: 40px 10px;
    }
    
    .news-text-inner {
        display: block;
        width: 290px;
        max-width: 100%;
        margin: 0 auto 30px;
        text-align: left;
    }

    .games-content {
        padding: 40px 20px;
    }

    .access-content {
        padding: 30px 20px;
    }

    .info-list {
        flex: none;
        width: 100%;
        max-width: 20em;
        margin: 0 auto;
    }
}
