@charset "UTF-8";

/* =========================================
 * 共通設定 (index.html ベース)
 * =========================================
 */
:root {
    /* 配色パレット */
    --bg-color: #FFFDF5;
    /* 生成り色（ベース） */
    --text-color: #5A4D3F;
    /* 柔らかい焦げ茶 */
    --main-orange: #F4A261;
    /* 温かみのあるオレンジ */
    --main-green: #8AB898;
    /* 若草色 */
    --accent-red: #E76F51;
    /* ラミィ牌の赤（パステル寄り） */
    --accent-blue: #2A9D8F;
    /* ラミィ牌の青（パステル寄り） */
    --accent-yellow: #E9C46A;
    /* ラミィ牌の黄（パステル寄り） */
    --accent-black: #333333;
    --white: #ffffff;

    /* 共通設定 */
    --border-radius: 20px;
    --box-shadow: 0 4px 10px rgba(90, 77, 63, 0.08);
}

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

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    background-image: radial-gradient(#E9C46A 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

html {
    scroll-behavior: smooth;
    /* ページ内リンクでスムーズにスクロール */
}

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

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* 共通レイアウトクラス */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--main-orange);
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(45deg,
            var(--main-green),
            var(--main-green) 5px,
            transparent 5px,
            transparent 10px);
    border-radius: 10px;
    margin-top: 5px;
    opacity: 0.6;
}

.section-sub {
    text-align: center;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* ボタンデザイン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--main-orange);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 0 #d68c50;
    /* 押せる立体感 */
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* =========================================
 * Header
 * =========================================
 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid var(--main-green);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ロゴ画像用スタイル */
.logo-img {
    height: 40px;
    /* ロゴの高さ */
    width: auto;
}

/* PC Navigation */
.pc-nav ul {
    display: flex;
    gap: 30px;
}

.pc-nav a {
    font-weight: 700;
    color: var(--main-green);
    position: relative;
}

.pc-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--main-orange);
    transition: width 0.3s;
    border-radius: 3px;
}

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

/* PC用 お問い合わせボタン */
.pc-nav a.btn-contact {
    padding: 8px 20px;
    background-color: var(--accent-red);
    color: var(--white);
    border-radius: 30px;
    box-shadow: 0 4px 0 #cc583c;
    transition: transform 0.1s, box-shadow 0.1s;
}

.pc-nav a.btn-contact::after {
    display: none;
}

.pc-nav a.btn-contact:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* =========================================
 * Mobile Navigation Menu
 * =========================================
 */
.sp-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    padding-top: 80px;
    z-index: 1500;
}

.sp-nav.active {
    right: 0;
}

.sp-nav ul {
    flex-direction: column;
    padding: 0 20px;
}

.sp-nav li {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.sp-nav li:last-child {
    border-bottom: none;
}

.sp-nav a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

/* スマホ用 お問い合わせボタン */
.sp-nav a.btn-contact-sp {
    display: block;
    margin-top: 10px;
    padding: 12px 20px;
    background-color: var(--accent-red);
    color: var(--white);
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 4px 0 #cc583c;
}

/* =========================================
 * Footer
 * =========================================
 */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* SNSアイコン用スタイル */
.footer-links a {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =========================================
 * トップページ (index.html) 専用
 * =========================================
 */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero-card {
    background-color: var(--white);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 3px dashed var(--main-orange);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    background-color: #eee;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-sub {
    color: var(--main-green);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.concept {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.6);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* カラム幅調整 */
    gap: 30px;
}

.concept-item {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-bottom: 5px solid;
    height: 100%;
    /* 高さ揃え */
}

/* アクセントカラー分け */
.concept-item:nth-child(1) {
    border-color: var(--accent-red);
}

.concept-item:nth-child(2) {
    border-color: var(--accent-blue);
}

.concept-item:nth-child(3) {
    border-color: var(--accent-yellow);
}

.concept-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.concept-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.concept-item p {
    font-size: 0.9rem;
}

.hot-topic {
    padding: 40px 0 60px;
    background-color: #FFF8E1;
    /* 薄い黄色で強調 */
    position: relative;
}

/* 波線で区切る装飾（上下） */
.hot-topic::before,
.hot-topic::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    background-size: 40px 40px;
}

.hot-topic::before {
    top: -10px;
    background-image: radial-gradient(circle at 20px 0, transparent 20px, #FFF8E1 21px);
}

.hot-topic::after {
    bottom: -10px;
    background-image: radial-gradient(circle at 20px 20px, #FFF8E1 20px, transparent 21px);
    transform: rotate(180deg);
}

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

.hot-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--accent-red);
}

.hot-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.hot-item h3 {
    font-size: 1.1rem;
    color: var(--accent-red);
    margin-bottom: 10px;
    line-height: 1.5;
}

.hot-item p {
    font-size: 0.95rem;
}

.event {
    padding: 60px 0;
}

.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--bg-color);
}

.event-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #eee;
}

.event-content {
    padding: 30px;
    position: relative;
}

.tag-new {
    background: var(--accent-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    position: absolute;
    top: -15px;
    left: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.event-date {
    color: var(--main-green);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.menu-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--main-orange);
}

.menu-card:nth-child(2)::before {
    background: var(--main-green);
}

.menu-card:nth-child(3)::before {
    background: var(--accent-blue);
}

.menu-card:hover {
    transform: scale(1.03);
}

.menu-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}


/* =========================================
 * concept.html 専用スタイル
 * =========================================
 */
.concept-page-header {
    text-align: center;
    padding: 40px 0;
}

.concept-page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.concept-page-header p {
    color: var(--main-green);
    font-weight: bold;
}

.content-section {
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--main-orange);
    margin-bottom: 20px;
    border-left: 5px solid var(--main-green);
    padding-left: 15px;
}

.rule-demo {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}

.tile-set {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.game-tile {
    width: 36px;
    height: 48px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    font-family: sans-serif;
    position: relative;
}

.c-red {
    color: var(--accent-red);
}

.c-blue {
    color: var(--accent-blue);
}

.c-yellow {
    color: var(--accent-yellow);
}

.c-black {
    color: var(--accent-black);
}

.rule-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ok-ng-mark {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-top: 5px;
}

.mark-ok {
    background: #e6f4ea;
    color: var(--main-green);
    border: 1px solid var(--main-green);
}

.mark-ng {
    background: #fce8e6;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.feature-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 10px;
}

.feature-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--main-orange);
    font-weight: bold;
}

/* アレンジ解説用のスタイル */
.arrange-box {
    background-color: #fff8e1;
    /* 背景色 */
    border: 2px solid #F9E7B8;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.arrange-step-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.arrange-arrow {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--main-orange);
    margin: 15px 0;
    position: relative;
}

.cta-area {
    text-align: center;
    padding: 40px;
    background-color: #FFF8E1;
    border-radius: 30px;
    border: 3px dashed var(--main-orange);
}

@media (max-width: 600px) {
    .content-section {
        padding: 25px;
    }

    .game-tile {
        width: 30px;
        height: 40px;
        font-size: 1.1rem;
    }

    .concept-page-header h1 {
        font-size: 1.6rem;
    }
}


/* =========================================
 * history.html 専用スタイル
 * =========================================
 */
.history-page-header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.history-page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.history-page-header p {
    color: var(--main-green);
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
}

.album-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    padding-bottom: 40px;
}

.album-item {
    background: var(--white);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transform: rotate(-1deg);
    transition: transform 0.3s;
}

.album-item::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 120px;
    height: 30px;
    background-color: rgba(244, 162, 97, 0.7);
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.3) 5px, rgba(255, 255, 255, 0.3) 10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.album-item:nth-child(2n)::before {
    background-color: rgba(138, 184, 152, 0.7);
    transform: translateX(-50%) rotate(2deg);
}

.album-date {
    display: inline-block;
    background: #FFECB3;
    padding: 5px 15px;
    border-radius: 2px;
    margin-bottom: 10px;
    font-weight: bold;
    transform: rotate(-2deg);
}

.album-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 10px;
}

.album-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.album-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.album-gallery img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    background-color: #fff;
    padding: 6px 6px 25px 6px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.album-gallery img:nth-child(odd) {
    transform: rotate(-3deg);
}

.album-gallery img:nth-child(even) {
    transform: rotate(2deg);
}

.album-gallery img:hover {
    transform: scale(1.2) rotate(0deg);
    z-index: 20;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

.album-gallery img:first-child {
    width: 100%;
    max-width: 250px;
}


/* =========================================
 * Responsive (Mobile)
 * =========================================
 */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .pc-nav {
        display: none;
        /* PCナビを隠す */
    }

    .hamburger {
        display: block;
        /* ハンバーガーを表示 */
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .section-title {
        white-space: normal;
        /* スマホでは改行許可 */
    }

    .event-card {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .sp-nav {
        display: none;
    }

    .event-card {
        flex-direction: row;
        align-items: center;
    }

    .event-img {
        width: 50%;
        height: 300px;
    }

    .event-content {
        width: 50%;
    }

    .album-item {
        width: 45%;
        margin-left: 0;
    }

    .album-item:hover {
        transform: scale(1.02) rotate(0deg) !important;
        z-index: 10;
    }

    .album-item:nth-child(even) {
        margin-left: auto;
        transform: rotate(1deg);
    }
}