/*
Theme Name: html-theme
*/

/* ==============================
   Reset / Base
============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  color: #222;
  background: #f5f5f5;
}

/* ==============================
   Media
============================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   Typography
============================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height:0;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

.br_sp {
  display: none;
}

/* PC/SP切り替え */
.pc { display: block; }
.sp { display: none; }

@media (max-width: 500px) {
  .pc { display: none; }
  .sp { display: block; }
  .br_sp { display: inline;}
}



/* ==============================
   Layout helpers
============================== */
.container {
  max-width: 500px;
  margin: 0 auto;
}

/* ==============================
   Header / Hero
============================== */
header {
  width: 100%;
}
.site-header {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-title {
  position: relative;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow:
  -15px 0 15px rgba(0,0,0,0.35),
   15px 0 15px rgba(0,0,0,0.35);
}

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



/* ==============================
   背景
============================== */
.bg-fixed {
  min-height: 100vh;
  background: url("images/haikei.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}




/* ==============================
   Main
============================== */
.main-content {
  width: 100%;
  max-width: 500px; /* 中央の幅 */
  background: #fff;
  box-shadow:
    -15px 0 15px rgba(0,0,0,0.35),
   15px 0 15px rgba(0,0,0,0.35);
  }

main {
  background: #fff;
}
.container{
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.haikei{
  background-image: url(images/haikei2.png);
}
.section1,
.section2{
  padding: 50px 30px 20px;
}
.section3{
  padding: 50px 30px 50px;
}
.section4{
  padding: 50px 15px;
}

/*  section1  */
.image-button-wrap {
  position: relative;
  width: 100%;
}

/* ボタン配置 */
.button-area {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 10vw 1.5vw 20px;
  align-content: end;
}

/* ボタン共通 */
.btn {
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 15px 0 10px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
  box-shadow: 4px 6px 6px rgba(0,0,0,0.5);
}

/* ボタン内画像 */
.btn img {
  height: 15px;   /* 最大高さ */
  width: auto;    /* 横は自動 */
  max-width: 100%;
}

/* テキスト */
.btn-text {
  text-align: center;
  line-height: 1.4;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 色 */
.btn1 { background: #880025; }
.btn2 { background: #005952; }
.btn3 { background: #f18900; }
.btn4 { background: #006cb8; }

/* ホバー */
.btn:hover {
  opacity: 0.9;
}

/* クリック時（ゆっくり押される感じ） */
.btn:active {
  transform: translateY(5px) scale(0.97);
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}

/* SP：縦4つ */
@media (max-width:500px) {

  .button-area {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3vw;
    align-content: stretch;
    top: 40vw;
    bottom:5vw;
  }
    .btn {
    width: 90%;
    max-width: 450px;  /* ←ここが効く */
    padding: 2vw;
  }
    /* ボタン内画像 */
  .btn img {
    width: 100%;
    max-width: 90px;
    height: auto;
  }
  .btn-text {
   font-size: 3vw; 
  }
}

@media (max-width: 400px) {
  .button-area{
  padding: 3vw 1.5vw 20px;
  gap: 2vw;
   }
   .btn{
    padding: 3vw 0 1.5vw;
   }
   .btn img{
    max-width: 18vw;
   }

}


/*  section2 section3  */
.section2 img,
.section3 img {
  width: 100%;
  height: auto;
  display: block;
}

/*  section4  */

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

/* PDFボタン */
.pdf-btn {
  display: block;
  max-width: 300px; /* ボタン画像サイズ */
  margin: 50px auto 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pdf-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.pdf-btn:active {
  transform: translateY(2px);
}
@media (max-width: 768px) {
  .pdf-btn {
    margin: 30px auto 0;
  }
}



.footer-wrap{
  text-align: center;
  background-color: #bebebe;
  padding: 30px 0;
}
.footer-wrap p{
  margin: 0;
  font-weight: 700;
}

/* ==============================
   Footer
============================== */
footer {
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
  background-color: #424242;
  width: 500px;
}


