@charset "UTF-8";

/* 共通：固定幅ではなく、画面幅に応じて文字・余白を調整 */
:root {
  --green: #008e45;
  --text: #2a2a2a;
  --page-width: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(2.5rem, 7vw, 6rem);
  --site-header-height: 4.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "hiragino-kaku-gothic-pron", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
iframe { display: block; max-width: 100%; border: 0; }
a { color: #4b5564; text-decoration: none; }
a:hover { color: #00723f; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: .1875rem solid #00723f;
  outline-offset: .1875rem;
}
button, input, textarea { font: inherit; }
hr { height: 0; border: 0; border-top: .0625rem solid #e5e7eb; }
address { font-style: normal; }

/* ヘッダー：スマホではメニューを次の行へ */
header {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
  box-shadow: 0 .1875rem .5rem rgb(0 0 0 / 20%);
}
.header_inner {
  width: min(100%, var(--page-width));
  min-height: 4.5rem;
  margin-inline: auto;
  padding: .625rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.header_inner > a { min-width: 0; }
.header_inner > a:first-child { flex: 0 0 auto; }
.header_logo { width: 3.125rem; height: 3.125rem; object-fit: contain; }
.header_logo_text {
  margin: 0;
  color: #000;
  font-family: "din-2014", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}
nav { display: flex; flex-wrap: wrap; align-items: center; max-width: 100%; gap: clamp(.75rem, 2.8vw, 3rem); margin-left: auto; }
.header_navitem a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(.875rem, 1.3vw, 1.125rem);
  white-space: normal;
  text-align: center;
}

/* メイン画像と、その画像内に配置するタイトル */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - var(--site-header-height));
  height: calc(100svh - var(--site-header-height));
  min-height: 20rem;
  overflow: hidden;
}
.firstimg { width: 100%; margin: 0; }
.hero .firstimg { height: 100%; }
.hero .firstimg img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.hero--sub .firstimg img { aspect-ratio: auto; }
.top_text_inner {
  position: absolute;
  z-index: 1;
  right: 3.5%;
  bottom: 18%;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0;
  text-align: right;
  color: #146a00;
  font-family: "source-han-serif-japanese", serif;
  font-size: clamp(1.125rem, 2.8vw, 2.5rem);
  line-height: 1;
}
.top_text { display: inline-block; max-width: 100%; padding: .25em .6em; margin-top: .2em; background: #fff; }
.common_top_text, .contact_top_text {
  position: absolute;
  z-index: 1;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  display: block;
  margin: 0;
  padding: 0;
  color: #146a00;
  text-align: center;
  font-family: "source-han-serif-japanese", serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
}
.common_top_titel_text { display: inline-block; max-width: 100%; background: #fff; padding: .01em .75em; line-height: 1.5; }
.common_top_titletext, .common_titletext {
  margin: var(--section-space) auto clamp(1.5rem, 4vw, 3rem);
  padding-inline: var(--gutter);
  color: var(--green);
  text-align: center;
  font-family: "source-han-serif-japanese", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.5;
}
.about_titletext_margin { margin-top: var(--section-space); }

/* 共通カラム：64rem未満は縦、64rem以上は左右2列 */
.common_container {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.common_column { min-width: 0; width: 100%; text-align: center; }
.common_columu_left, .common_columu_about_rightr { margin: 0; }
.common_container_margin { margin-top: 1.5rem; }
.common_columu_text { min-width: 0; }
.philosophy_text h2 { margin: 0 0 1rem; color: var(--green); font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 400; }
.philosophy_text p, .philosophy_text_top p, .about_text_message p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  line-height: 2.1;
}
.philosophy_text img { width: 100%; max-width: 34rem; margin-inline: auto; }
.policy-image { width: 75% !important; max-width: 28rem !important; }
.common_columu_about_rightr img { width: 75%; max-width: 27rem; margin-inline: auto; }
.about_text_message { text-align: left; }
#owner { text-align: right; }
.common_decoration { width: 100%; margin-top: var(--section-space); }
.section-divider { width: 100%; margin-top: var(--section-space); }
.business_performance_group { margin-bottom: var(--section-space); }
.business_performance_group > a { display: block; width: min(80%, 36rem); margin-inline: auto; }
.business_performance_group img { width: 100%; margin: 0; }
.business_performance_group img:hover { opacity: .65; }

/* せとうちLABO：背景をセクションの高さに合わせて拡大しない */
.setoutilabo_background {
  margin-top: var(--section-space);
  padding-block: clamp(2rem, 5vw, 4rem);
  background-color: #f3f5ea;
  background-image: url("img/setoutibackground.jpg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.setoutilabo_top_text { width: min(100%, var(--page-width)); margin-inline: auto; padding-inline: var(--gutter); }
.setoutilabo_top_text p {
  margin: 1.5rem auto 2rem;
  text-align: center;
  font-family: "kiwi-maru", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 2;
}
.setoutirabo_top_titel { margin: 0 0 1.5rem; text-align: center; font-family: "kiwi-maru", sans-serif; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.8; }
.setoutirabo_top_titel span { display: inline-block; max-width: 100%; padding: .35em clamp(.75rem, 4vw, 4rem); background: #fff; }
.setoutilabo_youtube_text { text-align: left; font-family: "kiwi-maru", sans-serif; }
.setoutilabo_youtube_text h2 { margin: 0 0 1rem; font-size: clamp(1.125rem, 1.8vw, 1.625rem); font-weight: 400; line-height: 1.8; }
.setoutilabo_youtube_text p { margin: 0; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 2; }
.setoutilabo_youtube_url { align-self: center; }
.setoutilabo_youtube_url iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0; }
.setoutilink { color: #00723f; text-decoration: underline; }

/* フッターの画像リンクとナビゲーション */
.footer_container { margin-block: var(--section-space); gap: 1.5rem; }
.footer_colum_left, .footer_colum_right { margin: 0; }
.footer_container a { display: block; width: min(100%, 23rem); margin-inline: auto; }
.footer_container img { width: 100%; }
.footer { color: #4b5564; font-size: 1rem; }
.footerbg { background: #ebebeb; padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.footerlogo { display: block; width: min(100%, 18rem); margin: 0 auto 2rem; opacity: .6; }
.footerlogo img { width: 100%; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; min-width: 0; }
.footer__navi-heading { margin: 0 0 .75rem; font-weight: 600; }
.footer__navi { margin: 0; padding: 0; list-style: none; }
.footer__navi a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.copyright { margin: 0; padding: 1.25rem var(--gutter); text-align: center; font-family: "din-2014", sans-serif; font-size: .875rem; }

/* 入力フォーム */
.Form { width: min(100%, 45rem); margin: clamp(2rem, 5vw, 4rem) auto var(--section-space); padding-inline: 1rem; }
.Form-Item { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-block: 1.25rem; border-top: .0625rem solid #ddd; }
.Form-Item:nth-child(5) { border-bottom: .0625rem solid #ddd; }
.Form-Item-Label { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: .05em; }
.Form-Item-Label-Required { display: inline-block; margin-right: .5rem; padding: .2rem .5rem; border-radius: .25rem; background: #c8184f; color: #fff; font-size: .8125rem; }
.Form-Item-Input, .Form-Item-Textarea { min-width: 0; width: 100%; margin: 0; padding: .75rem 1rem; border: .0625rem solid #ddd; border-radius: .375rem; background: #eaedf2; color: var(--text); font-size: 1rem; }
.Form-Item-Input { min-height: 3rem; }
.Form-Item-Textarea { min-height: 12rem; resize: vertical; }
.Form-Btn { display: block; width: min(100%, 17.5rem); min-height: 3rem; margin: 2rem auto 0; padding: .75rem 1.5rem; border: 0; border-radius: .375rem; background: #00723f; color: #fff; font-size: 1.125rem; font-weight: 700; cursor: pointer; }

@media (max-width: 39.999rem) {
  :root { --site-header-height: 7.5rem; }
  .hero { min-height: 24rem; }
  .hero:not(.hero--sub) .firstimg img { object-position: 32% center; }
  .top_text_inner { right: var(--gutter); bottom: 12%; font-size: clamp(1.125rem, 4.6vw, 1.75rem); }
  .header_inner { flex-wrap: wrap; gap: .5rem .75rem; }
  nav { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
  .header_navitem a { justify-content: center; font-size: clamp(.75rem, 3.1vw, 1rem); }
  .grid { gap: 1rem; }
}
@media (max-width: 63.999rem) {
  .philosophy_text br, .philosophy_text_top br, .about_text_message br, .setoutilabo_top_text br { display: none; }
}
@media (min-width: 40rem) {
  .Form-Item { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); align-items: start; gap: 1.5rem; }
  .Form-Item-Label { padding-top: .625rem; }
}
@media (min-width: 48rem) {
  .footer_container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .common_container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-flex { display: flex; align-items: center; gap: 3rem; }
  .md-justify-between { justify-content: space-between; }
  .footerlogo { flex: 0 1 18rem; margin: 0; }
  .footer .grid { flex: 0 1 42rem; width: 100%; }
}
/* ① せとうちLABOの背景を固定 */
.setoutilabo_background {
  clip-path: none;
  isolation: auto;
  background-image: url("img/setoutibackground.jpg");
  background-attachment: fixed;
}

/* 前回追加した背景用レイヤーを解除 */
.setoutilabo_background::before {
  content: none;
}

/* ② フッターロゴ：18rem → 6remで約1/3 */
.footerlogo {
  width: 6rem;
  flex-basis: 6rem;
}

/* ③ スマホでも画像ボタンを横2列にする */
.footer_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .setoutilabo_background {
    background-size: auto 100vh;
    background-size: auto 100dvh;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

@media (min-width: 768px) {
  .setoutilabo_background {
    background-position: center calc(50%);
  }
}

@media (max-width: 767px) {

  /* indexのトップ画像を、画像枠いっぱいに配置 */
  .hero:not(.hero--sub) > .firstimg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero:not(.hero--sub) > .firstimg > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 32% center;
  }

  /* せとうちLABOの背景を表示範囲内に限定 */
  .setoutilabo_background {
    position: relative;
    isolation: isolate;
    clip-path: inset(0);
    background-image: none;
    background-attachment: scroll;
  }

  /* Safari向け：画面サイズの固定背景を別に配置 */
  .setoutilabo_background::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("img/setoutibackground.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
}
