/* ================================
   WhiskerCod — base styles
   ================================ */
:root {
  --emerald-900: #073f38;
  --emerald-800: #0a5049;
  --emerald-700: #0d635a;
  --emerald-600: #109485;
  --emerald-500: #1cbfa5;
  --emerald-400: #34e2c4;
  --emerald-300: #78f0dc;
  --emerald-100: #e6fbf6;
  --emerald-50:  #f1fdf9;

  --ink: #10201b;
  --muted: #5b6b64;
  --paper: #ffffff;
  --line: #dfeae4;

  --font-jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-en: "Poppins", "Noto Sans JP", sans-serif;

  --container: 1160px;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 61, 51, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 61, 51, 0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--emerald-400);
  color: #06231b;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--emerald-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 63, 56, 0.0);
  backdrop-filter: blur(0px);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(7, 63, 56, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--emerald-400);
  color: #06231b;
  font-size: 0.85rem;
  font-weight: 700;
}
.logo-mark-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-text { font-size: 1.15rem; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav a {
  color: #f2f8f4;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-300);
  transition: width var(--transition);
}
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--emerald-900);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,63,56,0.50) 0%, rgba(7,63,56,0.68) 55%, rgba(7,63,56,0.90) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 76px;
}
.eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: var(--emerald-300);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 300;
  color: var(--emerald-100);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--emerald-300);
  border-radius: 999px;
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}
.section-alt {
  background: var(--emerald-50);
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--emerald-500);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--emerald-900);
}

/* ---------- Concept ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.concept-text p {
  font-size: 1.05rem;
  color: var(--muted);
}
.concept-cards {
  display: grid;
  gap: 20px;
}
.concept-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.concept-card-green {
  background: #eafbf5;
  border-color: #cdeee5;
}
.concept-card-cream {
  background: #fff6e9;
  border-color: #f4e6cf;
}
.concept-card-sky {
  background: #eaf4fb;
  border-color: #d2e6f4;
}
.concept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-300);
}
.concept-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.concept-card h3 {
  font-size: 1.1rem;
  color: var(--emerald-800);
  margin-bottom: 8px;
}
.concept-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 専門家バッジ ---------- */
.experts {
  margin-top: 72px;
  text-align: center;
}
.experts-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--emerald-800);
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
  padding: 0 18px;
}
.experts-title::before,
.experts-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--emerald-300);
}
.experts-title::before { left: -20px; }
.experts-title::after  { right: -20px; }

.expert-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.expert-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.expert-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-300);
}
.expert-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-100);
  font-size: 1.4rem;
}
.expert-body { display: flex; flex-direction: column; }
.expert-name {
  font-weight: 700;
  color: var(--emerald-800);
  font-size: 1.05rem;
}
.expert-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Activities (card grid) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.info-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.info-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.info-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.info-card:hover .info-card-media img {
  transform: scale(1.06);
}
.info-card-body {
  padding: 26px;
}
.info-card-body h3 {
  font-size: 1.15rem;
  color: var(--emerald-800);
  margin-bottom: 10px;
}
.info-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Business (list) ---------- */
.business-list {
  display: flex;
  flex-direction: column;
}
.business-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.business-item:first-child { border-top: 1px solid var(--line); }
.business-item:hover { background: var(--emerald-50); }

.business-num {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emerald-300);
  min-width: 64px;
  line-height: 1;
}
.business-content h3 {
  font-size: 1.25rem;
  color: var(--emerald-900);
  margin-bottom: 10px;
}
.business-content p {
  color: var(--muted);
  max-width: 640px;
}


/* ---------- note 誘導 ---------- */
.note-section {
  background: var(--emerald-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.note-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}
.note-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.note-body {
  flex: 1 1 320px;
}
.note-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 8px;
  color: var(--emerald-800);
}
.note-lead {
  color: var(--muted);
  margin: 0;
}
.btn-note {
  background: var(--emerald-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.btn-note:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .note-inner {
    text-align: center;
  }
  .btn-note {
    width: 100%;
  }
}

/* ---------- Contact / CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  color: #fff;
  text-align: center;
}
.cta-inner .section-tag { color: var(--emerald-300); }
.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 16px;
  color: #fff;
}
.cta-lead {
  color: var(--emerald-100);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ---------- お問い合わせモーダル ---------- */
.modal {
  width: min(92vw, 640px);
  max-height: 88vh;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(7, 63, 56, 0.35);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(7, 63, 56, 0.55);
  backdrop-filter: blur(3px);
}
.modal[open] {
  animation: modalIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-inner {
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  padding: 44px 40px 40px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover {
  background: var(--emerald-100);
  color: var(--emerald-800);
}
.modal .section-tag { text-align: left; margin-bottom: 6px; }
.modal-title {
  font-size: 1.5rem;
  color: var(--emerald-900);
  margin-bottom: 10px;
}
.modal-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.modal-mail {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.modal-mail a {
  color: var(--emerald-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 送信完了画面 */
.modal-done { text-align: center; padding: 20px 0 8px; }
.done-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-500);
  font-size: 2.2rem;
  font-weight: 700;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: block;
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--emerald-800);
  margin-bottom: 8px;
}
.req {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--emerald-400);
  color: #06231b;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--emerald-50);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa8a2; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(52, 226, 196, 0.35);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #e58b8b;
  background: #fff6f6;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15);
}
.form-error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #c53c3c;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
}
.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.4em;
}
.form-note.success { color: var(--emerald-600); font-weight: 600; }
.form-note.error   { color: #c53c3c; }

.cta-mail {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--emerald-100);
}
.cta-mail a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald-900);
  color: var(--emerald-100);
  padding: 48px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-org {
  font-size: 0.9rem;
  color: var(--emerald-300);
}
.footer-address {
  font-size: 0.85rem;
  color: var(--emerald-300);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 20px;
  margin: 4px 0 2px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--emerald-100);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--emerald-300); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(232, 245, 238, 0.6);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 960px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .expert-badges {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--emerald-900);
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .menu-toggle { display: flex; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .business-item {
    gap: 18px;
    padding: 26px 0;
  }
  .business-num { min-width: 44px; font-size: 1.3rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; text-align: center; }
  .hero-actions .btn { width: auto; min-width: 220px; }

  .experts { margin-top: 52px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal { width: 94vw; max-height: 92vh; }
  .modal-inner { padding: 40px 22px 28px; max-height: 92vh; }
  .modal-title { font-size: 1.3rem; }
  .expert-badge {
    border-radius: var(--radius);
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2.4rem; }
  .logo-text { font-size: 1rem; }
}
