@charset "UTF-8";
/* ============================================================
   こどもおりょうりラボ株式会社 コーポレートサイト
   湘南たべまな便（tabemana.jp）のトーンを踏襲しています。
   色や文字サイズは :root の変数でまとめて調整できます。
   ============================================================ */

:root {
  /* 色 */
  --ink: #0a0404;            /* 本文（ブランドの墨色） */
  --ink-soft: #5c5553;       /* 補足テキスト */
  --ink-mute: #736c6a;       /* 注釈 */
  --paper: #ffffff;
  --paper-alt: #f7f4ee;      /* 交互セクションの背景（生成り） */
  --line: rgba(10, 4, 4, 0.14);
  --teal: #00afcc;           /* ブランドのティール（線・装飾） */
  --teal-ink: #007f9a;       /* ボタン・リンク（白文字でも読める濃さ） */
  --teal-ink-deep: #00667c;  /* ボタンのホバー */
  --teal-tint: #e6f6f9;
  --earth: #473822;          /* 手書き風の文字（ブランドの茶色） */
  --leaf: #6a9a3a;           /* 番号などのアクセント */

  /* 書体 */
  --font-base: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-hand: "Klee One", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  /* 文字サイズ */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 0.9375rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;

  /* レイアウト */
  --container: 1080px;
  --container-narrow: 820px;
  --section-space: clamp(72px, 10vw, 128px);
  --header-h: 84px;
  --radius-soft: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 40px, var(--container-narrow));
}

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* ------------------------------------------------------------
   Buttons / Links
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid var(--teal-ink);
  border-radius: 999px;
  background: var(--teal-ink);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-body);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--teal-ink-deep);
  border-color: var(--teal-ink-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-ink);
}

.btn--ghost:hover {
  background: var(--teal-tint);
  color: var(--teal-ink-deep);
}

.btn--small {
  min-height: 40px;
  padding: 0 20px;
  font-size: var(--fs-sm);
}

.btn--large {
  min-height: 60px;
  padding: 0 48px;
  font-size: var(--fs-base, 1rem);
}

.text-link {
  color: var(--teal-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link[target="_blank"]::after {
  content: "↗";
  margin-left: 4px;
  font-size: 0.85em;
}

.text-link:hover {
  color: var(--teal-ink-deep);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, 1200px);
  height: var(--header-h);
  margin-inline: auto;
}

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

.site-brand__logo {
  width: 76px;
  height: 76px;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.site-brand__name {
  font-family: var(--font-hand);
  font-size: var(--fs-md);
  color: var(--earth);
  letter-spacing: 0.06em;
}

.site-brand__en {
  font-size: 0.6875rem;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}

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

.global-nav__list {
  display: flex;
  gap: 24px;
}

.global-nav__link {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.global-nav__link:hover {
  color: var(--teal-ink);
}

.nav-toggle {
  display: none;
}

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .nav-toggle__bar {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s, opacity 0.25s;
  }

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

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

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

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px 24px 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .global-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .global-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .global-nav__link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-body);
  }

  .global-nav__cta .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--paper);
  overflow: hidden;
}

/* 写真の下に、見出しと説明文を中央寄せで並べる */
.hero__inner {
  display: grid;
  gap: 24px;
  width: min(100% - 40px, var(--container));
  margin: clamp(40px, 6vw, 72px) auto 0;
  text-align: center;
}

.hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--teal-ink);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--earth);
  letter-spacing: 0.06em;
}

.hero__lead {
  margin-top: 20px;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* グローバルナビのすぐ下に、画面幅いっぱいで表示 */
.hero__media {
  position: relative;
  height: clamp(650px, 86vh, 880px);
  overflow: hidden;
  background: var(--paper-alt);
}

/* スマホは横長写真の真ん中を切り出して、やや低めに */
@media (max-width: 767px) {
  .hero__media {
    height: min(64vh, 480px);
  }
}

/* 5枚の写真を重ねて、ゆっくり切り替える */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(10, 4, 4, 0.08);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.hero__dot.is-active {
  width: 26px;
  background: #fff;
}

/* 動きを減らす設定のときは、ふわっと切り替えない */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}


/* ------------------------------------------------------------
   Section
   ------------------------------------------------------------ */
.section {
  padding: var(--section-space) 0;
}

.section--alt {
  background: var(--paper-alt);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head__eyebrow {
  display: block;
  font-family: var(--font-hand);
  font-size: var(--fs-md);
  color: var(--teal);
  letter-spacing: 0.1em;
}

.section-head__title {
  margin-top: 4px;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.section-head__lead {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Philosophy
   ------------------------------------------------------------ */
.philosophy {
  display: grid;
  gap: 16px;
}

.philosophy__item {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--paper);
  text-align: center;
}

.philosophy__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--teal-ink);
  letter-spacing: 0.2em;
}

.philosophy__label span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

.philosophy__text {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  color: var(--earth);
  line-height: 1.7;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 64px);
}

.photo-strip img {
  width: 100%;
  height: clamp(120px, 22vw, 260px);
  object-fit: cover;
  border-radius: var(--radius-soft);
}

@media (min-width: 768px) {
  .philosophy {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ------------------------------------------------------------
   Business
   ------------------------------------------------------------ */
.business-list {
  display: grid;
  gap: 48px;
}

.business {
  display: grid;
  gap: 20px;
}

.business__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-soft);
}

.business__num {
  font-family: var(--font-hand);
  font-size: var(--fs-xl);
  color: var(--leaf);
  line-height: 1;
}

.business__title {
  margin: 12px 0 16px;
  font-size: var(--fs-lg);
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.business__body p:not(.business__num) {
  color: var(--ink-soft);
}

.business__body .text-link {
  display: inline-block;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .business-list {
    gap: 72px;
  }

  .business {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .business:nth-child(even) .business__media {
    order: 2;
  }
}

/* ------------------------------------------------------------
   Message
   ------------------------------------------------------------ */
.message {
  display: grid;
  gap: 32px;
}

.message__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: var(--radius-soft);
}

.message__body p + p {
  margin-top: 1.4em;
}

.message__catch {
  margin-bottom: 32px;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  color: var(--earth);
  line-height: 1.8;
}

.message__body p:not(.message__catch):not(.message__sign) {
  color: var(--ink-soft);
}

.message__sign {
  margin-top: 40px !important;
  font-size: var(--fs-sm);
  text-align: right;
}

/* 署名の下のこどもの絵（中央寄せ） */
.message__illust {
  width: 50%;
  max-width: 260px;
  margin: 40px auto 0;
}

.message__sign span {
  display: block;
  font-family: var(--font-hand);
  font-size: var(--fs-lg);
  color: var(--earth);
  letter-spacing: 0.2em;
}

@media (min-width: 900px) {
  .message {
    grid-template-columns: 2fr 3fr;
    align-items: start;
    gap: 64px;
  }

  .message__media {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ------------------------------------------------------------
   Achievements
   ------------------------------------------------------------ */
.achievements {
  display: grid;
  gap: 20px;
}

.achievements__group {
  padding: 32px 28px;
  border-radius: var(--radius-soft);
  background: var(--paper);
}

.achievements__title {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--teal);
  font-size: var(--fs-md);
  letter-spacing: 0.1em;
}

.achievements__list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px dashed var(--line);
  line-height: 1.7;
}

.achievements__list li:last-child {
  border-bottom: 0;
}

.achievements__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

@media (min-width: 900px) {
  .achievements {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ------------------------------------------------------------
   Company table
   ------------------------------------------------------------ */
.company-table {
  border-top: 1px solid var(--line);
}

.company-table > div {
  display: grid;
  gap: 4px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  font-weight: 700;
  color: var(--teal-ink);
}

.company-table dd li {
  position: relative;
  padding-left: 1em;
}

.company-table dd li::before {
  content: "・";
  position: absolute;
  left: 0;
}

@media (min-width: 768px) {
  .company-table > div {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 24px 8px;
  }
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.contact__inner {
  position: relative;
  width: min(100% - 40px, 720px);
  margin-inline: auto;
}

.contact__title {
  margin: 4px 0 20px;
  font-size: var(--fs-xl);
  letter-spacing: 0.12em;
}

.contact .btn {
  margin-top: 32px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  padding: 56px 0 24px;
  background: var(--earth);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand__logo {
  width: 112px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
}

.footer-brand__name {
  font-family: var(--font-hand);
  font-size: var(--fs-md);
}

.footer-brand__addr {
  font-size: var(--fs-sm);
  opacity: 0.8;
}

.footer-brand__service {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
}

.footer-brand__service img {
  width: 160px;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 32px;
  justify-content: start;
}

.footer-nav a {
  font-size: var(--fs-sm);
  text-decoration: none;
}

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

.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-xs);
  opacity: 0.7;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-nav ul {
    grid-template-columns: repeat(3, auto);
  }
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Page head（下層ページ）
   ------------------------------------------------------------ */
.page-head {
  padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
  background: var(--paper-alt);
  text-align: center;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal-ink);
  text-decoration: underline;
}

.page-head__title {
  margin-top: 4px;
  font-size: var(--fs-xl);
  letter-spacing: 0.12em;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Form
   ------------------------------------------------------------ */
.section--form {
  padding-top: clamp(48px, 7vw, 80px);
}

.contact-intro {
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 28px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.form-req,
.form-opt {
  padding: 0 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.form-req {
  background: var(--teal-ink);
  color: #fff;
}

.form-opt {
  border: 1px solid var(--line);
  color: var(--ink-mute);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(10, 4, 4, 0.28);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 3px rgba(0, 175, 204, 0.25);
}

select.form-control {
  padding-right: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
}

.form-help {
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  line-height: 1.8;
}

/* 未入力のとき、その項目に出すお知らせ */
.form-error {
  color: #c33a52;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.is-invalid .form-control {
  border-color: #c33a52;
}

.form-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  font-size: var(--fs-sm);
}

.form-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: var(--teal-ink);
}

.form-check .form-error {
  flex: 0 0 100%;
  text-align: center;
}

/* 迷惑メール対策の隠し項目（画面には出さない） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 8px;
  text-align: center;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 479px) {
  .site-brand__logo {
    width: 64px;
    height: 64px;
  }

  .site-brand__name {
    font-size: var(--fs-body);
    white-space: nowrap;
  }
}

@media (max-width: 479px) {
  .hero__lead {
    font-size: var(--fs-sm);
  }
}
