@charset "utf-8";
/* CSS Document */
#top h2 {
  font-weight: 800;
}
#top h2::before {
  display: none;
}
#visualBox {
  position: relative;
  flex-flow: column;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}
#visualBox .visual {
  position: relative;
  width: 100%;
}
#visualBox .visual img {
  width: 100%;
}
#visualBox .textBox {
  position: absolute;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.2);
  background: #ffffff91;
  margin: 0 4em 0 0;
}
#visualBox .text {
  padding: 2em 4em;
  position: relative;
}
#visualBox .textBox span {
  position: absolute;
  top: -20px;
  color: #998500;
  font-family: "Bonheur Royale", cursive;
  font-size: 2.4em;
  text-shadow: 0 0 black;
}
#visualBox .textBox h2 {
  padding: 0;
  margin: 0 0 20px;
  letter-spacing: 2px;
  font-size: 2.4em;
  color: #000;
}
#visualBox .textBox p {
  padding: 0;
  font-weight: 600;
}
#S01 {
  background: #f9f5f2;
}
#S01 .contents {
position: relative;
}
#S01 .bgImage {
    position: absolute;
    width: 100%;
    mix-blend-mode: multiply;
    z-index: 0;
    opacity: 0.4;

    /* 画面幅が広いときは -50px、
       1024pxに近づくにつれて 50px へと自動計算で動かす
    */
    top: clamp(-50px, calc(100vw * -0.1), 50px); 
}

#S01 .firstTxt {}

#S01 ul {
    display: flex;
    flex-flow: wrap;
    gap: 30px;
    justify-content: center;
}
#S01 ul li {
    width: calc(100% / 2 - 30px);
    background: #fff;
    border: 1px solid #ccc;
    padding: 2em 2em 4em;
}
#S01 ul li h3 {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    border-bottom: 1px dashed #999;
    padding: 1em 0 0.5em;
    margin: 0 0 0.5em;
}
#S01 ul li h3::before {
    font-family: 'Material Symbols Outlined';
    display: flex;
    justify-content: center;
    align-items: center;
    content: "\e5ca";
    font-weight: 500;
    font-size: 1.4em;
    border-radius: 50%;
    background: #9bcddb;
    color: #fff;
    padding: 4px;
    width: 30px;
    height: 30px;
    margin: 0 10px 0 0;
}
#S01 ul li p {
    text-align: left;
    padding: 0;
}

#S01 .detail {
    padding: 3em 0;
    position: relative;
}
/*----------------------------------------------------------- 1024px */
@media screen and (max-width: 1024px) {
#visualBox {
    align-items: center;
}
#visualBox .textBox {
    margin: auto;
}
#visualBox .textBox h2 {
    font-size: 2em;
}
}
/*----------------------------------------------------------- 768px */
@media screen and (max-width: 768px) {
#visualBox .textBox h2 {
    font-size: 1.6em;
}
.firstTxt p {text-align: left;} 

#S01 ul {
    flex-flow: column;
    gap: 20px;
}
#S01 ul li {
    width: 100%;
}

}
/*----------------------------------------------------------- 640px */
@media screen and (max-width: 640px) {
#visualBox .textBox {
    position: relative;
}
#visualBox .textBox span {
    position: relative;
    font-size: 1.6em;
    display: block;
}
#visualBox .text {
    padding: 2em 1.5em;
}
#visualBox .textBox h2 {
    font-size: 1.3em;
    letter-spacing: 0;
}
}

