/* ===== まなよみ — 保護者向けページ共通スタイル ===== */

:root {
  --p-bg:        #f7f9fb;
  --p-white:     #ffffff;
  --p-primary:   #2D6A4F;
  --p-primary-d: #1b4332;
  --p-accent:    #40916c;
  --p-text:      #1a1a2e;
  --p-text-sub:  #555566;
  --p-border:    #d0d8e0;
  --p-shadow:    0 2px 12px rgba(0, 0, 0, 0.08);
  --p-radius:    10px;
  --p-font:      'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'YuGothic', 'Meiryo', sans-serif;
  --p-max-w:     760px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--p-font);
  background: var(--p-bg);
  color: var(--p-text);
  line-height: 1.85;
  min-height: 100vh;
}

/* ===== Site Header ===== */
.site-header {
  background: var(--p-primary);
  color: #fff;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header-inner {
  max-width: var(--p-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.04em;
}

.site-logo span {
  font-size: 0.78rem;
  font-weight: normal;
  opacity: 0.85;
  display: block;
  letter-spacing: 0.02em;
}

.header-app-link {
  font-size: 0.82rem;
  color: #c8e6c9;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.15s;
  white-space: nowrap;
}

.header-app-link:hover {
  background: rgba(255,255,255,0.15);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--p-white);
  border-bottom: 1px solid var(--p-border);
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--p-text-sub);
}

.breadcrumb-inner {
  max-width: var(--p-max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumb a {
  color: var(--p-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--p-border);
}

/* ===== Main Content ===== */
.page-main {
  max-width: var(--p-max-w);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: bold;
  color: var(--p-primary-d);
  margin-bottom: 8px;
  line-height: 1.4;
}

.page-lead {
  font-size: 1rem;
  color: var(--p-text-sub);
  margin-bottom: 32px;
  border-left: 4px solid var(--p-accent);
  padding-left: 12px;
}

.page-section {
  margin-bottom: 40px;
}

.page-section h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--p-primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--p-border);
}

.page-section h3 {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--p-text);
  margin: 20px 0 8px;
}

.page-section p {
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.9;
}

.page-section ul,
.page-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.page-section li {
  margin-bottom: 6px;
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ===== Info Box ===== */
.info-box {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--p-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.info-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #1b5e20;
}

/* ===== Warning Box ===== */
.warn-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--p-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.warn-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #6d4c00;
}

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--p-white);
  border-radius: var(--p-radius);
  padding: 20px 16px;
  box-shadow: var(--p-shadow);
  text-align: center;
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.feature-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--p-primary-d);
  margin-bottom: 6px;
}

.feature-card-body {
  font-size: 0.85rem;
  color: var(--p-text-sub);
  line-height: 1.7;
}

/* ===== Table ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border: 1px solid var(--p-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #e8f5e9;
  font-weight: bold;
  color: var(--p-primary-d);
}

.data-table tr:nth-child(even) td {
  background: #f9fbf9;
}

/* ===== CTA Button ===== */
.cta-btn {
  display: inline-block;
  background: var(--p-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 10px rgba(45,106,79,0.3);
}

.cta-btn:hover {
  background: var(--p-primary-d);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-area {
  text-align: center;
  padding: 24px 0 8px;
}

/* ===== Contact Form ===== */
.contact-form {
  background: var(--p-white);
  border-radius: var(--p-radius);
  padding: 28px 24px;
  box-shadow: var(--p-shadow);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--p-text);
  margin-bottom: 6px;
}

.form-label .required {
  color: #c62828;
  margin-left: 4px;
  font-size: 0.8rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--p-font);
  color: var(--p-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--p-accent);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.15);
}

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

.form-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--p-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  font-family: var(--p-font);
  cursor: pointer;
  transition: background 0.15s;
}

.form-submit:hover {
  background: var(--p-primary-d);
}

/* ===== Nav Pages Links ===== */
.page-nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.page-nav-card {
  background: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 16px;
  text-decoration: none;
  color: var(--p-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.page-nav-card:hover {
  border-color: var(--p-accent);
  box-shadow: 0 2px 10px rgba(64,145,108,0.12);
}

.page-nav-card-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.page-nav-card-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: var(--p-primary-d);
  margin-bottom: 4px;
}

.page-nav-card-desc {
  font-size: 0.78rem;
  color: var(--p-text-sub);
  line-height: 1.5;
}

/* ===== Site Footer ===== */
.site-footer {
  background: var(--p-primary-d);
  color: rgba(255,255,255,0.75);
  padding: 32px 16px;
  margin-top: 0;
}

.site-footer-inner {
  max-width: var(--p-max-w);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.35rem;
  }

  .contact-form {
    padding: 20px 16px;
  }

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