/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "YuGothic", "Yu Gothic", "Meiryo", sans-serif;
  color: #222;
  background-color: #F7F9FB;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ヘッダー */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e8ec;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #4A90E2;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
}

.nav a:hover {
  background-color: #e7f1ff;
}

.nav-cta {
  background-color: #4A90E2;
  color: #fff;
}

/* ヒーロー */

.hero {
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #E7F1FF, #FDF7E5);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-text h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.hero-sub {
  margin: 0 0 24px;
  color: #444;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 40px;
}

/* ボタン */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background-color: #4A90E2;
  color: #fff;
}

.btn.primary:hover {
  background-color: #3a7ad0;
}

.btn.secondary {
  background-color: #fff;
  color: #4A90E2;
  border-color: #4A90E2;
}

.btn.secondary:hover {
  background-color: #f3f7ff;
}

/* セクション共通 */

.section {
  padding: 64px 0;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 24px;
  text-align: center;
}

.section-lead {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 640px;
  color: #555;
}

/* カード */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

/* 課題 */

.problems {
  background-color: #F7F9FB;
}

/* ソリューション */

.solution-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.flow-step {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #4A90E2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* 機能 */

.features {
  background-color: #ffffff;
}

/* 比較表 */

.compare {
  background-color: #F0F4FA;
}

.compare-table-wrapper {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e8ec;
  font-size: 14px;
}

.compare-table th {
  background-color: #f5f7fb;
}

/* 導入メリット */

.benefits-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.benefit-block {
  flex: 1 1 260px;
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.benefit-block h2 {
  font-size: 18px;
  text-align: left;
  margin-bottom: 12px;
}

.benefit-block ul {
  padding-left: 20px;
  margin: 0;
}

/* フロー */

.flow-list {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 20px;
}

/* 料金 */

.pricing {
  background-color: #ffffff;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.price-main {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-card .note {
  font-size: 12px;
  color: #777;
}

/* お問い合わせ */

.contact {
  background-color: #F0F4FA;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccd3dd;
  font-size: 14px;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

.form-actions {
  text-align: right;
}

/* フッター */

.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.footer-right {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.footer-right a {
  color: #e5e7eb;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* レスポンシブ */

@media (max-width: 768px) {
  .hero {
    padding-top: 56px;
  }

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

  .nav {
    display: none;
  }
}

/* ============================
   登園ダッシュボード用スタイル
   ============================ */

/* 警告バー */
.alert {
  background-color: #ffdddd;
  color: #b30000;
  padding: 12px 16px;
  border-left: 6px solid #e60000;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 600;
}

.hidden {
  display: none;
}

/* フィルターボタン */
#filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

#filters button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #4A90E2;
  background-color: #fff;
  color: #4A90E2;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

#filters button:hover {
  background-color: #e7f1ff;
}

/* ダッシュボード */
#dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px;
}

/* 園児カード */
.child-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border-left: 6px solid transparent;
  transition: 0.2s;
}

.child-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.child-card span {
  font-size: 13px;
  color: #666;
}

/* 状態別カラー */
.child-card.checked_in {
  border-left-color: #4CAF50;
}

.child-card.checked_out {
  border-left-color: #9E9E9E;
}

.child-card.not_arrived {
  border-left-color: #FFC107;
}

.child-card.absent {
  border-left-color: #E53935;
}

/* 連絡なし（無断欠席） */
.child-card.no_contact {
  border-left-color: #e60000;
  background-color: #fff5f5;
}

.child-card p strong {
  color: #E53935;
}

/* スマホ対応 */
@media (max-width: 600px) {
  #dashboard {
    grid-template-columns: 1fr;
  }
}

/* クラス別フィルター */
#class-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

#class-filters button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #4A90E2;
  background-color: #ffffff;
  color: #4A90E2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#class-filters button:hover {
  background-color: #e7f1ff;
}

#class-filters button.active {
  background-color: #4A90E2;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.call-box {
  margin-top: 12px;
}

.call-btn {
  display: inline-block;
  padding: 8px 14px;
  background-color: #E53935;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.call-btn:hover {
  background-color: #c62828;
}

