@charset "UTF-8";

/*----------------------------------

デフォルトリセット

---------------------------------- */
a {
  text-decoration:none;
}

p {
  margin:0;
  padding:0;
  margin-block-start: inherit;
  margin-block-end: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin-block-start: inherit;
  margin-block-end: inherit;
}

ul {
  display: block;
  list-style-type:  inherit;
  margin-block-start: inherit;
  margin-block-end: inherit;
  margin-inline-start: inherit;
  margin-inline-end: inherit;
  padding-inline-start: inherit;
  list-style: none;
}

table {
  border-spacing: inherit;
}

h1 img{
  width: 100%;
}

img{
	vertical-align:top;
}

body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: #333;
}

#main_content {
  flex: 1;
  /*padding-bottom: 80px;*/
}

/*----------------------------------

SPとPCで画像分ける

---------------------------------- */
.bnr_sp{
  display: block;
}

.bnr_pc{
  display: none;
}

/*----------------------------------

パーツ

---------------------------------- */

.center{
  text-align: center;
}

.size-small{
  font-size: 0.9rem;
}

.size-medium{
  font-size: 1.1rem;
  font-weight: bold;
}

.margin-bottom{
  margin-bottom: 10px;
}

.bnr-frame{
  text-align: center;
  margin: 20px;
}

.bnr-frame img{
  width: 100%;
}

.advertisement{
  text-align: center;
  margin: 0px 20px 20px;
  display: grid;
  grid-template-columns: 1fr;  /* スマホ：1列 */
  gap: 5px;
}

.advertisement img{
  width: 100%;
  height: auto;
  display: block;
}

/* タブレット・PC：768px〜で2列 */
@media screen and (min-width: 768px) {
  .advertisement{
    grid-template-columns: 1fr 1fr; /* 2列 */
  }
}


/*----------------------------------

フッダー

---------------------------------- */

.footer {
  background-color: #F6509C;
  color: #fff;
  padding: 10px;
  text-align: center;
}

/*----------------------------------

全デバイス2列固定

---------------------------------- */

.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-items: center; /* 中央配置 */
  margin: 15px;
}

.img-grid .img-item img {
  width: 100%;
  max-width: 380px; /* 画像幅の上限（任意） */
  height: auto;
  display: block;
}



/* ==================================================================================== */
/*  PC用&タブレット
/* ==================================================================================== */


@media screen and (min-width:768px){

  #main_content{
    margin: 0 auto;
    max-width: 850px;
  }

  .bnr_sp{
    display: none;
  }

  .bnr_pc,
  .footer{
    display: block;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .bnr_pc{
    width: 100vw!important;
  }


}
