.main {
    width: 100%;
}

.in_box {
    margin: 1em auto;
    width: 100%;
    max-width: 970px;
}

.flex {
    display: -webkit-box;
    display: flex;
}

a {
    color: var(--accent)
}

a:hover {
    color: var(--accent-light);
}

a:visited {
    color: var(--accent-dark);
}
/* 親コンテナ */
.mv {
  display: flex;       /* 横並びにする */
  gap: 0px;           /* 画像間の隙間（不要なら0に） */
  width: 100%;         /* 全体の幅 */
  max-width: 1200px;   /* 必要に応じて最大幅を設定 */
  margin: 0 auto;
}

/* 各figure要素 */
.mv figure {
  flex: 1;             /* 2つのfigureを同じ幅に広げる */
  margin: 0;           /* ブラウザ標準の余白を消す */
  padding: 0;
}

/* 画像本体 */
.mv img {
  width: 100%;         /* 親(figure)の幅いっぱいに広げる */
  height: auto;        /* 比率を維持 */
  display: block;      /* 下の隙間を消す */
  object-fit: cover;   /* 元のサイズが違っても綺麗に収める（必要に応じて） */
}
/*フェード*/
/* フェードイン前の状態 */
.fade {
  opacity: 0;
  transform: translateY(20px); 
  transition: opacity 0.6s, transform 0.6s;
}

.fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*画像2個並べ*/
.two {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /* 追加 */
    justify-content: center;
    gap: 10px;
}

.two img {
    width: 49%;
    height: auto !important;
}

.two figcaption {
    width: 100%;
}

.three {
    width: 100%;
    margin: 2em auto;
    display: flex;
    justify-content: center;
    align-items: center;
}


.three img {
    max-width: 100% !important;
    height: 200px !important;
    width: auto !important;
}

.three figcaption {
    text-align: center;
    font-size: 12px;
}

.other .two {
    margin: 1em auto;
}

.other .two img {
    width: auto !important;
    height: 280px !important;
}

.other .in_box {
    margin-bottom: 2em;
}

.card{
    width:48%;
}

.other .two .card img{width: 100% !important;;height: auto !important;border-radius:10px;}
.card figcaption {display: block;}
.card h5{color: #dc7603;border:1px solid #dc7603;background:rgba(255,255,255,0.2);padding:0.2em 0.5em;border-radius:5px;}
.card figcaption::before{content: "《 MENU 》";font-size:12px;}
.card figcaption ul{
    margin-left:1em;
}
.map iframe{width:100%!important;}
.other .two{gap: 20px !important;;}
/*ヘッダー*/
.header {
    width: 100%;
    box-sizing: border-box; 
    left: 0; 
    background: rgba(245, 249, 252, 0.8);
    height: 35px;
    position: fixed;
    top: 0;
    font-size: 12px;
    padding: 0.3em;
    color: #666;
    z-index: 10;
}
/*1st*/
.top {
    margin-top: 50px;
    width: 100%;
}

.top h1 {
    width: 100%;
    text-align: center;
    letter-spacing: 3px;
    padding: 1rem;
    font-size: 3.5em;
    font-weight: 400;
    margin: 0;
}

.top h1 small {
    font-size: 15px;
    display: block;
    margin-bottom: -10px;
}

.top h2 {
    width: 100%;
    text-align: center;
    padding: 1em;
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 2px;
}

.mv {
    display: flex;
    width: 100%;
    margin: 0em auto 0px;
    padding: 0;
    line-height: 0;
    text-align: center;
}

.mv img {
    width: 100%;
}

/*info*/
.info {
    margin: 1em auto;
    padding: 1em 1.5em;
    background: var(--note);
    color: #FFF;
    font-size: 1.3em;
}

.info b {
    font-weight: 400;
    display: inline-block;
    width: 100%;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info p {
    margin-bottom: 0.5em;
}

.info p small {
    font-size: 14px;
}

/*event*/
.event {
    width: 100%;
}

.event_info {
    padding: 1em;
}

h3 {
    font-family: "Lato", sans-serif;
    color: #FFF;
    font-size: 4em;
    text-align: center;
    margin-bottom: -20px;
    padding: 0;
}

h4 {
    width: 100%;
    color: var(--accent);
    font-size: 1.4em;
    font-weight: 700;
    padding: 0.3em 0;
    margin: 0.5em auto 1em;
    border-bottom: 1px solid var(--accent);

}

/*schedule*/

.schedule {
    margin: 1em auto;
    border-left: 3px solid var(--accent);
    padding: 0.5em 1.5em;
}

.schedule ul {
    padding: 0;
    margin: 0;
    display: flex;
}

.schedule ul li {
    width: 20%;
    color: var(--accent);
    list-style: square;
    font-size: 1.2em;
    font-weight: 700;
    font-family: "Lato", sans-serif;
    margin-left: 1em;
}

.workshop .schedule ul li {
    width: 50%;
}

.race .schedule ul li {
    width: 50%;
}

.ws_info b {
    color: rgb(182, 12, 74)
}

.entry {
    width: 100%;
    text-align: center;
    margin: 3em auto;
}

.entry a {
    display: block;
    padding: 0.6em .3em;
    color: #FFF !important;
    background: var(--accent);
    text-decoration: none;
    border-radius: 5px;
    margin: 1em auto;
    border-bottom: 3px solid var(--accent-dark);
    font-weight: 700;
    font-size: 1.3em;
}

.race {
    margin-top: 3em;
}

/*other*/
.other {
    margin: 3em auto;
}

/*caution*/
h5 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
}

.caution {
    margin: 3em auto;
    padding: 1.8em 1.5em;
    background: var(--lightgray);
}

.caution li {
    list-style: none;
    font-size: 0.9em;
}

/*footer*/
.footer {
    color: var(--base);
    padding: 2em 1em 0em;
    background: var(--accent-dark);
}

.footer .flex {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
}

.kurezitto {
    width: 49%;
}

.kurezitto p {
    margin-bottom: 0.6em;
}

.map {
    width: 50%;
}

.c {
    font-size: 12px;
    margin-top: 1em;
    padding: 6px;
    text-align: center;
}

.c a {
    color: var(--base) !important;
}
.top br{display: none;}

.map2 figure{width:45%;}
.map2 figure img{width:100%;}
.map4{width:100%;max-width:300px!important;padding:1em;}
@media screen and (max-width: 1200px) {
    .main{font-size:15px;}
    .top h1 {
	font-size: 3em;
}.top h2 {
	padding: 3em 3em 0;
	font-size: 0.8em;
}
    h3{font-size:2.8em}
.in_box{padding:1em 3em;}

.footer .flex{
font-size:14px;
}.three img {
	max-width: 100% !important;
	height: 145px !important;
	width: auto !important;
}}
@media screen and (max-width: 768px) {
    .main{font-size:14px;}
    .header {
	font-size: 0.5em;
    letter-spacing: 0.8px;
    height:28px;}
    
.header small{display: inline-block;padding:4px;}
.top {
	margin-top: 20px;
}
.top h1 small {
	font-size: 11px;
	display: block;
	margin-bottom: 10px;
}
.top h1 {
	letter-spacing: 3.2px;
	padding: 1rem;
	font-size: 2.2em;
	font-weight: 400;
	margin: 0em auto;
	line-height: 1.6;
}
.top h2 {
	font-size: 0.8em;
}

h3 {
	margin-bottom: 0px;
	padding: 0;
	line-height: 1.3;
}
.in_box {
	margin: 1em auto;
	padding: 0.5em 1em;
}
.three {
	width: 100%;
	margin: 2em auto;
	display: block;
}

.three figure{
    text-align: center;
}
.three  figure.two img{
    width:48%!important;
    margin-top:0.5em;
    height:auto!important;
}

.schedule ul{
    display: block;
}
.workshop{
    padding-top:2em;
}
.workshop .schedule ul li,.race .schedule ul li{
    width:100%;
}
.other .two img {
	height: auto !important;
	width: 100% !important;
}.schedule ul li {
	width: 100%;
}
.footer .flex{
font-size:14px;    flex-wrap: wrap;
}
.mapbox{width:100%;}
.kurezitto{width:100%;}

.top br{display: block;}
.map2 figure{width:100%;}
}

@media screen and (max-width: 500px) {

.top h2 {
	padding: 3em 1.8em 0em;
	font-size: 0.8em;
    margin-bottom:-1em;
}
.top h1 {
	letter-spacing: 4.2px;
	padding: 1rem;
	font-size: 1.8em;
	font-weight: 400;
	margin: 0em auto;
	line-height: 1.6;
}
.card{width:100%;}
.map4 {
	width: 100%;
	max-width: 400px !important;
	padding: 1em;
}
}