@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* ----------↓ HEADER ↓---------- */

  header {
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header a{
    color: #333;
    text-decoration: none;
  }
  
  header  a:hover {
  color: #3d88e4;
  text-decoration: underline;
}

  header .logo {
    margin: 4px auto 0 28px;
  }

  header .header-menu {
    margin: 0;
    padding-right: 20px;
  }

  header .header-menu_upper {
    height: 60px;
    display: flex;
    justify-content:flex-end;
  }


  header .contact a{
    font-size: 14px;
    padding: 5px 25px;
    background-color: #425695;
    color: #FFF;
    text-decoration: none;
  }

  header .contact:hover {
    transition: opacity 0.3s ease;
    opacity: 0.7;
  }
  
  header .access{
    padding-left: 25px; 
    background-image: url(../image/icon_pin.png); 
    background-position-y: 3px;
    background-repeat: no-repeat; 
}

  header .tel{
    font-size: 25px;
    font-weight: bold;
    margin-left: 16px;
  }

  header .tel_txt{
    font-size: 14px;
  }

  header .header-menu_upper ul{
    display: flex;
    list-style: none;
    padding-top: 17px
  }

  header .header-menu_lower{
    font-size: 90%;
    font-weight: bold;
    display: flex;
    justify-content:flex-end;
    vertical-align: middle;
  }
  
/* ----------↓ SEARCH(PC） ↓---------- */

/* ============================================================
   Googleカスタム検索 PC版レイアウト修正：統合版
   ============================================================ */

/* 1. 全体コンテナ：位置とサイズを固定 */
#search {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 350px !important; /* ボタンがはみ出す場合はここを広げてください */
    height: 40px !important;
    margin-left: 10px;
}

/* 2. Googleの独自構造をリセット（line-height:0 の干渉を防ぐ） */
#search .gsc-control-cse,
#search .gsc-control-cse * {
    box-sizing: border-box !important;
    line-height: normal !important;
}

#search .gsc-control-cse {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. テーブルセルの垂直配置を中央に固定 */
#search table.gsc-search-box td {
    vertical-align: middle !important;
    padding: 0 !important;
}

/* 4. 入力ボックス（白い枠）の設定 */
#search .gsc-input-box {
    height: 34px !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
}

/* 5. 入力テキストエリア：虫眼鏡との重なりを解消 */
#search input.gsc-input {
    height: 32px !important;
    line-height: 32px !important; /* 高さと同じにして上下中央へ */
    font-size: 14px !important;
    background: none !important;  /* 背景のGoogleロゴを消す */
    
    /* 【最重要】左側に十分な余白（40px）を作り、虫眼鏡を避ける */
    padding-left: 40px !important; 
    padding-right: 10px !important;
    
    margin: 0 !important;
    width: 100% !important;
    vertical-align: middle !important;
}

/* 6. 検索ボタン（虫眼鏡ボタン）の設定 */
#search .gsc-search-button-v2 {
    padding: 7px 12px !important;
    margin-left: 5px !important;
    background-color: #666 !important; /* ボタンの色 */
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
}

#search .gsc-search-button-v2 svg {
    width: 16px !important;
    height: 16px !important;
    fill: #fff !important;
    vertical-align: middle !important;
}

/* 不要な要素の非表示・調整 */
#search .gsst_b { padding: 0 !important; } /* ×ボタンの余白調整 */
#search .gsib_b { display: none !important; } /* 内部の予備アイコンを非表示 */


/* ----------↓ SEARCH (SP）↓---------- */

#sp_search {
  margin: 30px;
}

#sp_search table td{
  margin: 0px !important;
  padding: 0px !important;
  line-height: 0 !important;
}

#sp_search .gsc-control-cse {
  margin: 0px !important;
  padding: 0px !important;
  border: 2px solid #899bd5 !important;
}

#sp_search .gsc-input-box {
  border: none !important;
  padding: 6px;
  width: 100%;
}

#sp_search .gsc-search-button-v2 {
  background-color: #FFF;
  border: 2px solid #FFF;
}

#sp_search .gsc-search-button-v2 svg {
  width: 20px;
  height: 20px;
  fill: #333 !important;
}


@media screen and (max-width: 980px) {
  header {
    position: fixed;
    z-index: 3;
    height: 80px;
    width: 100%;
    background-color: #FFF;
  }

  header .logo {
    margin: 0;
    padding-left: 8px;
  }

  header .logo img {
    width: 70%;
    vertical-align: middle;
    z-index: 10;
  }

  header .header-menu {
    display: none;
  }
}

/* ----------↓ MENU ↓---------- */

 .hamburger {
  display: block;
  position: fixed;
  z-index: 3;
  right: 40px;
  top: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  text-align: left;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 6px;
  background: #555;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 10px;
}

.hamburger span:nth-child(2) {
  top: 20px;
}

.hamburger span:nth-child(3) {
  top: 30px;
}

.hamburger_menu {
  font-size: 10px;
  padding-top: 30px;
}

@media screen and (min-width: 980px) {

  .hamburger {
      display: none;
  }

  .globalMenuSp {
    display: none;
}
}

/* 開いてる時のボタン */
.hamburger.active span:nth-child(1) {
  top: 16px;
  left: 6px;
  background: #333;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 16px;
  background: #333;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

nav.globalMenuSp {
  width: 100%;
  z-index: 2;
  margin-top: 80px;
  top: 0;
  color: #fff;
  background-color: #899bd5;
  text-align: left;
  opacity: 0;
  transition: opacity .6s ease, visibility .6s ease;
  visibility: hidden;
  /* スクロール対応 */
  position: absolute;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* jQueryで付与・削除する */
nav.globalMenuSp.active {
  left: 0;
  opacity: 100;
  visibility: visible;
}

/* アコーディオンメニュー01 */
.accordion-001 {
  width: 100%;
  background-color: #f4f4f4;
}

.accordion-001:not([open]) {
  margin-bottom: 2px;
}

.accordion-001 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em;
  background-color: #425695;
  cursor: pointer;
}

.accordion-001 summary::-webkit-details-marker {
  display: none;
}

.accordion-001 summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  content: '';
  transition: transform .6s;
}

.accordion-001[open] summary::after {
  transform: rotate(225deg);
}

.accordion-001 ul{
 list-style: none;
 margin: 0;
 padding: 20px;
 line-height: 40px;
}

.accordion-001 li.l2{
line-height: 100%;
}

.accordion-001[open] .div{
  transform: none;
  opacity: 1;
  transition: transform .6s;
}

.accordion-001 summary a{
  color: #FFF;
}

/* アコーディオンメニュー02 */
.accordion-002 {
  width: 100%;
  background-color: #899bd5;
  color: #FFF;
}

.accordion-002:not([open]) {
  margin-bottom: 2px;
}

.accordion-002 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em;
  cursor: pointer;
  color: #FFF;
}

.accordion-002 summary a{
  color: #FFF;
}


.accordion-002 summary::-webkit-details-marker {
  display: none;
}


/* ----------↓ NAVIGATION ↓---------- */

.global {
  background-color: #425695;
  position: relative;/* 下層メニュー表示に必要 */
  text-align: center;
}

.global_wrapper {
  display: flex;
  margin: 0;
  padding: 0 40px;
}

.global_wrapper li {
  width: calc(100%/5);
  transition: all 0.3s ease;
  list-style-type: none;
}

.line{
  border-left: 1px solid #9faddb;
}

.line2{
  border-right: 1px solid #9faddb;
}

.global_wrapper li:hover {
  background-color: #9faddb;
}

.global_wrapper li a {
  color: #FFF;
  display: block;
  padding: 17px 0;
  text-decoration: none;
}

/* 下層メニュー */

.child_menu > li > a:hover { 
  background-color: #9faddb;
}
 
.child_menu {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  z-index: 3;
  width: 100%;
  top: 100%; /* 親項目の直下に配置 */
  left: 0;
  padding: 20px;
  background: #e7e6f6; /* 下層メニュー背景色*/
  visibility: hidden; 
  opacity: 0; 
  transition: 1s opacity; 
}
 
.menu:hover .child_menu { 
  opacity: 1;
  visibility: visible; 
}

.child_menu li a{
  color: #000;
}

.child_menu a:hover {
  color: #000;
}

.nav-menu {
  display: none;
}

@media screen and (max-width: 980px) {
  .global_wrapper {
      display: none;
  }
  }

 /* ----------↓   GRAND-MENU  ↓---------- */

 #footer-menu{
  background-color: #425695;
  padding: 10px 30px;
}

#footer-menu .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
}

#footer-menu .column {
  flex-basis: calc(16.666% - 40px); 
  margin: 10px;
  color: #FFF;
}

#footer-menu h3{
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #FFF;
}

#footer-menu ul{
  list-style-type: none;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

#footer-menu li{
  margin-top: 10px;
  line-height: 15px;
}

#footer-menu a{
  color: #FFF;
}

@media screen and (max-width: 980px) {

#footer-menu {
    display: none;
  }
}



  /* ----------↓   FOOTER  ↓---------- */

#footer {
  border-top: 1px solid #ccc;
  }
  
#footer a{
    color: #333;
    text-decoration: none;
  }
  
#footer a:hover {
  color: #3d88e4;
  text-decoration: underline;
}

#footer .footer-inner{
  display: flex;
  justify-content: space-between;
}

#footer .footer-site {
  padding: 10px 10px 0px 60px;
  width: 45%;
}

#footer .footer-site img {
  max-width: 370px;
}

#footer .footer-menu {
  padding: 20px 100px 0 0;
}

#footer .footer-menu li{
  display: inline-block;
  font-size: 13px;
  padding-left: 20px;
}

#footer .footer-copyright {
  display: flex;
  justify-content: center;
  font-size: 13px;
  padding: 10px;
}

#footer .footer-copyright  p{
  padding-left: 10px;
}

#footer .tel{
  display: none;
}

@media screen and (max-width: 980px) {

  #footer {
    height: 300px;
    padding-right: 20px;
    }

  #footer .footer-inner{
    display: block;
  }
  
  #footer .footer-site {
    padding:15px;
    text-align: center;
    width: 100%;
  }
  
  #footer .footer-menu {
    padding: 0;
    text-align: center;
  }
  
  #footer .footer-copyright {
    display: block;
  }
  
  #footer .footer-copyright  p{
    text-align: center;
  }

  #footer .tel{
    display: block;
  }
  
  #footer .tel{
    font-size: 25px;
    font-weight: bold;
    margin-left: 16px;
  }

  #footer  .tel_txt{
    font-size: 14px;
  }

  #footer  .copyright{
    font-size: 11px;
  }

}

  /* ----------↓   フローティングバナー  ↓---------- */

.floating-banner {
  position: fixed;
  margin: 30px 0px;
  z-index: 9999;
  bottom: 0;
  right: 0;
}

.floating-banner a {
  text-decoration: none;
  color: #FFF !important;
}

.banner-back {
  background-color: #fff;
  border-radius: 8px 0 0 8px;
}

.banner-copy {
  position: relative;
  font-size: 18px;
  writing-mode: vertical-rl;
}

.banner-body {
  padding: 25px 17px;
  background: #009999;
  text-align: center;
  border-radius: 8px 0 0 8px;
  -webkit-box-shadow: 0 0 7px rgb(0 0 0 / 40%);
  box-shadow: 0 0 7px rgb(0 0 0 / 40%);
}

.banner-body:hover {
  transition: opacity 0.3s ease;
  opacity: 0.7;
}

@media screen and (max-width: 980px) {
  .floating-banner {
      width: 100%;
      margin: 0;
      padding: 0;
  }

  .banner-body {
    width: 100%;
      margin: 0;
      padding: 25px 0;
    border-radius: 0px;
  }

  .banner-back {
      width: 100%;
      margin: 0;
      padding: 0;
      border-radius: 0px;
  }

  .banner-copy {
      writing-mode: horizontal-tb;
  }
}

/*　横スクロール　*/
html,body {
  overflow-x: hidden;
}
