@charset "utf-8";
/* CSS Document */
header {
    width: 100%;
    padding: 10px 2%;
    background-color: #fff;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}
h1 {
    margin: 0; padding: 0;
    font-size: clamp(12px, 1.4vw, 20px);
}
 
a {	
   text-decoration: none;
   color: #4b4b4b;
}
 
 
/* top */
.main {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* PC: 3つ横並び */
  align-items: stretch;
  overflow: hidden;
  gap: 20px;
  padding: 20px 10px;
}
 
.m1, .m2, .m3 {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(33.333% - 14px);
  position: relative;
  overflow: hidden;
}
 
.main img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0;
}
 
.m1 {
  position: relative;
  overflow: hidden;
}
 
.m1-1 {
  position: absolute;
  color: #fff;
  font-family: "MS Pゴシック",sans-serif;
  font-size: clamp(0.6rem, 1.2vw, 1.5rem);
  font-weight: bold;
  top: 3%;
  left: 5%;
  transform: none;
  background: #2263a3;
  padding: 0.2em 0.4em;
  white-space: nowrap;
}
 
.m1-2 {
  position: absolute;
  color: #fff;
  font-family: "MS Pゴシック",sans-serif;
  font-size: clamp(0.6rem, 1.2vw, 1.5rem);
  font-weight: bold;
  top: 28%;
  left: 5%;
  transform: none;
  background: #2263a3;
  padding: 0.2em 0.4em;
  white-space: nowrap;
}
 
h3.m1-3 {
  position: absolute;
  color: #fff;
  font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN","HG明朝E","ＭＳ Ｐ明朝","ＭＳ 明朝",serif;
  font-size: clamp(1rem, 2.5vw, 3rem);
  font-weight: bolder;
  text-shadow: 2px 2px 3px #808080;
  bottom: -8%;
  top: auto;
  left: 5%;
  transform: none;
  background: rgba(128,0,255,0.5);
  border-radius: 10px;
  padding: 0.2em 0.5em;
  white-space: nowrap;
}
 
.m2 {
  position: relative;
  overflow: hidden;
}
 
.m2-1 {
  position: absolute;
  color: #fff;
  font-family: "MS Pゴシック",sans-serif;
  text-shadow: 2px 2px 3px #808080;
  font-size: clamp(0.6rem, 1.2vw, 1.7rem);
  font-weight: bold;
  top: 8%;
  left: 5%;
  transform: none;
  padding: 0.2em 0.4em;
  white-space: nowrap;
}
 
.m2-2 {
  position: absolute;
  border-top: 2px solid #fff;
  box-shadow: 2px 2px 3px #808080;
  width: 70%;
  top: 26%;
  left: 5%;
  transform: none;
}
 
h3.m2-3 {
  position: absolute;
  color: #fff;
  font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN","HG明朝E","ＭＳ Ｐ明朝","ＭＳ 明朝",serif;
  font-size: clamp(1rem, 2.5vw, 3rem);
  font-weight: bolder;
  text-shadow: 2px 2px 3px #808080;
  bottom: 5%;
  top: auto;
  left: 5%;
  transform: none;
  border-radius: 10px;
  padding: 0.4em 0.8em;
  white-space: nowrap;
}
 
h3.m3-1 {
  position: absolute;
  opacity:0;
  font-size: 1em;
  top: 50%;
  left: 50%;
}
 
/* sibu */
section {
	height: 600px;
	background-color:rgba(255,255,255,0.74);
}
.bg01 {
	background: url("../images/sibu04.jpg");
	background-size: cover;
	background-attachment: fixed;
}
.bg02 {
	background: url("../images/sibu02.jpg");
	background-size: cover;
	background-attachment: fixed;
}
.bg03 {
	background: url("../images/sibu03.jpg");
	background-size: cover;
	background-attachment: fixed;
}
 
.m1  {
    animation-name: fadein;
    animation-duration: 2s;
}
 
.m2  {
    animation-name: fadein;
    animation-duration: 2s;
}
 
.m3  {
    animation-name: fadein;
    animation-duration: 2s;
}
 
.sub {
    animation-name: fadein;
    animation-duration: 2s;
}
@keyframes fadein{
    from{
    opacity: 0;
    transform: translatey(20px);
    }
    to{
    opacity: 1;
    transform: translatey(0);
    }
}
 
.main  {
    animation-name: fadeIn;
    animation-duration: 2s;
    animation-timing-function: ease;
}
h2 {
   margin: 0;
   padding: 10px;
   font-size: 15px;
   color: #555555;
	text-align: center;
}
 
h2 span{
	border-bottom: 3px dotted #4d9bc1;
}
.sub {
  width: 100%;
  overflow: hidden;
}
.sub img {
  display: block;
  margin: auto;
  margin-bottom: 10px;
  color: #333333;
  background-color: #dddddd;
  font-size: 30px;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}
 
 
 
/* */
@media screen and (max-width: 800px) {
 
.main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
}
 
.m1, .m2, .m3 {
  width: 100%;
  max-width: 100%; /* PC側のcalc(33%)を上書き */
  overflow: visible;
}
 
.main img {
  width: 100%;
  height: auto;
  margin: 0;
}
 
h2 {
   line-height: 1.6;
   text-align: center;
}
 
.sub img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}
 
/* スマホ時のテキストオーバーレイ調整 */
.m1-1 {
  font-size: clamp(0.9rem, 4vw, 1.7rem);
  top: 8%;
  left: 5%;
}
 
.m1-2 {
  font-size: clamp(0.9rem, 4vw, 1.7rem);
  top: 30%;
  left: 5%;
}
 
h3.m1-3 {
  font-size: clamp(1.2rem, 6vw, 3rem);
  bottom: 5%;
  left: 5%;
  padding: 0.4em 0.6em;
}
 
.m2-1 {
  font-size: clamp(0.9rem, 4vw, 1.7rem);
  top: 8%;
  left: 5%;
}
 
.m2-2 {
  width: 60%;
  top: 28%;
  left: 5%;
}
 
h3.m2-3 {
  font-size: clamp(1.2rem, 6vw, 3rem);
  bottom: 5%;
  left: 5%;
  padding: 0.4em 0.6em;
}
 
}