/* ============================================
   株式会社サンホシスコ 公式サイト
   Theme: 湘南の爽やかさ × 産業保健の専門性
   ============================================ */

:root {
  --navy: #17455c;
  --ocean: #0f7ba6;
  --ocean-dark: #0c6288;
  --sky: #52b8dc;
  --foam: #ecf6fa;
  --sand: #fbf8f2;
  --text: #2b3f4a;
  --text-light: #5c7482;
  --white: #ffffff;
  --border: #dbe8ee;
  --shadow: 0 4px 24px rgba(23, 69, 92, 0.08);
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  line-height: 1.9;
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; }
ul { list-style: none; }

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

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 40px; width: auto; }

.brand-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
}

.global-nav a {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--ocean);
  border-bottom-color: var(--ocean);
}

.nav-cta {
  background: var(--ocean);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--ocean-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(23, 69, 92, 0.28), rgba(23, 69, 92, 0.18)),
    url("../assets/images/beach-shoreline-hero.jpg") center 60% / cover no-repeat;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 24px;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(23, 69, 92, 0.5);
}

.hero .hero-lead {
  margin-top: 22px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 34em;
  text-shadow: 0 1px 10px rgba(23, 69, 92, 0.6);
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--foam) 0%, #dff0f7 100%);
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  letter-spacing: 0.08em;
}

.page-hero .page-lead {
  margin-top: 14px;
  color: var(--text-light);
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.page-hero .en-label {
  display: block;
  color: var(--sky);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--foam); }
.section.sand { background: var(--sand); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .en-label {
  display: block;
  color: var(--sky);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title h2 {
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: 0.06em;
}

.section-title .section-sub {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--ocean);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(15, 123, 166, 0.35);
}

.btn-primary:hover {
  background: var(--ocean-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ocean);
}

.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card-grid.four { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
  .card-grid.four { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(23, 69, 92, 0.14);
}

.card .card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.card .card-img.fit-full {
  height: 260px;
  object-fit: contain;
  background: var(--foam);
  padding: 12px;
}

.card-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  color: var(--navy);
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.card-body .card-tag {
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  flex: 1;
}

.card-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-link::after { content: " →"; }

/* ---------- Vision cards (resilience) ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.vision-card {
  background: var(--white);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}

.vision-card .vision-en {
  color: var(--ocean);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.vision-card p {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--text-light);
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse > .split-img { order: 2; }

.split-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-text h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.split-text p { margin-bottom: 14px; font-size: 0.96rem; }

/* ---------- Check list ---------- */
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

/* ---------- Instructor cards ---------- */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.instructor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.instructor-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.instructor-head img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--foam);
  flex-shrink: 0;
}

.instructor-head h3 {
  color: var(--navy);
  font-size: 1.1rem;
}

.instructor-head .en-name {
  color: var(--sky);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.instructor-head .affiliation {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

.instructor-card .quali {
  display: inline-block;
  background: var(--foam);
  color: var(--ocean);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

.instructor-card .bio {
  font-size: 0.86rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.instructor-card .message {
  font-size: 0.88rem;
  background: var(--sand);
  border-left: 3px solid var(--sky);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 18px;
  font-size: 3rem;
  color: var(--sky);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial p {
  font-size: 0.94rem;
  padding-left: 12px;
}

.testimonial .attribution {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: right;
}

/* ---------- News ---------- */
.news-list { max-width: 780px; margin: 0 auto; }

.news-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
}

.news-item .news-cat {
  flex-shrink: 0;
  background: var(--foam);
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 12px;
  white-space: nowrap;
}

.news-item p { font-size: 0.94rem; }

.news-item a {
  color: var(--text);
  transition: color 0.2s;
}

.news-item a:hover { color: var(--ocean); text-decoration: underline; }

/* ---------- Media logos / achievements ---------- */
.achieve-strip {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.achieve-strip .achieve-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--sky);
  font-weight: 700;
  margin-bottom: 10px;
}

.achieve-strip .achieve-names {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.achieve-strip .achieve-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: var(--sky);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.step h3 {
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.step p { font-size: 0.88rem; color: var(--text-light); }

/* ---------- Tables ---------- */
.info-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.info-table th {
  color: var(--navy);
  width: 30%;
  white-space: nowrap;
  font-weight: 700;
}

/* ---------- CEO message ---------- */
.ceo-message {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.ceo-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ceo-photo .ceo-name {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-light);
}

.ceo-photo .ceo-name strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.ceo-text p { margin-bottom: 16px; font-size: 0.97rem; }

/* ---------- Mission ---------- */
.mission-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.mission-block .mission-en {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: 0.06em;
}

.mission-block p { margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ocean) 0%, var(--sky) 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}

.cta-band h2 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: 0.06em;
}

.cta-band p {
  margin-top: 12px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.cta-band .btn {
  margin-top: 28px;
  background: var(--white);
  color: var(--ocean);
}

.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Form embed ---------- */
.form-embed {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-embed iframe {
  width: 100%;
  min-height: 1100px;
  border: none;
  display: block;
}

.privacy-note {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 0.88rem;
  color: var(--text-light);
  background: var(--foam);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.privacy-note ul { list-style: disc; padding-left: 20px; }
.privacy-note li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--sky); }

.copyright {
  text-align: center;
  margin-top: 44px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > .split-img { order: 0; }
  .ceo-message { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }

  .global-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .global-nav.open { display: block; }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .global-nav li { width: 100%; }

  .global-nav a {
    display: block;
    padding: 14px 28px;
    border-bottom: none;
  }

  .nav-cta {
    margin: 12px 28px;
    text-align: center;
    border-radius: 999px;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 820px) {
  .section { padding: 56px 0; }
  .hero { min-height: 64vh; }
}
