@charset "utf-8";

/*Font Awesomeの読み込み*/
/*---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");


/*Google Fontsの読み込み*/
/*---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Zen+Kaku+Gothic+New&family=Zen+Maru+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&display=swap');

/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）*/
/*---------------------------------------------------------------------------*/
:root {
  --space-large: 8vw;
  /*主に余白の一括管理用。画面幅100%＝100vwです。*/
}

/*fadeInのキーフレーム設定（汎用的）*/
/*---------------------------------------------------------------------------*/
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/*fadeOutのキーフレーム設定（汎用的）*/
/*---------------------------------------------------------------------------*/
@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}


/*全体の設定*/
/*---------------------------------------------------------------------------*/
body * {
  box-sizing: border-box;
}

html,
body {
  font-size: 1rem;
  height: 100%;
  overflow-x: hidden;
}

/*画面幅1200px以上の追加指定*/
@media screen and (min-width:1000px) {

  html,
  body {
    font-size: 1.2rem;
  }

}

/*追加指定ここまで*/

/*画面幅1600px以上の追加指定*/
@media screen and (min-width:1600px) {

  html,
  body {
    font-size: 1vw;
  }

}

body {
  overflow-x: clip;
}

/*追加指定ここまで*/

body {
  margin: 0;
  padding: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: none;
  background-color: #FFFBEB;
  color: #3a3a3a;
  line-height: 2;
}

/*リセット他*/
figure {
  margin: 0;
}

dd {
  margin: 0;
}

nav ul {
  list-style: none;
}

nav,
ul,
li,
ol {
  margin: 0;
  padding: 0;
}

p {
  display: block;
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  text-align: center;
}

.text {
  font-size: 1rem;
  align-items: center;
}

/*table全般の設定*/
table {
  border-collapse: collapse;
}

/*画像全般の設定*/
img {
  border: none;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/*videoタグ*/
video {
  max-width: 100%;
}

/*iframeタグ*/
iframe {
  width: 100%;
}

/*input*/
input {
  font-size: 1rem;
}

/*content-wrapper*/
.content-wrapper {
  padding: 0 10rem;
  padding-bottom: 2.5rem;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .content-wrapper {
      padding: 0 2rem;
      padding-bottom: 2.5rem;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .content-wrapper {
      padding: 0 5rem;
      padding-bottom: 2.5rem;
    }
}

/*リンクテキスト全般の設定*/
/*---------------------------------------------------------------------------*/
a {
  color: inherit; /* 親要素の文字色を継承 */
  transition: 0.3s;
  text-decoration: none;
}

/*マウスオン時*/
a:hover {
  text-decoration: none;
  opacity: 0.9;
}


/*container（サイト全体を囲むボックス）*/
/*---------------------------------------------------------------------------*/
#container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/*header (基本PCスタイル)
===========================================================================*/
header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 100px;
  flex-shrink: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hd_container {
  padding: 0 2rem;
  margin: 0 auto;
}

.top-message {
  font-size: 0.7rem;
  margin: 0;
  font-weight: bold;
}

.hd_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hd_logo img {
  height: 65px;
  width: auto;
}

/* index以外のページのpadding（基本はPCサイズ） */
main.main2 > *:first-child {
  padding-top: 100px;
}


/*===========================================================================
  メニュー全般
===========================================================================*/
.flex {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menubar a {
  display: block;
  text-decoration: none;
  color: #3a3a3a;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

/* 表示/非表示切替 */
.db { display: block !important; }
.dn { display: none !important; }


/*===========================================================================
  PCメニュー
===========================================================================*/
@media (min-width: 1280px) {
  #menubar_pc #menubar ul.flex { gap: 1.5rem; }

  #menubar_pc #menubar .menu-item > a {
    padding: 5px 0px;
    font-size: 1rem;
    position: relative;
  }

  /* ホバー時の下線アニメーション（ふんわり） */
  #menubar_pc #menubar .menu-item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: #E68C6A;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  @media (hover: hover) and (pointer: fine) {
    #menubar_pc #menubar .menu-item:hover > a::after { width: 100%; }
  }

  /* ドロップダウンメニュー (PC) */
  #menubar_pc .menu-item { position: relative; }
  
  #menubar_pc .ddmenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
  }
  
  #menubar_pc .menu-item:hover .ddmenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  #menubar_pc .ddmenu li a {
    padding: 12px 20px;
    font-size: 0.9rem;
    text-align: left;
  }

  @media (hover: hover) and (pointer: fine) {
    #menubar_pc .ddmenu li a:hover {
      background: #FFF0F5;
      color: #E68C6A;
    }
  }
}

@media (max-width: 1279px) {
  #menubar_pc { display: none !important; }
}


/*===========================================================================
  アクションボタン（お問い合わせ・電話）共通
===========================================================================*/
.menu-action-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-contact, .btn-tel {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 24px !important;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-contact:hover, .btn-tel:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  }
}

/* お問い合わせボタン */
.btn-contact {
  background-color: #E68C6A;
  color: #ffffff !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-contact:hover { background-color: #D47A58; }
}

/* 電話ボタン */
.btn-tel {
  background-color: #56A78E;
  color: #ffffff !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-tel:hover { background-color: #458772; }
}

/* アイコンのスタイル */
.btn-contact i,
.btn-tel i {
  margin-right: 8px;
  font-size: 1.15em;
  display: inline-block;
  transform: translateY(-1px);
}


/*===========================================================================
  スマートフォン・タブレット用 (SPメニュー)
===========================================================================*/
@media screen and (max-width: 1279px) {
  .hd_container { padding: 0 1rem; }
  .hd_wrap { padding: 0; }

  #menubar_sp {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    background-color: #FFF0F5;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  #menubar_sp.dn {
    transform: translateX(100%);
    display: block !important;
  }
  
  #menubar_sp.db { transform: translateX(0); }

  #menubar_sp #menubar { padding: 3.75rem 1.25rem 2.5rem; }

  #menubar_sp ul.flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #menubar_sp .menu-item { border-bottom: 1px dashed #8B7E74; }

  #menubar_sp .menu-item > a {
    padding: 15px 10px;
    font-size: 1.1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #menubar_sp .ddmenu {
    display: none;
    background: #ffffff;
    border-radius: 8px;
    margin: 0 10px 15px;
    padding: 10px;
  }
  
  #menubar_sp .menu-item:hover .ddmenu { display: block; }
  
  #menubar_sp .ddmenu li a {
    padding: 12px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  /* SP用アクションボタン */
  .menu-action-btns {
    flex-direction: column;
    margin: 30px 0 0 0;
    gap: 15px;
  }
  
  .btn-contact, .btn-tel {
    width: 100%;
    padding: 16px !important;
    font-size: 1.1rem !important;
  }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #menubar_sp #menubar { padding: 3.75rem 10rem 2.5rem; }
}


/*===========================================================================
  ハンバーガーメニューアイコン（PC・タブレット用ベース設定）
===========================================================================*/
#menubar_hdr.db { display: flex !important; }

#menubar_hdr {
  position: fixed;
  z-index: 999999;
  cursor: pointer;
  right: 15px;
  top: 39px;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#menubar_hdr span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background-color: #3a3a3a;
  transition: all 0.3s ease-in-out;
}

/* 開いた時の×印のアニメーション（PCサイズ用基準） */
#menubar_hdr.ham span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
#menubar_hdr.ham span:nth-child(2) { opacity: 0; }
#menubar_hdr.ham span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* タブレット (縦向き768px〜1024px ＆ 横向き951px〜1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
       screen and (min-width: 951px) and (max-width: 1024px) and (orientation: landscape) {
  header { height: 80px; }
  main.main2 > *:first-child { padding-top: 80px; }
  .hd_logo img { height: 50px; }
  #menubar_hdr { top: 29px; } 
}

/* スマートフォン：縦向き (767px以下) */
@media screen and (max-width: 767px) and (orientation: portrait),
       screen and (max-width: 767px) {
  header { height: 60px; }
  main.main2 > *:first-child { padding-top: 60px; }
  .hd_logo img { height: 40px; }
  .top-message { font-size: 0.5rem; }
  #menubar_hdr { top: 22px; width: 24px; height: 18px; }
  #menubar_hdr span { height: 2px; }
  #menubar_hdr.ham span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #menubar_hdr.ham span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* スマートフォン：横向き (950px以下・大型スマホ含む)  */
@media screen and (max-width: 950px) and (orientation: landscape) {
  header { height: 60px; }
  main.main2 > *:first-child { padding-top: 60px; }
  .hd_logo img { height: 32px; }
  .top-message { font-size: 0.5rem; }
  #menubar_hdr { top: 22px; width: 24px; height: 18px; } 
  #menubar_hdr span { height: 2px; }
  #menubar_hdr.ham span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #menubar_hdr.ham span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* メインビジュアル
---------------------------------------------------------------------------*/
aside.mainimg {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-image: url("../images/fv_back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* テキスト */
.fv-text-area {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 15;
}

.fv-main-copy-img {
  display: block;
  margin: 0 auto;
  width: 42rem;
  height: auto;
}

.fv-main-copy-mb { display: none !important; }

/* スライダー */
.fv-slider-container {
  position: absolute;
  top: 63%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 5;
}

.fv-slider-pc { display: block; }
.fv-slider-mb { display: none; }

.fv-slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding-left: 0;
  will-change: transform;
  animation: fvTrackScroll linear infinite;
}

@keyframes fvTrackScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.fv-slide-shadow {
  flex-shrink: 0;
  filter: drop-shadow(-10px 0px 0px #ffffff);
  width: 51vw;
  margin-right: 3vw;
}

.fv-slide-item img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes photoSwayVerticalA {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -0.8vh, 0) rotate(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes photoSwayVerticalB {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, 0.8vh, 0) rotate(-1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes photoSwayVerticalC {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -0.5vh, 0) rotate(0.5deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.fv-slide-item {
  width: 100%;
}

.fv-slide-shadow {
  transform-origin: center center;
}

.fv-slide-shadow:nth-child(4n+1) {
  animation: photoSwayVerticalA 6.5s ease-in-out infinite;
  animation-delay: 0s;
}

.fv-slide-shadow:nth-child(4n+2) {
  animation: photoSwayVerticalB 8s ease-in-out infinite;
  animation-delay: -1.8s;
}

.fv-slide-shadow:nth-child(4n+3) {
  animation: photoSwayVerticalC 5.5s ease-in-out infinite;
  animation-delay: -3.2s;
}

.fv-slide-shadow:nth-child(4n+4) {
  animation: photoSwayVerticalB 7.2s ease-in-out infinite;
  animation-delay: -4.8s;
}

.fv-bottom-area {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: 12vh;
  min-height: 80px;
  z-index: 10;
  pointer-events: none;
}

.fv-wave-wrap {
  display: flex;
  position: absolute;
  bottom: 0; left: 0;
  width: 300%;
  height: 100%;
  opacity: 0.45; 
  will-change: transform;
}

.fv-wave-unit {
  width: 33.333% !important;
  height: 100%;
  flex-shrink: 0;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: auto 100%;
}

.wave-back-group { z-index: 1; }
.wave-back-group .fv-wave-unit {
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z' fill='%23f7bdc3'/%3E%3C/svg%3E");
}

.wave-mid-group { z-index: 2; }
.wave-mid-group .fv-wave-unit {
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C300,100 300,0 600,50 C900,100 900,0 1200,50 L1200,120 L0,120 Z' fill='%23fbdcae'/%3E%3C/svg%3E");
}

.wave-front-group { z-index: 3; }
.wave-front-group .fv-wave-unit {
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C150,35 450,105 600,70 C750,35 1050,105 1200,70 L1200,120 L0,120 Z' fill='%23fff7ea'/%3E%3C/svg%3E");
}

@keyframes waveMoveLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.3333%, 0, 0); }
}

@keyframes waveMoveRight {
  0% { transform: translate3d(-33.3333%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.wave-back-group { animation: waveMoveLeft 25s linear infinite; }
.wave-mid-group { animation: waveMoveRight 18s linear infinite; }
.wave-front-group { animation: waveMoveLeft 12s linear infinite; }

.fv-walking-person {
  position: absolute;
  bottom: 25%;
  right: 12%;
  width: clamp(70px, 9vw, 110px);
  z-index: 15; 
  animation: walkBobbing 0.7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes walkBobbing {
  0% { transform: translateY(0) rotate(-4deg); }
  100% { transform: translateY(-10px) rotate(4deg); }
}

/* ノートパソコン */
@media screen and (max-width: 1280px) {
  .fv-text-area {
    top: 130px;
  }

  .fv-main-copy-img {
    width: 35rem;
  }
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  .fv-main-copy-pc { display: none !important; }
  .fv-main-copy-mb { display: block !important; }

  .fv-slider-pc { display: none !important; }
  .fv-slider-mb { display: block !important; }

  .fv-text-area {
    top: 80px !important;
  }

  .fv-main-copy-img {
    width: 15rem;
  }

  .fv-slider-container { 
    top: 62% !important;
  }

  .fv-slide-shadow {
    width: 75vw !important;
    margin-right: 3vw !important;
    filter: drop-shadow(-8px 0px 0px #ffffff) !important;
  }
}

/* タブレット縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .fv-main-copy-pc { display: none !important; }
  .fv-main-copy-mb { display: block !important; }

  .fv-slider-pc { display: none !important; }
  .fv-slider-mb { display: block !important; }

  .fv-text-area {
    top: 110px !important;
  }

  .fv-main-copy-img {
    width: 25rem;
  }

  .fv-slider-container { 
    top: 63% !important; 
  }

  .fv-slide-shadow {
    width: 50vw !important;
    margin-right: 3vw !important;
    filter: drop-shadow(-15px 0px 0px #ffffff) !important;
  }
}

/* タブレット横 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .fv-main-copy-pc { display: block !important; margin: 0 auto; }
  .fv-main-copy-mb { display: none !important; }

  .fv-slider-pc { display: block !important; }
  .fv-slider-mb { display: none !important; }

  .fv-text-area {
    top: 100px !important;
  }

  .fv-slider-container { 
    top: 66% !important; 
  }

  .fv-slide-shadow {
    width: 65vw !important;
    margin-right: 3vw !important;
  }
}

/* inner
---------------------------------------------------------------------------*/
.inner {
  margin: 0 auto;
  padding: 5% 7%;
  width: 100%;
  box-sizing: border-box;
}

@media screen and (min-width: 601px) {
  .inner {
    padding: 1% 10% 5%;
  }
}

/* セクションタイトルのスタイル
---------------------------------------------------------------------------*/
.section_title {
  position: relative;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  z-index: 2;
  line-height: 1.4;
  padding: 0.25em 1em;
  display: block;
  width: fit-content;
  margin: 0 auto 2rem;
}

.section_title:before, .section_title:after { 
  content:'';
  width: 20px;
  height: 30px;
  position: absolute;
  display: inline-block;
}

.section_title:before {
  border-left: solid 2px #56A78E;
  border-top: solid 2px #56A78E;
  top:0;
  left: 0;
}

.section_title:after {
  border-right: solid 2px #56A78E;
  border-bottom: solid 2px #56A78E;
  bottom:0;
  right: 0;
}

/* --- タブレット（768px 〜 1024px） --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .section_title {
    font-size: 1.7rem;
    margin-bottom: 2rem;
  }
}

/* --- スマートフォン（767px以下） --- */
@media screen and (max-width: 767px) {
  .section_title {
    font-size: 1.3rem;
    padding: 0.25em 0.8em;
    margin-bottom: 1rem;
  }

  .section_title:before, .section_title:after {
    width: 15px;
    height: 20px;
  }
}

/* セクション背景色のスタイル */
section.bgLG {
  background-color: #FEF9E7;
}

.bgBALL {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgBALL::before,
.bgBALL::after {
    content: "";
    position: absolute;
    display: inline-block;
    opacity: 0.1;
    top: 50%;
    left: 50%;
}

.bgBALL::before {
    width: 550px;
    height: 550px;
    background-color: #fffc3d;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    transform: translate(-85%, -50%);
    z-index: -1;
}

.bgBALL::after {
    width: 500px;
    height: 500px;
    background-color: #73c9ad;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(-15%, -40%);
    z-index: -2;
}

/* --- スマートフォンでの調整 --- */
@media screen and (max-width: 767px) {
    .bgBALL {
        min-height: 400px;
    }
    .bgBALL::before {
        width: 280px;
        height: 280px;
        transform: translate(-80%, -65%);
    }
    .bgBALL::after {
        width: 250px;
        height: 250px;
        transform: translate(-30%, -40%);
    }
}

.bgLY {
    position: relative;
    z-index: 1;
    background: transparent; 
    padding: 160px 0;
    margin: -50px 0;
}

.bgLY::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 75%;
    background-color: #FAF1D2;
    z-index: -1;
    transform: rotate(-3deg); 
    transform-origin: center;
    margin-top: 6rem;
}

/* --- タブレット（768px 〜 1024px） --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .bgLY {
        padding: 120px 0;
        margin: -30px 0;
    }

    .bgLY::before {
        height: 80%;
        margin-top: 4rem;
        transform: rotate(-2deg);
    }
}

/* --- スマートフォン（767px以下） --- */
@media screen and (max-width: 767px) {
    .bgLY {
        padding: 80px 0;
        margin: -20px 0;
    }

    .bgLY::before {
        left: -15%;
        width: 130%;
        height: 90%;
        transform: rotate(-1.5deg);
    }
}

/* もっと見るボタン */
.button016 a {
    background: #a2c5ba;
    color: #3a3a3a;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 170px;
    padding: 10px 25px;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    transform: skew(-10deg, 0deg);
    margin-top: 2rem;
}

.button016 a span {
    transform: skewX(10deg);
}

.button016 a:before {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    right: -1.5em;
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    width: 12px;
    height: 2px;
    background-color: #3a3a3a;
    transition: 0.3s;
}

.button016 a:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5em;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background-color: #3a3a3a;
    transition: 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .button016 a:hover:before, .button016 a:hover:after {
        right: -1.8em;
    }
}

/* --- タブレット（768px 〜 1024px） --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .button016 a {
        width: 160px;
        padding: 10px 18px;
    }
}

/* --- スマートフォン（767px以下） --- */
@media screen and (max-width: 767px) {
    .button016 {
        margin: 20px auto; /* スマホで中央に配置しやすく */
    }
    
    .button016 a {
        width: 100px; /* スマホ用に少しコンパクトに */
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* 矢印が画面端で消えないよう、飛び出し量を少し抑える */
    .button016 a:before,
    .button016 a:after {
        right: -1.3em;
    }
    
    .button016 a:after {
        width: 25px; /* 線を少し短く */
    }

    .button016 a:before {
      transform: translateY(calc(-50% - 1px)) rotate(30deg);
    }
}

/* index私たちについて背景写真 */
.deco-img {
    position: absolute;
    z-index: 0;
    width: 200px;
    height: auto;
    transition: transform 0.3s;
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.deco-img-1 {
    top: 0%;
    left: 6%;
}

.deco-img-2 {
    top: 10%;
    right: 7%;
}

.deco-img-3 {
    bottom: 26%;
    left: 3%;
}

.deco-img-4 {
    bottom: 28%;
    right: 3%;
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .deco-img {
    width: 130px;
  }

  .deco-img-1 {
    top: 0%;
    left: 2%;
  }

  .deco-img-2 {
    top: 10%;
    right: 2%;
  }

  .deco-img-3 {
    bottom: 26%;
    left: 2%;
  }

  .deco-img-4 {
    bottom: 28%;
    right: 2%;
  }
}

/* --- スマートフォンでの調整 --- */
@media screen and (max-width: 767px) {
    .deco-img {
        display: none;
    }
}

/* index採用セクション画像 */
.saiyo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    max-width: 1250px;
    margin: 2em auto;
    padding: 0 10px;
}

.saiyo-item {
    flex: 1;
    min-width: calc(25% - 12px);
}

.saiyo-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ：タブレット以下 */
@media screen and (max-width: 960px) {
    .saiyo-item {
        min-width: calc(50% - 15px);
    }
}

/* レスポンシブ：スマホ */
@media screen and (max-width: 480px) {
    .saiyo-gallery {
        gap: 10px;
        padding: 0;
        margin: 0;
    }
    .saiyo-item {
        min-width: 100%;
    }
}

/* ページ上部に戻るボタン */
.pagetop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 5000;
}

.pagetop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #56A78E;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(86, 167, 142, 0.3);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pagetop a:hover {
      background: #458772;
      box-shadow: 0 6px 20px rgba(86, 167, 142, 0.5);
  }
}

.pagetop i {
    font-size: 24px;
}

/* --- タブレット（768px 〜 1024px） --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .pagetop {
        right: 20px;
        bottom: 20px;
    }
    .pagetop a {
        width: 50px;
        height: 50px;
    }
}

/* --- スマートフォン（767px以下） --- */
@media screen and (max-width: 767px) {
    .pagetop {
        right: 15px; /* 端に寄せすぎず、かつ邪魔にならない位置 */
        bottom: 15px;
    }

    .pagetop a {
        width: 45px;  /* スマホでは一回り小さく */
        height: 45px;
        background: rgba(86, 167, 142, 0.9); /* 少し透けさせて背後の文字を見せる */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .pagetop i {
        font-size: 18px; /* アイコンも合わせて小さく */
    }
}

/* 差し込み応募するボタン */
.btn_area {
    text-align: center;
    margin-top: 20px;
}

.btn_entry {
    display: inline-block;
    padding: 15px 50px;
    background-color: #E68C6A;
    box-shadow: 0 4px 0 #C87A5B;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn_entry:hover {
    background-color: #D47A58;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #C87A5B;
}

/* index採用セクション */
.index_recruit_text {
  text-align: center;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  .index_recruit_text {
    text-align: left;
  }
}

/* 仕事を知るナビゲーション */
.page-nav {
    margin-top: 40px;
    width: 100%;
}

.page-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.page-nav li {
    width: 360px; 
    box-sizing: border-box;
}

.page-nav li a {
    display: block;
    padding: 15px;
    font-weight: bold;
    background-color: #56A78E;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    border: #56A78E 2px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
}

@media (hover: hover) and (pointer: fine) {
  .page-nav li a:hover {
    background-color: #FFFBEB;
    color: #3a3a3a;
    opacity: 0.8;
  }
}

/* タブレット */
@media screen and (max-width: 1024px) {
    .page-nav li {
        width: calc((100% - 20px) / 2);
    }
}

@media screen and (max-width: 768px) {
    .page-nav ul {
        gap: 15px;
    }
    
    .page-nav li {
        width: 100%;
    }
}

/* 一覧表示用CSS */
.facility_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.facility_item {
    cursor: pointer;
    border: 1px solid #8B7E74;
    border-radius: 8px;
    padding: 1rem;
    width: 350px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.3s;
    background-color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .facility_item:hover {
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
}

.facility_item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.facility_name {
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px;
}

/* モーダル用CSS */
.modal_overlay {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 4%;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    background-color: rgba(0,0,0,0.6);
    align-content: center;
}

.modal_content {
    background-color: #FFFBEB;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal_close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .modal_close:hover {
      color: #3a3a3a;
  }
}

.modal_title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.modal_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.modal_tag_item {
    color: #E68C6A;
    border: 1px solid #E68C6A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}

.modal_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.modal_table th, .modal_table td {
    border: 1px solid #8B7E74;
    padding: 6px 10px; 
    text-align: left;
    font-size: 14px; 
}

.modal_table th {
    background-color: #EAF6F2;
    width: 25%;
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) { 
    .facility_item {
        width: calc(50% - 10px); 
    }

    .modal_content {
        width: 90%;
        margin: 10% auto;
    }
}

/* スマートフォン */
@media screen and (max-width: 767px) { 
    .facility_list {
        gap: 15px;
    }

    .facility_item {
        width: 100%;
        max-width: 350px; 
        padding: 10px;
    }

    .modal_content {
        width: 95%;
        padding: 15px 10px;
        margin: 15% auto;
    }

    .modal_close {
        top: 5px;
        right: 15px;
        font-size: 24px;
    }

    .modal_title {
        font-size: 18px;
        margin-right: 20px;
    }

    .modal_tag_item {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .modal_table, .modal_table tbody, .modal_table tr, .modal_table th, .modal_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .modal_table tr {
        margin-bottom: 10px;
    }

    .modal_table th {
        background-color: #EAF6F2;
        border-bottom: none;
        padding: 6px 10px;
    }

    .modal_table td {
        border-top: none;
        padding: 8px 10px;
        font-size: 13px;
    }
}