@charset "UTF-8";

main,
.main_cont,
.main-cont2{
  overflow-anchor: none;
}


/* 影響範囲を絞るなら main や .content に指定 */
:root {
  --sidebar-w: 20%;
}

/* html, body { margin: 0; height: 100%; } */

body {
  font-family: "Noto Sans", sans-serif;
  /* display: flex; */
  justify-content: end;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  margin-top: 0;
  position: relative;
  padding-left: 20%;
  transition: all 0.4s ease;
}

@media screen and (max-width:550px) {
  body {
    display: block;
    margin-top: 0;
    padding-left: 0;
  }
}

body img {
  width: 100%;
}

body p{
	font-size:16px;
	line-height:1.8;
}

img,
div,
section,
article,
p {
  transition: all 0.6s ease-in-out;
}

.mb10 {
  margin-bottom: 10px;
}

.mb20 {
  margin-bottom: 20px;
}

.mb40 {
  margin-bottom: 40px;
}

.sp-item {
  display: none;
}

.pc-item2 {
  display: none;
}

@media screen and (max-width:550px) {
  .pc-item {
    display: none;
  }

  .sp-item {
    display: block;
  }
}

/* ローダーを常に最前面へ */
#loading {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2147483647;
  transition: opacity .8s ease;
}

#loading.hide {
  opacity: 0;
  pointer-events: none;
}

/* モバイルのヘッダーはローダー未満に */
@media screen and (max-width:550px) {
  .header {
    z-index: 8000;
  }
}

/* ----------------------------------------------------
header
---------------------------------------------------- */
.header {
  width: 20%;
  position: fixed;
  /* position: sticky; */
  top: 0;
  left: 0;
  padding: 5.2%;
  height: 100%;
  position:relative;
}

.header-logo {
  width: 100%;
}

.header-nav {
  text-align: left;
  margin-top: 50%;
}

.header-nav-item {
  font-size: 14px;
  margin-top: 25px;
  font-weight:500;
}

.info {
  text-align: left;
  width:100%;
  bottom:15%;
}

.sns {
  margin-top: 200px;
  display: flex;
  gap: 10px;
}

.sns-img {
  width: 15px;
}

.info-txt {
  margin-top: 10px;
  line-height: 1.5;
}

.Copyright {
  font-size: 8px;
  margin-top: 10px;
}

.Copyright p,
.info-txt p {
  font-size: 9px;
  line-height: 1.5;
}

@media screen and (max-width:550px) {
  .header {
    width: 100%;
    padding: 20px 30px 15px;
    position: sticky;
    top: 0;
    /* stickyはtop必須 */
    z-index: 10000;
    /* かなり高めに */
    background: none;
    height: auto;
  }

  .header label{
	  margin-bottom:5px;
	}
	
  .header-logo {
    width: 25%;
  }

  .header-nav-item {
    margin-top: 0;
  }

  .info {
    margin-top: 71px;
  }
}

.hamburger {
  display: none;
}


/* ----------------------------------------------------
ハンバーガーメニュー
---------------------------------------------------- */
.hamburger {
  display: none;
}

@media screen and (max-width:550px) {
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*自分が固定したい位置(例は上から0pxの位置)*/
  }

  .hamburger {
    display: block;
  }

}

/* チェックボックスを非表示にする */
.drawer_hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
  display: flex;
  width: 30px;
  height:30px;
/*   justify-content: center; */
  align-items: center;
  position: relative;
  z-index: 100;
  /* 重なり順を一番上にする */
  cursor: pointer;
}

/* ハンバーガーメニューのアイコン */

.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 1.2px;
  width: 100%;
  border-radius: 0px;
  background: #000;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked~.drawer_open span {
  background: rgba(0, 0, 0, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked~.drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer_input:checked~.drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* メニューのデザイン*/
.nav_content {
  width: 68%;
  height: 100%;
  padding-top: 20%;
  padding-left: 20%;
  position: fixed;
  bottom: 100%;
  right: 0;
  top: 0;
  /* ← topで基準位置を固定 */
  transform: translateY(-100%);
  /* ← ここで画面外に出しておく */
  opacity: 0;
  /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: #fff;
  transition:
    transform 0.7s ease-in-out,
    opacity 0.7s ease-in-out;
  /* ← 時間を長く＆同じ時間に */
  font-weight: 500;
}

.nav_list {
  line-height: 3;
}

.nav_list li a {
  /* border-bottom: #715e58 solid 1pt; */
}

.nav_list li a:hover {
  opacity: 0.6;
  transition: 0.5s;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked~.nav_content {
  transform: translateY(0);
  opacity: 1;
  /* メニューを画面に入れる */
}

/* スクラム＝下の画面を暗く */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  /* 暗さは好みで */
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
  z-index: 80;
  /* ← ページより上、メニューより下 */
  cursor: pointer;
  /* クリックで閉じられる感じに */
}

/* チェックONでスクラム表示 */
#drawer_input:checked~.scrim {
  opacity: 1;
  visibility: visible;
}

.nav:checked~.nav_content {
  /* width: 150px; */
  height: 100%;
  padding-top: 150px;
  position: fixed;
  bottom: 100%;
  right: 0;
  /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: #fff;
  transition: .5s;
  /* メニューを画面に入れる */
}

.sub_nav0 li,
.sub_nav li {
  font-size: 12px !important;
  margin-left: 10px;
  line-height: 2;
  margin-top: 0px;
}

.sub_nav{
  margin-top: 12px;
}

/* ヘッダーここまで */
@media screen and (max-width:550px) {
.sub_nav0,
.sub_nav{
  margin-top: 0px;
}
}

/* サブナビはデフォルト非表示 */
/* .header-nav-item .sub_nav0 .header-subnav {
  display: none;
} */

/* 親にホバーしたとき表示 */
/* .header-nav-item.has-sub:hover .sub_nav0 .header-subnav {
  display: block;
  visibility: visible;
} */

/* サブメニューの中のリンク */
.sub_nav0 li {
  list-style: none;
}

/* .sub_nav0 a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
}
 */
/* .sub_nav0 a:hover {
  background: #f5f5f5;
} */

.header-nav-item .sub_nav0 .header-subnav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(11px);
  transition: all 0.4s ease;
}
/* hover時に表示 */
.header-nav-item.has-sub:hover .sub_nav0 .header-subnav {
  max-height: 500px; /* サブメニューの高さより大きめに */
  opacity: 1;
/*   margin-top:12px; */
}


/* ヘッダーここまで */

/* ----------------------------------------------------
FV
---------------------------------------------------- */
.main_cont {
  position: absolute;
  width: 80%;
  padding-bottom: 20%;
  padding-top: 5.2%;
  /* margin-left: 20.8%; */
  margin-top: 0;
  top: 0;
}

@media screen and (max-width:550px) {
  .main_cont {
    width: 100%;
    margin-bottom: 30px;
    margin-left: 0;
    margin-top: 70px;
	padding-top:0;
  }
}
.main_cont2,
.main_cont3 {
  position: absolute;
  width: 80%;
  padding-bottom: 20%;
  padding-top: 4.5%;
  /* margin-left: 20.8%; */
  margin-top: 0;
  top: 0;
}

@media screen and (max-width:550px) {
  .main_cont2 {
    width: 100%;
    margin-bottom: 30px;
    margin-left: 0;
    margin-top: 70px;
	padding-top:0;
  }
	.main_cont3 {
    width: 100%;
    margin-bottom: 30px;
    margin-left: 0;
  }
}

.FV {
  width: 100%;
  position:relative;
}

.FV img {
  width: 100%;
}

.FV_logo{
  position:absolute;
  bottom: -2vw;
  left: -1.5vw;
  width: 35%;
  margin: auto;
  z-index:999;
}
@media screen and (max-width:550px) {
.FV_logo {
  bottom: -5vw;
  left: -4vw;
  width: 80%;
  margin: auto;
  z-index:999;
  }
}

.cont_Wrap {
  margin-right: 10%;
  padding-bottom: 50px;
}

@media screen and (max-width:900px) {
  .cont_Wrap {
    margin-right: 5%;
  }
}

@media screen and (max-width:550px) {
  .cont_Wrap {
    margin-left: 30px;
    margin-right: 30px;
  }
}

.pic {
  display: flex;
  position: relative;
  vertical-align: middle;
  margin-top: 5%;
}

.pic_box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35%;
  margin: auto;
  background-color: white;
}

.pic_txt {
  margin: 10% auto 10% 12%;
  font-size: 14px;
}

@media screen and (max-width:550px) {
  .pic {
    display: block;
    position: static;
    margin-top: 30px;
  }

  .pic_box {
    position: static;
    width: 100%;
    text-align: left;
  }

  .pic_txt {
    margin: 10px 0 0 0;
    font-size: 14px;
  }
}

h2 {
  font-size: 35px;
}

h2::after {
  content: "";
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
}


/****************************** about **********/

.about-FV {
  width: 100%;
}

.about h2 {
  margin-top: 40px;
  margin-bottom: 75px;
}

.about_box {
  margin-bottom: 80px;
}

.about h3 {
  font-size: 25px;
  margin-bottom: 50px;
}

.about_txt {
  width: 650px;
  font-size: 16px;
  text-align: justify;
  line-height: 1.8;
}

@media screen and (max-width:900px) {
  .about_txt {
    width: 100%;
  }
}

.team_cont {
  display: flex;
  margin-bottom: 50px;
}

@media screen and (max-width:550px) {
  .team_cont {
    display: block;
    margin-bottom: 70px;
  }

  .team_cont img {
    margin-bottom: 40px;
  }
}

.team_img {
  width: 300px;
  height: 400px;
  object-fit: cover;
}

.introduce {
  margin-left: 30px;
}

@media screen and (max-width:550px) {
  .introduce {
    margin-left: 0px;
  }
}

.team_img2 {
  height: 300px;
  width: 300px;
  object-fit: cover;
}

@media screen and (max-width:550px) {
.team_img,
.team_img2{
 width:100%;
 height:80%;
 object-fit:cover;
  }
}

table {
  width: 650px;
  border-collapse: collapse;
  margin-bottom: 100px;
  margin-left: 330px;
}

@media screen and (max-width:900px) {
  table {
    width: 650px;
    margin-left: 0px;
  }
}

@media screen and (max-width:900px) {
  table {
    width: 100%;
  }
}

th,
td {
  padding: 15px 1px;
  vertical-align: top;
}

th {
  width: 75px;
  text-align: left;
  border-top: 1px solid #000;
  font-weight: normal;
}

td {
  border-top: 1px solid #ccc;
}

tr:first-child {
  border-top: 1px solid #ccc;
  /* 最上段にも横線 */
}

.left {
  border-bottom: 1px solid #000;
}

.right {
  border-bottom: 1px solid #ccc;
}

/****************************** works **********/

.works h2{
	margin-bottom:60px;
}
@media screen and (max-width:550px) {
.main_cont2 h2{
	margin-left:30px;
}
}
.works-nav {
  font-size: 8px;
  margin-left: 16px;
  margin-top: 10px;
}

.workspage_txt_box{
	display:flex!important;
	justify-content:space-between!important;
}

/****************************** news **********/


.news-topic-title {
  background-color: #ededed;
  padding: 20px 0;
  margin-top: 46px;
  margin-bottom: 60px;
}

.news-topic-title p {
  margin-left:30px;
}

.news-topic-sentence {
  width: 100%;
}

@media screen and (max-width:900px) {
  .news-topic-sentence {
    width: 100%;
  }
  .news-topic-title p {
	margin-right:30px;
}
}


/****************************** contact **********/

.contact-text {
  color: #333;
  margin-top: 40px;
}

.form {
  margin-top: 40px;
  max-width: 1000px;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: -10px;
}

.form-row {
  margin-bottom: 28px;
}

.req {
  color: #e60000;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 0px 0 15px;
  font-size: 16px;
  background: transparent;
  outline: none;
}

textarea {
  min-height: 150px;
}

input:focus,
textarea:focus {
  border-bottom: 1px solid #111;
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

.btn-black {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 14px 80px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity .2s;
}

.btn-black:hover {
  opacity: 0.9;
}

.form-actions {
  text-align: center;
}

.cf7-contact p{
	line-height:1.4;
}

.arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
}

.arrow::before,
.arrow::after {
  content: '';
  position: absolute;
  width: 2px;              /* 棒の太さ */
  height: 12px;            /* 棒の長さ */
  background: #fff;        /* 色 */
  left: 5px;               /* 中央寄せ */
}

.arrow::before {

  transform: rotate(45deg);
}

.arrow::after {

  transform: rotate(-45deg);
}

/* ----------------------------------------------------
アニメーション
---------------------------------------------------- */
/* すべてのスクロール演出に遅延変数を効かせる */
.fade-in,
.blur-in,
.slide-zoom-in,
.slide-rotate-in,
.reveal,
.reveal-wrapper {
  transition-delay: var(--delay, 0ms);
  animation-delay: var(--delay, 0ms);
}
.fade-in,.blur-in,.slide-zoom-in,.slide-rotate-in,.reveal-wrapper { opacity: 0; }
.active { opacity: 1; transition: opacity .6s ease; } /* 例：お好みで */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* クリックエフェクト */
.ripple {
  position: relative;
  overflow: hidden;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(31, 26, 26, 0.6);
  pointer-events: none;
  width: 100px;
  height: 100px;
  z-index: 1;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ripple 背景クリック用 */
.bg-ripple-effect {
  position: fixed;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-bg 0.6s ease-out;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  width: 120px;
  height: 120px;
  z-index: 1000;
}

@keyframes ripple-bg {
  0% {
    transform: scale(0);
    opacity: 0.4;
  }

  100% {
    transform: scale(var(--scale, 5));
    opacity: 0;
  }
}


/* ブラーイン */
/* 初期状態 */
.blur-in {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(40px);
  transition: opacity 2s ease, filter 2.5s ease, transform 2.5s ease;
  will-change: opacity, transform;
}

.blur-in2 {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(40px);
  transition: opacity 4s ease, filter 4.5s ease, transform 4.5s ease;
  will-change: opacity, transform;
}

/* アクティブ状態（スクロールイン時に付与） */
.blur-in.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.blur-in2.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ブラーインここまで */


/* 投稿ページ */
.archive-works h3{
	font-size:25px;
	margin-top:80px;
	margin-bottom:50px;
}

/* カード一覧 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* モバイルは1列 */
  gap: 3%;/* カード間の余白 */
}

@media screen and (max-width:550px) {
.works-grid {
  grid-template-columns: 1fr; 
  gap: 2%;/* カード間の余白 */
}
}

/* 見た目の安定化（任意） */
.works-grid .card a {
  display: block;
  height: 100%;
}
.works-grid .thumb {
  aspect-ratio: 16 / 9;         /* サムネ比率を統一 */
  overflow: hidden;
  margin-bottom:10px!important;
}
.works-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workspage_txt_box p{
	width:60%;
}
.workspage_txt{
	text-align:justify !important;
}
@media screen and (max-width:550px) {
.workspage_txt p{
	width:100%;
}
	
.workspage_txt{
	width:100% !important;
}
}
.c-post-card__meta{
	font-size:14px;
}

.single-works .entry,
.single-news .entry{
	padding-bottom:300px;
}
.single-works .entry-thumb{
	margin-bottom:0;
}
.single-works .thumb{
	height:auto;
}

.single-works .entry{
	padding-top:60px;
}

.single-works h2{
	font-size:16px;
}

.single-works h2::after {
  display: none;
}

.archive-works h4,
.archive-works time,
.single-works span,
.single-works time{
	font-size:14px;
}
.news_archive h3 .news-cat{
	font-size:25px;
	margin-top:80px;
}

.news_archive h3{
	font-size:25px;
	margin-top:80px;
}
@media screen and (max-width:550px) {
.news_archive h3{
	margin-left:30px;
}
}

.news-article__content{
	text-align:justify;
}

.single-works .post-nav,
.single-news .post-nav{
	text-align:center;
	font-size:16px;
	font-weight:bold;
}

.wp-block-gallery{
--wp--style--unstable-gallery-gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 1.5em))) !important;
    gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 1.5em))) !important;
}

:where(figure) {
    margin: 0 0 1.5em !important;
}

.pic :where(figure),
.wp-block-gallery :where(figure) {
    margin: 0 0 0em !important;
}

.pic :where(figure) img{
	width:100%;
	height:auto;
	object-fit:cover;
}

/* ホバーエフェクト */
.hover-fill {
  font-size: 1rem;
  font-weight: bold;
  position: relative;
  display: inline-block;

  /* ===== テキスト部分 ===== */
  background: linear-gradient(to right, #000 50%, #777 50%); /* 黒→グレー */
  background-size: 200% 100%;
  background-position: left;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.hover-fill::after {
 content: "";
  position: absolute;
  left: 0;
  bottom: -6px; /* 文字からの距離 */
  width: 100%;
  height: 3px; /* ここを太くしても消えない */
  background: linear-gradient(to right, #000 50%, #777 50%);
  background-size: 200% 100%;
  background-position: left;
  transition: background-position 0.5s ease;
  z-index: -1; /* テキストにかぶらないように */


  /* ===== アンダーライン部分 ===== */
  background: linear-gradient(to right, #000 50%, #777 50%);
  background-size: 200% 100%;
  background-position: left;
  transition: background-position 0.5s ease;
}

.hover-fill:hover {
  background-position: right; /* テキスト色 左→右に変化 */
}

.hover-fill:hover::after {
  background-position: right; /* アンダーライン色 左→右に変化 */
}



.scroll-box {
  height: 300px;
  overflow-y: scroll;
  scroll-behavior: smooth;           /* ページ内移動のみスムーズ */
  -webkit-overflow-scrolling: touch; /* iOSで慣性スクロール */
}

#gate-target[hidden]{ display:none; }

/* アニメ全停止（preloader以外） */
#gate-target.gate-hold, 
#gate-target.gate-hold * {
  animation-play-state: paused !important;
  transition: none !important;  /* 初期描画時の思わぬトランジションも抑止 */
}

/* 表示時にふわっと入れる場合（任意） */
#gate-target.gate-in { animation: gateFade .5s ease forwards; }
@keyframes gateFade{ from{opacity:0} to{opacity:1} }
