/* 一般社団法人創研 — static site */
:root {
  --green: #6bb89a;
  --green-dark: #4a9a7c;
  --cyan: #5eb8d4;
  --cyan-dark: #3a9ab8;
  --white: #ffffff;
  --bg-soft: #f4faf8;
  --bg-alt: #eef7fb;
  --text: #1e3339;
  --text-muted: #5a6f76;
  --border: #d4e8e2;
  --shadow: 0 4px 24px rgba(30, 51, 57, 0.08);
  --radius: 12px;
  --header-h: 64px;
  --max-w: 720px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--cyan-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.site-logo img:first-child {
  height: 36px;
  width: auto;
}

.site-logo__text {
  height: 28px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px 16px 20px;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--bg-soft);
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 8px 16px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    justify-content: flex-end;
    row-gap: 2px;
  }

  .site-nav a {
    padding: 6px 9px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (min-width: 1100px) {
  .site-nav ul {
    flex-wrap: nowrap;
  }

  .site-nav a {
    padding: 8px 11px;
    font-size: 14px;
  }
}

/* Main layout */
main {
  min-height: calc(100vh - var(--header-h) - 120px);
}

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

.container--wide {
  max-width: 960px;
}

/* Hero (top) */
.hero {
  background: linear-gradient(165deg, var(--bg-soft) 0%, var(--bg-alt) 55%, var(--white) 100%);
  padding: 48px 20px 56px;
  text-align: center;
}

.hero__logo {
  width: 80px;
  height: auto;
  margin: 0 auto 20px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero__pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 32px;
  text-align: left;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.pillar strong {
  display: block;
  color: var(--green-dark);
  font-size: 14px;
  margin-bottom: 4px;
}

.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(94, 184, 212, 0.35);
}

.btn--primary:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid var(--green);
  color: var(--green-dark);
  background: transparent;
}

.btn--outline:hover {
  background: var(--bg-soft);
}

/* Sections (vertical scroll blocks on top) */
.section {
  padding: 48px 20px;
}

.section:nth-child(even) {
  background: var(--bg-soft);
}

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-dark);
  margin-bottom: 8px;
}

.section h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  color: var(--text);
}

.section p,
.section li {
  color: var(--text-muted);
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  font-size: 15px;
}

.card a {
  font-weight: 600;
  font-size: 14px;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card--link:hover {
  border-color: var(--green);
  box-shadow: 0 6px 28px rgba(30, 51, 57, 0.12);
}

.card--link h3 {
  color: var(--green-dark);
}

.materials-soon {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.materials-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(45, 106, 79, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.card--link .materials-tag + h3 {
  margin-top: 0;
}

.content kbd {
  font-size: 0.85em;
  font-family: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

.materials-hint {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.content code {
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.faq-list {
  margin: 0 0 40px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan-dark);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-alt));
  padding: 40px 20px 36px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font-size: 1.6rem;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  margin: 12px auto 0;
  max-width: var(--max-w);
  color: var(--text-muted);
  font-size: 15px;
}

/* Content blocks */
.content {
  padding: 40px 20px 56px;
}

.content h2 {
  margin: 36px 0 16px;
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  color: var(--text);
}

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

.content h3 {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.content h4 {
  margin: 20px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan-dark);
}

.content ul,
.content ol {
  padding-left: 1.25em;
  color: var(--text-muted);
}

.content li {
  margin-bottom: 8px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 28%;
  color: var(--text);
  font-weight: 600;
  padding-right: 16px;
}

/* 沿革タイムライン */
.history {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 3px solid var(--green);
}

.history li {
  position: relative;
  padding: 0 0 28px 24px;
  color: var(--text-muted);
}

.history li:last-child {
  padding-bottom: 0;
}

.history li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--cyan);
}

.history__date {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.history__title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.history p {
  margin: 0;
  font-size: 15px;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin: 24px 0;
}

.profile img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
}

@media (min-width: 600px) {
  .profile {
    flex-direction: row;
    align-items: flex-start;
  }

  .profile > div {
    flex: 1;
    min-width: 0;
  }
}

.profile .history {
  margin-top: 8px;
}

.map-embed {
  position: relative;
  width: 100%;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  max-height: 360px;
  background: var(--bg-soft);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed--page {
  aspect-ratio: 1 / 1;
  max-height: none;
  margin: 24px 0 28px;
}

@media (min-width: 600px) {
  .map-embed--page {
    aspect-ratio: 16 / 10;
  }
}

.service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--cyan-dark);
  margin-bottom: 12px;
}

.note-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--cyan);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-muted);
  margin: 20px 0;
}

.placeholder-box {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group .required {
  color: #c45c5c;
  font-size: 12px;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

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

.form-actions {
  margin-top: 28px;
}

.form-message {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 15px;
}

.form-message--ok {
  background: #e8f5ef;
  border: 1px solid var(--green);
  color: var(--green-dark);
}

.form-message--err {
  background: #fdeeee;
  border: 1px solid #e0a0a0;
  color: #8b3a3a;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #b8c8ce;
  padding: 40px 20px 32px;
  font-size: 14px;
}

.site-footer a {
  color: #9ed4e8;
}

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

.site-footer__org {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 24px 0 0;
  font-size: 12px;
  color: #7a9199;
}

/* Desktop — スマホはそのまま、広い画面で余白を活かす */
@media (min-width: 768px) {
  :root {
    --max-w: 960px;
  }

  body {
    font-size: 17px;
  }

  .hero {
    padding: 64px 24px 80px;
  }

  .hero__logo {
    width: 96px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 16px;
  }

  .hero__lead {
    max-width: 640px;
    font-size: 17px;
    margin-bottom: 36px;
  }

  .hero__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--max-w);
    margin-bottom: 40px;
  }

  .pillar strong {
    font-size: 15px;
  }

  .pillar p {
    font-size: 15px;
  }

  .section {
    padding: 56px 24px;
  }

  .section h2 {
    font-size: 1.65rem;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-hero {
    padding: 48px 24px 44px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero p {
    font-size: 16px;
  }

  .content {
    padding: 48px 24px 64px;
  }

  .content h2 {
    font-size: 1.4rem;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
