@charset "utf-8";
@media screen and (max-width: 768px) {
  .sp_view {
    display: block;
  }
  .pc_view {
    display: none;
  }
  body {
    font-size: clamp(16px, 2.5vw, 28px);
    min-width: 100%;
  }
  #mv_hirakuto {
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  /* iOSのみ */
  @supports (-webkit-touch-callout: none) {
    #mv_hirakuto {
      top: 38%;
    }
  }
  #mv_hirakuto img {
    width: 76vw;
    max-width: auto;
    height: auto;
  }
  #first img#mv_hikari {
    display: none;
  }
  #first img#sp_mv_hikari {
    display: block;
  }
  .loader_logo_poji {
    width: 340px; /* ← 画面幅の8割に */
    max-width: 844px; /* ← PCでは従来の最大幅に */
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  /* iOSのみ */
  @supports (-webkit-touch-callout: none) {
    .loader_logo_poji {
      top: 38%;
    }
  }
  #loader_01, #loader_02 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
  }
  #loader_01 {
    opacity: 0;
    width: 54px; /* 親の幅に対して20% */
    max-width: 19.4%; /* PCでは従来サイズ */
  }
  #loader_02 {
    opacity: 0;
    width: 286px; /* 親の幅に対して80% */
    max-width: 80.6%;
  }
  /*-----------------------------------*/
  .bt_entry {
    font-size: 4.2vw;
    padding: 3.0vw 7.0vw 3.0vw;
    border-radius: 40vw;
  }
  .bt_entry span {
    font-size: 5.2vw;
    font-weight: 900;
    letter-spacing: 0.05em;
    border-left: 2px solid #FFFFFF;
    margin-left: 3.0vw;
    padding-left: 3.0vw;
  }
  #ham_entry .bt_entry {
    font-size: 3.4vw;
    padding: 3.0vw 5.0vw 3.0vw;
  }
  #ham_entry .bt_entry span {
    font-size: 4.2vw;
    font-weight: 900;
    letter-spacing: 0.05em;
  }
  #global-nav {
    min-width: 100%;
  }
  
  
  #global-nav-bg {
    padding: 2.0vh 0px 0 0px;
  }
  /*-----------------------------------*/
  #glo_left {
    width: 90%;
    padding: 0 4vw;
    display: flex;
    flex-wrap: wrap; /* 改行を許可 */
    justify-content: flex-start;
  }
  #h_logo {
    width: 52%;
    margin-right: 2vw; /* ロゴとテキストの間隔 */
  }
  #h_logo img {
    width: 98%;
    height: auto;
  }
  #h_rec {
    font-size: 6.2vw;
    padding: 0vw 2.5vw 0.6vw;
    margin: 0;
    border-width: 1px;
    border-right: none;
  }
  #h_name {
    flex-basis: 100%; /* 下段に改行させる */
    text-align: center;
    white-space: nowrap;
    font-size: 3.1vw;
    padding: 2.5vw 0 2vw;
  }
  #glo_entry {
    display: none;
  }
  /* ハンバーガーアイコン */
  .hammenu {
    top: 2.4vh;
    right: 2vw;
    width: 9vw; /* 62px → 約16vw */
    height: 7vw; /* 35px → 約9vw */
    transform: translateY(0); /* SPでは隠さない */
  }
  .hammenu span {
    height: 0.8vw; /* 4px → 約0.8vw */
  }
  /* メニュー本体 */
  .menu {
    right: -80vw; /* 初期位置を画面外（-80%） */
    width: 80vw; /* 画面幅の80%を占有 */
    padding: 15vw 8vw; /* 上下左右余白をvwに調整 */
  }
  .menu.open {
    right: 0;
  }
  .menu ul {
    margin: 0 0 10vw 0;
  }
  .menu li {
    margin: 8vw 0 12vw 0;
  }
  .menu li a {
    font-size: 4.4vw; /* 18px → 約4.8vw */
    padding-bottom: 2.5vw;
  }
  .menu li a::after {
    width: 21vw; /* 下線初期幅 */
    height: 0.5vw; /* 下線高さ */
  }
  .menu li a:hover::after {
    width: 24vw; /* ホバー時に伸びる */
  }
  .hammenu.active span:nth-child(1) {
    top: 45%;
    transform: translateY(-50%) rotate(45deg);
  }
  .hammenu.active span:nth-child(3) {
    top: -45%;
    transform: translateY(-50%) rotate(-45deg);
  }
  /**/
  .scroll-indicator {
    bottom: 10%; /* 位置はお好みで調整 */
    right: 2%;
  }
  /* iOSのみ */
  @supports (-webkit-touch-callout: none) {
    .scroll-indicator {
      bottom: 14%;
    }
  }
  .scroll-indicator .text {
    font-size: 4.0vw;
  }
  .scroll-indicator .line {
    width: 1px;
    height: 23vh;
    margin: 0 auto 2vh;
  }
  /*スマホ時のみ*/
  #spc_glo_entry {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateY(100%);
  }
  #spc_glo_entry a {
    display: block;
    width: 100%;
    font-size: 4.8vw;
    font-weight: bold;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.0em;
    box-sizing: border-box;
    padding: 4.2vw 7.0vw 4.2vw;
    border-top-left-radius: 4.5vw;
    border-top-right-radius: 4.5vw;
    background-color: #DC0000;
    transition: background-color 0.3s ease;
  }
  #spc_glo_entry a span {
    font-size: 5.2vw;
    font-weight: 900;
    letter-spacing: 0.05em;
    border-left: 2px solid #FFFFFF;
    margin-left: 3.0vw;
    padding-left: 3.0vw;
  }
  #spc_glo_entry a:hover {
    background-color: #484848;
  }
  /*-----------------------------------*/
  #container {
    clear: both;
    width: 100%;
    padding: 6.0vh 0px 0px;
  }
  /* コンテンツ全体 */
  #contents {
    clear: both;
    width: 100%;
    padding: 18vh 0 10vh;
    background-color: #F0EEEC;
  }
  h2#h2_001 {
    width: 80%;
    font-size: 4.4vw;
    line-height: 2.4em;
    margin: 0px auto 6.0vh;
  }
  /*-----------------------------------*/
  #place_wrap {
    width: 90%;
    max-width: 90%;
    background-image: url("../images/bg_place_sp.svg");
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #DC0000;
    margin: 0px auto 10vh;
    position: relative;
    border-radius: 20px;
    height: 76vh; /* 適宜調整 */
    min-height: 700px;
  }
  
  #place01 {
    top: 6%;
    left: 5%;
  }
  #place02 {
    top: 6%;
    right: 5%;
  }
  #place03 {
    bottom: 6%;
    left: 5%;
  }
  #place04 {
    bottom: 6%;
    right: 5%;
  }
  #place01 picture img, #place02 picture img, #place03 picture img, #place04 picture img {
    width: 38vw;
    max-width: 200px;
    height: auto;
  }
  #place_center picture img {
    width: 50vw;
    max-width: 250px;
    height: auto;
  }
  
  
  
  /*-----------------------------------*/
  #philosophy, #join, #facility, #entry {
    padding: 10vh 0px;
  }
  #h2_philosophy, #h2_facility, #h2_join, #h2_entry {
    font-size: 5.4vw;
    font-weight: 700;
    line-height: 1.4em;
    padding: 10vh 0px 0px 0px;
    margin-bottom: 4vh;
  }
  #h2_philosophy span, #h2_facility span, #h2_join span, #h2_entry span {
    font-size: 4.0vw;
    letter-spacing: 0.1em;
    padding: 3.0vh 0px 0px 0px;
  }
  #h3_philosophy {
    width: 100%;
    font-size: 4.9vw;
    color: #DC0000;
    font-weight: 700;
    text-align: center;
    border: 4px solid #DC0000;
    border-radius: 30vw;
    box-sizing: border-box;
    padding: 2.0vh 0px 2.2vh;
    margin: 0px auto 4.0vh;
  }
  #tx_philosophy {
    width: 86%;
    text-align: left;
    font-size: 4.0vw;
    line-height: 1.7em;
    margin: 0 auto 7.0vh;
  }
  #tx_philosophy::before {
    content: '▲';
    color: #DC0000;
    padding-right: 1vw;
  }
  #tx_philosophy .sp_space {
    padding-left: 5.2vw;
  }
  .white_wrap {
    clear: both;
    width: 90%;
    border-radius: 5vw;
    padding: 6vh 6vw 6vh;
    box-sizing: border-box;
    background-color: #FFF;
    margin: 0px auto;
  }
  /*-----------------------------------*/
  #main_copy {
    width: 92%;
    display: flex; /* 横並び */
    gap: 0.2em; /* 文字間隔っぽく */
    justify-content: center;
    margin: 0 auto 6.0vh;
  }
  #main_copy span {
    display: inline-block;
    opacity: 0; /* 初期は非表示 */
    transform: translateY(30px); /* 下にずらしておく */
  }
  #main_copy span img {
    display: block;
    width: 100%;
    height: auto;
  }
  #main_text {
    width: 92%;
    display: block;
    justify-content: center;
    margin: 0px auto 6vh;
  }
  .mt_first, .mt_second {
    width: 100%;
    margin: 0px 0%;
  }
  #main_text p {
    font-size: 3.9vw;
    font-weight: 600;
    line-height: 1.9em;
    margin-bottom: 3.3vh;
  }
  /*-----------------------------------*/
  .fac_wrap {
    display: block;
    width: 100%;
  }
  .fac_img {
    width: 100%;
    height: auto;
    margin-bottom: 4.0vh;
    border-radius: 4.4vw;
  }
  .fac_img img {
    display: block;
    width: 100%;
    height: auto;
  }
  .bt_fac a {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: #333;
    text-decoration: none;
    font-size: 3.6vw;
  }
  /* アイコン */
  .bt_fac .icon {
    width: 8vw;
    height: 7vh;
  }
  .bt_fac .text {
    white-space: nowrap; /* 改行させない */
    margin-right: 3.6vw;
  }
  .fac_wrap .fac p {
    font-size: 3.1vw;
    line-height: 1.6em;
    margin-bottom: 2.0vh;
  }
  .fac_wrap .fac p.fac_sub {
    font-size: 3.2vw;
    line-height: 1.0em;
    margin-bottom: 1.8vh;
  }
  .fac_wrap .fac h3 {
    font-size: 6.2vw;
    margin-bottom: 3.0vh;
  }
  .bt_fac .line {
    margin-right: 5.0vw;
  }
  /* 施設ごとの固定幅 */
  #fac001 .bt_fac .line {
    width: 13vw;
  }
  #fac002 .bt_fac .line {
    width: 16vw;
  }
  #fac003 .bt_fac .line {
    width: 15vw;
  }
  #fac004 .bt_fac .line {
    width: 20vw;
  }
  p.desc {
    width: 90%;
    font-size: 3.6vw;
    line-height: 1.8em;
    margin: 0px auto 4.0vh;
  }
  #entry p.desc {
    font-size: 3.6vw;
    line-height: 2.2em;
    margin: 0px auto 8.0vh;
  }
  #join p.desc {
    width: 70%;
    text-align: left;
    font-size: 3.6vw;
    line-height: 1.6em;
    margin: 0px auto 6.0vh;
  }
  #entry #form_wrap p.desc {
    text-align: left;
    font-size: 3.2vw;
    line-height: 1.6em;
    margin: 0px auto 2vh;
  }
  /*-----------------------------------*/
  #join_wrap {
    display: block;
    width: 80%;
    margin: 0 auto 4vw;
    gap: 0vw 0;
    text-align: center;
  }
  .bt_join a {
    width: 100%;
    max-width: auto;
    font-size: 4.4vw;
    line-height: 1.3em;
    height: 11vh;
    vertical-align: middle;
    padding: 2.0vh 0px;
    margin-bottom: 2.0vh;
  }
  .bt_join .arrow {
    right: 6vw;
    width: 4vw;
    height: 5vw;
    background-size: auto 5vw;
  }
  #entry .flow {
    flex-direction: column;
    gap: 4vw;
    width: 80%;
    margin: 0 auto 10vw;
  }
  #entry .flow li {
    width: 90%;
    height: auto;
    font-size: 4vw;
    border-radius: 6vw;
    padding: 3.8vh 3vw;
    position: relative; /* 矢印の基準 */
    margin-bottom: 4vw; /* 矢印分の余白を確保 */
    border: 3px solid #DC0000;
  }
  /* 矢印を下向きに配置 */
  #entry .flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%; /* 中央 */
    top: 110%;
    transform: translateX(-50%) rotate(90deg); /* 下向きに回転 */
    width: 14vw;
    height: 5vw;
    background-image: url("../images/arr_red.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  /* 最後のliは矢印なし */
  #entry .flow li:last-child::after {
    content: none;
  }
  /* ボタンエリア */
  .bt_recruit {
    clear: both;
    width: 100%;
    text-align: center;
    margin: 7vh 0 3vh;
  }
  /*pc*/
  #three_block {
    display: none;
    width: 100%;
  }
  /*sp----------------------------------------------------------------------*/
  #sp_three_block {
    clear: both;
    overflow: hidden;
    display: block;
    width: 100%;
    height: auto;
  }
  #sp_three_pojis {
    position: relative; /* 絶対配置の基準 */
    width: 100%;
    height: auto; /* 画像に合わせて自動 */
    display: inline-block;
  }
  .bt_three_001, .bt_three_002, .bt_three_003 {
    cursor: pointer;
    position: absolute;
    z-index: 11;
  }
  .bt_three_001 {
    top: 13%;
    right: 17%;
  }
  .bt_three_002 {
    top: 45%;
    right: 9%;
  }
  .bt_three_003 {
    top: 79%;
    right: 0%;
  }
  .bt_three_001 img, .bt_three_002 img, .bt_three_003 img {
    width: 16vw;
    height: auto;
  }
  #sp_three_base {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden; /* カバーがはみ出さないように */
  }
  
  .sp_shutter_cover {
  pointer-events: none; /* クリック操作を邪魔しないように */
}
  /* ポップアップ全体 */
  #sp_tb_detailbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(223, 31, 23, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 5vw;
    box-sizing: border-box;
    transform: translateY(0); /* クリック位置に応じて JS で変更 */
  }
  #sp_tb_detailbox.active {
    opacity: 1;
    visibility: visible;
  }
  #sp_tb_scroll {
    max-height: 100%; /* ポップアップの高さに収める */
    overflow-y: auto; /* 縦スクロール可能 */
    padding: 0; /* 中身の余白 */
    box-sizing: border-box;
  }
  #sp_tb_scroll {
    overflow-y: auto;
  }
  /* Chrome, Edge, Safari */
  #sp_tb_scroll::-webkit-scrollbar {
    width: 2px; /* スクロールバー全体の幅 */
  }
  #sp_tb_scroll::-webkit-scrollbar-track {
    background: rgba(223, 31, 23, 0.05); /* ほぼ透明で薄く */
    border-radius: 3px;
  }
  #sp_tb_scroll::-webkit-scrollbar-thumb {
    background: rgba(223, 31, 23, 0.95); /* メインのバー色 */
    border-radius: 3px;
  }
  #sp_tb_scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(223, 31, 23, 1); /* ホバー時は少し濃く */
  }
  /* Firefox */
  #sp_tb_scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 31, 23, 0.95) rgba(223, 31, 23, 0.05);
  }
  #sp_tbd_whitewrap {
    width: 94%;
    max-height: 100%;
    border-radius: 5vw;
    padding: 6vh 8vw 6vh;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #FFF;
  }
  #box_three_001, #box_three_002, #box_three_003 {
    padding-top: 2.0vh;
  }
  .sp_tbd h2 {
    width: 100%;
    font-size: 4.9vw;
    color: #DC0000;
    font-weight: 700;
    text-align: center;
    border: 4px solid #DC0000;
    border-radius: 30vw;
    box-sizing: border-box;
    padding: 2.0vh 0px 2.2vh;
    margin: 0px auto 2.0vh;
  }
  .sp_tbd .red_point {
    width: 100%;
    box-sizing: border-box;
    background: url("../images/ic_red_sankaku.svg") no-repeat left 0.4vh;
    background-size: 4.2vw auto;
    text-align: left;
    font-size: 3.6vw;
    line-height: 1.6em;
    padding-left: 6.0vw;
    margin: 0 auto 3.0vh;
  }
  .sp_tbd h3 {
    font-size: 5.8vw;
    margin-bottom: 3.0vh;
    color: #DC0000;
    font-weight: 600;
    line-height: 1.6em;
  }
  .sp_tbd dl {
    width: 100%;
    padding: 2.5vh 0px;
    border-top: 2px dashed #F7B79B;
  }
  .sp_tbd dl:last-child {
    border-bottom: 2px dashed #F7B79B;
  }
  .sp_tbd dl dt {
    width: 100%;
    font-size: 5.8vw;
    font-weight: 700;
    color: #DC0000;
    text-align: center;
    letter-spacing: 0.025em;
    line-height: 1.5em;
    margin-bottom: 0.5vh;
  }
  .sp_tbd dl dd {
    width: 100%;
    text-align: left;
    font-size: 3.2vw;
    font-weight: 700;
    color: #2E2E2E;
    letter-spacing: 0.02em;
    line-height: 1.6em;
  }
  /* 各詳細ボックス */
  .sp_tbd {
    margin-bottom: 5.0vh;
  }
  /* 閉じるボタン */
  .bt_close {
    display: block;
    width: 30%;
    text-align: center;
    margin: 0px auto 15.0vh;
    color: #6c6c6c;
    font-size: 5.0vw;
    font-weight: 700;
    line-height: 1.6em;
    text-decoration: none;
    border-bottom: 3px solid #6c6c6c;
  }
  /*-----------------------------------*/
  #form_wrap {
    clear: both;
    width: 90%;
    border-radius: 2.0vw;
    box-sizing: border-box;
    padding: 4.0vh 5.0vh 3.0vh;
    background-color: #FFF;
    margin: 0px auto 3.0vh;
  }
  #policy_agree {
    width: 100%;
    font-size: 3.4vw;
    text-align: center;
    margin: 0 auto 5.0vh;
  }
  #policy_agree label {
    display: inline-block;
    cursor: pointer;
  }
  /**/
  /* ===============================
       個人情報保護方針ページ用CSS
       =============================== */
  .poli_wrap {
    clear: both;
    overflow: hidden;
    overflow-y: scroll;
    width: 100%;
    box-sizing: border-box;
    padding: 1.0vh 1.0vh 1.4vh;
    border-radius: 5px;
    border: 1px solid #707070;
    margin-bottom: 3.5vh;
  }
  /* ボタンのラッパー */
  #bt_submit {
    margin-bottom: 1.0vh; /* 下余白 */
  }
  /* ボタン本体 */
  #bt_submit input[type="submit"] {
    width: 100%;
    height: 9.0vh;
    font-size: 5.0vw;
    border-radius: 20vw;
  }
  .g-recaptcha {
    width: 100%;
    max-width: 304px;
    margin: 0px auto 2.0vh !important;
  }
  .g-recaptcha iframe {
    transform: scale(0.85); /* サイズを縮小 */
    transform-origin: 0 0; /* 左上基準で縮小 */
    width: 100%; /* 親幅いっぱいに */
    max-width: 304px; /* reCAPTCHA の元サイズ */
  }
  /* iOSのみ */
  @supports (-webkit-touch-callout: none) {
    .g-recaptcha iframe {
      transform: scale(0.9);
    }
  }
  /*-----------------------------------*/
  #footer {
    clear: both;
    width: 100%;
    padding: 8.0vh 0px 10.0vh;
  }
  #f_logo {
    margin-bottom: 3.9vh;
  }
  #f_logo img {
    width: 60%;
    height: auto;
  }
  #footer p {
    font-size: 3.6vw;
    line-height: 1.6em;
  }
  #footer p#f_company {
    font-size: 3.6vw;
    font-weight: 500;
    margin-bottom: 2.6vh;
  }
  #footer p.mb50 {
    margin-bottom: 5.0vh;
  }
  #footer p#copyright {
    font-size: 2.8vw;
  }
}