@charset "utf-8";

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 64px;
  /* 改行 */
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  position: relative;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
}

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

ul {
  list-style-type: none;
}

h1,
h2,
h3,
h4,
p,
a,
figure,
img,
ul,
ol,
li,
dl,
dt,
dd {
  padding: 0;
  margin: 0;
}

/* 改行したいspanタグに適用 */
.inlineBlockSpan {
  display: inline-block;
}

h1 {
  font-size: 18px;
}

/* -------------------- ヘッダー ---------------------- */

header {
  background-color: rgba(255, 255, 255, 0.863);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1; /*----------------------------*/
}

.iconAndNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 32px;
  > div {
    width: 20%;
  }
  > nav {
    display: flex;
    gap: 0 32px;
    > a {
      font-size: clamp(11px, 0.9375vw, 18px);
      font-weight: bold;
      text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
      &:hover {
        transition: transform ease 0.2s;
        transform: scale(1.1);
      }
    }
  }
  > .spMenuButton {
    display: none;
  }
}

/* ///////////////// スマホメニュー ////////////////// */

.spMenuWindow {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 2; /* ---------------------------------- */
  width: 100%;
  height: 100dvh;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;

  > img {
    /* 閉じるボタン */
    display: block;
    width: 25px;
    margin: 8px 16px 8px auto;
  }
  > .spMenuList {
    display: grid;
    place-items: center;
    row-gap: 12px;
    > li {
      width: 90%;
      border-bottom: 1px solid #333;
      padding: 12px 0;
      > a {
        color: #797373;
        & > p:nth-of-type(1) {
          color: #4d4444;
          font-size: clamp(12px, 1.25vw, 24px);
          font-weight: bold;
          text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        }
      }
    }
  }
}
.openWindow {
  display: revert;
  overflow-y: scroll;
  opacity: 1;
  visibility: visible;
}
.iconHidden {
  display: none !important;
}
/* スマホメニュー,ニュースモーダルが開いていると背景を固定 */
body:has(.openWindow, .newsWindowOpen) {
  overflow: hidden;
}

/* //////////////////////////////////////// */

/* ---------------------- メイン -------------------------------- */

main {
  display: grid;
  row-gap: 64px;
}

.heroSection {
  > .heroSectionBox {
    position: relative;
    width: 100%;
    height: 100dvh;
    text-align: center;
    > .heroImage {
      height: inherit;
      object-fit: cover;
    }
    > .heroSectionText {
      color: white;
      > .pageTitle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
        letter-spacing: 8px;
        font-size: clamp(18px, 2.5vw, 48px);
        font-weight: 400;
      }
      > p {
        position: absolute;
        top: 50%;
        left: 5%;
        transform: translate(0, -50%);
        display: grid;
        place-items: center;
        background-color: #ffa800;
        width: 20%;
        aspect-ratio: 1/1;
        letter-spacing: 3.2px;
        font-size: clamp(11px, 2.083vw, 40px);
      }
    }
  }
}

.mainContentSection {
  display: grid;
  row-gap: 64px;
  > .sectionTitle {
    color: #333;
    text-align: center;
    > h3 {
      font-size: clamp(16px, 2.5vw, 48px);
    }
    > p {
      font-size: clamp(16px, 1.875vw, 36px);
    }
  }
  > #newsBox {
    > .contentText {
      width: 70%;
      margin-inline: auto;
      padding: 16px 8px;
      display: grid;
      row-gap: 8px;
      border-bottom: 1px solid #333;
      font-size: clamp(12px, 1.04vw, 20px);
      > .newsDate {
        font-weight: bold;
      }
      &:hover {
        background-color: #f4efef;
        cursor: pointer;
      }
    }
  }
  .newsWindow {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 2; /* ---------------------------------- */
    width: 100%;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    > #newsCloseImage {
      /* 閉じるボタン */
      display: block;
      width: 25px;
      margin: 8px 16px 8px auto;
    }
    > .newsModalBox {
      display: none;
      > .newsModalImages {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 32px 0;
        > img {
          aspect-ratio: 1/1;
          object-fit: cover;
        }
      }
    }
    > .showNews {
      display: grid;
      width: 70%;
      margin-inline: auto;
      margin-top: 128px;
      row-gap: 8px;
      > h4 {
        font-weight: bold;
        font-size: clamp(12px, 1.875vw, 36px);
      }
      > p {
        font-size: clamp(12px, 1.04vw, 20px);
      }
    }
  }
  .newsWindowOpen {
    display: revert;
    overflow-y: scroll;
    opacity: 1;
    visibility: visible;
  }
}

/* -------------------------- フッター ----------------------------- */

.returnTop {
  width: 20%;
  display: grid;
  place-items: center;
  margin: 32px auto;
  color: #333;
  text-align: center;
  font-size: clamp(12px, 1.666vw, 32px);
  &:hover {
    text-shadow: 0 0 10px #33333363;
  }
}

.footerNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 48px;
  padding: 48px 0;
  background-color: #f4efef;
  > li {
    text-align: center;
    transition: scale 0.2s ease;
    &:hover {
      scale: 1.2;
    }
    > a {
      color: #797373;
      > p {
        font-size: clamp(10px, 1.25vw, 13px);
      }
      & > p:nth-of-type(1) {
        color: #4d4444;
        font-weight: bold;
        text-shadow: 0px 3px 5px #b1b1b1;
      }
    }
  }
}

.footerInfo {
  background-color: #f49b32;
  color: white;
  display: grid;
  justify-content: center;
  gap: 30px;
  padding: 30px 0;
  > .footerLogo {
    width: 35%;
    margin-inline: auto;
  }
  > .footerInfoAccess {
    text-align: center;
    font-size: clamp(12px, 0.83vw, 16px);
  }
}

/* //////////// スマホ用メディアクエリ ///////////// */
@media (width <= 520px) {
  .iconAndNav {
    padding: 8px 16px;
    > div {
      width: 60%;
    }
    > nav {
      display: none;
    }
    > .spMenuButton {
      display: revert;
      width: 25px;
    }
  }
  .heroSection {
    > .heroSectionBox {
      > .heroSectionText {
        width: 50%;
        > .pageTitle {
          text-shadow: 0px 4px 8px black;
          line-height: 24px;
        }
        > p {
          letter-spacing: 2px;
        }
      }
    }
  }
  .mainContentSection {
    row-gap: 16px;
    > #newsBox {
      > .contentText {
        width: 90%;
      }
    }
    > .newsWindow {
      > .newsModalBox {
        > .newsModalImages {
          grid-template-columns: 100%;
        }
      }
      > .showNews {
        width: 90%;
      }
    }
  }
  .returnTop {
    > p {
      &:first-child {
        font-size: 36px;
        font-weight: 900;
      }
    }
  }
  .footerNav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
    > li {
      > a {
        > p {
          &:nth-of-type(2) {
            font-size: clamp(10px, 0.83vw, 16px);
          }
        }
      }
    }
  }
  .footerInfo {
    > .footerLogo {
      width: 70%;
    }
  }
}
