/* sakusakudev - common stylesheet
   「サクサク」サイトファミリー（サクサク中学受験 / サクサク幼児 等）と
   トーンを合わせたヘッダー・フッターのデザイン言語を採用。 */
:root {
  --bg: #f9fafc;
  --surface: #ffffff;
  --text: #2a2f3a;
  --text-muted: #6b7280;
  --border: #e1e6ef;
  --navy: #4a6f6f;
  --brand: #5f9090;
  --brand-dark: #4f7a7a;
  --accent: #5f9090;
  --accent-dark: #4f7a7a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 30, 60, 0.06);
  /* サクサクファミリー（サクサク中学受験・サクサク幼児）とヘッダー/フッターの
     横幅を揃えるため、study_home.html の --max-width と同じ値にしている。 */
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top bar ===== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: block;
}

.brand-text .name {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand-text .tag {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  padding: 4px 2px;
}

.top-link:hover {
  color: var(--brand);
  text-decoration: underline;
}


/* ===== Main nav (slim gradient bar) ===== */
.mainnav {
  background: linear-gradient(90deg, var(--navy), var(--brand));
}

.mainnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.nav-links a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 18px;
  white-space: nowrap;
}

.nav-links a.current {
  background: rgba(255, 255, 255, 0.16);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-note {
  font-size: 12px;
  color: #e6f2f0;
  padding: 8px 0;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.app-card:hover {
  box-shadow: 0 6px 18px rgba(20, 30, 60, 0.1);
  transform: translateY(-2px);
}

.app-card .icon,
.app-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.app-hero-icon {
  width: 64px;
  height: 64px;
}

.app-card h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.app-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff4da;
  color: #8a6100;
  width: fit-content;
}

.status-badge.live {
  background: #e3f5ea;
  color: var(--accent-dark);
}

section {
  margin-bottom: 36px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.app-title-row h1 {
  margin: 0;
}

h2 {
  font-size: 1.2rem;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
  margin: 32px 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.button:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.button.secondary {
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.feature-list li strong {
  color: var(--brand-dark);
}

.screenshot-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.screenshot-placeholder {
  width: 160px;
  height: 320px;
  border: 1px dashed #c3ccdd;
  border-radius: 16px;
  background: #eef2f8;
  color: #8792a6;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.screenshot-img {
  width: 160px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  cursor: zoom-in;
}

/* ===== Screenshot lightbox（クリックで拡大表示。assets/site.jsから制御） ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 50, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(92vw, 480px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
/* サイトアイコン（assets/icon-sakusakudev.png）のグラデーション色に合わせたフッター */
footer.site-footer {
  background: linear-gradient(135deg, #19d6c5, #17a8b2);
  color: #0e3a3a;
  margin-top: 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #0e3a3a;
  text-decoration: none;
  font-weight: 600;
}

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

.footer-note {
  background: #1a2727;
  font-size: 11.5px;
  color: #b8d0d0;
  padding: 10px 20px;
  text-align: center;
}

.policy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  /* 全体の--max-widthをファミリーサイトに合わせて広げた分、長文の
     プライバシーポリシー本文だけは読みやすい行長に収める */
  max-width: 760px;
}

.policy-box h2 {
  margin-top: 28px;
}

.policy-box h2:first-child {
  margin-top: 0;
}

.meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ===== 言語切替（日本語 / English） =====
   日本語ページはサイト直下、英語ページは en/ 以下に同じ構成で置き、
   各ページのヘッダーに「相手言語の同じページ」へのリンクを置いている。 */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
}

.lang-toggle a {
  padding: 4px 12px;
  color: #374151;
  font-weight: 600;
  text-decoration: none;
}

.lang-toggle a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.lang-toggle a:not([aria-current="page"]):hover {
  background: #eef5f5;
  text-decoration: none;
}

/* ブラウザの言語が相手言語のときだけ assets/site.js が表示する案内バー */
.lang-banner {
  background: #eef7f6;
  border-bottom: 1px solid var(--border);
}

.lang-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 20px;
  font-size: 0.88rem;
}

.lang-banner a {
  font-weight: 700;
}

.lang-banner-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.policy-box .link-list {
  padding-left: 1.3em;
  margin: 8px 0 0;
}

.notice {
  background: #fff8ec;
  border: 1px solid #f0d9a6;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #6b4f10;
}
