@charset "UTF-8";
/* CSS Document */

:root {
  --bunin: #10B78A;
  --aspect: 103 / 20;
  --logo-h: 17px;
  --logo-w: calc((var(--aspect)) * var(--logo-h));
}

#header .header-logo a, #footer .footer-logo {
  padding-right: calc(var(--logo-w) + 20px + 14px);
}

#header .header-logo a::before {
  background-color: var(--bunin);
}

#header .header-logo a::before, #footer .footer-logo::before {
  width: calc(var(--logo-w) + 20px);
}

#header .header-logo a::after, #footer .footer-logo::after {
  aspect-ratio: var(--aspect);
  mask-image: url("../images/logo_bunin.svg");
  width: var(--logo-w);
  right: 10px;
}

#h1-area h1 {
  background: var(--gray1);
  color: var(--bunin);
  padding-bottom: 0;
}

.heading-h2,
.heading-h3,
.heading-h4 {
  color: var(--bunin);
}

#footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 40px;
}

@media screen and (min-width: 769px) {

  #footer {
    row-gap: 27px;
  }
  
  #footer .footer-logo {
    order: 1;
  }
  
  .ft-bnr {
    order: 2;
  }
  
  #fnav {
    order: 3;
  }
  
  #copyright {
    order: 4;
  }
  
  #footer .footer-logo, .ft-bnr {
    align-self: flex-start;
  }
  
  #fnav, #copyright {
    align-self: center;
  }
}

#footer .footer-logo::after {
  background-color: var(--bunin);
}

#fnav {
  width: fit-content;
}

.ft-bnr {
  margin: 0;
  padding: 0 0 5px 0;
  width: fit-content;
}

#copyright {
  display: block;
}

.gmap {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.gmap iframe {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.note-list {
  display: flex;
  gap: 30px;
}

.note-item {
  background-color: #F8F8F8;
  border-radius: 4px;
  padding: 30px;
  width: calc((100% - 60px) / 3);
}

.note-item > a {
  display: block;
  height: 100%;
  padding-bottom: 50px;
  position: relative;
}

.note-item .date {
  color: #677F8D;
  font-size: 0.941em;  /* 文字基本サイズ → 16px*/
  margin-bottom: 9px;
}

.note-item .head {
  color: var(--bunin);
  font-size: 20px;
  font-weight: var(--fw-mid);
  line-height: 1.45;
  margin-bottom: 12px;
}

.note-item .summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.76;
  margin-bottom: 1.5em;
}

.note-item figure {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  overflow: hidden;
}

.note-item figure img {
  height: 100%;
  width: 100%;
  max-width: inherit;
  object-fit: cover;
  transition: .4s;
}

.note-item a:hover figure img {
  transform: scale(1.05);
}

.note-item .more {
  color: var(--main);
  text-decoration: underline;
  margin-bottom: 0;
  position: absolute;
  bottom: 10px;
  left: 0;
}



/**************************** 
 SP
**************************** */

@media screen and (max-width: 768px) {

#header .header-logo a {
  --logo-h: 12px;
  --logo-w: calc((var(--aspect)) * var(--logo-h));
  padding-right: calc(var(--logo-w) + 16px + 11px);
}

#header .header-logo a::before {
  width: calc(var(--logo-w) + 16px);
}

#header .header-logo a::after {
  right: 8px;
}

#h1-area h1 {
  letter-spacing: .05em;
}

#main-content {
  margin-bottom: 70px;
}

#footer {
  padding-top: 50px;
  padding-bottom: 60px;
  flex-direction: column;
  row-gap: 30px;
}
  
#fnav .sub-nav2 li:nth-child(1) {
  width: 100%;
}

.ft-bnr {}

#copyright {
  margin-top: -14px;
}

.note-list {
  flex-direction: column;
  gap: 20px;
}

.note-item {
  border-radius: 10px;
  padding: 35px 20px;
  width: 100%;
}

.note-item > a {
  padding-bottom: 40px;
}

.note-item .more {
  bottom: 0;
}

}