/*=====
  Common
=====*/
@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap");
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Old Mincho", serif;
  color: #333;
  max-width: 1920px;
  margin: auto;
}

.font-mincho {
  font-family: "Zen Old Mincho", serif;
}

.font-crimson {
  font-family: "Crimson Text", "Zen Old Mincho", serif;
}

:root {
  --main: #b62135;
  --sub: #1e5c8c;
}

.bg-main {
  background: var(--main) !important;
}

.bg-sub {
  background: var(--sub) !important;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  opacity: 0.75;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.button {
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--main);
  padding: 0.5rem 2rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
}

.button::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: 50px;
}

.button:hover {
  opacity: 1;
}

.button:hover::before {
  opacity: 0.25;
}

.button-sub {
  background: var(--sub);
}

@media screen and (max-width: 960px) {
  .button {
    font-size: 1.25rem;
  }
}
.button .icon-arrow {
  margin-left: 1rem;
  height: 6px;
}

.section-title, .section-title-r {
  background: var(--sub);
  padding: 0.5rem 0;
}
.section-title h2, .section-title-r h2 {
  width: 80%;
  margin-left: auto;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
}
.section-title h2::after, .section-title-r h2::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;
  margin-left: 2rem;
}

.section-title-r h2 {
  width: 60%;
  margin-left: 0;
  margin-right: auto;
}
.section-title-r h2::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;
  margin-right: 2rem;
}
.section-title-r h2::after {
  display: none;
}

@media screen and (max-width: 960px) {
  .section-title, .section-title-r {
    width: 90%;
  }
  .section-title h2, .section-title-r h2 {
    font-size: 2rem;
  }
  .section-title-r {
    width: 100%;
  }
}
br.sp-br {
  display: none;
}

@media screen and (max-width: 960px) {
  br.sp-br {
    display: initial;
  }
}
/*=====
  header
=====*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 128px;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 1920px;
  margin: auto;
}
.header .logo {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  opacity: 1;
}
.header .logo .main-logo {
  width: 100%;
  max-width: 120px;
}
.header .logo .name-logo {
  margin-left: 1rem;
}
.header .logo .name-logo img {
  width: 100%;
  max-width: 320px;
  margin-bottom: 0.2rem;
}
.header .logo .name-logo h2 {
  color: #fff;
  font-size: 1.1rem;
  text-align: right;
  border-top: var(--main) solid 2px;
}
.header .nav {
  margin: 0 1.5rem 0 1.5rem;
  font-weight: bold;
}
.header .nav .nav-text {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.header .nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.header .nav .nav-links li a {
  font-size: 1.1rem;
  color: #fff;
}
.header .buttons {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.header .buttons .button {
  border-radius: 0;
  width: 100%;
  height: 50%;
  padding: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: bold;
}
.header .buttons .button .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-right: 1rem;
}
.header .buttons .button .text {
  min-width: -moz-fit-content;
  min-width: fit-content;
  width: 75%;
}
.header .buttons .button::before {
  border-radius: 0;
}
.header .sp-hamburger {
  position: absolute;
  z-index: 1001;
  top: 0;
  right: 0;
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10%;
  background: var(--main);
  height: 100%;
  aspect-ratio: 1/1;
}
.header .sp-hamburger .line {
  height: 1px;
  width: 30%;
  background-color: #fff;
  content: "";
  transition: 0.3s;
}
.header .sp-hamburger.active .line:nth-child(1) {
  position: absolute;
  top: 50%;
  bottom: 50%;
  width: 40%;
  transform: rotate(-45deg);
}
.header .sp-hamburger.active .line:nth-child(2) {
  opacity: 0;
}
.header .sp-hamburger.active .line:nth-child(3) {
  position: absolute;
  top: 50%;
  bottom: 50%;
  width: 40%;
  transform: rotate(45deg);
}
.header .sp-nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: -120%;
  width: 70vw;
  height: 100vh;
  background-color: var(--main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}
.header .sp-nav .nav-links {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.header .sp-nav .nav-links li a {
  color: #fff;
  font-size: 1.2rem;
}
.header .sp-nav.active {
  right: 0;
}
.header .overlay {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.75;
}
.header .overlay.active {
  display: block;
}

body.no-scroll {
  overflow: hidden;
  height: 100%;
}

@media screen and (max-width: 1120px) {
  .header .nav {
    display: none;
  }
  .header .buttons {
    display: none;
  }
  .header .sp-hamburger {
    display: flex;
  }
}
@media screen and (max-width: 768px) {
  .header {
    height: 65px;
  }
  .header .logo {
    margin-left: 0.5rem;
  }
  .header .logo .main-logo {
    max-width: 70px;
  }
  .header .logo .name-logo {
    margin-left: 0.5rem;
  }
  .header .logo .name-logo img {
    max-width: 140px;
  }
  .header .logo .name-logo h2 {
    font-size: 0.7rem;
  }
}
/*=====
  mv
=====*/
.mv {
  width: 100%;
  height: 100vh;
  position: relative;
}
.mv .img-wrapper {
  width: 100%;
  height: 100%;
}
.mv .img-wrapper .glide, .mv .img-wrapper .glide__track, .mv .img-wrapper .glide__slides {
  height: 100%;
}
.mv .img-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.mv .container {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}
.mv .container .copy {
  position: absolute;
  z-index: 1;
  bottom: 20%;
  left: 5%;
  margin-top: auto;
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 2px 3px rgb(0, 0, 0);
}
.mv .name {
  position: absolute;
  z-index: 1;
  bottom: 1%;
  left: 1%;
  font-size: 2.5rem;
  color: #fff;
  opacity: 0.5;
}
.mv .triangle {
  -webkit-clip-path: polygon(0 60%, 0% 100%, 55% 100%);
          clip-path: polygon(0 60%, 0% 100%, 55% 100%);
  background: var(--main);
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .mv {
    height: 50vh;
  }
  .mv .container .copy {
    left: 0;
    right: 0;
    bottom: 13%;
    font-size: 1.3rem;
    width: -moz-fit-content;
    width: fit-content;
    padding: 0 0.5rem;
    margin: 0 auto;
  }
  .mv .name {
    font-size: 1.8rem;
  }
  .mv .triangle {
    -webkit-clip-path: polygon(0 75%, 0% 100%, 100% 100%);
            clip-path: polygon(0 75%, 0% 100%, 100% 100%);
  }
}
/*=====
  news
=====*/
.news {
  padding: 5rem 0;
}
.news .container {
  width: 90%;
  max-width: 960px;
  margin: auto;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--main);
}
.news .container .flex-left {
  background: var(--main);
  padding: 2rem 8%;
}
.news .container .flex-left h2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.news .container .flex-left h2 .main {
  font-size: 3rem;
  font-weight: bold;
}
.news .container .flex-left h2 .sub {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: right;
}
.news .container .news_box {
  padding: 3rem;
  max-height: 400px;
  overflow-y: scroll;
}
.news .container .flex-right li {
  grid-template-columns: auto 1fr;
  column-gap: 1em;
  align-items: start;
  position: relative;
  padding-top: 1rem;
}
.news .container .flex-right li .news-ttl {
  color: #000 !important;
  text-decoration: none;
}
.news .container .flex-right li .date {
  margin-right: 1rem;
}
.news .container .flex-right li .text {
  position: relative;
  border-bottom: none;
  padding-bottom: 1rem;
}
.news .container .flex-right li:last-child {
  border-bottom: none;
  padding-bottom: 0rem;
  margin-bottom: 0rem;
}
.news .container .flex-right li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 3px dotted var(--main);
  pointer-events: none;
}

@media screen and (max-width: 960px) {
  .news .container {
    flex-direction: column;
  }
  .news .container .flex-left h2 .main {
    text-align: center;
    font-size: 2rem;
  }
  .news .container .flex-left h2 .sub {
    text-align: center;
    font-size: 1.25rem;
  }
  .news .container .flex-right li {
    flex-direction: column;
  }
}

@media screen and (max-width: 660px) {
  .news .container .flex-right li {
  display: block !important;
}
}

/* single */
.news .container.single {
  max-width: 960px;
  margin: auto !important;
  width: auto;
  display: block;
  align-items: normal;
  border: none;
}

.news .container.single .news_box {
  overflow-y: visible;
  max-height: none;
  padding: 3rem;
}

.news .container.single .flex-left {
  margin-left: 10px;
  margin-right: 10px;
}

.news .container.single .flex-left h2 .sub-single {
  font-size: 1.5rem;
  font-weight: bold;
}

.news-detail__content-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 5px auto;
  padding: 5px 10px;
  gap: 20px;
  font-size: 20px;
}

.news-detail__content-flex {
  margin-bottom: 150px;
}

.news-detail__content-flex a,
.news-detail__content-flex a:visited,
.news-detail__content-flex a:hover,
.news-detail__content-flex a:active {
  color: #000;
  text-decoration: none;
}

@media screen and (max-width: 960px) {
  .news .container .flex-left h2 .main,
  .news .container.single .flex-left h2 .main {
    text-align: center;
  }

  .news .container .flex-left h2 .sub,
  .news .container.single .flex-left h2 .sub,
  .news .container .flex-left h2 .sub-singe,
  .news .container.single .flex-left h2 .sub-singe {
    text-align: center;
    font-size: 1.25rem;
  }
}

/* category-news */
body.category-news .news .container .flex-right li .text {
  padding-bottom: 3rem;
}

body.category-news .news .container .flex-right li:not(:first-child) {
    padding-top: 3rem;
}

.news-content-link {
  color: inherit;
  text-decoration: none;
}

.news-content-link:hover,
.news-content-link:focus,
.news-content-link:active {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

body.category-news .news-detail__content-flex {
  padding: 5px 48px;
}

body.category-news .news .container.single .news_box {
  overflow-y: visible;
  max-height: none;
  padding: 0 3rem 0 3rem;
}

/* category-news */

.news-archive-page .flex-container {
  display: flex;
  gap: 2rem;
}

.news-archive-page .news_box {
  flex: 1 1 70%;
}

.news-archive-page .news-sidebar {
  align-self: flex-start;
  background: #f9f9f9;
  padding: 20px;
  margin: 0 auto;
  border-radius: 8px;
}

.news-archive-page .sidebar-archive h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.news-archive-page .sidebar-archive ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-archive-page .sidebar-archive li {
  margin-bottom: 0.5em;
}

.news-archive-page .sidebar-archive a {
  text-decoration: none;
  color: #333;
  display: flex;
  justify-content: space-between;
}

.news-archive-page .sidebar-archive a:hover {
  text-decoration: underline;
}

.news-content-with-sidebar {
  display: flex;
  gap: 20px;
}

.news-content-with-sidebar .news_box {
  flex: 1;
}

@media (max-width: 600px) {
    .news-archive-page .news-detail__content-flex {
    margin-bottom: 10px;
}

  .news-content-with-sidebar {
    flex-direction: column;
  }

  .news-sidebar {
    width: 80%;
  }

.news-archive-page .news-sidebar {
    box-sizing: border-box;
    background-color: #f9f9f9;
    padding: 20px;
    margin: 0 auto;
    border-radius: 8px;
    }
}

/*=====
  greeting
=====*/
.greeting {
  margin-bottom: 8rem;
}
.greeting .flex {
  display: flex;
  gap: 5%;
}
.greeting .flex .flex-left {
  width: 40%;
}
.greeting .flex .flex-left .container {
  padding: 2rem 0;
  width: 80%;
  margin-left: auto;
}
.greeting .flex .flex-left .container h3 {
  margin-bottom: 1.5rem;
}
.greeting .flex .flex-right {
  width: 55%;
}

@media screen and (max-width: 960px) {
  .greeting .flex {
    flex-direction: column;
  }
  .greeting .flex .flex-left {
    width: 100%;
  }
  .greeting .flex .flex-left .container {
    width: 90%;
    margin: auto;
    margin-bottom: 3rem;
  }
  .greeting .flex .flex-right {
    width: min(100%, 768px);
    margin: auto;
  }
}
/*=====
  area
=====*/
.area {
  margin-bottom: 8rem;
}
.area .flex {
  display: flex;
  gap: 5%;
}
.area .flex .flex-left {
  width: 55%;
}
.area .flex .flex-left img {
  max-width: min(100%, 600px);
  margin: auto;
}
.area .flex .flex-right {
  width: 40%;
}
.area .flex .flex-right .section-title-r h2 .block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
}
.area .flex .flex-right .section-title-r h2 .block .sub {
  font-size: 1.2rem;
}
.area .flex .flex-right .container {
  padding: 2rem 0;
}
.area .flex .flex-right .container h3 {
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 960px) {
  .area .flex {
    flex-direction: column-reverse;
  }
  .area .flex .flex-left {
    width: 90%;
    margin: auto;
  }
  .area .flex .flex-left img {
    max-width: min(100%, 600px);
    margin: auto;
  }
  .area .flex .flex-right {
    width: 90%;
    margin-left: auto;
  }
  .area .flex .flex-right .section-title-r h2 .block .sub {
    font-size: 1rem;
    white-space: nowrap;
  }
  .area .flex .flex-right .container {
    padding-right: 2rem;
    margin-bottom: 3rem;
  }
}
/*=====
  business
=====*/
.business {
  margin-bottom: 8rem;
}
.business .section-title, .business .section-title-r {
  width: 40%;
  margin-bottom: 3rem;
}
.business .container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 5rem;
}
.business .container .sub-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
}
.business .container .flex {
  display: flex;
  gap: 5%;
}
.business .container .flex .img {
  width: 50%;
}
.business .container .flex .img img {
  margin-bottom: 0.25rem;
}
.business .container .flex .img .text {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

@media screen and (max-width: 960px) {
  .business .section-title, .business .section-title-r {
    width: 90%;
  }
  .business .container .sub-title {
    text-align: center;
  }
  .business .container .flex {
    flex-wrap: wrap;
  }
  .business .container .flex .img {
    width: 100%;
    margin-bottom: 3rem;
  }
  .business .container .flex .img img {
    width: min(100%, 540px);
    margin: auto;
  }
}
/*=====
  company
=====*/
.company {
  margin-bottom: 8rem;
}
.company .flex {
  display: flex;
  gap: 5%;
  margin-bottom: 5rem;
}
.company .flex .flex-left {
  width: 55%;
}
.company .flex .flex-right {
  width: 40%;
}
.company .flex .flex-right .section-title-r {
  margin-bottom: 3rem;
}
.company .flex .flex-right .section-title-r h2 {
  width: 70%;
}
.company .flex .flex-right .section-title-r h2 .block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.company .flex .flex-right .section-title-r h2 .block .sub {
  font-size: 1.2rem;
}
.company .flex .flex-right .container {
  width: 90%;
  margin: auto;
}
.company .flex .flex-right .container .sub-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
}
.company .flex .flex-right .container .table .row {
  display: flex;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.company .flex .flex-right .container .table .th {
  width: 30%;
  padding-left: 1.5rem;
}
@media screen and (max-width: 960px) {
  .company .flex {
    flex-direction: column-reverse;
  }
  .company .flex .flex-left {
    width: 100%;
    margin: auto;
  }
  .company .flex .flex-left img {
    max-width: min(100%, 600px);
    margin: auto;
  }
  .company .flex .flex-right {
    width: 100%;
  }
  .company .flex .flex-right .section-title-r {
    width: 90%;
    margin-left: auto;
  }
  .company .flex .flex-right .container {
    margin-bottom: 3rem;
  }
  .company .flex .flex-right .container .table .row {
    flex-wrap: wrap;
  }
  .company .flex .flex-right .container .table .row .cell {
    width: 100%;
    padding-left: 1.5rem;
  }
}
/*=====
  gallery
=====*/
.gallery {
  margin-bottom: 8rem;
  overflow: hidden;
}
.gallery .section-title {
  width: 80%;
  margin-bottom: 3rem;
}
.gallery .container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 5rem;
}
.gallery .container .sub-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.gallery .container .text {
  margin-bottom: 3rem;
}

/* 追加 */
  .gallery .section-title, .gallery.bg-sub  {
    width: 40%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus,
.gallery-item a:active {
  color: inherit;
  text-decoration: none;
  transition: none;
  outline: none;
}

.gallery-items {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gallery-item {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
}

.gallery-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-image img:hover {
  transform: scale(1.05);
}

.gallery-text {
  margin-top: 10px;
  font-size: 14px;
}

@media screen and (max-width: 960px) {
  .gallery-item {
    width: calc((100% - 20px) / 2);
  }

  .gallery .section-title, .gallery.bg-sub  {
    width: 90%;
}

}

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

  .gallery-item {
    width: 100%;
    padding-top: 30px;
  }

  .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
}

.single .gallery-image {
  height: auto !important;
  overflow: visible !important;
}

/* category-gallery */
.category-gallery .section-title {
  width: 80%;
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
}

.gallery-archive-page {
  display: flex;
  justify-content: center;
  padding: 50px 10px 50px 10px;
}

.gallery-archive-page .gallery-items {
  min-width: 0;
  box-sizing: border-box;
}

.gallery-archive-page .flex-two-column {
  max-width: 1000px;
}

.gallery-archive-page .sidebar-archive {
  box-sizing: border-box;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.gallery-archive-page .flex-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-archive-page .gallery-item {
  width: calc(50% - 10px);
  border: 1px solid #ddd;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.gallery-archive-page .gallery-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-archive-page .gallery-image {
  height: auto;
}

.gallery-archive-page .gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
  object-fit: contain;
  max-height: 300px;
}

.gallery-archive-page .gallery-date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 6px;
}

.gallery-archive-page .gallery-title {
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 6px;
  color: #222;
}

.gallery-archive-page .gallery-content {
  font-size: 0.95em;
  color: #333;
  margin-top: 8px;
  line-height: 1.4em;
}

.gallery-archive-page .pagination {
  text-align: center;
  margin-left: 50px;
}

/* サイドバー */
.gallery-archive-page .sidebar-archive h3 {
  font-weight: 700;
  margin-bottom: 16px;
}

.gallery-archive-page .sidebar-archive ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.gallery-archive-page .sidebar-archive ul li {
  margin-bottom: 8px;
}

.gallery-archive-page .sidebar-archive ul li a {
  display: flex;
  justify-content: space-between;
  color: #333;
  text-decoration: none;
  font-size: 0.95em;
}

.gallery-archive-page .sidebar-archive ul li a:hover {
  text-decoration: underline;
}

.sidebar-archive ul li a .count {
  color: #999;
  margin-left: 8px;
  white-space: nowrap;
}

@media screen and (max-width: 1249px) {
.gallery-archive-page .pagination{
  max-width: 600px;
  margin: 0 auto;
}
}

.flex-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.flex-two-column .gallery-item {
  width: calc(50% - 1rem); /* 通常時は2カラム */
}

@media (max-width: 600px) {
  .flex-two-column {
    flex-direction: column;
  }

  .flex-two-column .gallery-item {
    width: 100%; /* 横幅いっぱいに広げる */
  }

  .gallery-items {
    display: block; /* flex を打ち消して通常のブロックレイアウトに */
  }

  .gallery-archive-page .sidebar-archive {
    box-sizing: border-box;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}
}

/*=====
  recruit
=====*/
.recruit {
  margin-bottom: 8rem;
}
.recruit .flex {
  display: flex;
  gap: 5%;
  margin-bottom: 5rem;
}
.recruit .flex .flex-left {
  width: 55%;
}
.recruit .flex .flex-right {
  width: 40%;
}
.recruit .flex .flex-right .section-title-r {
  margin-bottom: 3rem;
}
.recruit .flex .flex-right .section-title-r h2 {
  width: 65%;
}
.recruit .flex .flex-right .container {
  width: 90%;
  margin: auto;
}
.recruit .flex .flex-right .container .sub-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}
.recruit .flex .flex-right .container .text1 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
@media screen and (max-width: 960px) {
  .recruit .flex {
    flex-direction: column-reverse;
  }
  .recruit .flex .flex-left {
    width: 100%;
    margin: auto;
  }
  .recruit .flex .flex-left img {
    max-width: min(100%, 600px);
    margin: auto;
  }
  .recruit .flex .flex-right {
    width: 100%;
  }
  .recruit .flex .flex-right .section-title-r {
    width: 90%;
    margin-left: auto;
  }
  .recruit .flex .flex-right .container {
    margin-bottom: 3rem;
  }
}
/*=====
  Contact
=====*/
section.contact {
  background: url(../img/contact.png) no-repeat center center/cover;
  width: 100%;
  height: auto;
  position: relative;
  color: #fff;
}
section.contact .container {
  position: relative;
  z-index: 1;
  width: 90%;
  margin: auto;
  height: 100%;
  padding: 3rem 0 5rem;
}
section.contact .container .title {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}
section.contact .container .title h2 .main {
  font-size: 3rem;
}
section.contact .container .title h2 .sub {
  font-size: 1.3rem;
}
section.contact .container .text1 {
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
  margin-bottom: 2rem;
  font-weight: bold;
}
section.contact .container .text2 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: bold;
}
section.contact .container .links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8%;
}
section.contact .container .links .button {
  margin: 0;
  font-weight: bold;
}
section.contact .container .links .button .icon img {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 2rem;
}

section.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 960px) {
  section.contact .container .title h2 .main {
    font-size: 2rem;
  }
  section.contact .container .title h2 .sub {
    font-size: 1.1rem;
  }
  section.contact .container .links {
    flex-direction: column;
    row-gap: 3rem;
  }
  section.contact .container .links .button {
    width: 85%;
    padding: 0.5rem 1rem;
  }
  section.contact .container .links .button .icon img {
    margin-right: 1rem;
  }
}
/*=====
  map
=====*/
.map .wrapper {
  width: 100%;
  position: relative;
  height: 420px;
}
.map .wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*=====
  footer
=====*/
.footer {
  display: flex;
  gap: 5%;
  align-items: center;
  width: 90%;
  margin: auto;
  padding: 3rem 0;
}
.footer .logo {
  display: flex;
  align-items: flex-start;
}
.footer .logo .main-logo {
  width: 100%;
  max-width: 120px;
}
.footer .logo .name-logo {
  margin-left: 1rem;
}
.footer .logo .name-logo img {
  width: 100%;
  max-width: 320px;
  margin-bottom: 0.2rem;
}
.footer .logo .name-logo h2 {
  font-size: 1.1rem;
  text-align: right;
  border-top: var(--main) solid 2px;
  margin-bottom: 0.5rem;
}
.footer .logo .name-logo .row p {
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  font-size: 0.8rem;
}
.footer .nav {
  margin: 0 1.5rem 0 1.5rem;
  font-weight: bold;
}
.footer .nav .nav-text {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.footer .nav .nav-links {
  display: flex;
  gap: 1.2rem;
}
.footer .nav .nav-links li a {
  font-size: 1.1rem;
  color: #333;
}

@media screen and (max-width: 960px) {
  .footer {
    flex-direction: column;
    gap: 3rem;
  }
  .footer .logo {
    margin: auto;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .footer .logo .name-logo .row p {
    text-align: center;
    margin: auto;
  }
  .footer .nav {
    width: 50%;
  }
  .footer .nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media screen and (max-width: 768px) {
  .footer .logo .main-logo {
    max-width: 70px;
  }
  .footer .logo .name-logo {
    margin-left: 0;
  }
  .footer .logo .name-logo img {
    max-width: 140px;
    margin: auto;
  }
  .footer .logo .name-logo h2 {
    font-size: 0.7rem;
  }
}
.copyright {
  text-align: center;
  color: #fff;
  background: var(--main);
  padding: 1.5rem 0.5rem;
  font-size: 0.8rem;
}

.top-button {
  position: fixed;
  bottom: 5%;
  right: 5%;
  z-index: 99;
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
}
.top-button a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.top-button a .circle {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50px;
  border: var(--main) 1px solid;
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-button a .circle .triangle {
  display: block;
  width: 35%;
  height: 30%;
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
          clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--main);
}
.top-button a .text {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--main);
}
.top-button a:hover {
  opacity: 0.8;
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  .top-button {
    bottom: 5%;
    right: 5%;
  }
}/*# sourceMappingURL=style.css.map */