html {
  overflow-y: scroll;
}

body {
  font-family: "Noto Sans JP", sans-serif;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #fcd34d;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

.gradient-bg {
  background: linear-gradient(135deg, #0284c7 0%, #0c4a6e 100%);
}

.hero-pattern {
  background-color: #0284c7;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.about-section {
  position: relative;
  transition: all 0.3s ease;
}

.about-section:hover {
  transform: translateY(-2px);
}

.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0) 0%, rgba(203, 213, 225, 1) 50%, rgba(203, 213, 225, 0) 100%);
}

.section-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f1f5f9;
  padding: 8px;
  border-radius: 50%;
}

/* フルスクリーンメニュー用のスタイル */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #082f49 0%, #0c4a6e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  padding-top: 2rem; /* ← メニュー全体の開始位置を少し下に */
}

.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-menu ul {
  list-style: none;
  padding: 0;
  width: 80%;
  max-width: 320px;
}

.fullscreen-menu li {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
  opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.1s * var(--delay));
}

.fullscreen-menu.active li {
  transform: translateY(0);
  opacity: 1;
}

/* アイコン＋テキストを横並び・左揃え */
.fullscreen-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 16px 0;
  padding-left: 1rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: white;
  text-align: left;

  /* ▼ ここがアクティブ演出 */
  transition: transform 0.2s ease, color 0.3s ease;
  transform-origin: left;
  touch-action: manipulation;
}

.fullscreen-menu a:active {
  transform: scale(0.97);
  /* 押した感覚 */
  color: #fcd34d;
  /* 押しながら色が変わる */
}

/* ハンバーガーアイコン */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  top: 8px;
}

.hamburger span:nth-child(4) {
  top: 16px;
}

/* メニューのロゴ部分 */
.menu-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 1rem; /* ロゴとメニューの間にスペース */
}

.fullscreen-menu.active .menu-logo {
  opacity: 1;
  transition-delay: 0.2s;
}

/* 閉じるボタン */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 110;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fullscreen-menu.active .close-button {
  opacity: 1;
  transition-delay: 0.2s;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  top: 50%;
  left: 0;
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.close-button:hover::before,
.close-button:hover::after {
  background-color: #fcd34d;
  transition: background-color 0.3s ease;
}