@charset "utf-8";

/* 会社案内ページ専用 CSS */

.page-title-company {
  height: 445px;
}
.page-title-company .page-title-gradient {
  background: none;
}
.page-title-company .page-title-copy .content {
  padding-left: 0;
}
.page-title-company h2 {
  font-size: 4.0rem;
}

/*=================================================================
  ごあいさつ Greeting
=================================================================*/
.greeting {
  position: relative;
  z-index: 2;
  padding: 90px 0 60px;
  background: var(--color-white);
  overflow: visible;
}
.company-kazari {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  pointer-events: none;
}
.greeting .company-kazari-01 {
  top: 10px;
  right: calc(50% - 480px);
  width: 130px;
}
.greeting .company-kazari-03 {
  bottom: -120px;
  left: calc(50% - 660px);
  width: 280px;
}
.greeting .h2-outer {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 35px;
}
.greeting h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.greeting .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
.greeting .box-outer {
  display: block;
  position: relative;
  min-height: 600px;
}
.greeting-body {
  position: relative;
  z-index: 2;
  width: 610px;
  text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 14px #fff, 0 0 24px rgba(255, 255, 255, 0.95);
}
.greeting-body .lead {
  font-family: "Zen Maru Gothic", sans-serif;
  font-feature-settings: "palt" 1;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1C5E33;
  line-height: 1.65;
  margin-bottom: 30px;
  letter-spacing: 0.04em;
}
.greeting-body p:not(.lead):not(.signature) {
  font-size: var(--section-body-font-size);
  font-weight: 500;
  line-height: 2.0;
  color: #231815;
  margin-bottom: 6px;
  text-indent: 1em;
}
.greeting-body .signature {
  margin-top: 30px;
  text-align: right;
  font-size: 1.5rem;
  color: #1C5E33;
}
.greeting-body .signature .role {
  margin-right: 15px;
  font-size: 1.3rem;
  color: #231815;
}
.greeting-body .signature .name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.greeting-body .signature .name img {
  display: inline-block;
  width: 260px;
  height: auto;
  vertical-align: middle;
}
.greeting-photo {
  position: absolute;
  z-index: 1;
  top: -90px;
  right: -150px;
  width: 860px;
  height: 681px;
}
.greeting-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/*=================================================================
  会社概要 Outline
  実測: セクション背景 #EFF7EC (薄緑), 表 th 濃緑 #1C5E33 + 白文字, td 白背景
=================================================================*/
.outline {
  padding: 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}
.outline > .wrap {
  padding: 200px 0 20px;
  background:
    url('../images/border_back.png') no-repeat top center / 100% auto,
    linear-gradient(#EFF7EC, #EFF7EC) no-repeat 0 calc(100vw / 3 - var(--wave-fill-overlap)) / 100% calc(100% + var(--wave-fill-overlap));
}
.outline > .wrap > .content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.outline .h2-outer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.outline h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.outline .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
.outline .section-lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 50px;
  line-height: 1.8;
}
.outline .box-outer {
  display: flex;
  gap: 60px;
  align-items: stretch;
  max-width: none;
  margin: 0;
}
/* 建物写真 - 縦長で表の高さに追従 */
.outline-photo {
  flex: 0 0 auto;
  width: 43vw;
  height: clamp(320px, 28vw, 410px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.outline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.outline-table {
  flex: 0 0 calc(6vw + 540px);
  min-width: 0;
  width: calc(6vw + 540px);
  border-collapse: separate;
  border-spacing: 0 4px;   /* 行間 4px */
  font-size: var(--section-body-font-size);
}
.outline-table tbody tr {
  /* 各行の背景など */
}
/* 実測: th (項目名) は濃緑背景 + 白文字 */
.outline-table th {
  width: 150px;
  padding: 12px 20px;
  background: #1C5E33;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  vertical-align: middle;
  border-radius: 3px 0 0 3px;
}
/* 実測: td (値) は白背景 + 黒文字 */
.outline-table td {
  padding: 12px 20px;
  background: var(--color-white);
  color: #231815;
  line-height: 1.7;
  vertical-align: middle;
  border-radius: 0 3px 3px 0;
}

/*=================================================================
  許可証・登録証・表彰状
=================================================================*/
.certificates {
  position: relative;
  padding: 80px 0 90px;
  background: #EFF7EC;
  overflow: hidden;
}
.certificates .company-kazari-02 {
  top: 40px;
  right: calc(50% - 600px);
  width: 210px;
}
.cert-title {
  text-align: center;
  font-size: 3.0rem;
  font-weight: 700;
  color: #1C5E33;
  margin-bottom: 45px;
  position: relative;
  letter-spacing: 0.05em;
}
.cert-title::after {
  content: "";
  display: block;
  width: 35px;
  height: 3px;
  background: #FE8BA7;
  margin: 20px auto 0;
}
.cert-list.box-outer {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 180px) 280px;
  gap: 35px;
  max-width: 925px;
  margin: 0 auto;
}
.cert-list li {
  list-style: none;
  display: flex;
  align-items: center;
}
.cert-list .cert-image {
  display: block;
  width: 100%;
  aspect-ratio: 20 / 29;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.cert-list li:last-child .cert-image {
  aspect-ratio: 32 / 23;
}
.cert-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*=================================================================
  会社沿革 History
  実測: 背景に葉+桜のイラスト装飾 (背景は白ベース)
        丸ドット ピンク #FE8BA7 (小さめ)
        縦点線 ピンク (dotted)
        日付テキスト: 濃緑 #1C5E33
        イベントテキスト: 黒 #231815
=================================================================*/
.history {
  position: relative;
  padding: 90px 0 110px;
  background: var(--color-white) url('../images/company_history_back_img_01.jpg') no-repeat center / cover;
  overflow: hidden;
  /* 装飾: 左上に緑葉、右上に桜（背景画像 or ::before で追加可） */
}
.history .h2-outer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.history h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.history .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
.history .section-lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 50px;
  line-height: 1.8;
}
.history-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
/* 縦のピンク点線 (実測: ピンク #FE8BA7 の dotted, 大きめの点) */
.history-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 28px;
  bottom: 20px;
  width: 0;
  border-left: 3px dotted #FE8BA7;
  z-index: 0;
}
.history-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  padding: 14px 0 14px 50px;
  position: relative;
  align-items: baseline;
}
/* ピンクの丸ドット (実測: 小さめ #FE8BA7, 中央にちょこん) */
.history-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FE8BA7;
  z-index: 1;
}
.history-list .date {
  color: #1C5E33;       /* 濃緑 (実測) */
  font-weight: 700;
  font-size: var(--section-body-font-size);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.history-list .event {
  color: #231815;       /* 黒 (実測) */
  font-size: var(--section-body-font-size);
  line-height: 1.7;
}

/*=================================================================
  交通アクセス Access
=================================================================*/
.access {
  padding: 90px 0 100px;
  background: #fff;
}
.access > .wrap > .content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.access .h2-outer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.access h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.access .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
.access .section-lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 50px;
  line-height: 1.8;
}
.access-map {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 25px;
  aspect-ratio: 16 / 8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: #E5E5E5;
}
.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}
.access-map.is-map-active iframe {
  pointer-events: auto;
}
.access-address {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #231815;
  padding: 15px 20px;
  letter-spacing: 0.03em;
}
.access-address .pin {
  margin-right: 8px;
  line-height: 0;
}
.access-address .pin img {
  display: block;
  width: 18px;
  height: auto;
}

/*=================================================================
  SP 対応（≤ 768px）
=================================================================*/
@media screen and (max-width: 768px) {

.page-title-company {
  height: 200px;
}
.page-title-company .page-title-copy .content {
  padding-left: 15px;
  padding-right: 15px;
}
.page-title-company h2 {
  font-size: 32px;
}

.company-kazari {
  display: none;
}

/* Greeting */
.greeting {
  padding: 50px 15px 60px;
}
.greeting > .wrap > .content,
.certificates > .wrap > .content,
.history > .wrap > .content {
  padding-left: 0;
  padding-right: 0;
}
.greeting .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 30px;
  justify-content: center;
}
.greeting h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.greeting .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.greeting .box-outer {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.greeting-photo {
  order: 1;
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1720 / 1362;
  margin: 0 auto 25px;
}
.greeting-body {
  order: 2;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: -35px;
}
.greeting-body .lead {
  font-size: clamp(17px, 5vw, 20px);
  line-height: 1.7;
  text-align: left;
  letter-spacing: 0;
  white-space: nowrap;
}
.greeting-body p:not(.lead):not(.signature) {
  font-size: 15px;
  line-height: 1.8;
}
.greeting-body .signature .name {
  font-size: 16px;
}
.greeting-body .signature .name img {
  width: 190px;
}
.greeting-body .signature .role {
  margin-right: 10px;
  font-size: 14px;
}

/* Outline */
.outline {
  padding: 0;
}
.outline > .wrap {
  padding: 110px 15px 30px;
  background:
    url('../images/border_back.png') no-repeat top center / 100% auto,
    linear-gradient(#EFF7EC, #EFF7EC) no-repeat 0 calc(100vw / 3 - var(--wave-fill-overlap)) / 100% calc(100% + var(--wave-fill-overlap));
}
.outline > .wrap > .content {
  padding-left: 0;
  padding-right: 0;
}
.outline .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.outline h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.outline .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.outline .section-lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: 40px;
}
.outline .box-outer {
  flex-direction: column;
  gap: 25px;
}
.outline-photo {
  width: 100%;
  max-width: none;
  height: 220px;
  margin: 0 auto;
}
.outline-table {
  flex: 0 1 auto;
  width: 100%;
  table-layout: fixed;
  font-size: 13px;
}
.outline-table th,
.outline-table td {
  padding: 10px;
  display: table-cell;
  width: auto;
}
.outline-table th {
  width: 30%;
  color: #FFFFFF;
  padding-bottom: 10px;
  font-size: 13px;
}
.outline-table td {
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-wrap: anywhere;
}

/* Certificates */
.certificates {
  padding: 40px 15px 70px;
}
.cert-title {
  font-size: 20px;
  margin-bottom: 30px;
}
.cert-list.box-outer {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.cert-list li:nth-child(3),
.cert-list li:nth-child(4) {
  grid-column: 1 / -1;
  justify-content: center;
}
.cert-list li:nth-child(3) .cert-image {
  width: 50%;
}
.cert-list li:nth-child(4) .cert-image {
  width: 75%;
}
.cert-list li:last-child .cert-image {
  aspect-ratio: 32 / 23;
}

/* History */
.history {
  padding: 60px 15px 60px;
  background:
    linear-gradient(180deg, rgba(252, 246, 240, 0) 0%, rgba(252, 246, 240, 0.55) 40%, #FCF6F0 65%, #FCF6F0 100%),
    url('../images/company_history_back_img_01.jpg') no-repeat top center / 100% auto,
    #FCF6F0;
}
.history .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.history h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.history .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.history .section-lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: 40px;
}
.history-list {
  padding-left: 25px;
}
.history-list::before {
  left: 5px;
  top: 24px;
  bottom: 50px;
}
.history-list li {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 12px 0 12px 15px;
  min-width: 0;
}
.history-list li::before {
  left: -24px;
  top: 18px;
}
.history-list .date {
  font-size: 15px;
}
.history-list .event {
  font-size: 15px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Access */
.access {
  padding: 60px 15px 70px;
}
.access > .wrap > .content {
  padding-left: 0;
  padding-right: 0;
}
.access .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.access h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.access .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.access .section-lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: 40px;
}
.access-map {
  aspect-ratio: 16 / 12;
  border-radius: 8px;
}
.access-address {
  font-size: 15px;
  padding: 15px 10px;
}
.access-address .text {
  line-height: 1.8;
}

}  /* @media (max-width: 768px) */

/* 1200px基準の飾りを中間幅では画面比率に合わせる。 */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .page-title-company { height: 37.0833vw; }
  .page-title-company h2 { font-size: 3.3333vw; }
  .greeting { padding: 7.5vw 0 5vw; }
  .greeting > .wrap > .content {
    width: calc(100% - 3.3333vw);
    margin-right: 0;
    margin-left: 3.3333vw;
  }
  .greeting .h2-outer,
  .outline .h2-outer,
  .history .h2-outer,
  .access .h2-outer { gap: 1.6667vw; }
  .greeting h2,
  .outline h2,
  .history h2,
  .access h2 { font-size: 2.6667vw; }
  .greeting-body { width: 50.8333vw; }
  .greeting .box-outer { min-height: 50vw; }
  /* ごあいさつコピーは画面幅に対する比率で可変にする（28px / 1200px）。 */
  .greeting-body .lead { font-size: 2.3333vw !important; margin-bottom: 2.5vw; }
  .greeting-body p:not(.lead):not(.signature) { font-size: calc(12px + 0.1667vw); }
  .greeting-body .signature { margin-top: 2.5vw; }
  .greeting-body .signature .role { margin-right: 1.25vw; font-size: calc(10px + 0.25vw); }
  /* 署名は画面幅ではなく、ごあいさつ本文の幅に対する比率で縮小する。 */
  .greeting-body .signature .name img { width: 42.623%; }
  .greeting-photo { width: 71.6667vw; height: 56.75vw; }
  /* 薄緑の背景を .wrap 側で完結させ、許可証の直前に白い帯を作らない。 */
  .outline { padding: 0; }
  .outline > .wrap { padding: 16.6667vw 0 1.6667vw; }
  .outline .box-outer { gap: 5vw; }
  .outline-photo { width: 43vw; height: 34.1667vw; }
  .outline-table { flex-basis: 46vw; width: 46vw; font-size: calc(12px + 0.1667vw); }
  .outline-table th { width: 12.5vw; padding: 1vw 1.6667vw; }
  .outline-table td { padding: 1vw 1.6667vw; }
  .certificates { padding: 6.6667vw 0 7.5vw; }
  .cert-title { font-size: 2.5vw; margin-bottom: 3.75vw; }
  .cert-list.box-outer {
    grid-template-columns: repeat(3, 15vw) 23.3333vw;
    gap: 2.9167vw;
    max-width: 77.0833vw;
  }
  .history { padding: 7.5vw 0 9.1667vw; }
  .history-list { max-width: 66.6667vw; }
  .history-list li { grid-template-columns: 10.8333vw 1fr; gap: 2.5vw; padding: 1.1667vw 0 1.1667vw 4.1667vw; }
  .access { padding: 7.5vw 0 8.3333vw; }
  .access-map { width: 90vw; margin-bottom: 2.0833vw; }
  .access-address { font-size: calc(12px + 0.1667vw); }
  .greeting .company-kazari-01 {
    right: 10%;
    width: 8.125vw;
  }
  .greeting .company-kazari-03 {
    left: 0;
    width: 17.5vw;
  }
  .certificates .company-kazari-02 {
    right: 0;
    width: 13.125vw;
  }
}
