@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&family=Noto+Sans+JP:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;700&display=swap');
/* Reset & Basic */
html, body {
  height: 100%;
  margin: 0;
}
html {
  height: auto; /* 100% から変更 */
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-repeat: repeat;
    background-image: url(../img/bg_wrapper.jpg);
    background-color: #fff;
    color: #333;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    font-feature-settings: "halt"1;
    text-spacing-trim: space-all;
    padding-right: 0px;
    font-size: medium;
}
img {
    max-width: 100%;
    height: auto;
    padding-left: 0px;
    padding-right: 0px;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-only {
    display: none;
}


#wrapper {
    max-width: 1096px;
    margin: 0 auto;
    width: 100%;
    flex: 1; /* コンテンツが短いときでもフッターを下に押し出す */
    display: flex;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.inner {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 2%;
    padding-right: 2%;
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}


#contents {
    flex: 1; /* これが肝：余白分を自動で引き伸ばす */
    background-image: url(../img/bg_content.jpg);
    background-repeat: repeat-y;
    background-position: center center;
    width: auto;
}
/* Header & Nav */
#header {
    background: url(../img/bg_header.jpg) no-repeat center top;
    padding-top: 40px;   
    /*padding-left: calc(20px + 8.1vw);
   padding-right: calc(20px + 8.1vw);*/
}
/* ヘッダー全体の設定 */
#header .inner-header {
    display: flex;
    flex-direction: column; /* 縦並びにする */
    justify-content: flex-start;
    padding-top: 20px;    
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
   
}
.logo {
    margin: 0px; /* ロゴとメニューの間のスペース */
    flex-shrink: 0;
    min-width: 60px;
    max-width: 468px;
}

.header-tag {
    position: absolute; /* 親要素 inner-header 内での絶対配置 */
    top: -15%;          /* ヘッダー上部からの距離 */
    right: -12%;       /* 負の値にして右側にハミ出させる */
    width: 100%;       /* アイコンのサイズ */
    height: auto;
    z-index: 10;
    max-width: 310px;
}
.gnav {
    flex-grow: 1;
    margin-top: 20px;
    border-bottom: 1px solid #999;
    width: 100%;
    max-width: 860px;
}
/* メインメニュー */
.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}
/* 日本語表示部分の制御 */
.nav-list li a {
    position: relative;
    display: block;
    padding-top: 16px;
    padding-right: 30px;
    padding-left: 0;
    padding-bottom: 10px; /* 下部に少し余裕 */
    font-family: 'Shippori Mincho', serif;
    text-decoration: none;
    color: #333;
}
/* 日本語表示部分の制御 */
.nav-list li a .jp {
  position: absolute;
  top: -20px; /* 最初は英文字よりかなり上からスタート */
  left: 0; /* 左揃え */
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 0.9em;
  white-space: nowrap;
  pointer-events: none;
}
/* ホバー時の挙動 */
.nav-list li a:hover .jp {
  opacity: 1;
  top: -4px; /* ここを調整して英文字との隙間を制御します */
}
/* アイコンの基本スタイル */
.nav-list li a i {
  margin-right: 8px; /* テキストとの間隔 */
  color: #333; /* 通常時の黒色 */
  transition: color 0.3s ease;
}
/* ホバー時にアイコンを赤にする */
.nav-list li a:hover i {
    color: #E10003; /* ホバー時の赤色 */   
}
/* メニュー全体のホバー時に文字色も連動させたい場合
.nav-list li a:hover {
    color: #f00;
}
 */
/* --- 共通コンテンツスタイル --- */
/* ページタイトルエリア */
.page-header-section {
  border-left: 12px solid #666;
  border-bottom: 1px solid #CCC;
  padding: 5px 0 10px 14px;
  margin: 50px auto 40px auto;
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
}
.page-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.8rem;
  color: #666;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 3px;
  line-height: 100%;
}
.page-title.kana {
  letter-spacing: -0.15em;
}
.subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  line-height: 160%;
  padding-left: 5px;
  margin-top: 10px;
}
.subtitle-wrap i {
  color: #333;
}
.subtitle-wrap .en {
  font-family: 'Shippori Mincho', serif;
  font-weight: bold;
  font-size: 1rem;
  line-height: 0px;
  margin-left: -5px;
  padding-right: 0px;
}
.subtitle-wrap .jp {
  font-size: 0.9rem;
}
/* 共通コンテナ（余白など） */
.content-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

/* ページトップボタンの装飾 */
.page-up-btn {
    display: inline-flex;       /* アイコンと文字を中央寄せ */
    align-items: center;
    justify-content: center;
    gap: 5px;                  /* アイコンと文字の間隔 */
    font-family: 'Shippori Mincho', serif;
    width: 86px;
    height: 22px;
    background-color: #b1b0b0;  /* 1層目：中の背景色 */
    border: 1px solid #ffffff;  /* 3層目：外側の枠 */
    outline: 1px solid #b1b0b0; /* 2層目：白枠（outlineはborderの内側に重なります） */
    border-radius: 5px;        /* 角丸 */
    color: #FFFFFF;            /* 指定のグレー色 */
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease; /* ホバー時の滑らかなアニメーション */
    padding-bottom: 1px;
}

/* ホバー時 */
.page-up-btn:hover {
    background-color: #666666;  /* 1層目：中の背景色 */
    border: 1px solid #ffffff;  /* 3層目：外側の枠 */
    outline: 1px solid #666666; /* 2層目：白枠（outlineはborderの内側に重なります） */
}
.btn-icon {
    display: inline-block;
    border-bottom: 1.5px solid #fff; /* ▲の下に横棒を引く */
    line-height: 1px !important; /* ▲と横棒の距離を詰める */
    margin-right: 5px;
    padding-top: 2px;
}

.page-up-btn i {
    font-size: 16px;
    line-height: 8px;
}

/* 
#page-top {
  text-align: right;
  margin-bottom: 20px; 
}
#page-top a {
  display: inline-block;
  transition: opacity 0.3s;
}
#page-top a:hover {
  opacity: 0.7; 
}
*/

/* Footer */
#footer {
    background: url('../img/bg_content.jpg') repeat-y center;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: right; /* 全体を右揃え */      
}

.inner-footer {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 4%;
    width: 100%;
    max-width: 860px;
    padding-right: 2%;
    margin-left: auto;
    margin-right: auto;
}


#footer .copyright, #footer .attention {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 10px;
}
/* フッターリンクの区切り線設定 */
.footer-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 30px;
    margin-top: 20px;
}

.footer-links li {
    white-space: nowrap; /* テキストと「｜」が離れて改行されるのを防ぐ */
}

/* 最後の要素以外に「｜」を表示させる */
.footer-links li:not(:last-child)::after {
  content: "｜";
  margin: 0 2px; /* 「｜」の左右の隙間を調整 */
  color: #666; /* 色を指定 */
}
/* リンク自体の装飾 */
.footer-links li a {
  color: #666;
  text-decoration: none;
  font-size: 0.85em;
}
.footer-links li a:hover {
  color: #E10003;
  text-decoration: underline;
}


@media (max-width: 767px) {
 
 .sp-only {
    display: inline-block;
}
 
 #header {
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url(../img/bg_content_m.jpg);    
}   

 .inner {   
    padding-left: 2%;
    padding-right: 2%;
}
 
 .menu-btn {
    display: flex;
  } /* blockからflexに変更 */
  .gnav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid #666;
  }
  .nav-list {
    flex-direction: column;
  }
  /* Header & Nav */
  
   .header-tag {
        display: none; /* スマホでは非表示にする場合 */
    }
  
  .content-container {
    padding-top: 0;
    padding-right: 4%;
    padding-left: 4%;
    padding-bottom: 0;
  }
 
  /* フッターリンクの区切り線設定 */
  
  #footer {
    background: url('../img/bg_content.jpg') repeat-y center;
    padding-top: 20px;
    padding-bottom: 0px!important;
    text-align: center; /* 全体を右揃え */
}
  
  .inner-footer {
    padding-left: 2%;
    padding-right: 2%;
    margin-bottom: 20px;
   
}
  
  .footer-links {
    list-style: none;
    display: none;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 20px;
  }
  
  #footer .copyright{
  margin-top: 20px!important;
  }
  
  #footer .copyright, #footer .attention {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 0px;
  }
.page-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.5rem;
    color: #666;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 3px;
    line-height: 100%;
}



  
}

@media screen and (min-width: 768px) and (max-width: 1025px) {
   
/* 日本語表示部分の制御 */

.inner {   
    padding-left: 3%;
    padding-right: 3%;
   
}

.nav-list li a {
    padding-right: 26px;
    padding-left: 0;
    font-size: 0.85rem; /* 文字をわずかに小さく */
   
}
  
    .header-tag {
    right: 1%;       /* 右端ギリギリに移動 */
    width: 35%;   /* サイズを少し縮小して収める */
    top: -20%;
    }

    /* 3. アイコンと文字の隙間を縮小 */
    .nav-list li a i {
        margin-right: 4px;
    }
    
 /* Footer */
  #footer {
    padding-top: 40px;    
    padding-bottom: 20px;
    text-align: right;
    
  }

.inner-footer {    
    padding-left: 4%;
    padding-right: 1.5%;
}

 .footer-links {
        flex-wrap: nowrap; /* 一行に強制 */
        justify-content: flex-end; /* 左右中央揃えにしてバランスをとる */
        gap: 5px; /* 項目間の余白を調整 */
    }
    /* 4. フッターリンクも同様に縮小 */
    .footer-links li a {
        font-size: 0.75rem; /* フッターも少し縮小 */
        white-space: nowrap; /* 折り返しを禁止 */
    }
    
    /* フッターの区切り文字の間隔も調整 */
    .footer-links li:not(:last-child)::after {
        margin: 0 1px;
    }
}



@media screen and (min-width: 1024px) and (max-width: 1190px) {
 
.header-tag {
    position: absolute; /* 親要素 inner-header 内での絶対配置 */
    top: -15%;          /* ヘッダー上部からの距離 */
    right: -13%;       /* 負の値にして右側にハミ出させる */
    width: 100%;       /* アイコンのサイズ */
    height: auto;
    z-index: 10;
    max-width: 310px;
}

}
/*
@media screen and (min-width: 1200px) {
 #header {  
   padding-left: 120px;
   padding-right: 120px;
}

#footer { 
  padding-left: 120px;
  padding-right: 120px;
}


}
*/
