@charset "UTF-8";

:root {
  --hokuou-font-family: Verdana,Arial,'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro',Osaka,'ＭＳ Ｐゴシック',sans-serif;
  --hokuou-brand-green: #22aa35;
  --hokuou-name-font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --hokuou-header-green: #1ea632;
  --hokuou-phone-number-size: 26px;
}

/* セクション見出し */
.hokuou-section-eyebrow {
  margin: 0 0 17px;
  color: #16852a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.85;
  letter-spacing: .15em;
  text-align: center;
}

.hokuou-section-title,
body#main #main .hokuou-section-title {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 0 0 28px;
  padding: 0 0 44px;
  border: 0;
  background: none;
  box-shadow: none;
  color: #214d30;
  font-size: 30px !important;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
}

body#main #main .hokuou-section-title::before {
  content: none;
}

.hokuou-section-title::after,
body#main #main .hokuou-section-title::after {
  content: "";
  display: block;
  position: absolute;
  inset: auto auto 0 50%;
  width: 60px;
  height: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #22ac38;
  transform: translateX(-50%);
}

@media (max-width: 650px) {
  .hokuou-section-title,
  body#main #main .hokuou-section-title {
    padding-bottom: 32px;
    font-size: 25px !important;
  }
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  color: #111;
  font-family: var(--hokuou-font-family);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .025em;
}

.header,
.header * {
  box-sizing: border-box;
}

.header a {
  color: inherit;
  text-decoration: none;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(270px, 36%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-right: 12px;
  background: #fff;
}

.header .header-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 5px 12px;
  min-height: 94px;
  padding: 9px 30px 9px 16px;
  background: var(--hokuou-header-green);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 100%, 0 100%);
}

.site-footer-brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.header-identity > img,
.site-footer-brand > img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.header-tagline {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.35;
}

.hokuou-brand-name {
  display: grid;
  line-height: 1.2;
}

.hokuou-brand-name :is(strong, h1) {
  margin: 0;
  padding: 0;
  color: inherit;
  font-weight: 700;
  line-height: inherit;
  font-family: var(--hokuou-name-font-family);
  font-size: clamp(17px, 2vw, 30px);
}

.hokuou-brand-name-prefix {
  font-size: .72em;
}

.hokuou-brand-name small {
  font-family: Verdana, Arial, sans-serif;
  font-size: clamp(12px, 1vw, 14px);
}

.header-navigation {
  display: grid;
  justify-self: end;
  gap: 5px;
}

.header-info,
.header-sites,
.header .main-nav {
  display: flex;
  align-items: center;
}

.header-info {
  justify-content: space-between;
  gap: 16px;
}

.header-company-details {
  display: grid;
  line-height: 1.25;
  color: #111;
}

/* 電話番号 */
.hokuou-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font: 400 12px/1.15 "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

.hokuou-phone a {
  font-size: var(--hokuou-phone-number-size);
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.site-footer .hokuou-phone a {
  letter-spacing: 1.2px;
}

.hokuou-phone a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* ヘッダーのナビゲーション */
.header-company-details .hokuou-phone {
  font-size: 13px;
}

.header-company-details .hokuou-phone a {
  font-size: 29px;
}

.header-company-details small {
  font-size: 12px;
}

.header-sites {
  gap: 5px;
}

.header-sites a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid #eee;
  border-radius: 5px;
}

.header-sites img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-sites a:first-child img {
  width: 34px;
  height: 34px;
}

.header .main-nav {
  flex-wrap: wrap;
  gap: 4px 18px;
}

.header .main-nav a {
  padding-bottom: 3px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.header .main-nav a:first-child {
  background: linear-gradient(#cceacb, #cceacb) left bottom 4px / 100% 10px no-repeat;
  color: #1ea632;
}

.header .main-nav a:hover {
  color: #16852a;
}

/* お問い合わせボタン */
.contact-cta {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-content: center;
  padding: 6px 10px;
  background: #000;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
}

.header .header-cta {
  width: 112.63px;
  margin-left: 15px;
}

.contact-cta {
  overflow: visible;
  min-height: 80px;
  padding: 8px 6px;
  align-content: center;
  justify-content: stretch;
  gap: 7px;
  border-radius: 8px;
  background: #fc6d50;
  color: #332400;
}

.contact-cta::before,
.illustrated-button::before {
  content: "";
  position: absolute;
  background: url("./company-overview-staff.png") center bottom / contain no-repeat;
  pointer-events: none;
}

.contact-cta::before {
  left: -25px;
  bottom: -6px;
  width: 65px;
  height: 60px;
}

.contact-cta:is(:hover, :focus-visible) {
  background: color-mix(in srgb, #fc6d50 80%, white);
}

.contact-cta:focus-visible {
  outline: 2px solid #16852a;
  outline-offset: 3px;
}

.contact-cta strong {
  position: relative;
  padding-left: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
}

.contact-cta strong::after,
.illustrated-button > span::after {
  content: "";
  box-sizing: border-box;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.contact-cta small {
  padding: 3px 2px 3px 14px;
  border-radius: 100px;
  background: #fff;
  color: #332400;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 1041px) {
  .header-navigation,
  .header .header-cta {
    align-self: start;
    margin-top: 8px;
  }

  .header .header-cta {
    width: 128px;
    margin-left: 30px;
    translate: -10px 0;
  }

  .header .header-cta::before {
    left: -38px;
    bottom: -6px;
    width: 90px;
    height: 76px;
  }


  .header .main-nav {
    column-gap: 21px;
  }

  .header-sites {
    align-self: start;
  }
}

@media (max-width: 1040px) {
  .header {
    position: static;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .header .header-identity {
    padding-right: 16px;
    clip-path: none;
  }

  .header-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    padding: 0 0 10px 12px;
  }

  .header .main-nav {
    gap: 6px 14px;
  }
}

@media (max-width: 768px) {
  [data-company-header] + #header {
    padding-top: 0;
  }
}

.header-menu-toggle {
  display: none;
}

@media (max-width: 1040px) {
  .has-mobile-menu .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    padding: 0 12px 0 0;
    background: var(--hokuou-header-green);
  }

  .has-mobile-menu .header-inner > .header-navigation,
  .header.has-mobile-menu .header-cta {
    display: none;
  }

  .header-menu-toggle,
  .header-menu-close {
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
  }

  .has-mobile-menu .header-menu-toggle {
    display: grid;
    align-self: center;
    margin: 0;
    color: #fff;
  }

  .header-menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -7px currentColor, 0 7px currentColor;
  }

  .header-menu-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(25rem, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 16px 20px 24px;
    border: 0;
    background: #fff;
    color: #111;
    overscroll-behavior: contain;
  }

  .header-menu-dialog::backdrop {
    background: rgb(0 0 0 / 48%);
  }

  @media (prefers-reduced-motion: no-preference) {
    .header-menu-dialog[open] {
      animation: header-menu-slide-in .24s ease-out both;
    }
  }

  @keyframes header-menu-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .header-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hokuou-header-green);
  }

  .header-menu-close {
    display: grid;
  }

  .header-menu-dialog .header-navigation {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .header-menu-dialog .header-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-menu-dialog .header-company-details {
    white-space: normal;
  }

  .header .header-menu-dialog .main-nav {
    display: grid;
    gap: 0;
  }

  .header .header-menu-dialog .main-nav a {
    padding: 9px 0;
    border-bottom: 1px solid #ddd;
    background: transparent;
  }

  .header a.header-menu-contact {
    display: block;
    padding: 10px;
    border-radius: 6px;
    background: #167a28;
    color: #fff;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .header-tagline {
    display: none;
  }

  .header .header-identity {
    min-height: 72px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding-inline: 8px;
    column-gap: 6px;
  }

  .site-footer-brand {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
  }

  .header-identity > img,
  .site-footer-brand > img {
    width: 36px;
    height: 36px;
  }

  .header-info {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* フッター */
.site-footer {
  background: #fff;
  color: #292929;
  font: 400 13px/1.5 var(--hokuou-font-family);
  letter-spacing: normal;
}

.site-footer * {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 12px;
  padding: 40px 16px 0;
}

.site-footer-nav a {
  border-inline-start: 1px solid currentColor;
  padding-inline: 16px;
  color: #16852a;
  font-size: 12px;
  line-height: 1.1;
}

.site-footer-nav a:last-child {
  border-inline-end: 1px solid currentColor;
}

.site-footer-nav a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.site-footer-content {
  display: grid;
  grid-template-columns: minmax(0, 558fr) minmax(0, 310fr) var(--site-footer-contact-width, 112px);
  align-items: start;
  gap: 24px;
  width: min(calc(100% - 48px), 1100px);
  margin: 40px auto 16px;
}

.site-footer-company {
  container-type: inline-size;
}

.site-footer-phone {
  flex-wrap: wrap;
}

.site-footer-fax {
  margin-inline-start: 5px;
  font-size: 13px;
  white-space: nowrap;
}

@container (max-width: 344px) {
  .site-footer-phone {
    column-gap: 4px;
    font-size: 11px;
  }

  .site-footer .site-footer-phone a {
    font-size: clamp(16px, calc(10cqi - 7px), 24px);
  }

  .site-footer-fax {
    margin-inline-start: 2px;
    font-size: 11px;
  }
}

.site-footer-address {
  margin: 8px 0 4px;
  font-size: 12px;
}

.site-footer-initiatives {
  display: grid;
  margin-top: 5px;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.site-footer-initiatives h2 {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin: 15px 0 0;
  padding: 4px;
  border: 1px solid #333;
  color: #000;
  font-size: 13px;
  text-align: center;
}

.site-footer-initiatives ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(144px, 1.25fr) minmax(90px, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-initiatives li {
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 9px;
}

.site-footer-initiatives li:nth-child(n + 2) > span {
  white-space: nowrap;
}

.site-footer-initiatives img {
  display: block;
  width: 100%;
  height: 111px;
  object-fit: contain;
  margin-bottom: 3px;
}

.site-footer .site-footer-copyright {
  margin: 0;
  padding: 14px 16px;
  background: #000;
  color: #fff;
  font-size: 11px;
  text-align: center;
}

@media (min-width: 1001px) {
  .site-footer-initiatives {
    grid-area: 1 / 1;
    width: calc(100% - 130px);
    justify-self: start;
  }

  .site-footer-initiatives img {
    height: 88px;
  }

  .site-footer-company {
    grid-area: 1 / 2;
    margin-inline-start: -60px;
  }
}

@media (max-width: 1000px) {
  .site-footer-content {
    grid-template-columns: minmax(0, 1fr) var(--site-footer-contact-width, 112px);
  }

  .site-footer-initiatives {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-footer-initiatives img {
    max-width: 140px;
    margin-inline: auto;
  }
}

@media (max-width: 540px) {
  .site-footer-nav {
    padding-top: 28px;
  }

  .site-footer-nav a {
    padding-inline: 10px;
  }

  .site-footer-content {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 32px), 400px);
    margin-block: 28px 16px;
  }

  .site-footer-initiatives {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-initiatives h2 {
    min-height: 0;
    margin: 0;
    padding: 6px;
  }

  .site-footer-initiatives ul {
    gap: 6px;
  }

  .site-footer-initiatives img {
    height: 80px;
  }

}

@media (min-width: 1041px) {
  .header.has-scroll-shadow {
    box-shadow: 0 5px 14px rgb(0 0 0 / 16%);
  }
}

/* 会社概要の項目表 */
.company-table {
  margin: 0;
}

.company-table > div {
  display: grid;
  border-bottom: 1px solid #dce6dd;
  font-size: 16px;
}

.company-table :is(dt, dd) {
  margin: 0;
  padding: 14px 12px;
}

.company-table dt {
  background: #f5f8f4;
}

.company-table dd a {
  color: #16852a;
  text-decoration: underline;
}

/* イラスト付きの案内ボタン */
.illustrated-button {
  position: relative;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center stretch;
  justify-items: center;
  gap: 5px;
  width: 200px;
  max-width: calc(100% - 26px);
  min-height: 62px;
  margin-inline-start: 26px;
  padding: 9px 12px 9px 30px;
  border-radius: 8px;
  background: var(--illustrated-button-background, #16852a);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.illustrated-button > small {
  box-sizing: border-box;
  width: 100%;
  padding: 3px 5px;
  border-radius: 100px;
  background: #fff;
  color: #214d30;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.illustrated-button > span {
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.illustrated-button::before {
  left: -26px;
  bottom: -6px;
  width: 70px;
  height: 84px;
}

.illustrated-button:is(:hover, :focus-visible) {
  background: var(--illustrated-button-hover, #126e24);
  color: #fff;
}

.illustrated-button:focus-visible {
  outline: 2px solid #16852a;
  outline-offset: 3px;
}

/* 拠点カード・会社サイトのフッター */
.lower-contact-cta {
  --lower-contact-width: 156px;
  width: var(--lower-contact-width);
  padding-inline: 44px 8px;
}

.lower-contact-cta > :is(small, strong) {
  padding-inline: 0;
}

.site-footer-content:has(> .lower-contact-cta) {
  --site-footer-contact-width: 176px;
}

.lower-contact-cta::before {
  left: -16px;
  width: 58px;
  height: 64px;
}

.site-footer .lower-contact-cta {
  --lower-contact-width: var(--site-footer-contact-width);
  padding-inline-start: 52px;
}

.site-footer .lower-contact-cta::before {
  left: -20px;
  bottom: -11px;
  width: 72px;
  height: 80px;
  transform-origin: right bottom;
  scale: 1.2;
  z-index: 1;
}

.site-footer .lower-contact-cta > small {
  margin-inline-start: -31px;
  text-align: center;
  font-size: 10px;
}

.site-footer .lower-contact-cta > strong {
  font-size: 14px;
  translate: -13px 0;
  scale: 1.2;
  z-index: 2;
}

@media (min-width: 1001px) {
  .site-footer-content:has(> .lower-contact-cta) {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .site-footer-content:has(> .lower-contact-cta) > .site-footer-initiatives {
    grid-row: 1 / -1;
  }

  .site-footer .lower-contact-cta {
    grid-area: 1 / 3;
    align-self: end;
  }
}

@media (max-width: 540px) {
  .site-footer .lower-contact-cta {
    justify-self: center;
  }
}
