@charset "UTF-8";

	.site-header{position: absolute; top: 20px;}


/* ==================================================
   TOP：メインバックグラウンド・スライダー
================================================== */

#main-carousel {
	position: absolute;
  width: 100%;
  height: 100vh;
}

.splide__track, .splide__list, .splide__slide {
  height: 100% !important;
}

.splide__slide img {
  width: 100% !important;
  height: 100% !important;
  
  /*imgタグで background-size: cover と同じ効果を出すプロパティ */
  object-fit: cover !important; 
  object-position: center !important;
}

/* ★左側のボタン */
.splide__arrow--prev {
  left: 0 !important;
}

/* ★右側のボタン */
.splide__arrow--next {
  right: 0 !important;
}

/* 左右の矢印ボタンのサイズや位置を微調整（お好みで変更可能） */
.splide__arrow {
  width: 2rem !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.1) !important; /* ボタンの背景を半透明の黒に */
	border-radius: 0!important;
  top: 50% !important;          /* 垂直方向中央配置 */
  transform: translateY(-50%) !important;
	transition: .5s;
}
.splide__arrow:hover {
  background: rgba(0, 0, 0, 0.3) !important; /* ホバー時に少し暗く */
}

/* 矢印（中の <svg> アイコン）の色 */
.splide__arrow svg {
  fill: #ffffff !important;      /* 矢印の色を白にする */
  width: 1.5rem !important;      /* 矢印のサイズ */
  height: 1.5rem !important;
}





/* ==================================================
   TOP：メインビジュアル・タイトル
================================================== */
.hero--top {
  /*height: 100vh;*/
  height: 900px;
}

.hero-title {
  width: 100%;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  /*padding-top: 24vh;*/
  padding-top: 240px;
}

.hero-title h1 {
  margin: 0;
  font-size: 6rem;
  line-height: 1.2;
  letter-spacing: .02em;
}

.hero-title span {
  display: block;
  width: 828px;
  margin: 31px auto 26px;
  border-top: 2px dotted #fff;
}

.hero-title p {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4.2px;
}

@media (max-width: 768px) {
  .hero--top {
    height: 930px;
    background-size: auto 930px;
  }

  .hero-title {
    padding-top: 135px;
  }

  .hero-title h1 {
    font-size: clamp(3rem, 10vw, 4rem);
    line-height: 1.6;
  }

  .hero-title span {
    width: 100%;
    margin: 20px auto;
  }

  .hero-title p {
    letter-spacing: .12em;
    overflow-wrap: anywhere;
  }
}

/* ========================================
   トップページ：ページ読み込み時のアニメーション
======================================== */

/* JavaScriptが有効な場合だけアニメーションさせる */
.js-enabled .top-page .site-header {
  opacity: 0;
  transition: opacity .7s ease;
}


/* ----------------------------------------
   ヒーロータイトル
   ※ hero-title はレイアウト用
   ※ transform は animation 側だけに設定
---------------------------------------- */

/*.js-enabled .top-page .hero-title-animation {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
*/
.js-enabled .top-page .hero-title-animation h1,
.js-enabled .top-page .hero-title-animation span,
.js-enabled .top-page .hero-title-animation p {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1);
}

.js-enabled .top-page.is-loaded .hero-title-animation h1,
.js-enabled .top-page.is-loaded .hero-title-animation span,
.js-enabled .top-page.is-loaded .hero-title-animation p {
  opacity: 1;
  transform: translateY(0);
	
     2px  2px 2px rgba(0, 100, 255, 0.5),
    -2px  2px 2px rgba(0, 100, 255, 0.5),
     2px -2px 2px rgba(0, 100, 255, 0.5),
    -2px -2px 2px rgba(0, 100, 255, 0.5),
     2px  0px 2px rgba(0, 100, 255, 0.5),
    -2px  0px 2px rgba(0, 100, 255, 0.5),
     0px  2px 2px rgba(0, 100, 255, 0.5),
     0px -2px 2px rgba(0, 100, 255, 0.5);
}

/*タイトル文字周り、縁取り設定*/
.js-enabled .top-page .hero-title-animation h1 {
  text-shadow: 
     2px  2px 2px rgba(4, 110, 185, 0.5),
    -2px  2px 2px rgba(4, 110, 185, 0.5),
     2px -2px 2px rgba(4, 110, 185, 0.5),
    -2px -2px 2px rgba(4, 110, 185, 0.5),
     2px  0px 2px rgba(4, 110, 185, 0.5),
    -2px  0px 2px rgba(4, 110, 185, 0.5),
     0px  2px 2px rgba(4, 110, 185, 0.5),
     0px -2px 2px rgba(4, 110, 185, 0.5);
}
.js-enabled .top-page .hero-title-animation p {
	text-shadow: 
     1px  1px 1px rgba(4, 110, 185, 0.5),
    -1px  1px 1px rgba(4, 110, 185, 0.5),
     1px -1px 1px rgba(4, 110, 185, 0.5),
    -1px -1px 1px rgba(4, 110, 185, 0.5),
     1px  0px 1px rgba(4, 110, 185, 0.5),
    -1px  0px 1px rgba(4, 110, 185, 0.5),
     0px  1px 1px rgba(4, 110, 185, 0.5),
     0px -1px 1px rgba(4, 110, 185, 0.5);
}
.js-enabled .top-page .hero-title-animation span {
  box-shadow: 0px 0px 2px 0.2px rgba(4, 110, 185, 1);
}

.js-enabled .top-page.is-loaded .hero-title-animation h1 {
  text-shadow: 
     2px  2px 2px rgba(4, 110, 185, 0.5),
    -2px  2px 2px rgba(4, 110, 185, 0.5),
     2px -2px 2px rgba(4, 110, 185, 0.5),
    -2px -2px 2px rgba(4, 110, 185, 0.5),
     2px  0px 2px rgba(4, 110, 185, 0.5),
    -2px  0px 2px rgba(4, 110, 185, 0.5),
     0px  2px 2px rgba(4, 110, 185, 0.5),
     0px -2px 2px rgba(4, 110, 185, 0.5);
}
.js-enabled .top-page.is-loaded .hero-title-animation p {
	text-shadow: 
     1px  1px 1px rgba(4, 110, 185, 1),
    -1px  1px 1px rgba(4, 110, 185, 1),
     1px -1px 1px rgba(4, 110, 185, 1),
    -1px -1px 1px rgba(4, 110, 185, 1),
     1px  0px 1px rgba(4, 110, 185, 1),
    -1px  0px 1px rgba(4, 110, 185, 1),
     0px  1px 1px rgba(4, 110, 185, 1),
     0px -1px 1px rgba(4, 110, 185, 1);
}
.js-enabled .top-page.is-loaded .hero-title-animation span {
  box-shadow: 0px 0px 2px 0.2px rgba(4, 110, 185, 1);
}





/* ----------------------------------------
   メニュー
---------------------------------------- */

.js-enabled .top-page .menu-grid > li {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1);
}


/* ========================================
   is-loaded
   JavaScriptによって付与されるクラス
======================================== */

/* ヘッダー */
.js-enabled .top-page.is-loaded .site-header {
  opacity: 1;
}


/* ヒーロータイトル 
.js-enabled .top-page.is-loaded .hero-title-animation {
  opacity: 1;
  transform: translateY(0);

  transition-delay: .15s;
}
*/

/* メニュー */
.js-enabled .top-page.is-loaded .menu-grid > li {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------
   メニューの表示タイミング
---------------------------------------- */

.js-enabled .top-page.is-.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(1) { transition-delay: .25s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(2) { transition-delay: .32s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(3) { transition-delay: .39s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(4) { transition-delay: .46s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(5) { transition-delay: .53s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(6) { transition-delay: .60s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(7) { transition-delay: .67s; }
.js-enabled .top-page.is-loaded .menu-grid > li:nth-child(8) { transition-delay: .74s; }


/* ========================================
   スクロール表示
======================================== */

.js-enabled .top-page .chisui_link-wrap,
.js-enabled .top-page .news-wrap,
.js-enabled .top-page .login-section,
.js-enabled .top-page .site-footer {
  opacity: 0;
  transform: translateY(36px);

  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22, 1, .36, 1);
}


/* 表示状態 */
.js-enabled .top-page .chisui_link-wrap.is-visible,
.js-enabled .top-page .news-wrap.is-visible,
.js-enabled .top-page .login-section.is-visible,
.js-enabled .top-page .site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   reduced motion
======================================== */

@media (prefers-reduced-motion: reduce) {

  .js-enabled .top-page .site-header,
  .js-enabled .top-page .hero-title-animation,
  .js-enabled .top-page .menu-grid > li,
  .js-enabled .top-page .chisui_link-wrap,
  .js-enabled .top-page .news-wrap,
  .js-enabled .top-page .login-section,
  .js-enabled .top-page .site-footer {
    opacity: 1;
    transform: none;
    transition: none;
  }

}





/* ==================================================
   TOP：8つのメニューカード
================================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  /*margin: 20vh auto 0;*/
  margin: 150px auto 0;
  padding: 0;
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 50px 10px 30px;
  border-radius: 8px;
  background: #fff;
  background-color: rgb(255 255 255 / 65%);	
  box-shadow: var(--shadow-card);
  color: var(--color-primary-dark);
}

.corner-triangle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--color-primary) 0 50%, transparent 50%);
}

.menu-card img {
  width: 128px;
  height: 82px;
  object-fit: contain;
}

.menu-card strong {
  margin-top: 1em;
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 60px;
  }

  .menu-card {
    min-width: 0;
    padding: 35px 8px 20px;
    text-align: center;
  }

  .menu-card img {
    width: 80px;
    height: 60px;
  }

  .corner-triangle {
    top: 6px;
    left: 6px;
    width: 14px;
    height: 14px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .menu-card {
    transition: color .3s ease, box-shadow .3s ease, transform .3s ease;
  }

  .menu-card img,
  .menu-card .corner-triangle {
    transition: transform .3s ease;
  }

  .menu-card:hover {
    box-shadow: var(--shadow-card-hover);
    color: var(--color-primary);
    transform: translateY(-8px);
  }

  .menu-card:hover img {
    transform: scale(1.06);
  }

  .menu-card:hover .corner-triangle {
    transform: scale(1.2);
    transform-origin: left top;
  }
}

/* ==================================================
   TOP：流域対策の見える化ボタン
================================================== */
.chisui_link {
  margin-top: 160px;
	margin-bottom: 0;
}
.chisui_link div {}
.chisui_link div a {
	display: block;
	text-align: center;
	max-width: 600px;
	background: #006CB6;
	margin: 0 auto;
	padding: 12px;
	font-size: 3rem;
	color: #fff;
	font-weight: 500;
	border: 3px solid #006CB6;
	border-radius: 39px;
	position: relative;
}
.chisui_link div a span {
	position: absolute;
	top: calc(50% - 1.9rem);
	right: 30px;
	width: 3.8rem;
	height: 3.8rem;
	border-radius: 50%;
	background: #fff;
}
.chisui_link div a span::after {
  content: "";
  position: absolute;
  top: 56%;
  left: 47%;
  width: 25%;
  height: 25%;
  border-right: 2.5px solid #036eb8;
  border-top: 2.5px solid #036eb8;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
	.chisui_link div a:hover {
		background: #fff;
		color: #036eb8;
	}
	.chisui_link div a:hover span{
		background: #036eb8;
	}
	.chisui_link div a:hover span::after {
		border-right: 2.5px solid #fff;
		border-top: 2.5px solid #fff;
	}
}

@media (max-width: 768px) {
	.chisui_link {margin-top: 260px;}
	.chisui_link a {
		padding: 10px;
		font-size: 2.4rem!important;
	}
	.chisui_link div a span {
		top: calc(50% - 1.6rem);
		right: 18px;
		width: 3.2rem;
		height: 3.2rem;
	}
	.chisui_link div a span::after {
		top: 56%;
		left: 48%;
		width: 24%;
		height: 24%;
	}
}



/* ==================================================
   TOP：お知らせ
================================================== */
.news {
  /*margin-top: 24vh;*/
  margin-top: 0px;
  background: url("../img/city-silhouette.png") center bottom / contain no-repeat;
}

.news-wrap {
  position: relative;
  padding: 3em 3em;
  border-radius: 8px;
  background: #ededed;
}

.news-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1em;
}

.news-heading h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 2.6rem;
  border-bottom: none;
}

.news-heading a {
  font-size: 1.4rem;
}

.news-list {
  margin: 0;
  padding: 30px 40px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-card);
	max-height: 225px;
	overflow-y: scroll;
}

.news-list li {
  padding: 1em;
  border-top: 2px dotted #268ccf;
}

.news-list a {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
	align-items: flex-start;
}

.news-list li:last-child {
  border-bottom: 2px dotted #268ccf;
}

.news-list time {
  color: var(--color-primary);
  font-weight: 700;
  width: 8em;
  min-width: 8em;
}

.login-section {
  margin: 60px auto;
  text-align: center;
}

.login-section a {
  gap: 32px;
  padding: 20px 50px;
  border-radius: 15px;
  font-size: 2rem;
}

@media (hover: hover) and (pointer: fine) {
  .news-list a span {
    text-decoration-color: transparent;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .3s ease, text-decoration-color .3s ease;
  }

  .news-list a:hover span {
    text-decoration-color: currentColor;
  }

}

@media (max-width: 768px) {
  .news {
    /*margin-top: 250px;*/
    margin-top: 0px;
  }
  .news-wrap {
    padding: 2em 1em;
  }
  .news-heading {
    align-items: center;
    gap: 16px;
  }
  .news-heading h2 {
    font-size: 2.2rem;
  }
  .news-heading a {
    font-size: 1.2rem;
    white-space: nowrap;
  }
  .news-list {
    padding: 2em 1em;
  }
  .news-list li {
    padding: .5em 0;
  }
  .news-list a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .news-list time {
    width: auto;
  }
  .news-list span {
    line-height: 1.6;
  }
  .login-section a {
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.6rem;
  }
}
