/* =============================================
   kcommon.css — 東大阪労働基準協会 共通スタイル
   k/ フォルダ内の各講習ページで共有
   ============================================= */

/* ── VARIABLES ── */
:root {
  --ink: #1e2e24;
  --paper: #eef6f0;
  --warm: #5aab76;
  --accent: #2e7d52;
  --muted: #5a7a66;
  --light: #cce8d6;
  --white: #fcfffe;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BODY ── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 90px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 0.9rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--warm);
  background: var(--white);
  z-index: 110;
}

.logo a { text-decoration: none; color: inherit; }
.logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.logo span {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  font-weight: 300;
  margin-top: 3px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
nav a:hover { color: var(--accent); }
nav a.active { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO STRIP ── */
.hero-strip {
  background: #c8ecd4;
  padding: 1.8rem 6vw 1.6rem;
  position: relative;
  overflow: hidden;
}
.hero-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm), #a8e6be);
}

.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.hero-strip h1 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.hero-strip .subtitle {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ── CONTAINER ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 6vw 5rem;
}

/* ── SECTION TITLE ── */
.sec-title {
  font-size: 0.9rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--light), transparent);
}

/* ── ACCORDION ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 3.5rem;
}

.acc-item {
  background: var(--white);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.acc-trigger:hover { background: rgba(90,171,118,0.08); }

.acc-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  min-width: 1.6rem;
  opacity: 0.8;
}

.acc-icon {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.acc-icon::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s;
}
.acc-item.open .acc-icon { background: var(--accent); border-color: var(--accent); }
.acc-item.open .acc-icon::after {
  border-color: #fff;
  transform: rotate(-135deg) translateY(-2px);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-body-inner {
  padding: 0 1.6rem 1.6rem 3.6rem;
  font-size: 0.88rem;
  line-height: 2;
  color: var(--muted);
}
.acc-body-inner p + p { margin-top: 0.8em; }
.acc-body-inner ul { list-style: none; margin-top: 0.5em; }
.acc-body-inner li { padding-left: 1.2em; position: relative; line-height: 2; }
.acc-body-inner li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--warm);
  font-size: 0.7rem;
  top: 5px;
}
.acc-body-inner a { color: var(--accent); }
.acc-body-inner a:hover { text-decoration: underline; }

/* ── INFO SECTION ── */
.info-section { margin-bottom: 3.5rem; }

.legal-box {
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: 1.6rem 2rem;
  font-size: 0.86rem;
  line-height: 2;
  color: var(--muted);
}
.legal-box strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* ── SCHEDULE TABLE ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.schedule-table th {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1rem;
  text-align: left;
  letter-spacing: 0.05em;
}
.schedule-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--light);
  background: var(--white);
  color: var(--muted);
  vertical-align: middle;
}
.schedule-table tr:last-child td { border-bottom: none; }

/* ── BADGES ── */
.badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 0.25em 0.7em;
  border-radius: 2px;
  display: inline-block;
}
.badge.open   { background: #ff6347; color: #f4f9f6; }
.badge.soon   { background: #e8f7ef; color: #2e7d52; }
.badge.closed { background: var(--light); color: var(--muted); }

/* ── CURRICULUM TABLE ── */
.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 0.5rem;
}
.curriculum-table th {
  background: var(--light);
  color: var(--accent);
  font-weight: 700;
  padding: 0.6rem 1rem;
  text-align: left;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}
.curriculum-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light);
  color: var(--muted);
  vertical-align: middle;
}
.curriculum-table tr:last-child td { border-bottom: none; }
.total-row td { background: #f0faf4; color: var(--ink) !important; }

.kind-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 0.2em 0.65em;
  border-radius: 2px;
  background: #dff0e8;
  color: var(--accent);
}
.kind-badge.practice { background: #fff3e0; color: #8b4a00; }

/* ── DETAIL TABLE ── */
.detail-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  background: var(--white);
}
.detail-label {
  padding: 1.2rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-right: 2px solid var(--light);
  display: flex;
  align-items: flex-start;
}
.detail-value {
  padding: 1.1rem 1.4rem;
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--muted);
}
.detail-value small {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}
.detail-value a { color: var(--accent); }
.detail-value a:hover { text-decoration: underline; }

/* ── APPLY BANNER ── */
.apply-banner {
  background: #1e4d34;
  padding: 1.6rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.apply-banner h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #eef6f0;
  letter-spacing: 0.06em;
}
.apply-banner p {
  font-size: 0.82rem;
  color: rgba(200,235,215,0.65);
  margin-top: 0.4rem;
  line-height: 1.7;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #7dd4a0;
  color: #1e2e24;
  padding: 0.9rem 2rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-apply:hover { background: #a8e6be; transform: translateX(4px); }

/* ── FOOTER ── */
footer { background: #1e4d34; padding: 3.5rem 6vw 2rem; }
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-org .org-name {
  font-size: 1rem;
  font-weight: 700;
  color: #eef6f0;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-org p {
  font-size: 0.82rem;
  color: rgba(200,235,215,0.7);
  line-height: 2;
  letter-spacing: 0.03em;
}
.footer-nav h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  color: var(--warm);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.footer-nav a {
  font-size: 0.84rem;
  color: #f0e1a4 !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.footer-nav a::before {
  content: '—';
  font-size: 0.6rem;
  color: var(--warm);
  opacity: 0.6;
}
.footer-nav a:hover { color: #a8e6be; }
.footer-bottom {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: rgba(200,235,215,0.4);
  letter-spacing: 0.15em;
}




/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.1rem;
    z-index: 150;
  }
  nav.open { display: flex; }
  nav a { font-size: 1.1rem; color: var(--ink); }
  .apply-banner { flex-direction: column; }
  .container { padding: 2.5rem 6vw 4rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
/* ── map ── */
.map-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  background: #acd8aa;
  color: #444444;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  border: 1px solid #444444;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 0.4em;
}
.map-badge:hover {
  background: #444444;
  color: #ffffff;
}

@media (max-width: 500px) {
  .detail-row { grid-template-columns: 1fr; }
  .detail-label { border-right: none; border-bottom: 1px solid var(--light); padding-bottom: 0.5rem; }
}
