/* ===========================
   株式会社ClownCrown - 共通スタイル
   =========================== */

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

:root {
  --primary: #f4a535;
  --primary-dark: #d4881a;
  --secondary: #5bb8d4;
  --accent: #e8637a;
  --bg-light: #fffdf7;
  --bg-section: #fef9ef;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border: #e8e0d0;
  --footer-bg: #3a3a3a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.8;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.site-logo img { height: 56px; width: auto; }
.site-logo .logo-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
  line-height: 1.3;
}
.site-logo .logo-sub { font-size: 11px; color: var(--text-light); }

/* メインナビ */
.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: var(--white);
  opacity: 1;
}

/* 閉じるボタンはデフォルト非表示 */
.close-nav { display: none; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   PAGE HERO
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 28px; letter-spacing: 0.05em; }
.page-hero .en { font-size: 13px; opacity: 0.8; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===========================
   TOP HERO (トップページ専用)
   =========================== */
.top-hero {
  background: linear-gradient(135deg, #fff8e8 0%, #fef0c8 50%, #fde8b0 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.top-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,165,53,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.top-hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.top-hero h1 {
  font-size: clamp(24px, 5vw, 40px);
  color: var(--primary-dark);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 16px;
}
.top-hero p { font-size: 16px; color: var(--text-light); margin-bottom: 28px; }
.top-hero .hero-img {
  margin: 30px auto 0;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.top-hero .hero-img img { width: 100%; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  font-weight: bold;
  border-radius: 30px;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(244,165,53,0.4);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); opacity: 1; }
.btn-secondary {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(91,184,212,0.4);
}
.btn-secondary:hover { background: #3d9ab8; }

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}
.section-alt { background: var(--bg-section); }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 26px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title .en {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

/* ===========================
   CARD GRID
   =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; }
.card-body h3 { font-size: 17px; margin-bottom: 10px; color: var(--primary-dark); }
.card-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===========================
   CONTENT BLOCK (テキスト＋画像)
   =========================== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block h2 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.content-block p { color: var(--text-light); line-height: 1.9; }

.content-block .img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.content-block .img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ===========================
   TOP - サービスリンク
   =========================== */
.service-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-nav-item {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  transition: background 0.2s;
}
.service-nav-item:hover { background: var(--bg-section); }
.service-nav-item .en { font-size: 12px; color: var(--primary); font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.service-nav-item .ja { font-size: 15px; font-weight: bold; }

/* ===========================
   NEWS LIST
   =========================== */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 13px; color: var(--text-light); white-space: nowrap; min-width: 90px; margin-top: 3px; }
.news-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary-dark); }
.news-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===========================
   TABLE (会社概要)
   =========================== */
.info-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th {
  width: 140px;
  font-weight: bold;
  color: var(--primary-dark);
  background: #fff8ec;
  white-space: nowrap;
}
.info-table td { color: var(--text); }

/* ===========================
   CONTACT FORM
   =========================== */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}
.form-group label .req {
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244,165,53,0.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { padding: 16px 56px; font-size: 16px; }

/* ===========================
   PRIVACY
   =========================== */
.privacy-content {
  max-width: 750px;
  margin: 0 auto;
}
.privacy-content h2 {
  font-size: 18px;
  color: var(--primary-dark);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.privacy-content p { color: var(--text-light); line-height: 1.9; margin-bottom: 12px; }

/* ===========================
   CHECK LIST
   =========================== */
.check-list { margin: 16px 0 20px; }
.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-light);
  font-size: 14px;
}
.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ===========================
   BREADCRUMB
   =========================== */
.breadcrumb {
  background: var(--bg-section);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb .container { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 48px 0 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo .logo-text { color: #fff; font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.footer-logo p { font-size: 13px; line-height: 1.8; }
.footer-nav h3 { color: #fff; font-size: 14px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #555; }
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 13px; color: #aaa; }
.footer-nav a:hover { color: var(--primary); opacity: 1; }
.footer-info h3 { color: #fff; font-size: 14px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #555; }
.footer-info p { font-size: 13px; line-height: 1.9; }
.footer-sns { display: flex; gap: 12px; margin-top: 16px; }
.footer-sns a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #555; border-radius: 50%;
  font-size: 14px; color: #fff;
  transition: background 0.2s;
}
.footer-sns a:hover { background: var(--primary); opacity: 1; }
.footer-bottom {
  border-top: 1px solid #555;
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* ===========================
   ANCHOR NAV (ページ内目次)
   =========================== */
.anchor-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.anchor-nav a {
  padding: 8px 18px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  color: var(--primary-dark);
  transition: background 0.2s, color 0.2s;
}
.anchor-nav a:hover { background: var(--primary); color: white; opacity: 1; }

/* ===========================
   MORE LINK
   =========================== */
.more-link {
  text-align: center;
  margin-top: 32px;
}
.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: var(--primary-dark);
  font-size: 14px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.more-link a:hover { color: var(--primary); opacity: 1; }

/* ===========================
   TOP SECTIONS (index 専用)
   =========================== */
.top-news-section, .top-about-section, .top-childcare-section { padding: 60px 0; }
.top-about-section { background: var(--bg-section); }

/* ===========================
   RECRUIT
   =========================== */
.recruit-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  text-align: center;
}
.recruit-box img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.recruit-box-body { padding: 32px; }
.recruit-box-body .catchcopy {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.recruit-box-body p { color: var(--text-light); margin-bottom: 24px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .header-inner { padding: 10px 16px; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.97); z-index: 200; flex-direction: column; align-items: center; justify-content: center; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 12px; text-align: center; }
  .main-nav a { font-size: 18px; padding: 12px 24px; }
  .hamburger { display: flex; }
  .close-nav { display: block; position: absolute; top: 20px; right: 20px; font-size: 28px; cursor: pointer; background: none; border: none; color: var(--text); }

  .content-block { grid-template-columns: 1fr; gap: 24px; }
  .content-block.reverse { direction: ltr; }

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

  .page-hero h1 { font-size: 22px; }

  .info-table th { width: 100px; }
}

@media (max-width: 480px) {
  .service-nav { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 6px; }
}

/* ===== オープニングアニメーション ===== */
#opening {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: openingSlideUp 0.8s ease 1.8s forwards;
}

#opening-logo {
  width: 180px;
  max-width: 50vw;
  opacity: 0;
  transform: translateY(20px);
  animation: logoFadeIn 0.8s ease 0.3s forwards;
}

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

@keyframes openingSlideUp {
  to {
    transform: translateY(-100%);
  }
}

/* コンテンツは最初は少し下に置いてフェードイン */
body.loaded .site-header,
body.loaded section,
body.loaded nav,
body.loaded footer {
  animation: contentFadeUp 0.6s ease forwards;
}

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

/* ===== フルスクリーンヒーロー（トップページ専用） ===== */
.fullscreen-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* コンテンツをヒーローの上にスライドさせるためのラッパー */
.page-content-wrap {
  position: relative;
  z-index: 1;
  margin-top: 100vh;
  background: var(--bg-light);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  border-radius: 20px 20px 0 0;
}

/* 画像上のヘッダー */
.hero-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(0,0,0,0.25);
}

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

.hero-header .main-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.hero-header .main-nav a:hover,
.hero-header .main-nav a.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.hero-header .hamburger span {
  background: #fff;
}

/* 画像上のテキスト */
.hero-text {
  position: absolute;
  bottom: 60px;
  left: 40px;
  z-index: 10;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-text h1 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-text {
    left: 20px;
    bottom: 40px;
  }
}
