/* 共通
-------------------------------------*/
#content-wrap {
  width: 100%;
  max-width: none;
  padding-bottom: 300px;
}

@media screen and (max-width:768px) {
  body {
    font-size: 15px;
  }

  #content-wrap {
    padding-bottom: 50px;
  }
}

/* head-area
-------------------------------------*/
#head-area {
  z-index: 1;
  width: 100%;
  height: 1145px;
  background-image: url(../../img/ena-iwamura/hero-bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

#head-area .title-wrap {
  position: absolute;
  display: flex;
  top: 130px;
  left: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
  color: #FFF;
  font-family: var(--mincho-font_family);
}

#head-area .title-wrap h1 {
  font-size: 200px;
  font-weight: 500;
  line-height: 1.1;
  writing-mode: vertical-rl;
  text-shadow: 0px 0px 15px rgba(0, 0, 0, 1);
}

#head-area .title-wrap p.sub-catch {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.4;
  writing-mode: vertical-lr;
  text-shadow: 0px 0px 15px rgba(0, 0, 0, 1);
}

@media screen and (max-width:1000px) {
  #head-area {
    height: 740px;
  }

  #head-area .title-wrap h1 {
    font-size: 100px;
  }

  #head-area .title-wrap p.sub-catch {
    padding-top: 5px;
    font-size: 29px;
  }
}


/* about
-------------------------------------*/
#about {
  position: relative;
  z-index: 0;
  padding-top: 400px;
  margin-top: -530px !important;
  margin-bottom: 0;
  font-family: var(--mincho-font_family);
  font-weight: 600;
}

#about::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  width: 100%;
  height: 150%;
  background-image: linear-gradient(180deg, rgba(239, 244, 232, 1), rgba(239, 244, 232, 1) 90%, rgba(255, 255, 255, 1) 100%);
}

#about::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -650px;
  right: 0;
  width: 1500px;
  max-width: 80%;
  height: 996px;
  background-image: url(../../img/ena-iwamura/yamashiro.webp);
  background-repeat: no-repeat;
  background-size: 100%;
}

#about .content-box {
  gap: 0 !important;
  width: 78%;
  margin-bottom: 0;
}

#about .content-box.right-box {
  margin-left: auto;
}

#about .content-box p {
  font-size: 30px;
}

#about .content-box figure {
  margin-bottom: 0;
  line-height: 0;
}

#about .content-box.right-box .wp-block-column:first-of-type {
  flex-basis: 44%;
  padding-top: 100px;
  padding-right: 50px;
}

#about .content-box.right-box .wp-block-column:last-of-type {
  flex-basis: 56%;
}

#about .shiroku-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1000px;
  padding: 10px 85px 75px;
  margin: -8% auto;
  background-color: #EFF4E8;
}

#about .content-box.left-box .wp-block-column:first-of-type {
  flex-basis: 56%;
}

#about .content-box.left-box .wp-block-column:last-of-type {
  flex-basis: 44%;
  padding-left: 50px;
}


@media screen and (min-width:1921px) {
  #about .content-box.right-box .wp-block-column:first-of-type {
    max-width: 640px;
  }

  #about .content-box figure img {
    object-fit: cover;
    width: 100%;
    height: 687px;
  }
}

@media screen and (max-width:1536px) {

  #about .content-box p {
    font-size: 24px;
  }

  #about .content-box.right-box .wp-block-column:first-of-type {
    padding-top: 50px;
  }

  #about .shiroku-content {
    margin: -3% auto;
  }
}

@media screen and (max-width:1000px) {
  #about {
    position: relative;
    z-index: 0;
    padding-top: 100px;
    padding-bottom: 400px;
    margin-top: -230px !important;
    margin-bottom: 0;
    font-family: var(--mincho-font_family);
    font-weight: 600;
  }

  #about::before {
    background-color: #EFF4E8;
    background-image: none;
  }

  #about::after {
    bottom: 0;
    width: 700px;
    max-width: none;
    height: 420px;
  }

  #about .content-box {
    width: 94%;
    display: block;
  }

  #about .content-box.right-box .wp-block-column:first-of-type {
    padding-top: 120px;
    padding-right: 6%;
    margin-bottom: 50px !important;
  }

  #about>.wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
  }

  #about .content-box.right-box {
    order: 1;
    margin-bottom: 35px;
  }

  #about .shiroku-content {
    order: 3;
    padding: 0;
    margin: 0 auto;
    background-color: transparent;
  }

  #about .content-box.left-box {
    order: 2;
  }
}

@media screen and (max-width:768px) {
  #about::after {
    bottom: 0;
    width: 800px;
    max-width: 120%;
    height: 375px;
    background-size: cover;
    background-position: center;
  }

  #about .content-box p {
    font-size: 20px;
    line-height: 2.4;
  }

  #about .shiroku-content h2 {
    margin-bottom: 0 !important;
    margin-left: -10px;
    font-size: 30px;
    text-align: left;
  }

  #about .shiroku-content h3 {
    font-size: 21px;
    text-align: left;
  }

  #about .shiroku-content p {
    margin-bottom: 40px;
    font-size: 14px;
    text-align: left;
    line-height: 2;
  }

}

/* sangaku-ena
-------------------------------------*/
#sangaku-ena {
  position: relative;
  padding-top: 160px;
  padding-bottom: 400px;
}

#sangaku-ena:after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 960px;
  background-image: url(../../img/ena-iwamura/wall_iwamura.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#sangaku-ena #declaration {
  position: relative;
  width: 90%;
  max-width: 1000px;
  padding: 50px;
  margin: 0 auto 200px;
  background-color: #FFF;
  font-family: var(--mincho-font_family);
  border-radius: 15px;
}

#sangaku-ena #declaration:before {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 408px;
  height: 367px;
  background-image: url(../../img/ena-iwamura/issai-statue-202509.webp);
  background-repeat: no-repeat;
  background-size: 100%;
}

#sangaku-ena #declaration h3 {
  padding-bottom: 5px;
  font-size: 24px;
}

#sangaku-ena #declaration .vertical-writing {
  display: flex;
  width: 100%;
  height: max-content;
  padding-top: 50px;
  writing-mode: vertical-rl;
  border-top: solid 1px #000;
}

#sangaku-ena #declaration .vertical-writing h4 {
  margin-left: 50px;
  font-size: 36px;
  font-weight: 700;
}

#sangaku-ena #declaration .vertical-writing p {
  font-size: 28px;
  font-weight: 700;
  line-height: 2;
}

#sangaku-ena #declaration .vertical-writing p:last-of-type {
  margin-right: 35px;
  font-size: 16px;
  text-align: right;
}

#sangaku-ena #declaration .vertical-writing p span.tcy {
  text-combine-upright: all;
  -webkit-text-combine: horizontal;
  font-variant-numeric: tabular-nums;
}

#sangaku-ena #sangaku-undou {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

#sangaku-ena #sangaku-undou h3 {
  margin-bottom: 20px !important;
  font-size: 32px;
  font-weight: 700;
}

#sangaku-ena #sangaku-undou h4 {
  position: relative;
  padding: 10px 20px;
  margin-bottom: 45px !important;
  background-color: #FFF;
  font-size: 28px;
  font-weight: 700;
  border: solid 1px #000;
}

#sangaku-ena #sangaku-undou h4:after {
  content: "";
  position: absolute;
  bottom: -46px;
  left: 0;
  right: 0;
  width: 28px;
  height: 46px;
  margin: 0 auto;
  background-image: url(../../img/ena-iwamura/arrow-bottom.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#sangaku-ena #sangaku-undou h4.brown {
  color: var(--base-color);
  border-color: var(--base-color);
}

#sangaku-ena #sangaku-undou h4.brown:after {
  background-image: url(../../img/ena-iwamura/arrow-bottom-brown.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#sangaku-ena #sangaku-undou .three-pillars {
  padding: 15px 20px 20px;
  background-color: var(--base-color);
}

#sangaku-ena #sangaku-undou .three-pillars h4 {
  margin-bottom: 0 !important;
  background-color: transparent;
  color: #FFF;
  border: none;
}

#sangaku-ena #sangaku-undou .three-pillars h4:after {
  content: none;
}

#sangaku-ena #sangaku-undou .three-pillars .wp-block-columns {
  margin-bottom: 0;
  gap: 20px !important;
}

#sangaku-ena #sangaku-undou .three-pillars .wp-block-column {
  width: calc(100% / 3);
  background-color: #FFF;
}

#sangaku-ena #sangaku-undou .three-pillars .wp-block-column p {
  padding: 10px 20px;
  margin-bottom: 0;
  color: var(--base-color);
  font-size: 20px;
  font-weight: 700;
}

#sangaku-ena .curve {
  left: 0px;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
}

@media screen and (max-width:1280px) {
  #sangaku-ena #declaration:before {
    bottom: -100px;
    left: -50px;
    width: 210px;
    height: 169px;
  }
}

@media screen and (max-width:1000px) {
  #sangaku-ena {
    z-index: 0;
    padding-top: 0;
    background-color: #EFF4E8;
  }

  #sangaku-ena:after {
    height: 400px;
  }

  #sangaku-ena #declaration {
    padding: 30px 20px 40px;
  }

  #sangaku-ena #declaration h3 {
    font-size: 18px;
  }

  #sangaku-ena #declaration .vertical-writing h4 {
    margin-bottom: 20px !important;
    font-size: 25px;
  }

  #sangaku-ena #declaration .vertical-writing p {
    font-size: 20px;
  }

  #sangaku-ena #declaration .vertical-writing p:last-of-type {
    font-size: 14px;
  }
}

@media screen and (max-width:768px) {
  #sangaku-ena #declaration:before {
    bottom: -110px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  #sangaku-ena #declaration h3 {
    font-size: 20px;
    text-align: left;
  }

  #sangaku-ena #declaration .vertical-writing {
    display: block;
    height: auto;
    writing-mode: horizontal-tb;
  }

  #sangaku-ena #declaration .vertical-writing h4 {
    margin-left: 0;
    font-size: 20px;
  }

  #sangaku-ena #sangaku-undou .three-pillars {
    padding: 15px;
  }

  #sangaku-ena #sangaku-undou .three-pillars .wp-block-columns {
    gap: 15px !important;
  }

  #sangaku-ena #sangaku-undou .three-pillars h4 {
    margin-bottom: 10px !important;
  }

  #sangaku-ena #declaration .vertical-writing p {
    font-size: 16px;
    line-height: 2.4;
  }

  #sangaku-ena #declaration .vertical-writing p:last-of-type {
    margin-right: 0;
  }

  #sangaku-ena #sangaku-undou h3 {
    font-size: 24px;
  }

  #sangaku-ena #sangaku-undou h4 {
    font-size: 20px;
  }
}

/* activity
-------------------------------------*/
#activity {
  width: 90%;
  max-width: 1000px;
  padding-top: 100px;
  margin: 0 auto;
}

#activity h2 {
  position: relative;
  margin-bottom: 65px !important;
  color: var(--base-color);
  font-family: var(--mincho-font_family);
  text-align: center;
}

#activity h2 span {
  padding: 0 60px;
  background-color: #FFF;
}

#activity h2:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -3px;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  margin: auto;
  background-color: var(--base-color);
}

#activity h2:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  margin: auto;
  background-color: var(--base-color);
}

#activity h3 {
  font-family: var(--mincho-font_family);
  line-height: 2;
}

#activity h5 {
  padding: 15px 0;
  margin-top: 0;
  margin-bottom: 25px;
  border-top: solid 1px #000;
  border-bottom: solid 1px #000;
}

#activity .wp-block-columns {
  margin-bottom: 60px;
}

#activity .wp-block-columns .wp-block-columns {
  margin-bottom: 0;
}

#activity .wp-block-button {
  margin-top: 10px;
}

#activity .wp-block-button {
  min-width: 350px;
  border: solid 1px var(--base-color);
  text-align: center;
}

#activity .wp-block-button a {
  padding: 10px 30px;
  color: var(--base-color);
  font-weight: 600;
  text-align: center;
}

#activity .wp-block-button a::before {
  content: none;
}

#activity .wp-block-button a:hover {
  background-color: var(--base-color);
  color: #FFF;
}

#activity p a {
  position: relative;
  color: var(--base-color);
  font-size: 20px;
  font-weight: 600;
  padding-right: 25px;
}

#activity p a:after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 0;
  width: 17px;
  height: 17px;
  background-image: url(../../img/icon-link-brown.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

@media screen and (max-width:1000px) {
  #activity h3 {
    margin-bottom: 70px;
    font-size: 20px;
  }
}

@media screen and (max-width:768px) {
  #activity {
    padding-top: 70px;
  }

  #activity h2 {
    margin-bottom: 40px !important;
    font-size: 30px;
  }

  #activity h3 {
    text-align: left;
  }

  #activity h5 {
    font-size: 20px;
  }

  #activity .wp-block-columns {
    gap: 0 !important;
  }

  #activity .wp-block-columns figure {
    margin-bottom: 25px;
  }

  #activity .wp-block-columns p {
    line-height: 2;
  }
}