/* ===========================
   CSS Variables & Reset
=========================== */
:root {
  --navy: #1a2c4e;
  --navy-dark: #0f1d33;
  --yellow: #f5b800;
  --yellow-light: #ffd84d;
  --white: #ffffff;
  --gray-light: #f5f6f8;
  --gray: #8a9ab5;
  --text: #1a2c4e;
  --text-light: #5a6a84;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26,44,78,0.12);
  --shadow-lg: 0 8px 40px rgba(26,44,78,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Header
=========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,44,78,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--yellow); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 8px 0;
}

.mobile-nav-link {
  color: rgba(255,255,255,0.85);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.mobile-nav-link:last-child { border-bottom: none; }

.mobile-nav.open { display: flex; }

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  height: 100svh;
  max-height: 800px;      /* PC上限 */
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* モバイルは高さ制限なし */
@media (max-width: 768px) {
  .hero { max-height: none; }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

/* オーバーレイを各スライドの疑似要素に — コンテンツにフィルター不要 */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,29,51,0.75) 0%,
    rgba(26,44,78,0.55) 50%,
    rgba(15,29,51,0.70) 100%
  );
}

.hero-slide.active { opacity: 1; }

/* hero-overlay は不要になったが念のため非表示 */
.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

/* ロゴ：小さく始まり → 横幅50%までゆっくり拡大 → そのまま維持 */
.hero-logo-wrap {
  margin-bottom: 24px;
  opacity: 0;
  animation: logoZoomIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-logo {
  width: 50vw;          /* 最終サイズ = 横幅50% */
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(245,184,0,0.45));
  transform-origin: center center;
}

@keyframes logoZoomIn {
  0%   { opacity: 0;   transform: scale(0.15); }
  20%  { opacity: 1; }
  100% { opacity: 1;   transform: scale(1); }
}


.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.6s forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.9s forwards;
}

.badge {
  background: rgba(245,184,0,0.18);
  border: 1px solid var(--yellow);
  color: var(--yellow-light);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(245,184,0,0.4);
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.2s forwards;
}

.hero-cta:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,184,0,0.5);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  margin: 0 auto;
  animation: scrollPulse 1.8s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Section Commons
=========================== */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--yellow);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ===========================
   Reveal Animation
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===========================
   Character
=========================== */
.character-wrap {
  position: relative;
  display: inline-block;
  text-align: center;
}

.character-wrap.char-left-bubble {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
}

.character-wrap.char-left-bubble .speech-bubble {
  margin-top: 20px;   /* キャラの頭の高さに合わせて調整 */
  margin-bottom: 0;
}

.char-img {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 全身ポーズは大きく */
.char-stand { width: 260px; }

/* 上半身ポーズ */
.char-point  { width: 200px; }
.char-thumb  { width: 200px; }
.char-welcome{ width: 220px; }

.speech-bubble {
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 20px;
  border: 7px solid transparent;
  border-top-color: var(--navy);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 21px;
  border: 6px solid transparent;
  border-top-color: var(--white);
  z-index: 1;
}

.bubble-left {
  border-radius: 16px 16px 16px 4px;
  position: relative;
}

/* アシを左横向きに */
.bubble-left::after {
  bottom: auto;
  top: 50%;
  left: -14px;
  right: auto;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: var(--navy);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.bubble-left::before {
  bottom: auto;
  top: 50%;
  left: -10px;
  right: auto;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--white);
  border-top-color: transparent;
  border-bottom-color: transparent;
  z-index: 1;
}

.bubble-dark {
  background: var(--navy);
  border-color: var(--yellow);
  color: var(--white);
}

.bubble-dark::after { border-top-color: var(--yellow); }
.bubble-dark::before { border-top-color: var(--navy); }

/* ===========================
   About / Catch Section
=========================== */
.catch-section {
  padding: 100px 0 80px;
  background: var(--white);
}

.catch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.catch-text p {
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-item {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 3px solid var(--yellow);
}

.info-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.info-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.catch-character {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ===========================
   Service Section
=========================== */
.service-section {
  padding: 100px 0;
  background: var(--gray-light);
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
}

.service-character {
  display: flex;
  justify-content: flex-end;
}

/* ===========================
   Recruit Section
=========================== */
.recruit-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.recruit-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.recruit-section .container { position: relative; z-index: 1; }
.recruit-section .section-label { color: var(--yellow); }

.recruit-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.benefit-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background 0.3s;
}

.benefit-card:hover {
  background: rgba(245,184,0,0.12);
  border-color: rgba(245,184,0,0.4);
}

.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.benefit-card h3 {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  line-height: 1.8;
}

.recruit-character {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.recruit-character .speech-bubble {
  background: var(--yellow);
  border-color: var(--yellow-light);
  color: var(--navy-dark);
}

.recruit-character .speech-bubble::after { border-top-color: var(--yellow-light); }
.recruit-character .speech-bubble::before { border-top-color: var(--yellow); }

.recruit-cta {
  text-align: center;
}

.btn-recruit {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  padding: 18px 52px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 24px rgba(245,184,0,0.35);
  transition: all 0.3s;
}

.btn-recruit:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,184,0,0.5);
}

/* ===========================
   Map Section
=========================== */
.map-section {
  padding: 100px 0;
  background: var(--white);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.map-wrap iframe { display: block; }

.access-info {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 2;
}

.access-info a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

/* ===========================
   Contact Section
=========================== */
.contact-section {
  padding: 100px 0;
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-character {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.required {
  background: var(--yellow);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e6f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a2c4e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: var(--yellow);
  color: var(--navy-dark);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--navy-dark);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-info p {
  font-size: 0.82rem;
  line-height: 2;
}

.footer-info a {
  color: var(--yellow);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--yellow); }

.footer-copy {
  text-align: center;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   Mobile Responsive
=========================== */
@media (max-width: 768px) {

  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-logo { width: 70vw; max-width: none; }

  .catch-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .catch-character { order: -1; }

  .info-grid { grid-template-columns: 1fr; }

  .service-grid,
  .recruit-benefits {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-form-wrap { padding: 24px 20px; }

  .catch-section,
  .service-section,
  .recruit-section,
  .map-section,
  .contact-section {
    padding: 70px 0;
  }

  .char-stand { width: 200px; }
  .char-point  { width: 160px; }
  .char-thumb  { width: 160px; }
  .char-welcome{ width: 170px; }

  /* char-left-bubble はスマホでは縦並びに */
  .character-wrap.char-left-bubble {
    flex-direction: column;
    align-items: center;
  }

  .character-wrap.char-left-bubble .speech-bubble {
    margin-top: 0;
    margin-bottom: 12px;
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero-cta { padding: 14px 28px; font-size: 0.92rem; }
  .badge { font-size: 0.7rem; padding: 4px 12px; }
  .section-title { font-size: 1.5rem; }
}
