@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600&family=Noto+Serif+JP:wght@400;500;600&display=swap');


/* =========================================================
   Base
========================================================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;

  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #263b4b;
  font-weight: 400;
  letter-spacing: 0.025em;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  background: transparent;
}


/* =========================================================
   Body
========================================================= */

body {
  min-height: 100vh;
  margin: 0;

  background: transparent;

  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  overflow-x: hidden;
}


/* =========================================================
   背景画像
========================================================= */

.page-background {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: -20;

  background-image: url("images/2637829.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  pointer-events: none;
}


/* =========================================================
   背景全体の白い長方形
========================================================= */

.page-white-overlay {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: -10;

  /*
    ここが白さ
    0.58 = 58%
  */

  background: rgba(255, 255, 255, 0.58);

  pointer-events: none;
}


/* =========================================================
   Layout
========================================================= */

.container {
  position: relative;
  z-index: 1;

  min-height: 100vh;

  display: grid;

  grid-template-areas:
    "header"
    "main"
    "footer";

  grid-template-columns: 1fr;

  grid-template-rows:
    72px
    1fr
    auto;
}


/* =========================================================
   Header
========================================================= */

.header,
#header {
  grid-area: header;

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 72px;

  z-index: 1000;

  display: flex;
  align-items: center;

  box-sizing: border-box;

  padding:
    0
    clamp(
      20px,
      5vw,
      72px
    );

  /*
    ヘッダーは白の半透明
  */

  background: rgba(
    255,
    255,
    255,
    0.72
  );

  backdrop-filter:
    blur(22px)
    saturate(120%);

  -webkit-backdrop-filter:
    blur(22px)
    saturate(120%);

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.8
    );

  box-shadow:
    0 1px 0
    rgba(
      255,
      255,
      255,
      0.9
    ),

    0 10px 35px
    rgba(
      27,
      83,
      110,
      0.035
    );
}


/* =========================================================
   Header Internal
========================================================= */

#header {
  display: block;
}

#header_inline {
  display: block;
}


/* =========================================================
   Main
========================================================= */

.main {
  grid-area: main;

  min-width: 0;

  padding:
    clamp(
      105px,
      12vh,
      145px
    )
    clamp(
      18px,
      5vw,
      72px
    )
    clamp(
      70px,
      9vw,
      110px
    );

  background: transparent;
}


/* =========================================================
   Main Content
========================================================= */

#main_content {
  width:
    min(
      1160px,
      100%
    );

  margin: 0 auto;
}


/* =========================================================
   Overview
========================================================= */

.overview_container {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 0.92fr);

  gap:
    clamp(
      24px,
      3vw,
      42px
    );

  align-items: stretch;
}


/* =========================================================
   Explanation
========================================================= */

.explanation {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      30px,
      4vw,
      54px
    );

  /*
    文章カードは白を少し強めに
    背景画像の上でも文字を読みやすくする
  */

  background: rgba(
    255,
    255,
    255,
    0.78
  );

  backdrop-filter:
    blur(24px)
    saturate(110%);

  -webkit-backdrop-filter:
    blur(24px)
    saturate(110%);

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.85
    );

  border-radius: 28px;

  box-shadow:
    0 24px 70px
    rgba(
      28,
      79,
      104,
      0.06
    ),

    0 4px 16px
    rgba(
      15,
      23,
      42,
      0.025
    ),

    inset 0 1px 0
    rgba(
      255,
      255,
      255,
      0.95
    );

  transition:
    transform 0.65s
    cubic-bezier(
      .2,
      .8,
      .2,
      1
    ),

    box-shadow 0.65s ease;
}


/* =========================================================
   Explanation Hover
========================================================= */

.explanation:hover {
  transform:
    translateY(-5px);

  box-shadow:
    0 32px 82px
    rgba(
      28,
      79,
      104,
      0.08
    ),

    0 8px 20px
    rgba(
      15,
      23,
      42,
      0.03
    ),

    inset 0 1px 0
    rgba(
      255,
      255,
      255,
      1
    );
}


/* =========================================================
   Image
========================================================= */

.image {
  position: relative;

  min-height: 500px;

  overflow: hidden;

  display: flex;

  align-items: center;
  justify-content: center;

  /*
    画像部分も均一な白
  */

  background:
    rgba(
      255,
      255,
      255,
      0.32
    );

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.8
    );

  border-radius: 28px;

  box-shadow:
    0 26px 70px
    rgba(
      27,
      83,
      110,
      0.055
    ),

    inset 0 1px 0
    rgba(
      255,
      255,
      255,
      0.9
    );
}


/* =========================================================
   Image Element
========================================================= */

.image img {
  position: relative;

  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(0.9)
    contrast(0.975)
    brightness(1.025);

  transition:
    transform 1s
    cubic-bezier(
      .2,
      .8,
      .2,
      1
    ),

    filter 0.6s ease;
}


/* =========================================================
   Image Hover
========================================================= */

.image:hover img {
  transform:
    scale(1.035);

  filter:
    saturate(0.97)
    contrast(1)
    brightness(1.045);
}


/* =========================================================
   Square Image
========================================================= */

.square-image {
  display: flex;

  align-items: center;
  justify-content: center;
}

.square-image img {
  width: 72% !important;

  height: auto !important;

  aspect-ratio: 1 / 1;

  object-fit: contain;

  border-radius: 20px;

  box-shadow:
    0 18px 42px
    rgba(
      25,
      85,
      115,
      0.065
    );

  transition:
    transform 0.7s
    cubic-bezier(
      .2,
      .8,
      .2,
      1
    ),

    box-shadow 0.5s ease;
}


.square-image:hover img {
  transform:
    scale(1.025);

  box-shadow:
    0 24px 52px
    rgba(
      25,
      85,
      115,
      0.09
    );
}


/* =========================================================
   Typography
========================================================= */

h1,
h2,
h3 {
  position: relative;

  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  color: #173044;

  font-weight: 500;

  line-height: 1.55;

  letter-spacing: 0.075em;

  text-wrap: balance;
}


/* =========================================================
   H1
========================================================= */

h1 {
  font-size:
    clamp(
      2rem,
      4vw,
      3.1rem
    );

  line-height: 1.45;

  letter-spacing: 0.095em;

  margin:
    0 0 28px;
}


h1::after {
  content: "";

  display: block;

  width: 48px;
  height: 1px;

  margin-top: 21px;

  background:
    rgba(
      62,
      151,
      199,
      0.72
    );
}


/* =========================================================
   H2
========================================================= */

h2 {
  font-size:
    clamp(
      1.6rem,
      3vw,
      2.2rem
    );

  margin:
    0 0 22px;
}


/* =========================================================
   H3
========================================================= */

h3 {
  font-size: 1.3rem;

  line-height: 1.6;

  margin:
    0 0 15px;
}


/* =========================================================
   Paragraph
========================================================= */

p {
  margin-top: 0;

  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #536b7b;

  font-size: 1rem;

  font-weight: 400;

  line-height: 2.05;

  letter-spacing: 0.032em;

  text-wrap: pretty;
}


/* =========================================================
   Small
========================================================= */

small {
  font-family:
    "Noto Sans JP",
    sans-serif;

  font-size: 0.8rem;

  font-weight: 400;

  color: #718896;

  letter-spacing: 0.055em;
}


/* =========================================================
   Links
========================================================= */

a {
  color: #347fa5;

  text-decoration: none;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}


a:hover {
  color: #236986;

  opacity: 0.78;
}


/* =========================================================
   Footer
========================================================= */

.footer {
  grid-area: footer;

  padding:
    26px 5%;

  text-align: center;

  background:
    rgba(
      255,
      255,
      255,
      0.68
    );

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.8
    );

  color: #718896;

  font-size: 0.82rem;

  letter-spacing: 0.035em;
}


/* =========================================================
   Scroll Progress
========================================================= */

.scroll-progress {
  position: fixed;

  top: 50%;
  right: 22px;

  width: 18px;
  height: 220px;

  z-index: 2000;

  transform:
    translateY(-50%);

  pointer-events: none;

  opacity: 0.95;
}


.scroll-progress__track {
  position: relative;

  width: 3px;
  height: 100%;

  margin: 0 auto;

  border-radius: 999px;

  background:
    rgba(
      255,
      255,
      255,
      0.65
    );

  box-shadow:
    0 0 4px
    rgba(
      62,
      150,
      195,
      0.16
    );
}


.scroll-progress__line {
  position: absolute;

  top: 0;
  left: 0;

  width: 3px;
  height: 0%;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #7ed1ef 45%,
      #48a9d5 100%
    );

  box-shadow:
    0 0 5px
    rgba(
      255,
      255,
      255,
      0.75
    ),

    0 0 12px
    rgba(
      74,
      178,
      220,
      0.48
    );

  transform-origin: top;

  transition:
    height 0.08s linear;
}


.scroll-progress__glow {
  position: absolute;

  top: 0;
  left: 50%;

  width: 34px;
  height: 34px;

  transform:
    translate(
      -50%,
      -50%
    );

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(
        255,
        255,
        255,
        0.85
      ) 0%,

      rgba(
        126,
        209,
        239,
        0.42
      ) 25%,

      rgba(
        126,
        209,
        239,
        0.14
      ) 48%,

      transparent 72%
    );

  filter: blur(1px);
}


.scroll-progress__dot {
  position: absolute;

  top: 0;
  left: 50%;

  width: 9px;
  height: 9px;

  transform:
    translate(
      -50%,
      -50%
    );

  border-radius: 50%;

  background: #ffffff;

  border:
    1px solid
    rgba(
      83,
      181,
      222,
      0.8
    );

  box-shadow:
    0 0 0 2px
    rgba(
      255,
      255,
      255,
      0.45
    ),

    0 0 8px
    rgba(
      255,
      255,
      255,
      0.95
    ),

    0 0 18px
    rgba(
      68,
      174,
      218,
      0.65
    );

  transition:
    top 0.08s linear;
}


/* =========================================================
   Reveal Animation
========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(18px);

  filter:
    blur(5px);

  transition:
    opacity 1s
    cubic-bezier(
      .2,
      .7,
      .2,
      1
    ),

    transform 1s
    cubic-bezier(
      .2,
      .7,
      .2,
      1
    ),

    filter 1s
    cubic-bezier(
      .2,
      .7,
      .2,
      1
    );
}


.reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);

  filter:
    blur(0);
}


/* =========================================================
   Reveal Stagger
========================================================= */

.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal:nth-child(5) {
  transition-delay: 0.32s;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {

  .overview_container {
    grid-template-columns: 1fr;

    gap: 26px;
  }

  .image {
    min-height: 440px;
  }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

  .header,
  #header {
    height: 66px;

    padding:
      0 20px;
  }


  .container {
    grid-template-rows:
      66px
      1fr
      auto;
  }


  .main {
    padding:
      88px
      18px
      55px;
  }


  #main_content {
    width: 100%;
  }


  .overview_container {
    gap: 22px;
  }


  .explanation {
    padding:
      32px
      25px;

    border-radius: 24px;
  }


  .image {
    height: 380px;

    min-height: 380px;

    border-radius: 24px;
  }


  .square-image img {
    width: 65% !important;

    border-radius: 17px;
  }


  h1 {
    font-size: 1.95rem;

    margin-bottom: 23px;
  }


  h2 {
    font-size: 1.55rem;

    margin-bottom: 18px;
  }


  h3 {
    font-size: 1.25rem;
  }


  p {
    font-size: 0.94rem;

    line-height: 1.95;
  }


  .scroll-progress {
    right: 9px;

    width: 16px;

    height: 170px;

    opacity: 0.82;
  }


  .scroll-progress__track {
    width: 3px;
  }


  .scroll-progress__line {
    width: 3px;
  }


  .scroll-progress__dot {
    width: 8px;
    height: 8px;
  }


  .scroll-progress__glow {
    width: 28px;
    height: 28px;
  }
}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {

  .main {
    padding:
      84px
      14px
      42px;
  }


  .explanation {
    padding:
      27px
      20px;

    border-radius: 21px;
  }


  .image {
    height: 320px;

    min-height: 320px;

    border-radius: 21px;
  }


  .square-image img {
    width: 62% !important;

    border-radius: 15px;
  }


  h1 {
    font-size: 1.75rem;

    margin-bottom: 20px;

    letter-spacing: 0.05em;
  }


  h2 {
    font-size: 1.4rem;

    margin-bottom: 16px;
  }


  h3 {
    font-size: 1.16rem;
  }


  p {
    font-size: 0.91rem;

    line-height: 1.9;
  }


  .scroll-progress {
    right: 6px;

    height: 145px;

    opacity: 0.75;
  }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {

    transition: none !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }


  .reveal {
    opacity: 1;

    transform: none;

    filter: none;
  }


  .scroll-progress__line {
    height: 100% !important;
  }


  .scroll-progress__glow,
  .scroll-progress__dot {
    top: 100% !important;
  }
}


/* =========================================================
   Slideshow
   自動切り替え・スワイプ対応
========================================================= */

.slideshow {
  position: relative;

  height: 500px !important;
  min-height: 500px !important;

  overflow: hidden;

  touch-action: pan-y;
  user-select: none;
}


/* ---------------------------------------------------------
   Slideshow Image
--------------------------------------------------------- */

.slideshow > img {
  position: absolute !important;

  top: 0;
  left: 0;

  width: 100% !important;
  height: 100% !important;

  display: block;

  object-fit: cover;

  opacity: 1;

  transition:
    opacity 0.55s ease,
    transform 0.8s cubic-bezier(.2,.8,.2,1),
    filter 0.6s ease;

  will-change:
    opacity,
    transform;
}


/* 切り替え時 */

.slideshow > img.slideshow-changing {
  opacity: 0;

  transform:
    scale(1.025);
}


/* ---------------------------------------------------------
   Previous / Next Button
--------------------------------------------------------- */

.slideshow-button {
  position: absolute;

  top: 50%;

  width: 44px;
  height: 44px;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid
    rgba(255,255,255,0.75);

  border-radius: 50%;

  background:
    rgba(255,255,255,0.58);

  color: #31566b;

  font-family:
    "Noto Sans JP",
    sans-serif;

  font-size: 32px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  z-index: 10;

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  box-shadow:
    0 5px 20px
    rgba(20,60,80,0.08);

  opacity: 0;

  transition:
    opacity 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}


/* PCではマウスを乗せた時に表示 */

.slideshow:hover .slideshow-button {
  opacity: 1;
}


.slideshow-button:hover {
  background:
    rgba(255,255,255,0.85);

  transform:
    translateY(-50%)
    scale(1.06);
}


.slideshow-prev {
  left: 16px;
}


.slideshow-next {
  right: 16px;
}


/* ---------------------------------------------------------
   Dots
--------------------------------------------------------- */

.slideshow-dots {
  position: absolute;

  left: 50%;
  bottom: 17px;

  transform:
    translateX(-50%);

  display: flex;

  gap: 7px;

  padding:
    7px 11px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.45);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  z-index: 10;
}


.slideshow-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(50,90,110,0.28);

  cursor: pointer;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
}


.slideshow-dot.active {
  background:
    rgba(50,110,145,0.8);

  transform:
    scale(1.35);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {

  .slideshow {
    height: 440px !important;
    min-height: 440px !important;
  }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

  .slideshow {
    height: 380px !important;
    min-height: 380px !important;
  }


  .slideshow-button {
    width: 38px;
    height: 38px;

    font-size: 27px;

    opacity: 0.75;
  }


  .slideshow-prev {
    left: 10px;
  }


  .slideshow-next {
    right: 10px;
  }


  .slideshow-dots {
    bottom: 12px;

    gap: 6px;

    padding:
      6px 9px;
  }


  .slideshow-dot {
    width: 6px;
    height: 6px;
  }

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {

  .slideshow {
    height: 320px !important;
    min-height: 320px !important;
  }


  .slideshow-button {
    width: 34px;
    height: 34px;

    font-size: 24px;
  }


  .slideshow-prev {
    left: 8px;
  }


  .slideshow-next {
    right: 8px;
  }

}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .slideshow > img {
    transition: none !important;
  }

  .slideshow-button,
  .slideshow-dot {
    transition: none !important;
  }

}


/* =========================================================
   HTML構造対応・最終調整
   現在の index.html の
   <div class="image slideshow"> に対応
========================================================= */

/* 通常画像 */
.image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライドショー本体 */
.image.slideshow {
  position: relative;
  display: block;
  width: 100%;
  height: 500px !important;
  min-height: 500px !important;
  padding: 0;
  overflow: hidden;
  cursor: default;
}

/* スライドショー画像 */
.image.slideshow > img {
  position: absolute !important;
  inset: 0;

  display: block;
  width: 100% !important;
  height: 100% !important;

  margin: 0;
  object-fit: cover;

  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* スライド切り替え中 */
.image.slideshow > img.slideshow-changing {
  opacity: 0;
  transform: scale(1.025);
}

/* ボタンを画像より前面へ */
.image.slideshow .slideshow-button {
  z-index: 20;
}

/* ドットを画像より前面へ */
.image.slideshow .slideshow-dots {
  z-index: 20;
}

/* キーボード操作時も見やすくする */
.image.slideshow .slideshow-button:focus-visible {
  outline: 2px solid rgba(52, 127, 165, 0.65);
  outline-offset: 3px;
}

/* =========================================================
   スライドショーの高さを端末ごとに統一
========================================================= */

@media (max-width: 900px) {
  .image.slideshow {
    height: 440px !important;
    min-height: 440px !important;
  }
}

@media (max-width: 768px) {
  .image.slideshow {
    height: 380px !important;
    min-height: 380px !important;
  }
}

@media (max-width: 480px) {
  .image.slideshow {
    height: 320px !important;
    min-height: 320px !important;
  }
}

/* =========================================================
   画像クリックで拡大表示するためのクラス
   main.js 側で .is-lightbox-open を付ける場合に対応
========================================================= */

body.is-lightbox-open {
  overflow: hidden;
}

.slideshow-lightbox,
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slideshow-lightbox img,
.image-lightbox img {
  display: block;

  max-width: 94vw;
  max-height: 92vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 12px;

  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.35);
}

.slideshow-lightbox button,
.image-lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 50%;

  background: rgba(255,255,255,0.18);
  color: #ffffff;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
  .slideshow-lightbox,
  .image-lightbox {
    padding: 12px;
  }

  .slideshow-lightbox button,
  .image-lightbox button {
    top: 10px;
    right: 10px;

    width: 38px;
    height: 38px;

    font-size: 24px;
  }
}


/* =========================================================
   文化祭カレンダー画像
========================================================= */

.calendar-image {
  text-align: center;
}

.calendar-image img {
  width: 500px;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* =========================================================
   文化祭カレンダー画像
========================================================= */

.calendar-image {
  text-align: center;
}

.calendar-click-image {
  width: 500px;
  max-width: 100%;
  height: auto;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.calendar-click-image:hover {
  transform: scale(1.02);
}


/* =========================================================
   画像拡大モーダル
========================================================= */

.image-modal {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.8);

  padding: 30px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 9999;

  cursor: zoom-out;
}


/* 表示中 */

.image-modal.active {
  opacity: 1;
  visibility: visible;
}


/* 拡大画像 */

.image-modal img {
  max-width: 95vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  display: block;

  border-radius: 4px;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4);

  cursor: default;

  transform: scale(0.9);

  transition: transform 0.3s ease;
}


/* 表示時に少し拡大 */

.image-modal.active img {
  transform: scale(1);
}


/* 閉じるボタン */

.image-modal-close {
  position: absolute;

  top: 20px;
  right: 25px;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);

  color: #222;

  font-size: 35px;
  line-height: 1;

  cursor: pointer;

  z-index: 10000;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.image-modal-close:hover {
  background: #fff;
  transform: scale(1.08);
}


/* スマホ */

@media (max-width: 768px) {

  .calendar-click-image {
    width: 90%;
  }

  .image-modal {
    padding: 15px;
  }

  .image-modal img {
    max-width: 96vw;
    max-height: 85vh;
  }

  .image-modal-close {
    top: 10px;
    right: 10px;

    width: 45px;
    height: 45px;

    font-size: 30px;
  }

}