@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #f098b1;
    --link-color: #F37021;
    --linkhover-color: #F37021;
    --back-color: #f7f7f7;
    --border-color: #f098b1;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}


/* ==========================================================================
   前面固定＆白背景はスクロールで消えるポップヘッダー（PC用：769px以上）
   ========================================================================== */
@media screen and (min-width: 769px) {
    /* 1. ヘッダーの「白い帯（背景）」は最上部に配置（一緒にスクロールして消える） */
    header {
        position: absolute;     /* ★absolute にすることでスクロールで上に流れます */
        top: 0;
        left: 0;
        width: 100%;
        height: 110px;          /* 白い帯の縦幅 */
        background-color: #fff; /* 最初だけ見える白背景 */
        border-bottom: 3px solid #f098b1; /* 下側の緑色の線 */
        z-index: 9998;          /* ロゴやメニューより下のレイヤーにする */
        padding: 0 !important;
    }
    
    /* 2. ロゴ画像だけを「画面に固定」 */
    .header {
        position: fixed;        /* ★fixed にして画面にピン留め */
        top: 30px;              /* ★初期表示で白帯の上下中央にくるように調整 */
        left: 40px;
        z-index: 9999;          /* 白帯や他のコンテンツより手前に重ねる */
        padding: 0 !important;
    }

    /* 3. メニュー（角丸ボックス）を「画面に固定」 */
    menu {
        position: fixed;        /* ★fixed にして画面にピン留め */
        top: 18px;              /* 画面上部からの固定位置 */
        right: 40px;
        z-index: 10000;         /* 一番手前に重ねる */
        
        /* メニューの箱自体には白背景を残す（下をコンテンツが通ったときに文字を読みやすくするため） */
        background-color: rgba(255, 255, 255, 0.95); 
        border: 3px solid #f098b1;       
        border-radius: 16px;             
        box-shadow: 5px 5px 0 #f098b1;    
        padding: 10px 20px;
        width: auto;                      
    }

    /* ナビゲーションの並び（以下はこれまでと同様です） */
    nav ul {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    nav li {
        background-color: transparent !important;
        flex: none;
    }
    nav li a {
        /* ★!important を末尾につけて、他のCSSの指定を強制的に上書きします */
        font-family: 'M PLUS Rounded 1c', sans-serif !important; 
        font-size: 1.5rem;
        font-weight: 700;
        color: #f098b1 !important;
        text-shadow: none !important;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    nav li a:hover {
        color: #fff !important;
        background-color: #F37021;
        transform: translateY(-3px);
    }
}

/* ==========================================================================
   スマホ用の設定（768px以下：元のデザインを崩さないためのリセット）
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* ヘッダーロゴの配置 */
    .header {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
        padding: 2rem 0 0 0;
    }

    /* スマホ用のメニューバー */
    menu {
        background-color: #f098b1;
        margin: 0;
        padding: 0;
        /* ★変更：position: relative; を削除（ボタンをロゴの横まで上げるため） */
    }

    /* スマホ時はメニュー（#navi）を最初は非表示にする */
    #navi {
        display: none; 
        width: 100%;
    }

    /* メニュー内のリンクを縦並びにして整える */
    nav ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    nav li {
        width: 100%;
        background-color: #f098b1;
    }
    nav li a {
        display: block;
        width: 100%;
        padding: 1.2rem;
        /* ★スマホ側にもこの1行を追加して強制適用させます */
        font-family: 'M PLUS Rounded 1c', sans-serif !important; 
        color: #fff !important;       
        text-align: center;
        font-size: 1.5rem;
        text-shadow: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    }

    /* ★重要：スマホ時の「メニューを開くボタン」をロゴの右横（上部）へ移動 */
    #open {
        display: block;
        background: url(../img/button.png) no-repeat center / contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;      /* ★上からの位置を調整して、ロゴの真横に配置します */
        right: 12px;
        cursor: pointer;
        z-index: 10001; /* ★念のため、他の要素より手前に表示されるようにします */
    }

    /* ★重要：スマホ時の「メニューを閉じるボタン」も同様に配置 */
    #close {
        display: block;
        background: url(../img/button2.png) no-repeat center / contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;      /* ★ロゴの真横に合わせます */
        right: 12px;
        cursor: pointer;
        z-index: 10001;
    }
}

/*ロゴ
-------------------------------------*/
.site-id img {
    max-width: 250px;
}

.site-id a {
    display: inline-block; /* ★追加：リンクの範囲を、画像幅ぴったりに縮めます */
}

.site-id h1 {
    margin: 0;             /* ★追加：文字の余計なデフォルト余白をカットします */
}
    
/* メイン画像（PC用の基本設定：769px以上）
-------------------------------------*/
#mainimg {
    background-image: url("../img/mainimg.jpg"); /* ★PC用の画像 */
    background-size: cover;
    background-position: center;
	margin-top: 110px;
	width: 100%;
    aspect-ratio: 1920 / 500;
}

#mainimg h1 {
    /*height: 500px; /* PC時の高さ */
	height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    text-align: center;
    color: var(--white-color);
    text-shadow: 1px 2px 3px var(--link-color); 
}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }


/*  メイン画像（画面幅768px以下のスマホ設定）
-------------------------------------*/
@media only screen and (max-width: 768px) {
    #mainimg {
        background-image: url("../img/mainimg_sp.jpg"); /* スマホ用の正方形画像 */
        width: 100%;
        aspect-ratio: 1 / 1;  /* ★画面幅に合わせて、常に「正方形（1:1）」を維持する設定 */
        background-size: cover;
		margin-top: 0;
    }

    #mainimg h1 {
        height: 100%;        /* ★固定の350pxをやめ、正方形の高さに100%連動させる */
        margin: 0;
    }

    .pc { display: none !important; }
    .sp { display: block !important; }
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 0 0;
}
section {
	margin: 5rem 0;
	padding: 3rem 0;
}
.gray-back {
	background-color: var(--back-color);
}

.container{
  width: 100%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}

img {
  max-width: 100%; 
}

/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
	margin-right:2rem;
	margin-left:2rem;
}
.catch h2 {
    padding-bottom: 1rem;
}
.under {
    border-bottom: 0.4rem solid var(--base-color);
    padding:0 1rem 1rem 1rem;
}
.center {
    text-align: center;
    margin-bottom: 4rem;
}

/*新着情報
-------------------------------------*/

.news h2 {
    text-align: center;
    padding-bottom: 1rem;
}
.news li {
    list-style-type: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}

.newstopic {
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}

.newstopic dl {
}

.newstopic dt {
    display: flex;
    justify-content: space-between;
    clear: both;
    width: 100px;
    float: left;
}

.newstopic dd {
    padding-left: 100px; 
}


/*開催概要
-------------------------------------*/

.about h2 {
    text-align: center;
    padding-bottom: 1rem;
}
.about li {
    list-style-type: none;
	padding: 0.5rem 0;
}
.aboutmap{ text-align: right; } 
.aboutmap img { max-width: 800px;
}

.event {
}
.event dl {
}
.event dt {
    display: flex;
    justify-content: space-between;
    clear: both;
    width: 100px;
    float: left;
}

.event dt::after {
      content: ":　"; 
}

.event dd {
    padding-left: 100px; 
}


/*出店者情報
-------------------------------------*/
.program{
        position: relative;
      }
img {
  width: 100%;
  }

.program p{
        position: absolute;
        padding: 5px;
        margin:0;
      }
.programname { text-align: left;/* ←左寄せ */
            font-weight: bold;
            color:#444444;
	　　　　　margin-top: 0;
            margin-bottom: 0rem;
 }

.programdate { text-align: left;/* ←左寄せ */
            font-size: 1.4rem;
            color:#444444;
            margin-top: 0;
 }

.programplace { text-align: left;  /* ←左寄せ */
            font-size: 1.4rem;
            font-weight: 500;
 }  

.programtext { text-align: left;  /* ←左寄せ */
            font-size: 1.4rem;
 }  
.programsns-icon { text-align: right; }  /* ←右寄せ */
.programsns-icon img {
width: 20px;
}

@media only screen and (max-width: 768px) {
.programdate { text-align: left;/* ←左寄せ */
            font-size: 1.4rem;
            color:#444444
 }
.programplace { text-align: left;  /* ←左寄せ */
          font-size: 1.4rem;
}  
.programtext { text-align: left;  /* ←左寄せ */
          font-size: 1.4rem;
}  
} 

/*カラム
-------------------------------------*/
.programlist {
  margin-top: 2em;
}

.program-col {
    margin-left:2%;
  width: 48%;
}

@media (min-width: 768px) {
  .program-col {
    margin-left:2%;
    width: calc(94% / 3);
  }
}


/*出店者情報
-------------------------------------*/
.shop{
        position: relative;
      }
img {
  width: 100%;
  }

.shop p{
        position: absolute;
        padding: 5px;
        margin:0;
      }
.shop .area{
        top: 0px;
        left: 0px;
        margin: 0;
        text-align: center;
        background-color: gray;
        font-weight: bold;
        color: #fff;
      }
.shop .date {
        background-color: darkgray;
        right: 0px;
        bottom: 8px;
        font-size: 1.2rem;
      }

.shopname { text-align: left;/* ←左寄せ */
            font-weight: bold;
            color:#1c1f88;
            margin-bottom: 0rem;
 }

.shopdate { text-align: left;/* ←左寄せ */
            font-size: 1.4rem;
            color:#4d4d80;
            margin-top: 0;
            margin-bottom: 0.5rem;
 }

.shopitem { text-align: left;  /* ←左寄せ */
            font-size: 1.4rem;
            font-weight: 500;
 }  

.shoptext { text-align: left;  /* ←左寄せ */
            font-size: 1.4rem;
 }  
.shopsns-icon { text-align: right; }  /* ←右寄せ */
.shopsns-icon img {
width: 20px;
}

@media only screen and (max-width: 768px) {
.shopdate { text-align: left;/* ←左寄せ */
            font-size: 1.2rem;
            color:#666680
 }
.shopitem { text-align: left;  /* ←左寄せ */
          font-size: 1.2rem;
}  
.shoptext { text-align: left;  /* ←左寄せ */
          font-size: 1.2rem;
}  
} 

/*カラム
-------------------------------------*/
.shoplist {
  display: flex;
  flex-wrap: wrap;
}
.shop-col {
    margin-left:2%;
  width: 48%;
}

@media (min-width: 768px) {
  .shop-col {
    margin-left:2%;
    width: calc(94% / 3);
  }
}



/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color); 
    padding: 2rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}

.sns-icon { text-align: center; }  /* ←中央寄せ */
.sns-icon img{
width: 30px;
}


/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--base-color);
}
.copyright a {
    color: var(--white-color);
    text-decoration: none;
	display: inline;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){

}
