/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: #000;
    background-color: #000;
    text-align: center;
}

ol, ul {
    list-style: none;
}

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

a {
    color: #76a32d;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
    opacity: 0.6;
    color: #76a32d;
}

:focus {
    outline: none;
}

p {
    line-height: 1.8;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.inner {
    max-width: 940px;
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 30px;
}

.mainImg {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
    background-color: #000;
}

.subtext {
    text-align: left;
    padding: 1.5em 20px;
    max-width: 940px;
    margin: 0 auto;
    font-size: 1.25rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: #fff;
    background-color: #000;
    line-height: 1.4;
}

li .note{
    margin-top: 20px;
}
.subtext .note {
    margin-top: 10px;
    color: #FFB300;
    font-size: 0.85rem;
    font-weight: normal;
}

.green {
    background-color: #76a32d;
}

.parent {
    z-index: 1;
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #fff;
    margin-bottom: 20px;
}

.layer-img {
    position: absolute;
    top: 0;
    right: 15%;
    z-index: 2;
    width: 140px;
    transform: translate(0, -20%);
}

.present {
    width: 90%;
    max-width: 940px;
}

.forpc { display: block; }
.forsp { display: none; }

/* 基本スタイル（PC向け）
----------------------------- */
.imgsp {
  display: none;  /* スマホ用は非表示 */
}
.imgpc {
  display: block; /* PC用は表示 */
}

/* スマホ向け（画面幅が640px以下の場合）
----------------------------- */
@media screen and (max-width: 640px) {
  .imgsp {
    display: block; /* スマホ用を表示 */
  }
  .imgpc {
    display: none;  /* PC用を非表示 */
  }
}



/* ==========================================================================
   HEADER & FOOTER
   ========================================================================== */
header {
    width: 100%;
}

.pageTop {
    padding: 15px;
    text-align: left;
    background-color: #000;
}

.pageTop .logo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background-color: #000;
}

/* TOPへ戻るボタン */
.toTop {
    position: fixed;
    bottom: 20px;
    right: 5%;
    width: 40px;
    z-index: 100;
}

.toTop a img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.toTop a img:hover {
    opacity: 1;
}

/* ==========================================================================
   HEADINGS & TEXT STYLES
   ========================================================================== */
h1.img {
    background-color: #000;
    max-width: 1300px;
    margin: 0 auto;
}

h3 {
    font-size: 1.625rem;
    color: #76a32d;
    line-height: 1.4;
    text-align: left;
    border-bottom: solid 3px #76a32d;
    margin: 30px 0 20px;
    padding: 5px;
}

h4 {
    font-size: 1.8em;
    color: #b60005;
    font-weight: 600;
    padding-top: 30px;
}

h5{
    font-size: 1.0em;
    color: #fff;
    margin-top: 10px;
}

/* 応募要項テキストエリア */
.oubotxt {
    text-align: left;
    margin: 20px 0 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.oubotxt ul li {
    display: block;
    line-height: 1.6;
    margin-bottom: 2.4em;
    padding:0  2rem;
}

.oubotxt ul li.note {
    margin-top: 1em;
    font-size: 0.9em;
    color: #000;
    padding: 20px 5px;
    border-top: 1px dotted; #000;
}

.oubotxt ul li span.oubottl {
    color: #f18200;
    font-weight: 600;
}

.oubotxt ul li span.shimekiri {
    font-size: 1.1em;
    padding:auto  1rem;
    font-weight: bold;
    color: #FF0000;
}

/* 応募ボタン */
.ouboBtn {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.ouboBtn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 0.8em 2em;
    font-size: 1.8em;
    font-weight: 600;
    color: #fff;
    background-color: #76a32d;
    border: 3px solid #fff;
    border-radius: 60px;
    position: relative;
    text-decoration: none;
    /* 移動アニメーション（transform）を追加 */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ouboBtn a:hover {
    background-color: #5a7d22; /* 背景色をより濃い緑に変更 */
    transform: translateY(-3px); /* 上に3px移動（押し込み感を出したい場合は 2px などプラスに設定） */
}

.rakuten{
    margin: 40px auto 20px;
    width: 280px;
    font-size: 1.1em;
    padding: 10px 30px;
    background-color: #fff;
    border: 2px #76a32d solid;

}

/* ==========================================================================
   SNS SHARE BUTTONS
   ========================================================================== */
.sns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 30px;
    flex-wrap: wrap;
}

.x-share-button,
.fb-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border: 3px solid #ffffff;
    border-radius: 30px;
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.line-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 48px;
    border: 3px solid #ffffff;
    border-radius: 30px;
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.line-share-button {
    padding: 10px 40px;
}

.x-share-button:hover,
.fb-share-button:hover,
.line-share-button:hover {
    background-color: #333;
    color: #fff;
}

/* 全体のコンテナ */
.rmid {
    max-width: 100%;
    background-color: #dcdcdc;
    border-radius: 5px;
    margin: 30px auto;
    padding: 20px;
    color: #000;
    box-sizing: border-box;
}

/* 見出しのスタイル */
.rmid h5 {
    color: #000;
    margin: 5px 0 15px 0;
    font-size: 1.0em;
}

.kochira {
    border: 0px solid #fff;
    padding: 2px 5px;
    background-color: rgb(0, 0, 0 ,.2);
    font-size: .9em;
    color: #fff;
    border-radius: 2px;
}


/* テーブル全体の基本設定 */
.rmid table {
    width: 100%;
    border-collapse: collapse; /* 枠線を1本線にまとめる */
}

/* セル(td)の共通設定 */
.rmid table td {
    text-align: left;
    vertical-align: top; /* 上揃えの方が見栄えが良くなります */
    padding: 5px;       /* セル内の余白 */
    /*color: #fff;         /* 文字の色 */
    /*border: 1px solid #666;*/
    font-size: 0.8em;
    line-height: 1.6;
}

/* --- PC表示用の3つのtd幅の割付 --- */
.rmid table .td-logo {
    width: 15%;
    text-align: center; /* 画像を中央寄せ */
    vertical-align: middle;
}

.rmid table .td-text {
    width: 55%;
}

.rmid table .td-list {
    width: 25%;
}

/* テーブル内のリストの余白調整 */
.rmid table .td-list ul {
    margin: 0;
    padding-left: 20px;
}


/* --- レスポンシブ（スマホ）対応 --- */
/* 画面幅が767px以下の場合に適用されるスタイル */
@media (max-width: 767px) {
    /* テーブルの要素をすべてブロック要素にして段落ち（縦並び）にする */
    .rmid table, 
    .rmid table tbody, 
    .rmid table tr, 
    .rmid table td {
        display: block;
        width: 100%;
    }
    
    /* スマホ時のセルのスタイル調整 */
    .rmid table td {
        width: 100% !important; /* PCの幅指定を上書きして100%に */
        box-sizing: border-box; /* paddingを含めて100%の幅にする */
        border-bottom: none;    /* 重複する下線を消す */
    }
    
    /* 最後のセルだけ下線を引く */
    .rmid table td:last-child {
        border-bottom: 1px solid #666;
    }    
    /* スマホ閲覧時のみ画像サイズを調整する場合はここで設定 */
    .rmid table .td-logo img {
        display: none;
        width: 150px; /* お好みのサイズに */
        margin: 20px auto;
    }
    /* テーブル内のリストの余白調整 */
    .rmid table .td-list ul {
    padding-left: 0px;
    }
}


/* ==========================================================================
   BOOKS & SHOPS LISTS
   ========================================================================== */
/* 対象商品リスト */
.bookList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.bookList li {
    display: block;
}

.bookList li a img {
    display: block;
    width: 100%;
    border: 1px solid #fff;
    transition: transform 0.2s ease;
}

.bookList li a:hover img {
    transform: scale(1.03);
}

/* 都道府県ナビゲーション */
ul.shop-sc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 30px;
}

ul.shop-sc li {
    flex: 1 1 80px;
    max-width: 100px;
    border: 2px solid #76a32d;
    background: #f3f5f8;
}

ul.shop-sc li a {
    display: block;
    color: #000;
    padding: 8px 0;
    font-size: 0.9rem;
}

ul.shop-sc li a:hover {
    background-color: #f18200;
    color: #fff;
}

/* 開催店舗テーブル */
.table-wrapper {
    overflow-x: auto;
}

table.shop {
    width: 49%;
    float: left;
    margin-bottom: 2em;
    border-collapse: separate;
}

table.shop.right {
    float: right;
}

table.shop td {
    text-align: left;
    padding: 10px;
    font-size: 0.9em;
    line-height: 1.6;
    background-color: #fff;
}

table.shop td.ttl {
    background: #76a32d;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

table.shop td:nth-child(1) {
    white-space: nowrap;
}

/* CSS Clearfix for Float */
.fairShop::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade {
    animation: fadeIn 2s ease 0s 1 normal;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 980px) {
    .forpc { display: none; }
    .forsp { display: block; }
    .parent {
        height: 70px;
    }
    .layer-img {
        right: 5%;
        width: 120px;
    }

    h4 {
        font-size: 1.4em;
        padding-top: 15px;
        padding-left: 20px;
        text-align: left;
    }

    .subtext {
        font-size: 1rem;
        padding: 15px;
    }
}

@media screen and (max-width: 700px) {
    .parent {
        height: 50px;
    }
    .layer-img {
        width: 90px;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1em;
        padding-top: 12px;
        padding-left: 15px;
    }

    /* 店舗テーブルを1列表示に変更 */
    table.shop,
    table.shop.right {
        float: none;
        width: 100%;
        margin-bottom: 1em;
    }
    .oubotxt ul li {
        display: block;
        line-height: 1.6;
        margin-bottom: 2.4em;
        padding:0  .1rem;
    }

    li.note{
        margin-top: 20px;
    }
    .subtext .note {
        margin-top: 10px;
        font-size: 0.65rem;
    }
    .ouboBtn a {
        font-size: 1.3em;
        padding: 0.8em 1em;
    }

    .bookList {
        grid-template-columns: repeat(4, 1fr);
    }

    .x-share-button,
    .fb-share-button,
    .line-share-button {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .bookList {
        grid-template-columns: repeat(3, 1fr);
    }

    .parent {
        height: 60px;
    }

    .layer-img {
        width: 75px;
    }

    h4 {
        font-size: 0.85em;
        padding-top: 20px;
    }

    ul.shop-sc li {
        flex: 1 1 20%;
    }
}
