/* ==========================================================
   結の樹天白 — 共通スタイル（新デザイン 2026-10）
   スマホを基本に書き、min-width で広い画面へ足していく。
   地は白、差し色に薄い若葉色（--tint）。イラストは背景を透明にして使う。
   ========================================================== */

:root {
  --base: #FFFFFF;       /* ページの地：白 */
  --tint: #F2F6F0;       /* 薄い若葉色：交互のセクション・ファーストビューの舞台 */
  --card: #FFFFFF;
  --ink: #33302C;        /* 本文 */
  --ink-sub: #615D57;    /* 補足 */
  --line: #DFE4DC;       /* 罫線 */
  --tree: #3E6A50;       /* 結の「樹」の緑：主ボタン */
  --tree-dark: #2F5240;
  --tree-pale: #E3EDE6;
  --blush: #F2CFC6;      /* イラストの頬の色：吹き出しの縁 */

  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 5vw, 40px);
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  line-break: strict;
  overflow-wrap: anywhere;
  padding-bottom: 72px; /* スマホの固定ボタン分 */
}

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

a { color: var(--tree-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--tree);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-round);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  margin: 0;
}

p { margin: 0; }
small { font-size: 0.82em; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--card);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 800px; }

.sp-only { display: inline; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  transition: background-color .2s, color .2s;
}
.btn--lg { min-height: 56px; padding: 12px 32px; font-size: 17px; }
.btn--tree { background: var(--tree); color: #fff; }
.btn--tree:hover { background: var(--tree-dark); }
.btn--line { background: var(--card); color: var(--tree-dark); box-shadow: inset 0 0 0 2px var(--tree); }
.btn--line:hover { background: var(--tint); }

.text-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 0;
  font-weight: 500;
  text-underline-offset: 4px;
}

/* ---------- 吹き出し ---------- */
.balloon {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  background: var(--card);
  border-radius: 999px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--blush);
}
.balloon::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 28px;
  width: 16px; height: 12px;
  background: var(--card);
  clip-path: polygon(0 0, 100% 0, 20% 100%);
}

/* ---------- 写真の仮置き（実写真が届いたら <img> に差し替え） ---------- */
.photo-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.35) 14px 15px),
    #DCE4D8;
  color: #4E5A4F;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
  margin-right: auto;
}
.site-logo__type { font-size: 11px; color: var(--ink-sub); letter-spacing: 0.1em; }
.site-logo__name { font-family: var(--font-round); font-weight: 700; font-size: 22px; letter-spacing: 0.12em; }

/* 右上の2つのボタン（入居相談・求人情報）：ヘッダーの上端から下がる札の形 */
.header-tiles { display: flex; gap: 6px; align-self: flex-start; }
.header-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  height: calc(var(--header-h) - 4px);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: height .2s, filter .2s;
}
.header-tile:hover { filter: brightness(1.08); height: var(--header-h); }
.header-tile--visit { background: var(--tree); }
.header-tile--recruit { background: #B5562A; }
.header-tile__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px; height: 52px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
}
.menu-button__bars,
.menu-button__bars::before,
.menu-button__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s;
}
.menu-button__bars { position: relative; }
.menu-button__bars::before, .menu-button__bars::after { content: ""; position: absolute; left: 0; }
.menu-button__bars::before { top: -7px; }
.menu-button__bars::after { top: 7px; }
.menu-button__label { font-size: 10px; line-height: 1; margin-top: 8px; }
.menu-button[aria-expanded="true"] .menu-button__bars { background: transparent; }
.menu-button[aria-expanded="true"] .menu-button__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* スマホ：メニューは下に開くパネル */
.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--base);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(51, 48, 44, .08);
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
}
.site-nav__tel {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
}
.site-nav__tel-label { font-size: 13px; color: var(--ink-sub); }
.site-nav__tel-num { font-family: var(--font-round); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--tint { background: var(--tint); }

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 48px); }
.section-head--left { text-align: left; }
.section-title { font-size: clamp(24px, 6vw, 34px); }
.section-lead {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--ink-sub);
  text-align: left;
}
.section-head--left .section-lead { margin-left: 0; }
.section-more { margin-top: 40px; text-align: center; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: #F3EAE4;
  padding: 56px 0 24px;
}
.site-footer a { color: #F3EAE4; }
.site-footer__inner { display: grid; gap: 32px; }
.site-footer__type { font-size: 12px; opacity: .8; }
.site-footer__name { font-family: var(--font-round); font-weight: 700; font-size: 26px; letter-spacing: 0.12em; }
.site-footer__address { font-style: normal; margin-top: 12px; font-size: 15px; }
.site-footer__company { margin-top: 8px; font-size: 14px; opacity: .85; }
.site-footer__nav ul, .site-footer__sns { list-style: none; margin: 0; padding: 0; }
.site-footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.site-footer__nav a { display: block; padding: 10px 0; text-decoration: none; font-size: 15px; }
.site-footer__sns { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__sns a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(243, 234, 228, .4);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}
.site-footer__copy { margin-top: 40px; text-align: center; opacity: .7; }

/* ---------- スマホ：画面下の固定ボタン ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
}
.action-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.action-bar__btn--tel { background: var(--card); color: var(--tree-dark); box-shadow: inset 0 0 0 2px var(--tree); }
.action-bar__btn--visit { background: var(--tree); color: #fff; }

/* ---------- タブレット以上 ---------- */
@media (min-width: 600px) {
  .sp-only { display: none; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; }
  .site-footer__sns { grid-column: 1 / -1; }
}

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .header-tiles { gap: 8px; }
  .header-tile { width: 96px; font-size: 15px; gap: 4px; }
  .header-tile__label br { display: none; }
  .header-tile__icon { width: 24px; height: 24px; }

  .site-footer__inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
  .site-footer__sns { grid-column: auto; flex-direction: column; }
}

/* メニュー項目が7つあるため、横並びのメニューは1280px以上で出す（それ未満はメニューボタン） */
@media (min-width: 1280px) {
  .menu-button { display: none; }
  .site-nav {
    display: flex !important;
    align-items: center;
    gap: 20px;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list { display: flex; gap: 0; }
  .site-nav__list a {
    border: 0;
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .site-nav__list a:hover { background: var(--tint); }
  .site-nav__tel { margin: 0; padding: 0; background: none; align-items: flex-end; white-space: nowrap; }
  .site-nav__tel-label { font-size: 11px; }
  .site-nav__tel-num { font-size: 20px; line-height: 1.2; }
  .site-nav__item--sp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nowrap { white-space: nowrap; }

/* ロゴ */
.site-logo { flex-direction: row; align-items: center; gap: 8px; }
.site-logo__mark { width: 44px; height: auto; }
.site-logo__text { display: flex; flex-direction: column; }
.site-footer__logo { width: 72px; padding: 6px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 12px; }
@media (min-width: 1024px) { .site-logo__mark { width: 52px; } }
.site-logo { flex-shrink: 0; white-space: nowrap; }

/* 幅の狭いスマホ：ロゴと右上の札を詰める */
@media (max-width: 419px) {
  .site-header__inner { gap: 6px; padding-right: 10px; }
  .site-logo__mark { width: 34px; }
  .site-logo__type { font-size: 9px; letter-spacing: 0.04em; }
  .site-logo__name { font-size: 18px; letter-spacing: 0.06em; }
  .header-tile { width: 48px; font-size: 11px; }
  .menu-button { width: 50px; }
  .menu-button__label { font-size: 9px; letter-spacing: -0.02em; white-space: nowrap; }
}
