@charset "UTF-8";

/* ===== 色・共通の値 ===== */
:root {
  --main: #C9E2B6;
  --sub: #FCFCFC;
  --accent: #78430F;
  --accent-dark: #4F2C09;
  --text: #070203;
  --line: #87CA77;
  --pale: #DBEBD8;
  --marker: #FFFB8B;
  --error: #C0392B;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-hand: "Yusei Magic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-en: "Lemonada", "Zen Maru Gothic", sans-serif;
  --grid-on-white:
    linear-gradient(rgba(135, 202, 119, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 202, 119, 0.25) 1px, transparent 1px);
  --grid-on-green:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  --column: 500px;
  /* セクションの境目の波（幅24px・高さ12px の1山。mask で使う） */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6Q6 0 12 6T24 6V12H0Z'/%3E%3C/svg%3E");
}

/* ===== 基本 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--main);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

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

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== PCの左右の地・境界線 ===== */
.pc-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--main);
  background-image: var(--grid-on-green);
  background-size: 20px 20px;
}

.page {
  position: relative;
  max-width: var(--column);
  margin: 0 auto;
  background-color: var(--sub);
  overflow-x: clip;
}

.frame-line {
  display: none;
}

@media (min-width: 520px) {
  .frame-line {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: 10px;
    background-color: var(--line);
    pointer-events: none;
  }

  .frame-line--left {
    left: calc(50% - var(--column) / 2 - 10px);
  }

  .frame-line--right {
    left: calc(50% + var(--column) / 2);
  }
}

/* ===== PCの左右の固定要素（1000px以上） ===== */
.pc-side {
  display: none;
}

@media (min-width: 1000px) {
  .pc-side {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 40;
    width: calc(50% - var(--column) / 2 - 10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .is-opened .pc-side {
    opacity: 1;
  }

  .pc-side--left {
    left: 0;
  }

  .pc-side--right {
    right: 0;
  }
}

.pc-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-hand);
  color: var(--accent);
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.pc-company__kind {
  font-size: clamp(14px, 1.4vw, 18px);
}

.pc-company__name {
  font-size: clamp(22px, 2.4vw, 32px);
}

.pc-company:hover {
  transform: translateY(-2px);
}

/* ===== 足跡のナビ（演出C） ===== */
.paw-list {
  display: grid;
  gap: 14px;
  width: min(220px, calc(50vw - var(--column) / 2 - 40px));
}

.paw-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.paw-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.16);
}

.paw-card__box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border: 2px solid var(--text);
  border-radius: 2px;
  box-shadow: 2px 2px 0 #C8C8C8;
}

.paw-card__paw {
  position: absolute;
  top: -9px;
  left: -2px;
  width: 26px;
  height: 26px;
  max-width: none;
  opacity: 0;
  transform: scale(1.6) rotate(-12deg);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.3, 1.5, 0.6, 1);
}

.paw-card.is-stamped .paw-card__paw {
  opacity: 1;
  transform: scale(1) rotate(-12deg);
}

/* ===== メニュー（スマホ・1000px未満） ===== */
.menu-btn {
  position: fixed;
  top: 12px;
  right: max(12px, calc(50% - var(--column) / 2 + 12px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: #FFFFFF;
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-btn__bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

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

.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) {
  opacity: 0;
}

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

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  padding: 80px 20px 48px;
  background-color: var(--sub);
  background-image: var(--grid-on-white);
  background-size: 20px 20px;
  animation: menu-in 0.3s ease;
}

.menu[hidden] {
  display: none;
}

.menu__inner {
  max-width: 400px;
  margin: 0 auto;
}

.menu__title {
  margin-bottom: 20px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--accent);
}

.paw-list--menu {
  width: 100%;
  gap: 10px;
  margin-bottom: 28px;
}

.paw-list--menu .paw-card {
  padding: 12px 16px;
}

@keyframes menu-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (min-width: 1000px) {
  .menu-btn,
  .menu {
    display: none;
  }
}

/* ===== ボタン ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  background-color: var(--accent);
  border: 0;
  border-radius: 30px;
  box-shadow: 0 4px 0 var(--accent-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-dark);
}

.btn--entry {
  width: min(100%, 300px);
  margin-right: auto;
  margin-left: auto;
}

/* ===== エントリーへの固定ボタン（スマホ・1000px未満） ===== */
.fixed-entry {
  position: fixed;
  bottom: 12px;
  left: 50%;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 32px), calc(var(--column) - 32px));
  height: 56px;
  background-color: var(--accent);
  border-radius: 28px;
  box-shadow: 0 4px 0 var(--accent-dark);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 120%);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.fixed-entry.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (min-width: 1000px) {
  .fixed-entry {
    display: none;
  }
}

/* ===== セクションの地 ===== */
.sec {
  position: relative;
  padding: 72px 20px 80px;
}

/* ===== セクションの背景（2026-11-26 方眼だけをやめ、セクションごとに地を変える） =====
   - 色（白／淡い緑／緑）と柄（方眼／水玉／ドット方眼／斜線／無地）の組み合わせで、内容が変わったことを見せる
   - 上の境目は波の形にして、前のセクションに少しかぶせる（縦に1本でつながって見えるように） */
.sec {
  --sec-bg: var(--sub);
  background-color: var(--sec-bg);
}

/* 方眼ノート（白地＋薄い緑の方眼） */
.sec--note,
.sec--grid {
  --sec-bg: var(--sub);
  background-image: var(--grid-on-white);
  background-size: 20px 20px;
}

/* 緑の地＋白の水玉 */
.sec--dots {
  --sec-bg: var(--main);
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 2px, transparent 2.5px);
  background-size: 18px 18px;
}

/* 淡い緑の無地 */
.sec--pale {
  --sec-bg: var(--pale);
}

/* 白地＋緑の点（ドット方眼のノート） */
.sec--dotgrid {
  --sec-bg: var(--sub);
  background-image: radial-gradient(rgba(135, 202, 119, 0.45) 1.5px, transparent 2px);
  background-size: 16px 16px;
}

/* 緑の地＋白の斜線 */
.sec--stripe {
  --sec-bg: var(--main);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.35) 0 6px,
    transparent 6px 16px
  );
}

/* 上の境目の波（前の要素に続くセクションだけ） */
:where(.kv-band, .sec, .message) + .sec::before,
.footer::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 0;
  left: 0;
  height: 12px;
  background-color: var(--sec-bg);
  -webkit-mask: var(--wave) 0 0 / 24px 12px repeat-x;
  mask: var(--wave) 0 0 / 24px 12px repeat-x;
  pointer-events: none;
}

/* ===== 英字ラベル・見出し ===== */
.sec-label {
  margin-bottom: 6px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
  color: var(--line);
}

.sec--dots .sec-label,
.sec--stripe .sec-label,
.sec--pale .sec-label {
  color: #FFFFFF;
}

.sub-title {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: clamp(17px, 4.8vw, 19px);
  line-height: 1.6;
  text-align: center;
}

.sub-title--bold {
  margin: 0 0 24px;
  color: var(--accent);
}

/* 手書き見出し（演出B） */
.hand-title {
  position: relative;
  display: table;
  margin: 0 auto 36px;
  padding-bottom: 14px;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(26px, 7.4vw, 32px);
  line-height: 1.45;
  text-align: center;
  color: var(--accent);
}

.hand-title__line {
  display: block;
}

.hand-title__underline {
  position: absolute;
  bottom: 0;
  left: -4%;
  width: 108%;
  height: 14px;
  max-width: none;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

.hand-title__underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hand-title--left {
  margin-left: 0;
  text-align: left;
}

.hand-title--large {
  font-size: clamp(26px, 8vw, 32px);
}

.hand-title--small {
  margin-bottom: 28px;
  font-size: clamp(22px, 6.4vw, 26px);
}

.js .js-hand .hand-title__line {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s linear;
  transition-delay: calc(var(--i, 0) * 0.8s);
}

.js .js-hand .hand-title__underline path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s ease-out;
  transition-delay: var(--underline-delay, 0.6s);
}

.js .js-hand.is-drawn .hand-title__line {
  clip-path: inset(0 0 0 0);
}

.js .js-hand.is-drawn .hand-title__underline path {
  stroke-dashoffset: 0;
}

/* ===== 本文 ===== */
.text {
  margin-bottom: 24px;
}

/* 日本語を文節で改行する（対応ブラウザのみ） */
.text,
.sub-title,
.hand-title,
.icon-list__item,
.hand-box__end,
.talk__bubble,
.person-card__text,
.recruit__bubble {
  word-break: auto-phrase;
}

.text--center {
  text-align: center;
}

.em {
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(transparent 60%, var(--marker) 60%);
}

.illust {
  height: auto;
  object-fit: contain;
}

.tel-link {
  text-decoration: none;
}

@media (hover: hover) {
  .tel-link {
    pointer-events: none;
  }
}

/* ===== 四角の欄（チェックマーク） ===== */
.check-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border: 2px solid var(--text);
  border-radius: 2px;
  box-shadow: 2px 2px 0 #C8C8C8;
}

.check-box svg {
  position: absolute;
  top: -10px;
  left: -2px;
  width: 28px;
  height: 28px;
  max-width: none;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-box path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.4s ease-out;
}

.is-checked .check-box path {
  stroke-dashoffset: 0;
}

/* ===== スクロールリビール（演出0） ===== */
.js .js-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}

.js .js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== フッター ===== */
.footer {
  --sec-bg: var(--accent);
  position: relative;
  padding: 48px 20px 96px;
  background-color: var(--accent);
  text-align: center;
  color: #FFFFFF;
}

.footer__name {
  margin-bottom: 8px;
  font-family: var(--font-hand);
  font-size: 22px;
}

.footer__address {
  font-size: 14px;
}

.footer__copy {
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.06em;
}

@media (min-width: 1000px) {
  .footer {
    padding-bottom: 48px;
  }
}

/* ===== 動きを減らす設定 ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .js-reveal,
  .js .js-hand .hand-title__line,
  .js .js-hand .hand-title__underline path,
  .check-box path,
  .paw-card__paw,
  .pc-side,
  .fixed-entry,
  .menu {
    transition: none;
    animation: none;
  }

  .js .js-reveal {
    opacity: 1;
    transform: none;
  }

  .js .js-hand .hand-title__line {
    clip-path: none;
  }

  .js .js-hand .hand-title__underline path {
    stroke-dashoffset: 0;
  }

  .paw-card__paw {
    transform: rotate(-12deg);
  }
}
