:root {
  --color-main: #0d3f96;
  --color-main-dark: #0a2d73;
  --color-white: #ffffff;
  --color-text: #222222;
  --color-bg: #f7f7f7;
  --color-line: #d9d9d9;
  --color-accent: #d8cfb0;
	--color-bg-light: #eaf1f8;
  --font-base: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --container-width: 1100px;
  --header-radius: 0 0 20px 20px;
  --transition-base: 0.3s ease;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
}

/* =========================================
  Loading
========================================= */

@keyframes loadingTyping {
  from {
    width: 0;
  }
}

@keyframes loadingBlinkCaret {
  50% {
    border-color: transparent;
  }
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__animation {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-main);
  border-right: 0.08em solid var(--color-main);
	width: 135px;
  white-space: nowrap;
  overflow: hidden;
  animation:
    loadingTyping 0.5s steps(10, end),
    loadingBlinkCaret 0.5s step-end infinite alternate;
}

@media screen and (max-width: 768px) {
  .loading__animation {
    font-size: 22px;
		width: 115px;
  }
}

/* =========================================
  Page Enter
========================================= */
.page-fade {
  opacity: 0;
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
  }
}

/* 軽いディレイ（カクつき隠しに効く） */
.page-fade.delay {
  animation-delay: 0.1s;
}

/* 動きNGユーザー対応 */
@media (prefers-reduced-motion: reduce) {
  .page-fade {
    opacity: 1;
    animation: none;
  }
}

/* =========================================
  Common Animation
========================================= */

/* 初期状態 */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

/* 表示状態 */
.fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延（あると一気にそれっぽい） */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 動き苦手ユーザー対応 */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
  Common Layout
========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* =========================================
  Page Hero
========================================= */
.page-hero {
  position: relative;
  padding: 120px 0 80px;
  background: url("../img/common/contents_bg.webp") center center / cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-hero__title {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
}

/* =========================================
  Common Title
========================================= */
.section-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.section-title::before {
  content: "";
  width: 216px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* .section-title span {
  font-size: 92px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
	color: transparent;
  -webkit-text-stroke: 2px var(--color-accent);
  text-stroke: 2px var(--color-accent);
} */

.title-en {
  display: block;
  flex-shrink: 0;
  margin-left: 0;
}

.svg-text {
  width: 500px; /* 調整 */
  height: auto;
	display: block;
}

.svg-text text {
  font-size: 92px;
  font-weight: 300;
  fill: transparent;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.title-en.fade-up.is-active .svg-text text {
  animation: drawText 3.5s ease forwards;
}

/* 描画アニメーション */
@keyframes drawText {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================================
  Page Title（下層共通）
========================================= */
.page-title-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 50px;
}

.page-title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100px;
  bottom: 0;
  height: 1px;
  background: var(--color-line);
}

.page-title {
  max-width: var(--container-width);
	color: var(--color-main);
  margin: 0 auto;
  padding: 0 20px 12px;
	font-size: 28px;
}

/* =========================================
  Logo
========================================= */
.site-logo img {
  display: block;
  width: auto;
  height: 32px;
}

/* =========================================
  Button
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 12px 30px;
  border: 1px solid var(--color-white);
  background: var(--color-main);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition:
    opacity var(--transition-base),
    background var(--transition-base),
    color var(--transition-base);
}

.btn:hover {
  opacity: 0.85;
}

.btn--line-left {
  position: relative;
  display: inline-block;
  width: 250px;
  height: 48px;
  padding: 0;
  border: 1px solid #6d86b8;
  background: var(--color-main);
  color: var(--color-white);
  text-align: center;
}

.btn--line-left .btn__line {
  position: absolute;
  top: 50%;
  left: 18px;
  right: calc(50% + 3.5em);
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.btn--line-left .btn__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: max-content;
  max-width: calc(100% - 36px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
	transition: transform 0.3s ease;
	will-change: transform;
	backface-visibility: hidden;
}

.btn--line-left:hover .btn__line {
  transform: translateY(-50%) scaleX(1);
}

.btn:hover .btn__label {
  transform: translate(-50%, -50%) scale(1.05);
}

/* =========================================
  Header
========================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  padding: 0;
}

.site-header__inner {
  margin: 0 0 0 120px;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: 0 0 0 24px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-nav__list a {
  font-size: 14px;
  font-weight: 500;
  transition: opacity var(--transition-base);
}

.site-nav__list a:hover {
  opacity: 0.7;
}

/* =========================================
  Menu Toggle
========================================= */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-main);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
  SP Menu
========================================= */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.sp-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sp-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-white);
  padding: 84px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.sp-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-menu__list li {
  border-bottom: 1px solid #cfd8ea;
}

.sp-menu__list a {
  position: relative;
  display: block;
  padding: 18px 0 18px 24px;
  font-size: 14px;
  text-decoration: none;
}

.sp-menu__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--color-main);
}

/* open時 */
.sp-menu.is-open {
  pointer-events: auto;
}

.sp-menu.is-open .sp-menu__overlay {
  opacity: 1;
}

.sp-menu.is-open .sp-menu__panel {
  transform: translateX(0);
}

/* =========================================
  Footer
========================================= */
.footer {
	margin: 50px 0 0;
}
.footer__nav {
	border-bottom: 1px solid var(--color-line);
	border-top: 1px solid var(--color-line);
  padding: 16px;
}

.footer__nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav-list a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-main);
  text-decoration: none;
}

.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
	gap: 32px;
  padding: 22px 36px 0;
}

.footer__info {
  flex: 1;
  max-width: 50%;
}

.footer__name {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.footer__text {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.8;
}

.footer__map {
  flex: 1;
  max-width: 50%;
}

.footer__map iframe {
  display: block;
  width: 100%;
	height: 100%;
  min-height: 260px;
  border: 0;
}

.footer__links {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.footer__links a {
  font-size: 12px;
  color: var(--color-main);
  text-decoration: none;
}

.footer__links a + a::before {
  content: "|";
  margin: 0 22px;
  color: var(--color-line);
}

.footer__copyright {
	margin: 24px 0 0;
	text-align: center;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-copyright {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.footer__privacy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.footer__privacy img {
  display: block;
  width: 45px;
  height: auto;
  flex-shrink: 0;
}

.footer__privacy p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.8);
	border-top: 1px solid #ddd;
	padding: 12px 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	z-index: 9900;
	font-size: 0.85rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--color-main);
  text-decoration: underline;
}

.cookie-banner button {
  background: var(--color-main);
  color: var(--color-white);
  border: none;
  padding: 6px 14px;
  cursor: pointer;
}

/* =========================================
  Responsive
========================================= */
@media screen and (max-width: 1024px) {
	.site-header__inner{
		margin: 0;
	}
}

@media screen and (min-width: 901px) {
  .sp-menu {
    display: none;
  }
}

@media screen and (max-width: 900px) {
	.site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
		z-index: 100;
  }

	.sp-menu {
    display: block;
  }
}
@media screen and (max-width: 768px) {

	/* page hero */
	.page-hero {
		padding: 100px 0 40px;
	}

	.page-hero__title {
		font-size: 22px;
		text-align: center;
	}

  .section {
    padding: 60px 0 0;
  }

  .section-title {
		display: flex;
		flex-direction: column;
		align-items: start;
		gap: 0;
		font-size: 18px;
  }

  .section-title::before {
		order: 2;
		width: 100%;
		margin-top: 10px;
		margin-bottom: 10px;
  }

	/* page title */
	.page-title-wrap::after {
		right: 20px;
	}

	.page-title {
		font-size: 18px;
		font-weight: 600;
    line-height: 1.4;
		color: var(--color-text);
	}

	.title-ja {
    padding-left: 20px;
		font-weight: 600;
  }

  .title-en {
    order: 3;
		display: block;
		width: 300px;
		margin-left: auto;
  }

  .svg-text {
		display: block;
		width: 320px;
		margin-left: auto;
  }

	.svg-text text {
		text-anchor: end;
		x: 100%;
		font-size: 85px;
	}

  .site-header {
    padding: 0;
  }

  .site-header__inner {
    margin: 0;
    height: 60px;
    padding: 0 16px;
  }

	/* Button */

  .btn {
    min-width: 160px;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
  }

  .btn--line-left .btn__label {
    font-size: 14px;
    max-width: calc(100% - 32px);
  }

  .btn--line-left .btn__line {
    left: 14px;
  }

	/* Footer */
  .footer__nav-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px 0;
		text-align: center;
  }

  .footer__main {
    flex-direction: column;
		gap: 28px;
		padding: 28px 0 0;
  }

  .footer__info {
    max-width: 100%;
    padding-top: 0;
  }

	.footer__text {
		font-size: 14px;
	}

  .footer__map {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .footer__map iframe {
    height: 220px;
  }

  .footer__links {
    margin-top: 24px;
  }
}