@charset "UTF-8";
/* CSS Document */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Kosugi Maru", "Kosugi", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff7e7;
    line-height: 1.5;
}

@media screen and (max-width: 480px) {
    body, h1, h2, h3, h4, p, li {
        font-family: "Kosugi Maru", "Kosugi", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    }
}

h1,h2,h3,h4 {
  position: relative;
  width: 100%;
  margin: auto 0;
  color: #713e2e;
}

img {
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    user-select: none;
}

/* ヘッダー */
.main_h {
  position: fixed;
  top: 0px;
  max-height: 70px;
  z-index: 999;
  width: 100%;
  padding-top: 16px;
  background: none;
  overflow: hidden;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  opacity: 0;
  top: -100px;
  padding-bottom: 6px;
}

/* 左右共通バナー */
.banner {
  position: absolute;
  top: 0;
  z-index: 1000;
  width: 10vw;       /* 画面幅の10%で自動調整 */
  max-width: 300px;   /* PC時の最大幅 */
  min-width: 100px;    /* 小さな画面でも潰れない最低幅 */
  height: auto;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* 左上用 */
.banner.left {
  left: 0;
}

/* 右上用 */
.banner.right {
  right: 0;
}

/* スマホ向け微調整 */
@media screen and (max-width: 480px) {
  .banner {
    width: 15vw;       /* 小さい画面では少し大きめに */
    max-width: 100px;   /* スマホ用最大幅 */
  }
}

/* 画像をコンテナにフィットさせる */
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.title-image {
  text-align: center;
  margin: 20px auto;
  width: 50%; /* PC時は半分の幅 */
}

.title-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ向け */
@media screen and (max-width: 480px) {
  .title-image {
    width: 70%; /* スマホでは幅を大きく表示 */
  }
}


/* ページ説明 */
.description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* おねがいリスト */
.rules {
  max-width: 800px;   /* 800px → 600px に縮小 */
  margin: 0 auto 40px auto;
}
.rules h2 {
  text-align: center;
  font-size: 24px;
  color: white;
  position: relative;
  z-index: 1;            /* 文字を前面に */
  line-height: 120px;    /* ハートの高さと同じにして中央揃え */
  margin-bottom: 50px;   /* 下の余白も調整 */
}


.rules h2::before {
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;             /* ハートのサイズ */
  height: 150px;
  background: url('../img/heart.png') no-repeat center center;
  background-size: contain;
  z-index: -1;                /* 文字の背面に */
}

.rules ol {
  list-style: none;       /* デフォルト番号を消す */
  padding-left: 0;
}

.rules li {
  text-align: center;     /* 中央揃えで文字とイラストを縦並びに */
  font-size: 18px;
  margin-bottom: 40px;    /* 項目間の余白 */
}

.rule-icon {
  width: 300px;            /* イラストのサイズ */
  height: auto;
  margin-top: 0px;       /* 文字とイラストの間の余白 */
  margin-bottom: 20px;       /* イラストと次の文字の間の余白 */
  display: inline-block;
}

/* 補足画像 */
.rule-image {
  text-align: center;
  width: 50%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.rule-image img {
  width: 100%;
  height: auto;
}

.consult-banner {
    text-align: center;
    margin: 20px auto 150px auto; /* 下にフッター高さ分の余白を追加 */
    width: 80%;
    max-width: 600px;
}

.consult-banner img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 480px) {
    .consult-banner img {
        border-radius: 12px;  /* 角を丸くする */
    }
}


/* フッター */
.footer {
    display: flex;
    align-items: center;
    color: #3E2723;
    font-weight: bold;
    position: fixed;
    width: 100%;
    height: 70px;
    bottom: -20px;
    left: 0;
    margin: 20px auto 0 auto;
    padding: 0 0 30px 0;
    text-align: center;
    background: #6fba2c;
    justify-content: space-around;
    align-items: center;
    background-position: 0 0, 16px 16px;
    background-size: 32px 32px;
    z-index: 30;
}

.footer::before,
.footer::after {
    height: 20px;
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.footer::before {
    top: -40px;
    background:
        linear-gradient(45deg, #6fba2c 10px, transparent 0),
        linear-gradient(315deg, #6fba2c 10px, transparent 0);
    background-size: 20px 20px;
}

.footer::after {
    bottom: -40px;
    background:
        linear-gradient(135deg, #6fba2c 10px, transparent 0),
        linear-gradient(225deg, #6fba2c 10px, transparent 0);
    background-size: 20px 20px;
}

.footer.show {
    transform: translateY(0);
}

.footer p {
    display: inline-block;
    padding: 0 12px;
    color: #6fba2c;
    background-color: #ffffff;
    border-radius: 12px;
}

footer a {
  color: #6fba2c;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
