@charset "UTF-8";
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}
body {
  font-family: 'Hiragino Kaku Gothic Pro','Meiryo',sans-serif;
  font-size: 1.5vw;
  color: #1e1e1e;
  background: linear-gradient(#ffffff 15%, #faffff 60%);
}
.seo-h1, .seo-h2 {
  position: absolute;
  left: -9999px;
}
/* ===== ヘッダー画像 ===== */
.page-sub .header-img img {
  width: 100%;
  height: 40vw;
  opacity: 0.8;
    object-fit: cover;
}

#menu-btn-check {
  display: none;
}
.menu-btn {
  display: none;
}

#headerBox {
  width: 100%;
  height: 7vw;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: rgba(0,18,39,0.875);
  z-index: 10;
}

#headerBox img {
  display: block;
}
#logo {
  width: 31vw;
  margin-right: 12vw;
}

.menu-content {
 display: flex;
 margin-bottom: 1vw;
}
.menu-content ul ul{
    display: none;
}
.menu-content ul {
    margin: 0;
    padding: 0;
 display: flex;
 align-items: flex-end;
  list-style: none;
  font-size: 1.4vw;
  margin-right: 1vw;

}

.menu-content li {
    width: fit-content;
    white-space: nowrap;
    padding: 0 1.5vw;
  text-align: center;
  border-right: .01vw solid #fff;
}

.menu-content li:first-child {
  border-left: .01vw solid #fff;
}

.menu-content a {
  color: #fff;
      text-decoration: none;
}

/* contact button */
.access {
    width: fit-content;
    height: fit-content;
    margin-right: 1.5vw;
    background: rgb(222, 202, 142);
    padding: 1.4vw 2vw;
    border-radius: 0.5em;
    font-size: 1.3vw;
    text-align: center;
    position: relative; /* 追加 */
}

.access a {
    color: #252525;
}

.access::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #fff 0%, #fff 50%, #314a61 50%, #31506e 60%);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
    transition: width 0.3s, height 0.3s;
}

.access:hover::before {
    width: 2em;
    height: 2em;
}
.breadcrumb {
  width: 100vw;
  margin: 1vw 0 2vw 3vw;
  font-size: .9vw;
  color: #888;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  font-weight: 100;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5vw;
  font-weight: 100;
}
/* ===== タイトル ===== */
.page-title {
  position: relative;
  display: flex;
  margin: 8vw auto 2vw;
  z-index: 2;
  width: fit-content;
}

.page-title h2, .page-title p {
  max-width: 100%;
  font-weight: normal;
  font-size: 2.8vw;
  font-family: serif;
  letter-spacing: 2px;
  line-height: 1.2;
  margin: 0;
  border-bottom: solid 3px #ffc439;
  padding-bottom: 4px;
}

.page-title h2::after, .page-title p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  border-bottom: solid 3px #96e089;
  width: 5vw;
}

/* ===== お問い合わせボタン ===== */
/* ボタンの位置制御 */
.button018 {
  position: static;
  display: flex;
  justify-content: center; /* デフォルト右揃え・クラスで上書き可 */
  margin-top: 1vw;
}
/* ボタン本体 */
.button018 a {
  position: relative;
  display: inline-flex; /* ← flexからinline-flexに変更 */
  align-items: center;
  padding: 1vw 2vw 1vw 4.5vw;
  color: #313131;
  transition: color 0.3s ease-in-out;
  font-weight: 500;
  font-size: 1.4vw;
  text-decoration: none;
  overflow: hidden; /* ← 追加：丸がはみ出さないように */
}

/* 矢印（白丸の上に重ねる） */
.button018 a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.2vw;
  width: 0.6vw;
  height: 0.6vw;
  border-top: solid 0.2vw #fff;
  border-right: solid 0.2vw #fff;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: left 0.3s;
}

/* 丸背景 */
.button018 a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3.4vw;
  height: 3.4vw;
  background: #0c2137;
  border-radius: 4rem;
  z-index: -1;
  transform: translateY(-50%);
  transition: width 0.5s;
}

/* テキストをz-index管理 */
.button018 a span {
  position: relative;
  z-index: 3;
  color: #313131; /* 通常時の文字色を明示 */
  transition: color 0.3s 0.1s; /* ← 遅延追加：背景が広がってから色変更 */
}

/* ホバー：文字色 */
.button018 a:hover {
  color: #f5f5f5;
}

/* ホバー：矢印を右へ */
.button018 a:hover::before {
  left: calc(100% - 2vw); /* ← 固定remではなく%で追従 */
}

/* ホバー：丸を横に伸ばす */
.button018 a:hover::after {
  width: 100%;
}

.footer {
  width: 100vw; /* ←100vwやめる */
  margin: 0 auto;
  padding: 0;
  position: relative;
  font-family: serif;
  overflow: hidden;
}

/* 見出し */
.footer h2 {
  width: 100%;
  padding: 1vw 0;
  margin: 0;
  text-align: center;
  font-size: 3vw;
  background: rgb(0, 18, 39);
  color: #fff;
  letter-spacing: 0.2vw;
  font-weight: 100;
}

/* メイン */
.footer-box {
    position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* ←変更 */
  align-items: center;
  gap: 4vw; /* ←追加（余白はこれで管理） */
  text-align: center;

  background:
    linear-gradient(rgba(0, 31, 61, 0.6), rgba(0, 31, 61, 0.6)),
    url("/image/IMG_8717.JPG");
  background-size: cover;
  background-position: center;
}

/* ←これが一番重要（左右バランス強制） */
.footer-box > * {
  flex: 1;
  max-width: 50%;
}

/* アクセス */
.footer-access {
  position: relative; /* ←追加 */
  width: fit-content;
  margin: 0 auto;
  padding: 0;
}

/* ロゴ */
.footer-box img {
  width: 55%;
  height: auto;
}



/* 住所 */
.address {
  margin-top: 3vw;
}

.address iframe {
  width: 40vw;
  height: 25vw;
  margin-bottom: 2vw;
}

/* 縦線（ズレ修正） */
.footer-access::before {
  content: "";
  position: absolute;
    top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: 0.08vw;
  height: 27.5vw;
  background-color: #fcfcfc;
}

/* テキスト */
.footer-access address {
  display: block;
  margin-left: 2%;
  font-size: 1.8vw;
  color: #fdfdfd;
  font-style: normal;
  letter-spacing: 0.15vw;
  margin-bottom: 1.5vw;
  font-weight: lighter;
}

.footer-access p,
.footer-access a {
  display: block;
  margin-left: 2%;
  font-size: 1.8vw;
  color: #fdfdfd;
  letter-spacing: 0.15vw;
  text-decoration: none;
  line-height: 0.5;
  font-weight: lighter;
}

.footer-access p a {
  display: inline;
  margin-left: 0;
}

/* ボタン */
.access-btn a {
  display: block;
  width: 42%;
  margin: 2vw auto 0;
  padding: 1em;
  background: #e4da77;
  border-radius: 3em;
  color: #000;
  text-align: center;
  font-size: 1.5vw;
  box-shadow: 0.5em 0.5em 0.5em rgba(0,0,0,0.2);
}

/* コピー */
.copy {
  width: 100vw;
  text-align: center;
  color: #fff;
  font-size: 0.9vw;
  background: rgb(0, 18, 39);
  padding: 0.5vw 0;
}

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

  body {
    padding: 0;
    margin: 0;
  }
  /* ===== ヘッダー画像 ===== */
  .page-sub .header-img img {
    height: 90vw;
  }
  .page-title {
    margin: 12vw auto 5vw;
    width: fit-content;
  }

  .page-title h2, .page-title p {
    font-size: 6vw;
  }

  .page-title h2::after {
    width: 12vw;
  }

  .header-box, .header-box.fixed {
    display: none;
  }


#headerBackground {
  display: none;
}

#headerBackground.fixed {
display: none;
}

      .breadcrumb {
  width: 90vw;
  margin: 3vw auto 2vw;
  font-size: 1.8vw;
}

#headerBox {
    height: 15vw;
    align-items: center;
  }

  #logo {
    width: 65vw;
    top: 4vw;
    margin-right: 0vw;
    margin-left: 3vw;
  }

  /* ハンバーガー */
  .menu-btn {
    display: flex;
    position: fixed;
    top: 4vw;
    right: 4vw;
    width: 8vw;
    height: 6vw;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    content: "";
    display: block;
    position: absolute;
    width: 7vw;
    height: 0.5vw;
    background: #fff;
    transition: 0.3s;
  }

  .menu-btn span::before {
    bottom: 2vw;
  }

  .menu-btn span::after {
    top: 2vw;
  }

  #menu-btn-check:checked ~ .menu-btn span {
    background: transparent;
  }

  #menu-btn-check:checked ~ .menu-btn span::before {
    transform: rotate(45deg);
    bottom: 0;
  }

  #menu-btn-check:checked ~ .menu-btn span::after {
    transform: rotate(-45deg);
    top: 0;
  }
   .mail-pc {
    display: none;
  }


.menu-content.fixed  {
top: 0;
left: 0;
z-index: 90;
}

   .page-top .menu-content,
   .page-sub .menu-content {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
  }
  /* メニュー本体 */
  .menu-content {
    flex-direction: column;
    position: fixed;
    align-items: center;        /* ←横中央 */
    margin: 0 auto;
    inset: 0;
    background: rgba(0,18,39,0.875);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    padding-top: 20vw;
  }

  #menu-btn-check:checked ~ .menu-content {
    transform: translateX(0);
  }

  .menu-content ul {
    display: block;
    padding: 0;
    text-align: center;
    margin: 0 auto;
    z-index: 90;
  }

  .menu-content ul ul {
    display: block;
    padding: 0vw 0 1vw 0;
  }
  .menu-content ul ul li {
    width: 70vw;
    padding: 2vw 0 0;
  }
  .menu-content ul ul li a {
    font-size: 3vw;
  }
  .menu-content li {
    width: 80vw;
    margin: 0 auto;
    padding-top: 5vw;
  }

  .menu-content li a {
    display: block;
    padding: 4vw 0;
    font-size: 3.5vw;
    font-weight: 200;
    letter-spacing: .5vw;
        border-bottom: max(1px, .2vw) solid #fff;
  }
  .menu-content li {
  border-right: none;
}

.menu-content li:first-child {
  border-left: none;
}

.access {
    width: 50vw;
    font-size: 3.5vw;
    padding: 5vw 8vw;
    margin: 10vw auto 0;
}

 /* ===== お問い合わせボタン ===== */
.button018 {
  margin-top: 3vw;
  margin-bottom: 10vw;
  display: flex;
  justify-content: center;
}

.button018 a {
  margin: 0;
  padding: 3vw 0 3vw 11vw;
    font-size: 3.5vw;
  justify-content: flex-start;
  gap: 2vw;
}
  .button018 a::before {
    width: 1.8vw;
    height: 1.8vw;
    left: 2.5vw;
    border-top: solid 0.6vw #fff;
    border-right: solid 0.6vw #fff;
  }

  .button018 a::after {
    width: 8vw;
    height: 8vw;
  }
.footer h2 {
    font-size: 6vw;
}
.footer-box {
    flex-direction: column;
}
.footer-box img {
  width: 70vw;
  height: auto;
}
/* ←これが一番重要（左右バランス強制） */
.footer-box > * {
  flex: 1;
  max-width: 90vw;
}
.footer-access {
    padding-top: 6vw;
}
.footer-access address {
    margin: 2vw auto;
}
.footer-access address, 
.footer-access p,
.footer-access a {
    font-size: 4vw;
    line-height: 1.5;
}
.access-btn a {
  width: 90%;
    margin-top: 3vw;
}
.footer-access::before {
display: none;
}
.address iframe {
    width: 80vw;
    height: 40vw;
    margin-bottom: 5vw;
}
/* コピー */
.copy {
  width: 100vw;
  text-align: center;
  color: #fff;
  font-size: 3vw;
  background: rgb(0, 18, 39);
  padding: 0.8vw 0;
}


 }