/*------------------------
全画面共通
--------------------------*/

/* 後で消す */
html {
  margin-top: 0 !important;
}

html #wpadminbar {
  display: none;
}

html {
  font-size: min(calc(10 / 1280 * 100vw), 10px);
  /* 幅1280pxで1rem：10pxになるように調整 */
  height: 100%;
}

body {
  font-size: 1.6rem;
  /* 基本文字サイズを16pxで指定 */
  font-family: "M PLUS 1 Code", monospace;
  font-display: swap;
  background-color: #f2f8f8;
  color: #333333;
  width: 100%;
  min-height: 100%;
  position: relative;
}

main {
  padding-top: 8rem;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  position: sticky;
  /* top: 100vh; */
  /* コンテンツ量に関わらずフッターを最下部固定 */
}

/* 静止している画像の角を丸くする */
.img_round {
  border-radius: 1rem;
}

/*------------------------
全画面共通パーツ
--------------------------*/

/* 共通パーツ：コンテンツ枠組み */
.global_inner {
  max-width: 120rem;
  background-color: #ffffff;
  border: 0.4rem solid #00ffff;
  border-radius: 5rem;
  position: relative;

  /* ---余白--- */
  padding: 3rem 1.5rem 7rem 1.5rem;
  margin-inline: auto;
  /*左右中央寄せ*/
  margin-bottom: 5rem;
  /*コンテンツ同士の余白用*/
}

/* ひまわり：上 */
.global_inner::before {
  content: '';
  width: 12rem;
  height: auto;
  aspect-ratio: 4/3;
  background-image: url('img/sun_flower.png');
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  position: absolute;
  top: -2.5rem;
  left: -4.5rem;
  transform: rotateZ(330deg);
}

/* ひまわり：下 */
.global_inner::after {
  content: '';
  width: 12rem;
  height: auto;
  aspect-ratio: 4/3;
  background-image: url('img/sun_flower.png');
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  position: absolute;
  bottom: -2rem;
  right: -2rem;
}

/* ----枠組みここまで */


/* 共通パーツ　ページタイトル */
/* 背景なしの箱 <div> */
.common_pagetitle {
  min-width: 128rem;
  width: 100%;
  height: 21rem;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(img/title_back.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* タイトルテキスト <h1> */
.pagetitle_text {
  width: 100%;
  font-size: 5.3rem;
  color: #6FA8DC;
  text-shadow: 0 0.2rem 0.4rem rgba(242, 248, 248, 0.5);
  text-align: center;
  line-height: 1em;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* ページタイトルここまで */

/* 共通パーツ　セクションタイトル */
.section_title_wrapper {
  width: 100%;
  font-feature-settings: "palt";
  font-variant-alternates: proportional-width;
  margin-bottom: 2rem;
  text-align: center;
}

.section_main_title {
  font-size: 3.2rem;
  font-weight: bold;
  align-self: flex-start;
}

.section_sub_title {
  color: #e69138;
  font-weight: 900;
}

/* 共通パーツ　ボタン */
/* <div> */
.common_button {
  display: inline-block;
  width: fit-content;
  min-width: 18rem;
  height: 5rem;
  background-color: #6FA8DC;
  border: 0.1rem solid #6FA8DC;
  border-radius: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem;
  /* 中央寄せのみ適用　上下は各自設定 */
  margin-inline: auto;
  transition: all 0.3s;
}

/* ボタンテキスト <p> */
.button_text {
  color: #ffffff;
  line-height: 1;
  transition: all 0.3s;
}

/* ホバー */
.common_button:hover {
  background-color: #ffffff;

  .button_text {
    color: #6FA8DC;
  }
}

/*------------------------
PC・SP切り替え
--------------------------*/
.pc_only {
  display: block;
}

.sp_only {
  display: none;
}

/*-----------------------------------
レスポンシブ対応(768px以下で切り替わり)
------------------------------------*/
@media screen and (max-width:768px) {

  /*------------------------
全画面共通
--------------------------*/
  html {
    font-size: calc(10 / 375 * 100vw);
    /* 幅375pxで1rem：10pxになるように調整 */
  }

  body {
    font-size: 1.4rem;
    /* 基本文字サイズを14pxで指定 */
  }

  main {
    padding-top: 0;
  }

  /*------------------------
全画面共通パーツ
--------------------------*/

  /* 共通パーツ：枠組み */
  .global_inner {
    width: 90%;
  }

  .global_inner::before {
    width: 8rem;
    top: -2rem;
    left: -3rem;
  }

  .global_inner::after {
    width: 8rem;
    bottom: -1.5rem;
    right: -1rem;
  }

  /* 共通パーツ　ページタイトル <div> */
  .common_pagetitle {
    min-width: auto;
    height: 17rem;
    margin: 0 auto 3rem;
    background-image: url(img/title_back_sp.jpg);
  }

  /* タイトルテキスト <h1> */
  .pagetitle_text {
    font-size: 3rem;
  }

  /* ページタイトルここまで */

  /* 共通パーツ　ボタン */
  /* <div> */
  .common_button {
    min-width: 14rem;
    padding: 0 2rem;
  }

  /* ボタンここまで */
  /* 共通パーツ　ここまで */

  /*------------------------
PC・SP切り替え
--------------------------*/
  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

}