/* =========================================================
   Base CSS
========================================================= */

:root {
  --text-main: #5c6970;
  --text-sub: rgba(17,17,17,0.7);
  --text-muted: rgba(17,17,17,0.5);

  --bg-main: #ffffff;
  --bg-sub: #f7f7f7;

  --line-light: rgba(17,17,17,0.15);

  --font-base:
    "A1 Gothic",
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-en:
    "A1 Gothic",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --line-height-base: 1.9;
  --line-height-tight: 1.4;
}

html {
  background-color: var(--bg-main);
  color: var(--text-main);
  opacity: 0;
  transition: opacity 1s ease;
}
html.is-loaded { opacity: 1; }

body {
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--text-main);
  background-color: var(--bg-main);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: var(--line-height-tight);
  letter-spacing: 0.08em;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(20px, 2.5vw, 26px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { color: var(--text-sub); }
small { font-size: 12px; color: var(--text-muted); }
strong { font-weight: 600; }
em { font-style: normal; }

a { color: inherit; transition: opacity 0.2s ease; }
a:hover { opacity: 0.7; }

ul, ol { margin: 0; padding: 0; }
li { color: var(--text-sub); }

img { height: auto; }

section { position: relative; }
.section { padding: 80px 20px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }

.mt-s { margin-top: 8px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 32px; }

.mb-s { margin-bottom: 8px; }
.mb-m { margin-bottom: 16px; }
.mb-l { margin-bottom: 32px; }

/* =========================================================
   Menu
========================================================= */

.catMenu{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2% auto 16px;
  width:90%;
  max-width:1000px;
	justify-content: center;
	align-items: center
}

.catBtn{
  color: #5c6970;
  padding: 0 0 0;
  cursor: pointer;
  margin:0 2%;
  font-size: 1vw;
}

.catBtn.is-active{
  background: #fff;
  color: #5c6970;
  border-bottom: 1px solid #2ca7d7;
}

.btn {
  text-align: center;
}
.btn a {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border: 1px solid #5c6970;
  padding: .6em 2.5em;
  margin: 1%;
  color: #5c6970;
  text-decoration: none;
  position: relative;
  transition: background .2s ease, color .2s ease;font-size: 1vw;
}
/* 矢印 */
.btn a::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform .2s ease;
}
/* ホバー */
.btn a:hover {
  background: #5c6970;
  color: #FFF;
}
.btn a:hover::after {
  transform: translateX(.4em);
}
.backbtn{text-align: center;}
.backbtn a{
  position: relative;
  display: inline-block;
  padding-left: 30px; /* 矢印分の余白 */
	font-size: 1vw;
	color: #5c6970;
	
}

/* 矢印 */
.backbtn a::before{
  content: "←";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateX(6px) translateY(-50%);
  transition: transform .25s ease;
}

/* hoverで左へスライド */
.backbtn a:hover::before{
  transform: translateX(0) translateY(-50%);
}



/* =========================================================
   Slider layout（画像が切れない版）
========================================================= */

.sliderWrap{
  position: relative;
}

/* 画像エリア（＝.slideの枠） */
.worksSlider{
  width:90%;
  margin: auto;
  position: relative;
  height: 70vh;
}

/* ★重要：slick側の箱も高さを揃える（ここが効く） */
.worksSlider .slick-list,
.worksSlider .slick-track{
  height: 70vh !important;
}

/* slickは .slick-slide の直下に「1段ラッパーdiv」を挟む */
.worksSlider .slick-slide,
.worksSlider .slick-slide > div{
  height: 70vh !important;
}

/* slide も同じ高さに固定 */
.worksSlider .slide{
  padding: 0;
  height: 70vh !important;
  outline: none;

  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Image wrap（画像サイズにフィット）
========================================= */

.worksSlider .imgWrap{
  position: relative;
  display: flex;
  max-width: 100%;
  max-height: 100%;
	align-items: center;
	 justify-content: center
}

/* ★画像は「必ず全体表示」(切れない) */
.worksSlider .slide img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  border-radius: 20px;

  /* flex内でのはみ出し事故防止 */
  min-width: 0;
  min-height: 0;
}

h1{ width:20%; margin: 20px auto!important; }

/* =========================================================
   自前ページ送り（.slide枠＝70vhの両脇に固定）
========================================================= */

.sliderNav{
  position: absolute;
  left: 50%;
  top: 0;
  width: 90%;
  max-width: 1000px;
  height: 70vh;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.sliderPrev,
.sliderNext{
  pointer-events: auto;
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,1);
  padding: 0;
  cursor: pointer;
  border: none;
  font-size: 0;
  line-height: 0;
  transition: opacity .25s ease;
}

/* 枠の左右端に半分かかる（固定） */
/* =========================================================
   Page Nav hover：拡大（位置ズレ防止版）
========================================================= */

.sliderPrev{
  left:-30px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}

.sliderNext{
  right:-30px;
  transform: translate(50%, -50%);
  transition: transform .2s ease;
}

/* hover時：translate + scale を同時指定 */
.sliderPrev:hover{
  transform: translate(-50%, -50%) scale(1.15);
	opacity: 1!important;
}

.sliderNext:hover{
  transform: translate(50%, -50%) scale(1.15);
	opacity: 1!important;
}


.sliderPrev:hover,
.sliderNext:hover{
  opacity: .7;
}

/* 矢印（シェブロン） */
/* 左矢印（三角） */
.sliderPrev::before{
  content: "";
  border-style: solid;
  border-width: 12px 16px 12px 0;          /* 高さ / 横幅 */
  border-color: transparent #5c6970 transparent transparent;
	left: 14px;
	top: 12px;
	position: absolute;
}

/* 右矢印（三角） */
.sliderNext::before{
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 16px;
  border-color: transparent transparent transparent #5c6970;
	left: 19px;
	top: 12px;
	position: absolute;
	
}

/* =========================================================
   Caption（右端基準。長くなったら左へ伸びる。はみ出し防止）
========================================================= */

.worksSlider .caption{
  position: absolute;
  right: -5px;      /* ★右端基準 */
  bottom: -5px;

  background: #fff;
  color: #5c6970;

  padding: 10px 14px;
  font-size: 0.8vw;
  line-height: 1.6;
  letter-spacing: 0.04em;

  border-radius: 6px;
  pointer-events: none;

  /* ★長文でも「右から消えない」 */
  box-sizing: border-box;
  max-width: min(420px, calc(100% - 24px)); /* 画像内に収める */
  white-space: normal;
  overflow-wrap: anywhere;  /* 長い英単語でも折る */
  text-align: left;
}



/* ===== Category underline (slide) : 追加 ===== */

/* 下線を置くため、catMenu を基準にする */
.catMenu{
  position: relative;
  padding-bottom: 6px; /* 下線分の余白 */
}

/* 横移動する下線本体 */
.catUnderline{
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  background: #2ca7d7;
  width: 0;
  transform: translateX(0);
  transition: transform .25s ease, width .25s ease;
  pointer-events: none;
}

/* 初期配置だけ瞬間移動させたい時用（JSが付け外し） */
.catUnderline.is-immediate{
  transition: none;
}

/* 既存の is-active の border は見せない（線は catUnderline が担当） */
.catBtn.is-active{
  border-bottom-color: transparent;
}

.copy{font-size: 1vw; text-align: center; margin:50px auto 0;}


.sp {
  display: none;
}
.pc {
  display: block;
}














  @media (max-width: 768px){

  /* ===============================
     基本
  =============================== */
  html, body{
    width: 100%;
    overflow-x: hidden;
  }

  /* 表示切替（既存クラス前提） */
  .pc{ display: none; }
  .sp{ display: block; }

  /* ===============================
     1. ロゴ
  =============================== */
  h1{
    width: 50%;
    margin: 14px auto;
    position: static;
  }
  h1 img{
    width: 100%;
    height: auto;
    display: block;
  }

  /* ===============================
     2. スライダー
     ・高さは明示
     ・上下中央寄せは slide 内だけ
  =============================== */
  .sliderWrap{
    position: relative;
  }

  .worksSlider{
    width: 100%;
    margin: 0;
    height: 70vh; /* 既存思想そのまま */
    position: relative;
  }

  .worksSlider .slick-list,
  .worksSlider .slick-track,
  .worksSlider .slick-slide,
  .worksSlider .slick-slide > div{
    height: 70vh;
  }

  .worksSlider .slide{
    height: 70vh;
    display: flex;              /* ここだけ flex OK */
    align-items: center;        /* 縦中央 */
    justify-content: center;    /* 横中央 */
  }

  .worksSlider .slide img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
  }

  .worksSlider .caption{
    font-size: 2.8vw;
  }

  /* ===============================
     3. ページ送り
     ・absoluteのみ
  =============================== */
  .sliderNav{
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 70vh;
    pointer-events: none;
	 transform: translateX(-50%)
  }

  .sliderPrev,
  .sliderNext{
    pointer-events: auto;

    width: 28px;
    height: 28px;
  }

  .sliderPrev{
    left: 4%;
    transform: translate(-40%, -50%);
  }
  .sliderNext{
    right: 4%;
    transform: translate(40%, -50%);
  }
	  
	  .sliderNext::before {
    content: "";
    border-style: solid;
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent #5c6970;
    left: 11px;
    top: 6px;
    position: absolute;
}
	.sliderPrev::before {
    content: "";
    border-style: solid;
    border-width: 8px 10px 8px 0;
    border-color: transparent #5c6970 transparent transparent;
    left: 8px;
    top: 6px;
    position: absolute;
}  
	  
	  
	  

  /* ===============================
     4. カテゴリナビ（スライダー下）
  =============================== */
  .catMenu{
    width: 100%;
    margin: 3% auto 0; /* 要望どおり */
    padding: 0 12px;

    display: block;   /* ← flex使わない */
    text-align: center;
  }

  .catBtn{
    display: inline-block;
    margin: 0 8px 6px;
    font-size: 3.2vw;
  }

  /* SPでは下線スライドを使わない */
  .catUnderline{ display: none; }
  .catBtn.is-active{
    border-bottom: 1px solid #2ca7d7;
  }

  /* ===============================
     5. 問い合わせ
  =============================== */
  .btn{
    margin-top: 10px;
    text-align: center;
  }
  .btn a{
    font-size: 3.2vw;
  }

  /* ===============================
     6. 本体サイトリンク
  =============================== */
  .backbtn{
    margin-top: 8px;
    text-align: center;
  }
  .backbtn a{
    font-size: 3.2vw;
  }

  /* ===============================
     7. コピー
  =============================== */
  .copy{
    margin: 12px auto 10px;
    text-align: center;
    font-size: 2.6vw;
    letter-spacing: 0.06em;
    color: rgba(92,105,112,.75);
  }
}
