@charset "UTF-8";
/* ============================================
   pages.css — 下層ページ共通（会社案内・事業内容・実績・お問い合わせ）
   ============================================ */

/* ---- 画像の軽パララックス用ラッパー ----
   overflow:hidden の枠の中で img[data-plx] が上下に動く */
.figure-plx {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(38, 49, 39, .1);
}
.figure-plx img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

/* ============================================
   会社案内
   ============================================ */
.c-philosophy { text-align: center; }
.c-philosophy__quote {
  font-size: clamp(21px, 3.2vw, 32px);
  letter-spacing: .14em;
  line-height: 2.2;
  color: var(--green-deep);
}
.c-philosophy__text {
  max-width: 660px;
  margin: 2em auto 0;
  color: var(--muted);
}

/* 情報テーブル（会社概要など） */
.info-table {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(38, 49, 39, .07);
}
.info-table th,
.info-table td {
  padding: 20px 26px;
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.9;
  border-bottom: 1px solid var(--green-pale);
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 9em;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--green);
  letter-spacing: .1em;
  background: rgba(229, 239, 227, .45);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 14px 20px; }
  .info-table th { padding-bottom: 4px; }
  .info-table td { border-bottom: 1px solid var(--green-pale); padding-top: 10px; }
}

/* 認定・登録リスト */
.c-license { background: var(--green-pale); }
.c-license__list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.c-license__list li {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(38, 49, 39, .05);
}
.c-license__list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* 地図 */
.c-map { border-radius: 18px; overflow: hidden; box-shadow: 0 12px 32px rgba(38, 49, 39, .1); }
.c-map iframe { width: 100%; height: clamp(320px, 45vw, 440px); border: 0; display: block; }
.c-map__note { margin-top: 1.2em; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ============================================
   事業内容
   ============================================ */
/* 森林のサイクル図 */
.s-cycle { text-align: center; }
.s-cycle__lead { max-width: 660px; margin: 0 auto; color: var(--muted); }
.s-cycle__flow {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 2px;
}
.s-cycle__step {
  background: #fff;
  border: 1.5px solid var(--green-moss);
  color: var(--green-deep);
  border-radius: 999px;
  padding: .55em 1.3em;
  font-size: clamp(12.5px, 1.5vw, 14.5px);
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.s-cycle__arrow {
  color: var(--orange);
  font-weight: 700;
  padding: 0 .35em;
  font-size: 15px;
}
.s-cycle__loop {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--orange-deep);
  letter-spacing: .12em;
}

/* 事業セクション（画像 + 本文の交互） */
.s-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.s-block + .s-block { margin-top: clamp(56px, 9vw, 96px); }
.s-block__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.s-block:nth-child(even) .s-block__grid > .figure-plx { order: 2; }
@media (max-width: 768px) {
  .s-block__grid { grid-template-columns: 1fr; }
  .s-block:nth-child(even) .s-block__grid > .figure-plx { order: 0; }
}
.s-block .figure-plx { aspect-ratio: 4 / 3; }
.s-block__en {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--orange);
  text-transform: uppercase;
}
.s-block__title { font-size: clamp(22px, 2.8vw, 28px); margin-top: .3em; }
.s-block__text { margin-top: 1em; font-size: 14.5px; color: var(--ink); }
.s-block__list {
  margin-top: 1.4em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s-block__list li {
  background: var(--green-pale);
  color: var(--green-deep);
  border-radius: 999px;
  padding: .4em 1.1em;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ============================================
   施工例：ビフォーアフター（worksページ）
   ※ .ba-set/.ba-tag は top.css にも同名定義（TOPの1事例用）。
     worksは top.css を読まないためここで定義する。
   ============================================ */
.ba-case--full { max-width: 960px; margin-inline: auto; }
.ba-case--full + .ba-case--full { margin-top: clamp(56px, 9vw, 96px); }
.ba-case__head { text-align: center; margin-bottom: clamp(18px, 3vw, 28px); }
.ba-case__no {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--orange-deep);
}
.ba-case__h {
  font-size: clamp(20px, 3vw, 30px);
  margin-top: .2em;
  color: var(--green-deep);
  letter-spacing: .06em;
}
.ba-case__place { margin-top: .5em; font-size: 13px; color: var(--muted); letter-spacing: .06em; }

.ba-set {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}
.ba-set__item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 30px rgba(11, 26, 16, .16);
}
.ba-set__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: .32em 1.2em;
  border-radius: 999px;
  background: rgba(31, 61, 43, .92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.ba-tag--after { background: var(--orange); }
.ba-set__arrow { color: var(--orange); display: flex; justify-content: center; }
.ba-set__arrow svg { width: clamp(28px, 4vw, 46px); height: auto; }
.ba-case__desc {
  margin-top: 1.5em;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink);
  max-width: 44em;
  margin-inline: auto;
}
.ba-case__desc strong { color: var(--orange-deep); font-weight: 700; }

/* 工程ステップ */
.ba-steps {
  margin-top: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
}
.ba-steps--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.ba-step { margin: 0; }
.ba-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(11, 26, 16, .12);
}
.ba-step figcaption {
  margin-top: .6em;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
}
@media (max-width: 720px) {
  .ba-set { grid-template-columns: 1fr; }
  .ba-set__arrow { transform: rotate(90deg); }
  .ba-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   実績・活動（ギャラリー + ライトボックス）
   ============================================ */
.w-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
}
@media (max-width: 820px) { .w-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .w-gallery__grid { grid-template-columns: 1fr; } }
.w-item {
  display: block;
  width: 100%;
  text-align: left;
  cursor: zoom-in;
}
.w-item__img {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}
.w-item__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.w-item:hover .w-item__img img { transform: scale(1.05); }
.w-item__cat { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .16em; color: var(--orange-deep); }
.w-item__title { font-size: 15px; margin-top: .15em; font-family: var(--font-serif); color: var(--ink); }

/* ---- ライトボックス ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20, 33, 24, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 74vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.lightbox__caption {
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  transition: background-color .3s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }

/* ============================================
   お問い合わせ
   ============================================ */
.ct-intro { text-align: center; }
.ct-intro__text { max-width: 620px; margin-inline: auto; color: var(--muted); }
.ct-intro__tel {
  margin-top: 1.6em;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .08em;
  color: var(--green-deep);
}
.ct-intro__tel small { display: block; font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }
.ct-form { background: var(--green-pale); }
.ct-form__form {
  max-width: 680px;
  margin-inline: auto;
  background: #fff;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 12px 36px rgba(38, 49, 39, .1);
}
.ct-form__submit { text-align: center; margin-top: 28px; }
.ct-form__submit .c-btn { min-width: 260px; }
.ct-form__note { margin-top: 1.4em; text-align: center; font-size: 12px; color: var(--muted); }

/* ============================================
   下層ページ 装飾（写真ヒーロー + 飾りイラスト）
   ※飾り .illust/.deco はTOP(top.css)と同じ見た目。下層は top.css を読まないので
     ここで定義する（クラス名はTOPと共通）。
   ============================================ */

/* --- 写真ヒーロー --- */
.page-hero--photo { position: relative; color: #fff; background: var(--green-deep); }
.page-hero--photo .page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--photo .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo .page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 40, 24, .46), rgba(15, 40, 24, .8));
}
.page-hero--photo > .container { position: relative; z-index: 2; }
.page-hero--photo .page-hero__en { color: var(--orange-pale); }
.page-hero--photo .page-hero__title { color: #fff; text-shadow: 0 2px 18px rgba(11, 26, 16, .5); }
.page-hero--photo .page-hero__lead { color: rgba(255, 255, 255, .92); }
.page-hero__hand {
  display: block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  color: var(--orange-pale);
  transform: rotate(-4deg);
  margin-bottom: .1em;
}

/* --- 飾りイラスト（PNG素材：鳥・花・木など） --- */
.illust { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.illust img { width: 100%; height: auto; display: block; }
.illust--float { animation: decoFloat 6s ease-in-out infinite alternate; }
.illust--sway { animation: illustSway 7s ease-in-out infinite alternate; transform-origin: bottom center; }
.illust-bird { position: absolute; z-index: 1; width: clamp(44px, 5vw, 72px); pointer-events: none; animation: birdFly linear infinite; }
.illust-bird img { width: 100%; height: auto; display: block; }

/* --- 飾りアイコン（SVG：太陽・葉・小枝）常時ゆらぎ --- */
.deco { position: absolute; z-index: 0; pointer-events: none; will-change: transform; animation: decoSway 7s ease-in-out infinite alternate; }
.deco svg { width: 100%; height: 100%; display: block; }
.deco--sun { color: var(--orange); opacity: .85; animation-duration: 8s; }
.deco--leaf1 { color: var(--green-moss); animation-duration: 6s; }
.deco--leaf2 { color: var(--green); opacity: .8; animation-duration: 7.5s; }
.deco--sprig { color: var(--green-moss); opacity: .85; animation-duration: 9s; }
.deco--white { color: rgba(255, 255, 255, .85); }

@keyframes decoFloat { from { translate: 0 -8px; } to { translate: 0 8px; } }
@keyframes illustSway { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes decoSway { from { rotate: -6deg; translate: 0 -5px; } to { rotate: 6deg; translate: 0 5px; } }
@keyframes birdFly {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  50%  { transform: translate(30vw, -24px) rotate(3deg); }
  100% { transform: translate(64vw, 10px) rotate(-4deg); }
}

/* 装飾を置くセクション（相対配置＋はみ出し隠し） */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }

/* 会社案内: 理念の写真 */
.c-philosophy__figure {
  max-width: 960px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  aspect-ratio: 16 / 7;
}

/* ============================================
   会社案内: 社長紹介
   ============================================ */
.c-president { background: var(--green-pale); }
.c-president__grid {
  max-width: 980px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.c-president__photo { aspect-ratio: 4 / 3; align-self: start; min-width: 0; }
.c-president__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--green);
}
.c-president__name {
  margin-top: .4em;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--green-deep);
  display: flex;
  align-items: baseline;
  gap: .8em;
  flex-wrap: wrap;
}
.c-president__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .1em;
}
.c-president__quals {
  margin-top: .9em;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
  line-height: 1.7;
}
.c-president__text { margin-top: 1.1em; font-size: 14.5px; line-height: 1.95; color: var(--ink); }
.c-president__text strong { color: var(--orange-deep); font-weight: 700; }
@media (max-width: 768px) {
  .c-president__grid { grid-template-columns: 1fr; }
  .c-president__photo { aspect-ratio: 4 / 3; }
}

/* ===================================================================
   森づくりの核心：崩れない道づくり（事業内容ページ）
   =================================================================== */
.s-forest { background: var(--green-pale); }
.s-forest__lead {
  max-width: 740px;
  margin: clamp(20px, 3vw, 28px) auto 0;
  text-align: center;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 2;
  color: var(--ink);
}
.s-forest__lead strong { color: var(--orange-deep); font-weight: 700; }

/* ---- タブ + 大写真（TOPのタブセクション風の見せ方） ---- */
.s-forest-tabs {
  margin-top: clamp(36px, 5vw, 60px);
  max-width: 1000px;
  margin-inline: auto;
}
/* タブナビ */
.s-forest-tabs__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.s-forest-tabs__nav::-webkit-scrollbar { display: none; }
.s-forest-tabs__tab {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 18px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid transparent;
  border-bottom: none;
  transition: color .3s, background-color .3s;
  white-space: nowrap;
}
.s-forest-tabs__tab:hover { color: var(--green); }
.s-forest-tabs__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--orange);
}
.s-forest-tabs__label { font-size: clamp(13px, 1.6vw, 15px); }
.s-forest-tabs__tab.is-active {
  background: var(--green);
  color: #fff;
}
.s-forest-tabs__tab.is-active .s-forest-tabs__num { color: var(--orange-pale); }

/* パネル */
.s-forest-tabs__panels {
  background: #fff;
  border-radius: 0 18px 18px 18px;
  box-shadow: 0 14px 40px rgba(38, 49, 39, .1);
  overflow: hidden;
}
.s-forest-panel {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: stretch;
  animation: fpanelIn .5s var(--ease-out);
}
.s-forest-panel[hidden] { display: none; }
@keyframes fpanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.s-forest-panel__media { position: relative; min-height: 260px; }
.s-forest-panel__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.s-forest-panel__body { padding: clamp(26px, 3.6vw, 48px); }
.s-forest-panel__num {
  font-family: var(--font-en);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--green-pale);
}
.s-forest-panel__title {
  font-size: clamp(19px, 2.4vw, 25px);
  margin-top: .1em;
  color: var(--green);
  line-height: 1.5;
}
.s-forest-panel__body p:not(.s-forest-panel__num) {
  margin-top: 1em;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink);
}
.s-forest-panel__body p strong { color: var(--orange-deep); font-weight: 700; }
@media (max-width: 768px) {
  .s-forest-panel { grid-template-columns: 1fr; }
  .s-forest-panel__media { min-height: 200px; aspect-ratio: 16 / 10; }
  .s-forest-tabs__tab { flex: 0 0 auto; padding: 10px 16px; }
}

/* 施工前 / 施工後（芝川）写真枠 */
.ba-figure {
  margin-top: 1.6em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ba-figure figure { margin: 0; }
.ba-figure__img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11, 26, 16, .14);
}
.ba-figure__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-figure__ph {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed #b3c6ac;
  background: repeating-linear-gradient(45deg, #e4ede0, #e4ede0 14px, #edf3ea 14px, #edf3ea 28px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
}
.ba-figure figcaption {
  margin-top: .5em;
  text-align: center;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}

.s-forest__closing {
  margin-top: clamp(36px, 5vw, 56px);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.s-forest__closing p {
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 2.05;
  color: var(--ink);
}
.s-forest__closing strong { color: var(--orange-deep); font-weight: 700; }

@media (max-width: 560px) {
  .ba-figure { grid-template-columns: 1fr; }
}
