@charset "UTF-8";

/* ==========================================================================
   Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  color: #333;
  font-family: "メイリオ", "Meiryo", sans-serif;
  line-height: 1.8;
  background: #f0eee9;
  min-width: 1000px;
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a:link,
a:visited {
  color: #006eb0;
  text-decoration: none;
}

a:hover {
  color: #59b4e8;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Common info row styles (kinkyu_box .info / info_box dl)
   ========================================================================== */
.kinkyu_box>.info,
.info_box .panel dl {
  line-height: 1.5;
}

.kinkyu_box>.info .date,
.info_box .panel dl dt {
  flex-shrink: 0;
  color: #333;
  font-size: 0.8em;
  padding-left: 0.75rem;
  margin-right: 1em;
  position: relative;
  white-space: nowrap;
}

.kinkyu_box>.info .date::before,
.info_box .panel dl dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #b1a891;
}

.kinkyu_box>.info a,
.info_box .panel dl dd {
  overflow: hidden;
  min-width: 0;
}


/* ==========================================================================
   Emergency (kinkyu_box)
   ========================================================================== */
.kinkyu_box {
  background: #c00;
  color: #fff;
  padding: 5px 5px 5px 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 2.5rem;
}

.kinkyu_box>.title {
  grid-column: 1;
  grid-row: 1 / 99;
  font-size: 1.2rem;
  font-weight: bold;
  white-space: nowrap;
  line-height: 1.8;
  align-self: center;
}

.kinkyu_box>.info {
  grid-column: 2;
  background: #fff;
  padding: 0 2rem 0.8rem;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.kinkyu_box>.title+.info {
  padding-top: 1.5rem;
}

.kinkyu_box>.info:last-of-type {
  padding-bottom: 1.3rem;
}

.kinkyu_box>.info a {
  font-weight: bold;
}

.kinkyu_box>.more {
  grid-column: 2;
  background: #fff;
  display: none;
}

/* ==========================================================================
   Mainvisual
   ========================================================================== */
.mainvisual {
  position: relative;
  width: 1410px;
  padding: 2rem 0 0;
  margin: 0 auto 1.5rem;
}

.mainvisual__photo {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  aspect-ratio: 1410 / 766;
}

.mainvisual__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mainvisual__title {
  position: absolute;
  top: 0.5%;
  left: 4.5%;
  z-index: 10;
  width: 23%;
  margin: 0;
}

.mainvisual__photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/shape_pc.webp') no-repeat center / cover;
  pointer-events: none;
  z-index: 1;
}

.mainvisual__photo::after {
  display: none;
}

.mainvisual__buttons {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: -12.5%;
  position: relative;
  z-index: 5;
  padding: 0 1.2rem;
  align-items: flex-start;
}

.mainvisual__btn {
  display: block;
  width: 236px;
  transition: transform 0.3s ease;
}

.mainvisual__btn:nth-child(2),
.mainvisual__btn:nth-child(4) {
  margin-top: -2.5%;
}

.mainvisual__btn:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.mainvisual__btn img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   News
   ========================================================================== */
.news {
  padding: 0 0 1rem;
}

.news__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.news__title {
  font-size: 1.25rem;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: 0;
  color: #333;
}

.news .info_box {
  flex: 1;
}

.news .info_box .panel dl:first-child {
  border-top: 1px dashed #c2b6ad;
}

.news .info_box .panel dl:last-child {
  border-bottom: 1px dashed #c2b6ad;
}

/* ==========================================================================
   info_box / panel (match town-kofu.jp structure)
   ========================================================================== */
.info_box {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  box-sizing: border-box;
}

.info_box .panel {
  padding: 0;
  margin: 0;
}

.info_box .panel dl {
  width: 100%;
  padding: 0.8rem 0;
  margin: 0;
  border-bottom: 1px dashed #c2b6ad;
  clear: both;
}

.info_box .panel dl:last-child {
  border-bottom: none;
}

.info_box .panel dl dt {
  float: left;
  line-height: 2;
}

.info_box .panel dl dd {
  margin-left: 8em;
  text-indent: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
}

.footer__info {
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.footer__copyright {
  font-size: 0.75rem;
  color: #666;
}

/* ==========================================================================
   Tablet / Medium PC (max-width: 1350px)
   ========================================================================== */
@media screen and (max-width: 1350px) and (min-width: 768px) {

  .mainvisual {
    width: 110%;
  }

  .mainvisual__photo,
  .mainvisual__buttons {
    left: -5%;
  }

  .mainvisual__photo {
    transform: none;
  }

}

/* ==========================================================================
   SP (max-width: 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {

  body {
    min-width: 0;
    overflow-x: hidden;
  }

  /* Emergency */
  .kinkyu_box {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: auto;
    padding: 0.5rem 5px 5px;
  }

  .kinkyu_box>.title {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .kinkyu_box>.info {
    display: block;
    width: 100%;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
  }

  .kinkyu_box>.title+.info {
    padding-top: 1rem;
  }

  .kinkyu_box>.info:last-of-type {
    padding-bottom: 0.8rem;
  }

  .kinkyu_box>.info .date {
    display: block;
    margin-bottom: 0.1rem;
  }

  /* Mainvisual */
  .mainvisual {
    width: 100%;
    padding: 0;
  }

  .mainvisual__photo {
    left: auto;
    transform: none;
    aspect-ratio: 1 / 1.2;
  }

  .mainvisual__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mainvisual__title {
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 68vw;
  }

  .mainvisual__photo::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16%;
    background: url('../images/shape_sp.webp') no-repeat bottom center / 100% auto;
  }

  .mainvisual__buttons {
    flex-wrap: wrap;
    gap: 0.5%;
    margin-top: -20vw;
    padding: 0;
    justify-content: center;
  }

  .mainvisual__btn {
    width: 46.5%;
    margin-bottom: 0.2rem;
  }

  .mainvisual__btn:nth-child(2),
  .mainvisual__btn:nth-child(4) {
    margin-top: 0;
  }

  /* News */
  .news__inner {
    display: block;
    padding: 0 1rem;
  }

  .news__title {
    padding-top: 0;
    margin-bottom: 0.3rem;
  }

  /* info_box panel SP */
  .info_box .panel dl dt {
    float: none;
    width: 100%;
  }

  .info_box .panel dl dd {
    margin-left: 0;
  }

}