/* Web Fonts
============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap");

:root {
  /* 色 */
  --color-fonts: #333; /* 文字 */
  --color-base: #fff; /* ベースカラー */
  --color-main: #87c45b; /* メインカラー */
  /* --color-sub: #36c; */ /* サブカラー */
  /* --color-accent: #ff4f55; */ /* アクセントカラー */
  --color-border: #ccc; /* 境界 */
  /* z-index */
  --z-index-container: 0;
  --z-index-overlay: 100;
  --z-index-spmenu: 200;
  --z-index-hamburger: 300;
  /* font-family */
  --font-family-notosansjp: "Noto Sans JP", "Helvetica Neue", arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", meiryo, sans-serif;
  --font-family-notoserifjp: "Noto Serif JP", "Times New Roman", "YuMincho",
    "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  --font-family-opensans: "Open Sans", sans-serif;
  /* 幅 */
  /* --width-xs: 0; */
  --width-sm: 576px;
  --width-md: 768px;
  --width-lg: 992px;
  --width-xl: 1200px;
  --width-xxl: 1400px;
}

/* Note
=============================================================

  ブレイクポイント一覧
  
  xs: 0
  sm: 576px
  md: 768px
  lg: 992px
  xl: 1200px
  xxl: 1400px

  @media only screen and (max-width: 1399.98px) {
  }
  @media only screen and (max-width: 1199.98px) {
  }
  @media only screen and (max-width: 991.98px) {
  }
  @media only screen and (max-width: 767.98px) {
  }
  @media only screen and (max-width: 575.98px) {
  }

  @media only screen and (min-width: 1400px) {
  }
  @media only screen and (min-width: 1200px) {
  }
  @media only screen and (min-width: 992px) {
  }
  @media only screen and (min-width: 768px) {
  }
  @media only screen and (min-width: 576px) {
  }
  
/* 初期化
============================================================= */

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;

  &:hover {
    opacity: 0.8;
  }
}

address {
  font-style: normal;
}

img {
  image-rendering: auto;
}

hr {
  width: 100%;
  height: 0;
  margin: 20px 0;
  border: none;
  border-top: 2px solid var(--color-border);
}

/* input */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  max-width: 100%;
  padding: 0.5em;
  margin-top: 10px;
  line-height: 1.2em;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-sub);
}

/* CSS Hack */

/* Chromeで画像がぼやけるのを防ぐ */
/* stylelint-disable-next-line selector-type-no-unknown */
_:lang(x)::-internal-media-controls-overlay-cast-button,
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Fonts
============================================================= */

body {
  font-family: var(--font-family-notosansjp);
  font-weight: 400;
  color: var(--color-fonts);
}

/* Wrapper
============================================================= */

.container {
  position: relative;
  z-index: var(--z-index-container);
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--color-base);
}

.background {
  width: 100%;
  padding: 80px 0;
  background-color: var(--color-main);
}

/* header
============================================================= */
.header {
  width: 100%;
  background-color: #87c45b;
}

.header__inner {
  width: 100%;
  max-width: var(--width-lg);
  margin: 0 auto;
  color: #fff;
}

.header-content {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 40%;
  background-image: url("../images/main_top.png");
  background-repeat: no-repeat;
  background-position: center left 5%;
  background-size: 65%;
}

@media only screen and (max-width: 767.98px) {
  .header-content {
    padding-top: 100%;
    background-position: bottom 5% center;
    background-size: 60%;
  }
}

.header-title {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 22%;
}

.header-title img {
  display: block;
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 767.98px) {
  .header-title {
    top: 5%;
    right: 50%;
    width: 40%;
    min-width: 180px;
    transform: translateX(50%);
  }
}

/* Main
============================================================= */

.main {
  width: 100%;
}

/* footer
============================================================= */
.footer {
  width: 100%;
  padding: 40px 4%;
  font-size: 14px;
  color: #fff;
  background-color: var(--color-main);
}

.footer-gmap {
  width: 100%;
  max-width: 992px;
  aspect-ratio: 3 / 2;
  margin: auto;
}

.footer-gmap iframe {
  width: 100%;
  height: 100%;
}

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

/* heading
============================================================= */

.heading-sect {
  padding: 0.25em;
  margin: 0 auto 1em;
  font-weight: 500;
  font-feature-settings: "palt";
  border-bottom: 2px solid var(--color-main);
}

.heading-sect--center {
  width: fit-content;
  min-width: 8em;
  padding: 0.25em 0.5em;
  text-align: center;
}

.heading-box {
  display: block;
  width: fit-content;
  padding: 0.5em 0.75em 0.5em 0.74em;
  margin: 0 0 1em;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.1em;
  background-color: #fff;
  border: 4px solid #333;
}

.heading-box--center {
  margin: 0 auto 1em;
}

/* section
============================================================= */

.sect-page {
  width: 92%;
  max-width: 992px;
  margin: 0 auto;
}

/* ===========================================================
  home
============================================================= */

/* company
============================================================= */
.company-info {
  display: flex;
  gap: 40px 80px;
  align-items: center;
}

.company-info__figure > img {
  display: block;
  width: 180px;
}

.company-info__figure-caption {
  margin-top: 0.5em;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.company-info__figure-caption > small {
  font-size: 14px;
}

.company-info__text {
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 2em;
  text-align: justify;
}

@media only screen and (max-width: 767.98px) {
  .company-info {
    flex-direction: column;
  }

  .company-info__text {
    font-size: 14px;
  }
}

/* contact
============================================================= */
.contact {
  display: flex;
  gap: 10px 20px;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  font-size: 20px;
  background-image: url("../images/tone.png");
  background-repeat: repeat;
}

@media only screen and (max-width: 767.98px) {
  .contact {
    flex-direction: column;
    font-size: 16px;
  }
}

.contact-tel {
  font-family: var(--font-family-opensans);
  font-size: 2em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-tel img {
  display: inline-block;
  width: 0.75em;
  height: auto;
  margin-right: 0.25em;
}

/* 生産活動
============================================================= */

.list-activity {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
  list-style: none;
}

@media only screen and (max-width: 767.98px) {
  .list-activity {
    flex-direction: column;
  }
}

.list-activity__item {
  position: relative;
  max-width: 320px;
}

.list-activity__item::before {
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: -1;
  width: 100%;
  height: 100%;
  content: "";
  background-color: #87c45b;
}

.list-activity__item img {
  display: block;
  width: 100%;
  height: auto;
}

.list-photo {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.list-photo__item {
  max-width: 400px;
}

.list-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 767.98px) {
  .list-photo {
    flex-direction: column;
  }
}

/* pay
============================================================= */
.pay {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  font-size: 24px;
}

.pay__item {
  display: flex;
  gap:1em;
  align-items: center;
  justify-content: center;
  padding: 2em 0;
  font-feature-settings: "palt";
  background-image: url("../images/tone.png");
  background-repeat: repeat;
}

.pay__item--1 {
  flex: 3;
}

.pay__item--2 {
  flex: 2;
}

.pay__item--3 {
  width: 100%;
}

.pay__item-title {
  letter-spacing: .1em;
  white-space: nowrap;
}

@media only screen and (max-width: 767.98px) {
  .pay {
    flex-direction: column;
    font-size: 16px;
  }

  .pay__item {
    justify-content: flex-start;
  }

  .pay__item--1,
  .pay__item--2,
  .pay__item--3 {
    flex: 1;
    width: 100%;
    padding: 2em 1em;
  }
}

/* flow
============================================================= */

.list-flow {
  display: flex;
  gap: 80px;
  list-style: none;
}

.list-flow__item {
  position:relative;
}

.list-flow__item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right:-80px;
  display:block;
  width:2.5em;
  height:2.5em;
  content:'';
  background-image: url("../images/arrow.png");
  background-size: contain;
  transform: translate(-50%, -50%);
}

.list-flow__item img {
  display: block;
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 767.98px) {
  .list-flow {
    flex-direction: column;
    align-items: center;
  }

  .list-flow__item {
    max-width:320px;
  }

  .list-flow__item:not(:last-child)::after {
    inset: auto auto -70px 50%;
    transform: translate(-50%, 0) rotate(90deg);
  }
}