@charset "utf-8";



/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");


/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


/*テンプレート専用cssファイルの読み込み
---------------------------------------------------------------------------*/
@import url("inview.css");
@import url("mainimg.css");
@import url("credo.css");

/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）
---------------------------------------------------------------------------*/
:root {
	
	--space-large: 5vw;			/*主に余白の一括管理用。画面幅100%＝100vwです。*/
	--space-small: 2vw;			/*主に余白の一括管理用。画面幅100%＝100vwです。*/
}



/*animation11のキーフレーム設定（汎用的）
---------------------------------------------------------------------------*/
@keyframes animation1 {
	0% {left: -200px;}
	100% {left: 0px;}
}
/* 上からスライドインするアニメーション */

@keyframes slideFromTop {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* 上へスライド「アウト」 */
@keyframes slideToTop {
	from {
		transform: translateY(0);
		opacity: 1;
	}
	to {
		transform: translateY(-100%);
		opacity: 0;
	}
}
/* 右からスライド「イン」 */
@keyframes slideFromRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}
/* 右へスライド「アウト」 */
@keyframes slideToRight {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(100%);
		opacity: 0;
	}
}
/*opa1のキーフレーム設定（汎用的）
---------------------------------------------------------------------------*/
@keyframes opa1 {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
/* menubar の初期状態 */
#menubar {
	animation: none;
	transform: translateX(100%);
	transition: transform 0.3s ease-out;
}

/* 開いた状態 */
#menubar.open {
	animation: slideFromRight 0.3s ease-out both;
	transform: translateX(0%);
	display: block;
}

/* 閉じた状態 */
#menubar.close {
	animation: slideToRight 0.3s ease-in both;
	transform: translateX(100%);
}

/*全体の設定
---------------------------------------------------------------------------*/
body * {box-sizing: border-box;}
html,body {
	font-size: 13px;	/*基準となるフォントサイズ。*/
	overflow-x: hidden; /* 横スクロールを防ぐ */
}

	/*画面幅900px以上の追加指定*/
	@media screen and (min-width:900px) {

	html, body {
		font-size: 15px;	/*基準となるフォントサイズ。*/
	}

	}/*追加指定ここまで*/


body {
	margin: 0;padding:0;
	font-family: "Noto Serif JP", "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;	/*フォント種類*/
	-webkit-text-size-adjust: none;
	background: #fafafa;	/*背景色*/
	color: #333333;		/*文字色*/
	line-height: 2;		/*行間*/
	overflow-x: hidden;
}

/*リセット*/
figure {margin: 0;}
dd {margin: 0;}
nav,ul,li,ol {margin: 0;padding: 0;}
nav ul {list-style: none;}

/*table全般の設定*/
table {border-collapse:collapse;}

/*画像全般の設定*/
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}

/*videoタグ*/
video {max-width: 100%;}

/*iframeタグ*/
iframe {width: 100%;}

/*他*/
input {font-size: 1rem;}

/*section*/
section {
	padding: var(--content-space);	/*section内の余白。css冒頭のcontent-spaceを読み込みます。*/
}


/*リンクテキスト全般の設定
---------------------------------------------------------------------------*/
a {
	color: inherit;
	transition: 0.3s;	/*hoverまでにかける時間。0.3秒。*/
}

/*マウスオン時*/
a:hover {
	filter: brightness(1.1);	/*少しだけ明るくする*/
}


/*コンテナー（サイト全体を囲むブロック）
---------------------------------------------------------------------------*/
#container {
	position: relative;
	animation: opa1 0.1s 0.9s both;	/*1秒待機し、1秒かけてフェードイン*/
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0 auto;
}


/*header（ロゴが入った最上段のブロック）
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;

	display: flex;
	align-items: center;
	justify-content: space-between;

	height: 80px;
	color: #070000;

	isolation: isolate;
}

header.scrolled::before {
	content: "";
	position: absolute;

	top: 8px;
	bottom: 8px;
	left: 20px;
	right: 20px;

	background-color: rgb(250 250 250 / 68%);
	backdrop-filter: blur(18px);

	border-radius: 6px;

	z-index: 0;
}

header > * {
	position: relative;
	z-index: 1;
}

/*ロゴ画像*/
#logo img {display: block;}
#logo {
	margin: 0;padding: 0;
	width: 15vw;	/*ロゴの幅*/
	position: relative;
	z-index: 0;
	
	left: 2.4vw;	/*左からの配置場所*/
	top: 0vw;		/*上からの配置場所*/}

	/*画面幅500px以下の追加指定*/
	@media screen and (max-width:924px) {
	
	#logo {
		top: 0;			/*上からの配置場所*/
		width: 220px;	/*ロゴの幅*/
		position: relative;z-index: 1000;
	}

	}/*追加設定ここまで*/

@media screen and (max-width: 900px) {

  header.scrolled::before {
    display: none;
  }

}


/* =====================================================
   ヘッダー内メニュー
===================================================== */

/* スマホ時は非表示 */
header > nav > ul {
  display: none;
}


/* =====================================================
   PC表示
===================================================== */

@media screen and (min-width:900px) {

  /* メインメニュー表示 */
  header > nav > ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-right: 8vw;

    list-style: none;
  }

  /* li */
  header nav li {
    position: relative;
    list-style: none;
  }

  /* リンク */
  header nav li a {
    position: relative;

    display: block;

    padding: 1rem 1.2rem;

    font-size: 0.95rem;

    text-decoration: none;

    color: inherit;

    transition:
      color 0.3s ease,
      transform 0.3s ease;
  }

  /* hover時 */
  header nav li a:hover {
    color: #293555;
  }

  /* 下線 */
  header nav li a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.35s ease;
  }

  /* hover時下線 */
  header nav li a:hover::after {
    width: 70%;
  }

  /* 矢印アイコン */
  header nav i {
    margin-left: 0.4rem;
    font-size: 0.7rem;
  }


  /* =====================================================
     ドロップダウン
  ===================================================== */

  /* 子メニュー */
  header nav li ul {

    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    transform:
      translateX(-50%)
      translateY(10px);

    min-width: 220px;

    padding: 0.7rem 0;

    background: rgb(255 255 255 / 84%);

    backdrop-filter: blur(10px);

    border-radius: 16px;

    box-shadow:
      0 10px 30px rgba(0,0,0,0.08);

    list-style: none;

    opacity: 0;
    visibility: hidden;

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;

    z-index: 999;
  }

  /* hoverで表示 */
  header nav li:hover > ul {

    opacity: 1;
    visibility: visible;

    transform:
      translateX(-50%)
      translateY(0);
  }

  /* 子メニューリンク */
  header nav li ul li a {

    padding: 0.85rem 1.4rem;

    font-size: 0.9rem;

    white-space: nowrap;

    transition:
      background 0.25s ease,
      padding-left 0.25s ease,
      color 0.25s ease;
  }

  /* 子メニュー hover */
  header nav li ul li a:hover {

    background: rgba(0,0,0,0.04);

    padding-left: 1.7rem;

    color: #293555;
  }

  /* 子メニューの下線は消す */
  header nav li ul li a::after {
    display: none;
  }

}


/*開閉メニュー
---------------------------------------------------------------------------*/
/*メニューブロック共通*/
#menubar {
	display: flex;
	flex-direction: column;
	justify-content: center; /* 上下中央に配置 */
	align-items: center;     /* 左右中央に配置 */
	animation: slideFromRight 0.3s ease-out both;
	position: fixed;
	overflow: auto;
	z-index: 1000;
	right: 0;
	top: 0;
	width: 20%;              /* 右から出すために幅を指定 */
	height: 100%;            /* 高さは画面全体に */
	padding: 150px 0 50px;   /* 上の余白を増やす */
	background: #312518a1;
	backdrop-filter: blur(18px);
	color: #fffaf7; 
	transform: translateX(100%);   /* 初期状態で右に隠す */
	transition: transform 0.3s ease-out;
	text-align: center;      /* テキストも中央寄せにする場合 */
}
/* スマホサイズ用調整 */
@media (max-width: 768px) {
  #menubar {
    width: 55%; /* スマホでは幅を広げる */
  }

  /* 下線の位置調整（前のリクエスト） */
  #menubar a::after {
    left: 50%;
  }
}

#menubar.open {
	transform: translateX(0);   /* 右から表示 */
}

/* メニュー１個あたり */
#menubar a {
	display: inline-block;         /* 拡大アニメーションに必要 */
	text-decoration: none;
	color: inherit;
	margin-bottom: 0.5rem;
	padding: 0.6rem 1.2rem;
	font-size: 1.2rem;
	position: relative;
	transition: transform 0.3s ease, color 0.3s ease;
}

/* 下線（常に表示） */
#menubar a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 150px;
	height: 1px;
	background-color: #9E9E9E; /* 下線の色 */
	transition: transform 0.3s ease, height 0.3s ease;
}


/* ホバー時に拡大*/
#menubar a:hover {
	color: #aea596;                /* 任意：ホバー時の文字色 */
}

#menubar a:hover::after {
	transform: translateX(-50%) scaleY(1.2); /* 下線を太くする */
	height: 0.8px;
}

/*３本バー（ハンバーガー）アイコン設定
---------------------------------------------------------------------------*/
#menubar_hdr {
	display: flex;
	animation: opa1 0s 0.2s both;
	position: fixed;
	z-index: 1000;
	cursor: pointer;
	right: 0px;	/*右からの配置場所*/
	top: 3px;	/*上からの配置場所*/
	width: 70px;	/*ボタンの幅*/
	height: 60px;	/*ボタンの高さ*/
	transform-origin: right top;
	transform: scale(1.2);	/*大きさを調整したい場合はここの「1」を変更します。1.2や0.7など。*/
}

/*バツ印が出ている時のボタン色*/

#menubar_hdr.ham span {
	background: #f7f5f5;  /* ← 好きな色に変更（例：赤系） */
}
/*ハンバーガーアイコンの線*/
#menubar_hdr span {
	display: block;
	position: absolute;
	left: 1px;
	width: 40px;
	height: 1px;		/*線の高さ*/
	background: #fafcff;	/*線の色*/
	transition: 0.3s;
}

#menubar_hdr span:nth-of-type(1) {
	top: 20px;
}
#menubar_hdr span:nth-of-type(2) {
	top: 30px;
}
#menubar_hdr span:nth-of-type(3) {
	top: 40px;
}

/* ハンバーガーメニュー展開時 */
#menubar_hdr.ham span:nth-of-type(1) {
	transform: translateY(10px) rotate(-45deg);
}
#menubar_hdr.ham span:nth-of-type(2) {
	opacity: 0;
}
#menubar_hdr.ham span:nth-of-type(3) {
	transform: translateY(-10px) rotate(45deg);
}
/* 通常の線（初期） */
#menubar_hdr span {
	background: #000000; /* ← 暗めの線 */
}

/*コンテンツ
---------------------------------------------------------------------------*/
/*コンテンツブロック*/
#contents {
	flex: 1;
}

/*トップページ以外のコンテンツ*/
body:not(.home) #contents {
	padding-top: 80px;		/*上に10文字分の余白を空ける*/
	padding-bottom: 0rem;	/*下に10文字分の余白を空ける*/
}

/*コンテンツ内で使用するul,ol要素（リストタグ）*/
#contents ul,#contents ol {
	margin-left: 2rem;
	margin-right: 2rem;
}


/*p要素（段落タグ）
---------------------------------------------------------------------------*/
p {
	margin-left: 1rem;	/*左に１文字分のスペース*/
	margin-right: 1rem;	/*右に１文字分のスペース*/
}


/*main（メインコンテンツ）
---------------------------------------------------------------------------*/
/*h2見出し*/
main h2 {
	margin: 0;padding: 0;
	font-size: 2rem;		/*文字サイズ。240%。*/
	font-weight: normal;	/*h要素のデフォルトの太字を標準に*/
	margin-bottom: 3vw;		/*下にスペースを空ける*/
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
}
main h3 {
	font-weight: 300;
	font-size: 1.2rem;	/*文字サイズ140%*/
	
}

/*お問い合わせフォーム*/
.google-form {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.google-form iframe {
  display: block;
  width: 100%;
  height: 100vh;
	min-height: 1600px; /* 必要に応じて調整 */
  border: none;
  margin: 0;
  padding: 0;
}

/*ここまで「お問い合わせフォーム」*/




/*テキストのフェードイン設定
---------------------------------------------------------------------------*/
/*fadeInのキーフレーム設定*/
@keyframes fadeIn {
	0% {opacity: 0;transform: scale(0.1) rotate(-30deg);}
	100% {opacity: 1;transform: scale(1) rotate(0deg);}
}

/* 初期状態でテキストを非表示にする */
.fade-in-text {
    visibility: hidden;
}

/* アニメーションを適用するクラス。
animationの行の「0.2s」が文字の出現のなめらかさで、大きいほどなめらかに出てきます。
１文字ずつの出現する際の時差は、js/main.jsの「テキストのフェードイン効果」の中にある「0.1」で調整できます。*/
.char {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 1s linear both;
}


/*その他
---------------------------------------------------------------------------*/
.clearfix::after {content: "";display: block;clear: both;}
.color-check, .color-check a {color: #ff0000 !important;}
.l {text-align: left !important;}
.c {text-align: center !important;}
.r {text-align: right !important;}
.ws {width: 95%;display: block;}
.wl {width: 95%;display: block;}
.mb0 {margin-bottom: 0px !important;}
.mb30 {margin-bottom: 30px !important;}
.mb5rem {margin-bottom: 5rem !important;}
.look {display: inline-block;padding: 0px 10px;background: #eee;border: 1px solid #ccc; color: #888; border-radius: 3px;margin: 5px 0; word-break: break-all;}
.small {font-size: 0.75em;}
.large {font-size: 2em; letter-spacing: 0.1em;}
.pc {display: none;}
.dn {display: none !important;}
.block {display: block !important;}

	/*画面幅900px以上の追加指定*/
	@media screen and (min-width:900px) {

	.ws {width: 48%;display: inline;}
	.sh {display: none;}
	.pc {display: block;}

	}/*追加指定ここまで*/

/*フッター設定*/

.site-footer {
  background: radial-gradient(circle at top, #5f5b59, #3f3937, #5f5753);
  color: #dcdcdc;
  padding: 60px 20px 30px;
}

/* 中央コンテナ */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ===== ブランド ===== */
.footer-brand {
  max-width: 360px;
}

.footer-logo {
  width: 300px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== ナビ ===== */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #ebeaeb;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
	color: #b0aead;
}

/* ===== 会社情報 ===== */
.footer-info {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== コピーライト ===== */
.footer-copy {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgb(179 179 179 / 16%);
  text-align: center;
  font-size: 0.8rem;
  color: #a6a6a6;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 16px;
  }

  .footer-nav li {
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 768px) {

.credo {
    padding: 0px 26px; /* PCより少し小さく */
  }

}

/* スマホだけ表示 */
@media (max-width: 768px) {
  .philosophy::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%);

    width: 456px;
    height: 160px;
    background: #edf2fa2b;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
	  z-index: -100;
  }
}