:root {
 --main: #3360a7;
 --darkmain: #30365d;
 --background: #f2efeb;
 --white: #fcfcfc;
 --lightgrey: #ececec;
 --midgrey: #c1c1c1;
 --darkgrey: #4e5d76;
 --black: #333333;
}

body {
 background-color: var(--background);
 font-family: "Zen Maru Gothic", sans-serif;
 font-weight: 400;
 font-style: normal;
 font-size: 16px;
 line-height: 28px;
 color: var(--black);
 overflow-x: hidden;
 overflow-y: scroll;
 text-align: justify;
 display: grid;
 grid-template-columns: 1fr;
 grid-template-rows: auto 1fr auto;
 min-height: 100vh;
}

body::before {
 content: "";
 position: fixed;
 inset: 0;
 z-index: -1;
 background-image: url(../img/back.png);
 background-size: auto 100%;
 background-repeat: no-repeat;
 background-position: top center;
}

a {
 transition: 0.5s;
}

/* ヘッダーとPC背景 */
header div {
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 8px 0 4px;
}

header div img {
 height: 100px;
 display: block;
}

header div div {
 width: 100%;
}

header div div img {
 width: 90%;
 max-width: 600px;
 height: auto;
 display: block;
 margin: 0 auto;
}

@media (min-width: 1200px) {
 body::before {
  background-size: cover;
 }
 header div {
  background-image: none;
  padding: 0;
  height: 100px;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
 }
 header div div {
  flex: 1;
  margin: 0;
 }
 header div div img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
 }
}

@media (min-width: 1400px) {
 header div div {
  flex: 0 0 auto;
  max-width: 600px;
 }
}
/* ナビ */
nav {
 position: fixed;
 bottom: 0;
 width: 100%;
 box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
 z-index: 100;
}

nav ul {
 display: flex;
}
nav ul li {
 width: 100%;
 border-right: 1px solid var(--darkmain);
}

nav ul li:last-child {
 border-right: none;
}

nav ul li a {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 background-color: var(--main);
 color: var(--white);
 font-size: 14px;
 padding: 14px 0;
 font-weight: 700;
 gap: 0;
 line-height: 1;
 white-space: nowrap;
}

.current {
 background-color: var(--darkmain);
}

nav ul li a:hover {
 background-color: var(--darkmain);
}

nav ul li a i {
 font-size: 24px;
 display: inline-block;
 vertical-align: middle;
 margin-bottom: -4px;
}

@media (min-width: 600px) and (max-width: 1199px) {
 nav ul li a {
  flex-direction: row;
  gap: 10px;
  font-size: 18px;
 }
 nav ul li a i {
  display: block;
  margin-bottom: 0;
 }
}

.spbr {
 display: block;
}

@media (min-width: 600px) {
 .spbr {
  display: none;
 }
}

/* ナビのPC表示 */
@media (min-width: 1200px) {
 nav {
  position: static;
  flex: 1;
  width: auto;
  margin: 0;
  box-shadow: none;
 }
 nav ul {
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
 }

 nav ul li {
  width: auto;
  border-right: none;
 }
 nav ul li a {
  border-radius: 10px;
  font-size: 20px;
  height: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  will-change: transform;
  transition: background-color 0.3s ease, transform 0.2s ease,
   box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
 }
 nav ul li a:hover,
 nav ul li a:active {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
 }
 nav ul li a i {
  font-size: 20px;
  margin-right: 8px;
 }
}

/* メイン */
.main_content {
 width: 100%;
 margin: 0 auto;
 padding: 10px 20px 20px;
 display: flex;
 flex-direction: column;
}

@media (min-width: 1000px) {
 .main_content {
  width: 90%;
  max-width: 1600px;
  border-radius: 10px;
  margin: 0 auto 40px;
  padding: 40px;
  flex-direction: row;
  background-color: #dce5f2a7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
 }
}

/* メイン左側 */
.main_left {
 display: flex;
 flex-direction: column;
 height: fit-content;
}
@media (min-width: 1000px) {
 .main_left {
  margin-right: 40px;
 }
}
.left_content {
 width: 100%;
 background-color: var(--white);
 border-radius: 10px;
 padding: 20px;
 margin-bottom: 20px;
 box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

@media (min-width: 1000px) {
 .left_content {
  background-color: var(--white);
  width: 320px;
  height: 100%;
  border-radius: 10px;
  padding: 20px;
 }
}

.left_content ul li {
 margin-top: 10px;
}

.poster {
 width: 100%;
 overflow: hidden;
 display: block;
 margin-bottom: 20px;
}

.poster_img {
 width: 100%;
 display: block;
 border: 1px solid var(--midgrey);
 will-change: transform, opacity;
 transition: transform 0.3s ease, filter 0.3s ease;
}

.poster:hover .poster_img,
.poster:active .poster_img {
 filter: brightness(0.7);
 transform: scale3d(1.05, 1.05, 1);
}

.prof {
 width: 100%;
}
.icon {
 font-size: 20px;
}

.download {
 background-color: var(--main);
 color: var(--white);
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 border-radius: 10px;
 font-weight: 700;
 height: 50px;
 line-height: 50px;
 gap: 10px;
 will-change: transform;
 transition: background-color 0.3s ease, transform 0.2s ease,
  box-shadow 0.2s ease;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.download_grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: 12px;
 margin-top: 16px;
}

@media (min-width: 600px) {
 .download_grid {
  grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 1200px) {
 .download_grid {
  grid-template-columns: repeat(3, 1fr);
 }
}

.download:hover,
.download:active {
 background-color: var(--darkmain);
 transform: translate3d(0, -3px, 0);
 box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* メイン右側 */
.main_right {
 display: flex;
 flex-direction: column;
 gap: 20px;
 flex: 1;
 min-width: 0;
}

.right_content {
 background-color: var(--white);
 width: 100%;
 border-radius: 10px;
 padding: 20px;
 box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.map_row {
 display: flex;
 gap: 16px;
 margin-top: 8px;
}

.map_item {
 flex: 1;
 min-width: 0;
}

.map_item h3 {
 color: #3360a7;
 font-size: 16px;
 font-weight: 700;
 text-align: center;
}

@media (max-width: 768px) {
 .map_row {
  flex-direction: column;
 }
}
.main_content h2 {
 color: var(--main);
 font-size: 24px;
 font-weight: 700;
 line-height: 32px;
 margin-bottom: 10px;
 text-align: center;
}

.indent {
 text-indent: -5em;
 padding-left: 5em;
}

.indent-left {
 text-align: left;
 text-indent: -5em;
 padding-left: 5em;
}

.news {
 display: flex;
 flex-wrap: wrap;
 width: 100%;
 padding: 0;
 list-style: none;
}

.news li {
 width: 46%;
 box-sizing: border-box;
 margin: 2%;
}

@media (min-width: 1000px) {
 .news li {
  width: 29.3%;
 }
}

@media (min-width: 1200px) {
 .news li {
  width: 21%;
 }
}

.news li a {
 display: flex;
 flex-direction: column;
}

.news-img-wrap {
 overflow: hidden;
 border: 1px solid var(--midgrey);
}

.news li img {
 width: 100%;
 aspect-ratio: 210 / 297;
 object-fit: cover;
 display: block;
 will-change: transform, opacity;
 transition: transform 0.3s ease, filter 0.3s ease;
}

.news li a:hover img,
.news li a:active img {
 filter: brightness(0.7);
 transform: scale3d(1.05, 1.05, 1);
}

.news-caption {
 display: block;
 text-align: center;
 font-size: 15px;
 font-weight: 700;
 padding: 6px 4px;
 color: var(--black);
}

/* フッター */
footer {
 background-color: var(--darkgrey);
 color: var(--white);
 font-size: 14px;
 padding: 20px 20px 100px;
}
@media (min-width: 1200px) {
 footer {
  padding: 20px;
 }
}
footer div {
 max-width: 600px;
 margin: 0 auto;
}
.footer_title {
 font-weight: 700;
 font-size: 20px;
 margin-bottom: 10px;
 text-align: center;
}

.copyright {
 margin-top: 10px;
 text-align: center;
}
#email:hover {
 border-bottom: 1px solid var(--white);
}
/* ご挨拶 */
.align_right {
 text-align: right;
}

.greeting_left_content {
 display: none;
}

.greeting_left {
 width: 100%;
}

.greeting_right {
 width: 100%;
}

@media (min-width: 1000px) {
 .greeting_left_content {
  background-color: var(--white);
  width: 320px;
  height: 100%;
  border-radius: 10px;
  padding: 20px;
  display: block;
 }
}

.greeting_left_content_sp {
 width: 100%;
 background-color: var(--white);
 border-radius: 10px;
 padding: 20px;
 margin-bottom: 20px;
 display: flex;
 gap: 20px;
}
@media (min-width: 1000px) {
 .greeting_left_content_sp {
  display: none;
 }
}

/* テーマ */
.theme {
 margin-top: 10px;
}

.indent1 {
 text-indent: -1em;
 padding-left: 1em;
 text-align: justify;
}

.indent6 {
 text-indent: -6em;
 padding-left: 6em;
 text-align: justify;
}

#mail-link {
 text-decoration: underline;
}

#email {
 text-decoration: underline;
}

.small {
 font-size: 12px;
}

.theme1 {
 margin-top: 10px;
 text-indent: -2em;
 padding-left: 2em;
}

.theme2 {
 padding-left: 3em;
}

.number {
 letter-spacing: -0.2em;
}

/* モーダル */
.modal-overlay {
 display: none;
 position: fixed;
 inset: 0;
 background-color: rgba(0, 0, 0, 0.6);
 z-index: 1000;
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
 padding: 20px;
 box-sizing: border-box;
}

.modal-overlay.active {
 display: flex;
 justify-content: center;
}

@media (min-width: 1000px) {
 .modal-overlay {
  padding: 60px 40px;
 }
}

.modal-content {
 background-color: var(--white);
 border-radius: 10px;
 padding: 40px 20px 20px;
 width: 100%;
 max-width: 800px;
 position: relative;
 margin: auto;
 will-change: transform, opacity;
 animation: modal-in 0.3s ease both;
 box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal-overlay.closing .modal-content {
 animation: modal-out 0.25s ease both;
}

@keyframes modal-in {
 from {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
 }
 to {
  opacity: 1;
  transform: translate3d(0, 0, 0);
 }
}

@keyframes modal-out {
 from {
  opacity: 1;
  transform: translate3d(0, 0, 0);
 }
 to {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
 }
}

.modal-close {
 position: absolute;
 top: 12px;
 right: 12px;
 background: none;
 border: none;
 font-size: 28px;
 cursor: pointer;
 color: var(--darkgrey);
 width: 36px;
 height: 36px;
 display: flex;
 align-items: center;
 justify-content: center;
 line-height: 1;
 -webkit-appearance: none;
 touch-action: manipulation;
}

.modal-close:hover,
.modal-close:active {
 color: var(--black);
}

.modal-content h2 {
 color: var(--main);
 font-size: 24px;
 font-weight: 700;
 line-height: 32px;
 margin-bottom: 10px;
 text-align: center;
}

/* ご挨拶モーダル */
.modal-greeting-body {
 display: flex;
 flex-direction: column;
}

.modal-greeting-prof {
 order: 2;
 margin-top: 20px;
}

.modal-greeting-prof img {
 width: 100%;
 max-width: 200px;
 margin: 0 auto;
 display: block;
 border-radius: 10px;
}

@media (min-width: 1000px) {
 .modal-greeting-body {
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
 }
 .modal-greeting-prof {
  order: 0;
  flex-shrink: 0;
  width: 200px;
  margin-top: 0;
 }
 .modal-greeting-text {
  flex: 1;
 }
}

/* テキスト表示切り替え */
.desc-pc {
 display: none;
}

.desc-sp {
 display: block;
}

@media (min-width: 1000px) {
 .desc-pc {
  display: block;
 }
 .desc-sp {
  display: none;
 }
}
