/* Styles */
/* CSS3 Custom Properties */
:root {
  --tiffany-blue: #81D8D0;
  --makoto-blue: #202f55;
  --makoto-blue-pale: rgba(32, 47, 85, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --radius-large: 3rem;
  --radius-medium: 2.5rem;
  --radius-full: 9999px;
  --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  background-color: var(--tiffany-blue);
  color: #3a3a3a;
  /* 丸みのあるフォントをデフォルトに設定 */
  font-family: 'M PLUS Rounded 1c', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* 誠の文字専用の明朝体クラス */
.font-makoto {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
}

/* セクション共通設定 */
.section-padding {
  padding: 120px 20px;
}

/* Glassmorphism Components */
.glass-base {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-large);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: 0.3s ease;
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Specific Visual Elements */
.makoto-symbol {
  color: var(--makoto-blue);
  text-shadow: 0 0 25px rgba(32, 47, 85, 0.4);
  position: relative;
}

.hero-bg-text {
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, var(--makoto-blue-pale) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

.circle-accent {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.card-img-wrapper {
  border-radius: var(--radius-medium);
  overflow: hidden;
  margin: 1rem;
}

.card-img-fit {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.85;
  transition: 0.6s ease;
}

.glass-card:hover .card-img-fit {
  opacity: 1;
  transform: scale(1.1);
}

/* Animations */
@keyframes softFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transition: var(--transition-smooth);
}

.reveal.active {
  animation: softFadeUp 1.2s ease-out forwards;
}


/* CONTACTページ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

.input-field {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1rem;
  width: 100%;
  transition: all 0.3s;
  color: var(--indigo-blue);
  font-weight: 500;
}

.input-field:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--indigo-blue);
}

.input-field::placeholder {
  color: rgba(0, 65, 106, 0.4);
}

.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--indigo-blue);
  border-radius: 2px;
}

.submit-btn {
  background: var(--indigo-blue);
  color: white;
  padding: 1.25rem 4rem;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.2em;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 65, 106, 0.15);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 65, 106, 0.25);
  background: #002d4a;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  font-size: 0.9rem;
}

/* モーダルスタイル */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(129, 216, 208, 0.03);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(129, 216, 208, 0.3);
  border-radius: var(--radius-xl);
  max-width: 800px;
  max-height: 80vh;
  width: 90%;
  padding: 3rem;
  position: relative;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  color: #333333;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--indigo-blue);
}

.modal-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--indigo-blue);
}

.modal-content p,
.modal-content ul {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-content ul {
  list-style: disc;
  padding-left: 2rem;
}

.modal-content li {
  margin-bottom: 0.5rem;
}