/*
Theme Name: underscore
Theme URI: 
Text Domain: underscore
*/


@charset "UTF-8";

/* :::::リセットCSS:::::: */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}
ol,
ul {
  list-style: none;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-weight: normal;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}
th,
td {
  font-weight: normal;
}
/* buttonタグをリセット */
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
summary::-webkit-details-marker {
  /* Safariで表示されるデフォルトの三角形アイコン削除 */
  display: none;
}
/* acodion */
/* Chrome、Safari以外 */

summary {
  display: block;
}
main {
  overflow: hidden;
}
/* Chrome、Safari */
summary::-webkit-details-marker {
  display: none;
}



.stardos-stencil-regular {
  font-family: "Stardos Stencil", system-ui;
  font-weight: 400;
  font-style: normal;
}

.stardos-stencil-bold {
  font-family: "Stardos Stencil", system-ui;
  font-weight: 700;
  font-style: normal;
}



a.whiter:link {
  text-decoration: none;
  color: #fff;
}
a.whiter:visited {
  text-decoration: none;
  color: #fff;
}
a.blacker_bold:link {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}
a.blacker_bold:visited {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}
.clear {
  clear: both;
}
.red {
  color: #FF0000
}
.blue {
  color: #09F
}
.green {
  color: #9C0;
  font-size: 12px;
}
.yellow {
  color: #FC0;
  font-size: 15px;
}
.bu {
  color: #09F;
  font-size: 18px;
}

/* ===================
改行
====================== */
@media (min-width: 1025px) { 
.pc-br {
  display: block;
}
.tab-br{
  display: none;  
}
.sp-br {
  display: none;
}
}
 @media (min-width:769px) and (max-width:1024px) {
.pc-br {
 display: none;
}
.tab-br{
  display: block;  
}
.sp-br {
  display: none;
}
}
@media (max-width: 768px) { 
.pc-br {
  display: none;
}
.tab-br{
  display: none;    
}
.sp-br {
  display: block;  
}
}






/* ===================
トグル
====================== */
@media (min-width: 769px) {
  .pc-toggle {
    display: block;
  }
  .sp-toggle {
    display: none;
  }
}


@media (max-width: 768px) {
  .pc-toggle {
    display: none;
  }
  .sp-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
/* ===================
PC スペース
====================== */
.sp1em {
  height: 1em;
}
.sp2em {
  height: 2em;
}
.sp3em {
  height: 3em;
}
.pc_sp1em {
  height: 1em;
}
.pc_sp2em {
  height: 2em;
}
.pc_sp3em {
  height: 3em;
}
.sp_sp1em {
  display: none;
}
.sp_sp2em {
  display: none;
}
.sp_sp3em {
  display: none;
}
}
@media (max-width: 768px) {
  /* ===================
SP スペース
====================== */
  .sp1em {
    height: 1em;
  }
  .sp2em {
    height: 2em;
  }
  .sp3em {
    height: 3em;
  }
  .pc_sp1em {
    display: none;
  }
  .pc_sp2em {
    display: none;
  }
  .pc_sp3em {
    display: none;
  }
  .sp_sp1em {
    height: 1em;
  }
  .sp_sp2em {
    height: 2em;
  }
  .sp_sp3em {
    height: 3em;
  }
}






/* =============================================================
ベース設定
============================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=PT+Sans:wght@700&display=swap");

:root {
  --font-family: "Noto Sans JP", sans-serif;
  --font-family-sub: "PT Sans", sans-serif;
  --color--primary: #11376b;
  --color--secondry: #cfd7e1;
  --color--btn: #889bb5;
  --color--text: #333333;
  /* マスク */
  --color--mask: rgba(17, 55, 107, 0.7);
}
html,
body {
  width: 100%;
  margin: 0 auto;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color--text);
  background-color: #fff;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0em;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  interpolate-size: allow-keywords;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  transition: all 0.6s ease-out;
}

a:hover {
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.6s ease-out;
}

::before,
::after {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
iframe {
  width: 100%;
  height: 100%;
  border: none;
}

section {
  width: 100%;
  padding-block: clamp(50px, 10vw, 100px);
}
.contents-wrapper {
  width: calc(100% - 30px);
  max-width: 1100px;
  margin-inline: auto;
}
/* drawerメニュー表示中のbody固定（スクロール位置を維持） */
body.is-fixed {
  position: fixed;
  width: 100%;
  overflow: hidden;
  left: 0;
}
@media screen and (min-width: 1024px) {
  html {
    font-size: 16px;
  }

  .contents-wrapper {
    width: calc(100% - 80px);
  }
}
/* =============================================================
header
============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--color--primary);
}
.header-nav {
  background-color: var(--color--primary);
  padding-inline: 20px;
  padding-block: min(80px, 15vw) 20px;
}
.header-nav-list {
  color: #fff;
  text-transform: uppercase;
}
.header-nav-list li {
position: relative;
  border-bottom: 1px solid #fff;
}

.header-nav-list li::before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 1px;
  margin-right: 8px;
  /* シェブロン（＞）の角度 */
  transform: translateY(-50%) rotate(-45deg);
}
.header-nav-link {
  display: block;
  padding-block: 20px;
  padding-left: 20px;
}
.nav-image {
  display: block;
  width: 85%;
  margin-inline: auto;
  margin-top: max(40px, 5vw);
}
/* responsive */
@media screen and (min-width: 1024px) {
  .header-nav {
    padding: 0;
  }
  .header-nav-list {
    display: flex;
    justify-content: center;
  }
  .header-nav-list li {
    position: relative;
    border-bottom: 0;
  }
  .header-nav-list li::before {
    display: none;
  }
  .header-nav-list li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.5em;
    background: #fff;
    opacity: 0.5;
    display: block;
  }
  .header-nav-list li:first-child::after {
    display: none;
  }
  .header-nav-link {
    padding: 20px 36px;
  }
  .nav-image {
    display: none;
  }
}
/* =============================================================
drawer menu
============================================================= */
.drawer {
  position: fixed;
  top: 0;
  right: -120%;
  transition: right 0.5s ease-in-out;
  z-index: 500;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
.drawer.is-open {
  right: 0;
}
@media screen and (min-width: 600px) {
  .drawer {
    width: 70vw;
  }
}
@media screen and (min-width: 1024px) {
  .drawer {
    position: static;
    width: auto;
    height: auto;
  }
}
.hambarger-btn {
  display: flex;
  position: fixed;
  top: 5px;
  right: 10px;
  z-index: 9999;
  height: 50px;
  width: 50px;
  align-items: center;
  background-color: var(--color--btn);
  border-radius: 50%;
  padding: 20px 13px;
}
.hambarger-btn .bar,
.hambarger-btn .bar:before,
.hambarger-btn .bar:after {
  content: "";
  display: block;
  height: 2px;
  width: 22px;
  background-color: #fff;
  position: absolute;

  transition: 0.5s;
}
.hambarger-btn .bar {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hambarger-btn .bar:before {
  bottom: 10px;
}
.hambarger-btn .bar:after {
  top: 10px;
}

.hambarger-btn.is-active .bar {
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0px 0px 0px rgba(255, 255, 255, 0);
}

.hambarger-btn.is-active .bar::before {
  bottom: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.hambarger-btn.is-active .bar::after {
  top: 0;
  transform: rotate(-45deg);
}
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.drawer-overlay.is-active {
  display: block;
}
@media screen and (min-width: 1024px) {
  .hambarger-btn {
    display: none;
  }
}

/* =============================================================
footer
============================================================= */
.footer {
  background-color: var(--color--primary);
  color: #fff;
  text-align: center;
  padding-block: min(18vw, 65px) 20px;
}
.footer h1 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: clamp(20px, 3vw, 28px);
}
.footer address {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(12px, 2vw, 18px);
}
.footer-copyright {
  font-size: clamp(10px, 2vw, 16px);
  padding-top: min(70px, 10vw);
}

.page-top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border-radius: 50%;
  background-color: var(--color--btn);
  position: fixed;
  right: 10px;
  bottom: 180px;
  z-index: 100;
  text-decoration: none;
}
.page-top-link .arrow {
  width: clamp(15px, 2vw, 20px);
  height: clamp(15px, 2vw, 20px);
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  display: inline-block;
  transform: rotate(-45deg);
  margin-bottom: -10px;
}
/* responsive */
@media screen and (min-width: 1024px) {
  .footer {
    padding-block: 65px 40px;
  }
  .page-top-link {
    right: 30px;
    bottom: 30px;
  }
}


/* TOPのFVアニメーション　初期状態を左オフセット＋透明にしておく */
.fv-image{
  opacity: 0;
  /* 左に 200px ずらし、Y は 0 で開始 */
  transform: translate(-350px, 0) scale(1);
  animation: slideJumpZoom 1.2s ease-out forwards;
}

/* ── keyframes ───────────────────────── */
@keyframes slideJumpZoom {
  /* スタート：左に 200px／下に 0／不透明度 0 */
  0%   { opacity: 0; transform: translate(-350px, 0)   scale(1);   }

  /* 途中：画面内へ滑り込む。まだ少し下にいる */
  50%  { opacity: 1; transform: translate(0,   0)      scale(1.1); }

  /* 跳ね上がる瞬間：Y を ‑50px（上方向へマイナス）にし拡大最大 */
  50%  { opacity: 1; transform: translate(0,  -70px)   scale(1.25); }

  /* 着地直前：Y を 0 に戻しながら縮小開始 */
  75%  { opacity: 1; transform: translate(0,    0)     scale(1);}

  /* 完了：通常サイズで静止 */
  100% { opacity: 1; transform: translate(0,    0)     scale(1);   }
}




/* ==== サムネイル 4 列 ======================================= */
.ag-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ag-grid img{width:100%;height:auto;border-radius:4px;cursor:pointer;transition:.2s}
.ag-grid img:hover{opacity:.8}

/* ==== モーダル ============================================== */
#ag-modal{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:#000c;z-index:9999;user-select:none
}
/* 画像を包む枠 */
.ag-frame{position:relative;display:inline-flex;align-items:center}

/* 画像本体 */
.ag-frame img{max-width:90vw;max-height:90vh;border-radius:6px;display:block}

/* × ボタン --------------------------------------------------- */
#ag-close{
  position:absolute;top:-36px;right:-36px;width:32px;height:32px;
  border-radius:50%;background:#000a;color:#fff;font-size:26px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;user-select:none
}
#ag-close:hover{background:#000d}

/* 矢印ボタン（中央揃え版） ---------------------------------- */
/* ── 矢印ボタン ───────────────────────────── */
.ag-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);   /* 高さ中央 */
  width:48px; height:48px;
  border-radius:50%;
  background:#000a;
  color:#fff;
  font-size:28px;
 line-height:1; /* ← ❶ 行間を詰める */
  display:flex;
  /*align-items:center;*/
  justify-content:center;
 padding-top:0px;  /* ← ❷ 1px 上に押し上げる */
  cursor:pointer;
  user-select:none;
  transition:.2s;
}
/* 白線（‹ / ›）だけを 1px 上にずらす ------------- */
.ag-arrow .ag-i{
position:relative;
top:0px;              /* 好みで -2px などに調整可 */
}
.ag-arrow:hover{background:#000d}
#ag-prev{left:-64px}
#ag-next{right:-64px}

/* スマホ幅（サイズ縮小時） ------------------- */
@media(max-width:600px){
  #ag-prev,#ag-next{
    left:-48px; right:-48px;
    width:40px; height:40px;
    font-size:24px;
    /* ↓ 同じく中央補正 */
    line-height:1;
    padding-top:5px;
  }

  
}

}



/* ───────── PC 共通 ───────── */
.ag-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);   /* PC 4 列 */
  gap:8px;
}

/* ───────── スマホ (～767px) ───────── */
@media (max-width:767px){

  /* サムネイルを 2 列に */
  .ag-grid{
    grid-template-columns:repeat(2,1fr) !important;
  }

  /* モーダルのレイアウトを縦並びにして矢印を画像の下へ */

	
.ag-frame {
    position: relative;
max-width: 80vw!important;
max-height: 93vh!important;
    display: flex;
    flex-direction: column;
    align-items: center;
}	
	

  /* 矢印ボタンを通常フローに置く */
  #ag-prev,
  #ag-next{
    position:static      !important;      /* 絶対配置を解除 */
    transform:none       !important;
    margin:16px 8px 0    !important;      /* 上に余白、左右少し開ける */
    width:44px           !important;      /* お好みで */
    height:44px          !important;
    font-size:26px       !important;
  }

  #ag-prev{
margin-bottom:15px !important;
  }

#ag-close{top:20px !important;right:0px !important;}
}

/* ──────────────────────────────────────
   サムネイルを統一サイズにする（中央トリミング）
   ※ .ag-grid 内の <img> を対象にしています。
     クラス名が違う場合は変更してください。
────────────────────────────────────── */
.ag-grid img{
  width:100%;               /* グリッドのセルいっぱいに広げる          */
  aspect-ratio:4/3;         /* ← ここで統一したいアスペクト比を指定     */
  object-fit:cover;         /* 縦横比が違う画像は中央をトリミングして充填 */
  object-position:center;   /* 中央を基準に切り取る（デフォルトですが念のため） */
  display:block;            /* 余計な隙間を消す                            */
}



/* 画像の余白調整 */
.gallery-five{
display:grid;
grid-template-columns:repeat(5,1fr); / ５列 /
gap:16px; 
}

/* 画像を枠いっぱいに */
.gallery-five img{
width:100%;
height:auto;
display:block;
}

/*画面幅に応じて列数を減らす（必要に応じて調整）*/
@media (max-width:1024px){
.gallery-five{grid-template-columns:repeat(4,1fr);}
}
@media (max-width:768px){ 
.gallery-five{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:576px){ 
.gallery-five{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:400px){ 
.gallery-five{grid-template-columns:2,1fr;}
}




/* ===================
 ブロック要素
====================== */
.lay-block {
  width: 96%;
  background-color: #fff;
}
.lay-block-10 {
  width: 96%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.lay-block-11 {
  width: 96%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.lay-block-12 {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  /*text-align: center;*/
}
.lay-block-13 {
  width: 96%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.lay-block-14 {
  width: 96%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.lay-block-15 {
  width: 96%;
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}
.lay-block-16 {
  width: 96%;
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
  display: flex;
}


.sp1em {
  height: 1em;
}
.sp2em {
  height: 2em;
}
.sp3em {
  height: 3em;
}
.pc_sp1em {
  height: 1em;
}
.pc_sp2em {
  height: 2em;
}
.pc_sp3em {
  height: 3em;
}
.pc_sp10em {
  height: 10em;
}
.sp_sp1em {
  display: none;
}
.sp_sp2em {
  display: none;
}
.sp_sp3em {
  display: none;
}


/* 入力欄のスタイル */
.pass input, textarea {
    width: 100%; /* box-sizingが適用されるので、paddingやborder込みで100%に収まる */
	max-width:300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
	padding:0.5em;
	margin:0.5em;
}

/* テキストエリアの高さを調整 */
.pass textarea {
    resize: vertical;
    height: 120px;
}

/* 送信ボタンのスタイル */
.pass button {
    background-color: #28a745;
    color: white;
    border: none;
    padding:0.5em;
    width: 100%;
	max-width:200px;
    margin: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}














/* ハッシュ付きで来たときの一瞬見える対策 */
html.hash-loading body {
  visibility: hidden;
}
