@charset "utf-8";


/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine&display=swap');


/*keyframes.cssの読み込み
---------------------------------------------------------------------------*/
@import url("keyframes.css");


/*全端末（PC・タブレット・スマホ）共通設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/

/*全体の設定
---------------------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* ボディとフォント */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* コンテナ */
.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/*ヘッダー
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header {
	position: relative;
	padding: 20px;	/*ヘッダー内の余白*/
    background-color: #fff;
}
@media screen and (min-width: 769px) {
  .resizeimage {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .resizeimage img {
    width: 50%;
    height: auto;
    display: block;
  }
}

/*言語切替
---------------------------------------------------------------------------*/
.language-switcher {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 14px;
  z-index: 1000;
}

.language-switcher .lang {
  color: #004b6b;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.language-switcher .lang:hover {
  background-color: #e6f3f8;
}

.language-switcher .lang.active {
  background-color: #004b6b;
  color: #fff;
  font-weight: bold;
}

/* 言語切替：PC表示用 */
.language-switcher {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 14px;
  z-index: 1000;
}

/* 言語切替：スマホ表示用（幅768px以下） */
@media screen and (max-width: 768px) {
  .language-switcher {
    position: static;       /* 通常の文書フローに戻す */
    margin-top: 10px;
    text-align: center;
  }

  .resizeimage {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .resizeimage img {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
  }
}
/*メインメニューのブロック
---------------------------------------------------------------------------*/
#menubar {
	position: relative;z-index: 10;
	text-align: center;	/*文字を中央に*/
	background: #ff0303;	/*背景色(現状赤色)*/
	border-top: 1px solid #ccc;		/*上の線の幅、線種、色*/
	border-bottom: 1px solid #ccc;	/*下の線の幅、線種、色*/
	font-family: 'Questrial', sans-serif;	/*冒頭で読み込んだGoogle Fontsを適用する指定*/
	height: 80px;	/*高さ。「#menubar ul li a」や「fixmenu」とも連動するので変更の際は注意。説明はこの下の「#menubar ul li a」で書いています。*/
}
#menubar ul {
  list-style: none; /* ← ポチを非表示に */
  margin: 0;
  padding: 0;
}

/*メニュー１個あたりの設定*/
#menubar ul li {
	float: left;	/*左に回り込み*/
	width: 14%;		/*幅。今回は７個なので、100÷7=14。*/
	font-size: 20px;	/*文字サイズ*/
	font-weight: bold;
}
#menubar ul li a {
	color: #fff; 
    text-decoration: none;
	display: block;
	height: 65px;		/*メニューブロックの高さ。ここの「80」と、下の行の「20」を合計した「100」の数字と、上の「#menubar」の「height」および下のfixmenu設定に２箇所ある「margin-top」の数字を合わせて下さい。*/
	padding-top: 15px;	/*メニューブロックの高さプラス、上に空ける余白。メニューテキストの上下の配置バランスをここで調整して下さい。※変更の際は、上の行の注意書きもしっかり読んで下さい。*/
}
#menubar ul li a:hover {
	color: #d4a500;	/*マウスオン時の文字色（現状橙色）*/
}
/*飾り文字*/
#menubar ul li span {
	display: block;
	font-size: 10px;	/*文字サイズ(下の英語)*/
	font-weight: bold;
	color: #f7f7f7;		/*文字色*/
	letter-spacing: 0.2em;	/*文字間隔を少し広くとる設定*/
}
/*スマホ用メニューを表示させない*/
#menubar-s, #menubar-s2 {display: none;}

/*３本バーアイコンを表示させない*/
#menubar_hdr {display: none;}

/*ドロップダウンメニューの親メニュー*/
#menubar a.cursor-default {
	cursor: default;	/*マウスオーバー時に通常のカーソルになるように*/
	color: #fff;		/*文字色*/
}

/*ドロップダウンメニュー用
----------------------------------------------------------------------------------------------------------------------------------*/
#menubar ul.ddmenu {
	position:relative;visibility: hidden;z-index: 10;
	left: 0px;
	width: 100%;
	padding: 5px 3%;
	background: #f5f5f5;	/*背景色。古いブラウザ用。*/
	opacity: 0.9;	/*透明度。70%色がついた状態。*/
	text-align: center;	/*テキストをセンタリング*/
	border-bottom: 1px solid #fff;	/*境界が見辛いので、下線の設定。*/
}
/*ドロップダウンメニューの出現アニメーション*/
#menubar li:hover ul.ddmenu {
	animation-name: opa1;		/*keyframes.cssで使う@keyframesの指定*/
	animation-fill-mode: both;
	animation-duration: 0.8S;	/*アニメーションを実行する時間。「s」は秒の事。*/
	animation-delay: 0.1s;		/*出現するタイミング（秒後）*/
}
/*メニュー１個あたりの設定*/
#menubar ul.ddmenu li {
	float: none;
	width: auto;
	display: inline-block;
	font-size: 60%;	/*文字サイズ*/
}
#menubar ul.ddmenu li a {
	height: 10px;
	padding: 10px;	/*メニューテキスト同士の余白*/
	color: #2b2b2b;	/*文字色*/
	opacity: 0.9;	/*透明度。70%色がついた状態。*/
}
#menubar ul.ddmenu li a { 
  text-decoration: underline;
}
/*マウスオン時*/
#menubar ul.ddmenu li a:hover {
	opacity: 0.4;		/*透明度。色が100%出た状態。*/
}

/*fixmenu設定（メニューが画面上部に到達した際のスタイル）
---------------------------------------------------------------------------*/
body.is-fixed-menu #menubar.nav-fix-pos {
	position: fixed;width: 100%;top: 0px;
	height: 60px;	/*メニューの高さを少し狭くする*/
}
body.is-fixed-menu #contents {
	margin-top: 100px;	/*※上の「#menubar ul li a」の注意書きにある数字を指定します。*/
}
/*※以下の２ブロックのスタイルの「中身」は、上の２ブロックのスタイルと単純に合わせておいて下さい。*/
body.is-fixed #menubar.nav-fix-pos {
	position: fixed;width: 100%;top: 0px;
}
body.is-fixed #contents {
	margin-top: 100px;	/*※上の「#menubar ul li a」の注意書きにある数字を指定します。*/
}

/*装飾文字を非表示にする*/
body.is-fixed-menu #menubar ul li span {
	display: none;
}
/*メニューテキストの上下バランスを調整しなおす。２つの数字の合計と、「body.is-fixed-menu #menubar.nav-fix-pos」の「height: 60px;」の数字が合うようにして下さい。*/
body.is-fixed-menu #menubar ul li a {
	height: 50px;
	padding-top: 10px;
}
/*ドロップダウンメニューへの再設定*/
body.is-fixed-menu #menubar ul.ddmenu li a {
	padding: 5px;
	height: auto;
}


/* ヒーローセクション */
.hero {
  background-image: url('hero01.jpg');
  background-repeat: repeat-x;              /* 横に繰り返す */
  background-size: auto 100%;               /* 高さにフィットさせる */
  background-position: 0 center;            /* 左端から始める */
  animation: moveImage 200s linear infinite; /* 左右にゆっくり動かす */
  height: 400px;                            /* 必要な高さに調整 */
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
 /*下の線の幅、線種、色*/
}

@keyframes moveImage {
  0% {
    background-position: 0 center;
  }
  100% {
    background-position: -2048px center; /* 画像1枚分左へスライド */
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.hero .btn {
  background-color: #e67e22;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* ===== 見出しを額風に装飾 ===== */
.section-title {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 0.2em 2.5em;
  font-size: 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom, #ff4d4d, #b00000); /* 上→下の赤グラデ */
  border: 3px solid #800000; /* 深い赤の額縁 */
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 200, 0.4), /* 内側の光沢（少しピンク系） */
    0 6px 12px rgba(0, 0, 0, 0.3);           /* 外側シャドウで浮き上がり */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 文字を見やすく */
  font-weight: bold;
  letter-spacing: 0.05em;
  position: relative;
}
/*コンテンツ
---------------------------------------------------------------------------*/
#contents {
	padding: 100px 0 50px;	/*上、左右、下へのコンテンツ内の余白*/
	position: relative;
	animation-name: opa2;	/*keyframes.cssで使う@keyframesの指定*/
	animation-duration: 0.5S;	/*アニメーションの実行時間*/
	animation-delay: 0.5s;		/*出現するタイミング（秒後）*/
	animation-fill-mode: both;
}
/*h2タグ*/
#contents h2 {
	clear: both;
	margin-bottom: 50px;
	font-size: 250%;	/*文字サイズ*/
	text-align: center;	/*文字をセンタリング*/
	letter-spacing: 0.2em;	/*文字間隔を少し広めにとる指定。通常がいいならこの１行削除。*/
}
/*h2タグ内のspanタグ（装飾文字）*/
#contents h2 span {
	display: block;
	font-size: 50%;	/*文字サイズ*/
}
/*h3タグ*/
#contents h3 {
	clear: both;
	margin-bottom: 30px;
	font-size: 150%;	/*文字サイズ*/
	border-bottom: 1px dashed #333;	/*下線の幅、線種、色*/
	padding-left: 3%;		/*左側に空ける余白*/
	letter-spacing: 0.1em;	/*文字間隔を少し広めにとる指定。通常がいいならこの１行削除。*/
}
/*段落タグ*/
#contents p {
	padding: 0 3% 30px;	/*上、左右、下への余白*/
}
#contents h2 + p,
#contents h3 + p {
	margin-top: -5px;
}
#contents p + p {
	margin-top: -10px;
}
#contents section + section {
	margin-top: 100px;
}


/*list（worksページで使っている横長ブロック）
---------------------------------------------------------------------------*/
/*ボックスの設定*/
#contents .list {
	position: relative;
	border-radius: 5px;				/*角丸の指定。ほんの少し角が丸くなります。*/
	overflow: hidden;				/*角丸から内容が飛び出ないよう、飛び出た部分を非表示にする指定*/
	display: flex;
	align-items: center;			/*中のブロックの縦並びの揃え方*/
	background: #d4a500;		/*背景色*/
	color: #fff;			/*文字色*/
	margin: 0 3% 30px;		/*ボックスの下に空けるスペース。上、左右、下への順番。*/
}
/*リンクテキストの文字色*/
#contents .list a {
	color: #fff;
}
/*ボックス内のh4（見出し）タグ*/
#contents .list h4 {
	margin-bottom: 20px;	/*下のテキストとの間に空けるスペース*/
	font-size: 140%;		/*文字サイズ*/
}
/*ボックス内のp（段落）タグ*/
#contents .list p {
	padding: 0;		/*余白のリセット*/
}
/*ボックス内のfigure画像*/
#contents .list figure {
	width: 50%;		/*画像の幅*/
}
/*「class="text"」を指定したブロック。テキストブロック。*/
#contents .list .text {
	width: 40%;		/*ブロックの幅。下のpaddingの5%とも連動するので変更の際は注意して下さい。*/
	padding: 2% 5%;	/*上下、左右へのブロック内の余白*/
}

/*偶数目のブロックの設定（画像とテキストブロックが左右交互に入れ替わる設定です。全部同じむきがよければこのブロックを削除します。）*/
#contents .list:nth-of-type(even) .text {
	order: 1;
}

/*装飾文字の設定（共通）*/
#contents .list::before {
	font-size: 18vw;
	line-height: 1;
	position: absolute;
	color: rgba(255,255,255,0.15);	/*文字色。255,255,255は白のことで、0.15は色が15%出た状態のこと。*/
	font-family: 'Tangerine', cursive;	/*冒頭で読み込んだGoogle Fontsを適用する指定*/
}
/*奇数番目のブロックの文字の配置場所指定*/
#contents .list:nth-of-type(odd)::before {
	left: -60px;
	top: -40px;
}
/*偶数番目のブロックの文字の配置場所指定*/
#contents .list:nth-of-type(even)::before {
	right: 0px;
	top: -40px;
}
/*１つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(1)::before {
	content: "Grade3";
}
/*２つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(2)::before {
	content: "Grade2";
}
/*３つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(3)::before {
	content: "Grade1";
}

/*ボックス内のボタン（共通）*/
.btn1 a {
	display: block;
	text-decoration: none;
	border: 1px solid #fff;		/*枠線の幅、線種、色*/
	text-align: center;			/*テキストをセンタリング*/
	padding: 10px 30px;			/*上下、左右へのボタン内の余白*/
	margin: 40px auto 0;		/*上、左右、下へのボックスの外側への余白*/
}
/*ボタンのマウスオン時（共通）*/
.btn1 a:hover {
	background: #fff;	/*背景色*/
	color: #d4a500 !important;		/*文字色*/
}

/*list-column（トップページで使っている３列ブロック）
---------------------------------------------------------------------------*/
/*カラムブロック全体を囲むボックス*/
#contents .list-column-container {
	display: flex;
	justify-content: space-between;	/*中のブロックの横並びの揃え方*/
	flex-wrap: wrap;				/*中のブロックを自動で折り返す*/
	margin: 0 3%;
}
/*１カラムあたりの設定*/
#contents .list-column {
	display: flex;
	flex-direction: column;			/*中のブロックを並べる向きの指定。これは縦に並べる意味。*/
	width: 32%;						/*ブロック幅*/
	margin-bottom: 12px;			/*ブロックの下に空ける余白*/
	background: #ff9b05;				/*背景色*/
	color: #fff;					/*文字色*/
	border-radius: 10px;				/*角丸の指定。ほんの少し角が丸くなります。*/
	overflow: hidden;				/*角丸から内容が飛び出ないよう、飛び出た部分を非表示にする指定*/
}
/*リンクテキストの文字色*/
#contents .list-column a {
	color: #fff;
}
/*ボックス内のh4（見出し）タグ*/
#contents .list-column h4 {
	margin-bottom: 8px;	/*下のテキストとの間に空けるスペース*/
	font-size: 140%;		/*文字サイズ*/
}
/*ボックス内のp（段落）タグ*/
#contents .list-column p {
	padding: 0;		/*余白のリセット*/
}

/*「class="text"」を指定したブロック。テキストブロック。*/
#contents .list-column .text {
	padding: 5% 5% 0% 5%;			/*ブロック内の余白*/
	flex: 1 0 auto;
}
/*IEバグ対応*/
#contents .list-column figure {
	min-height: 0%;
}


/* フッター */
footer {
  background-color:   #ff0303;
  color: #fff;
  margin: 0;
  padding: 20px; /* 必要ならpaddingだけ残す */
  text-align: center;
}


/*画面幅480px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:480px){

/*全体の設定
---------------------------------------------------------------------------*/
body {
	font-size: 3vw;
}

/*コンテンツ
---------------------------------------------------------------------------*/
/*h2タグ*/
#contents h2 {
	margin-bottom: 30px;
}
/*h3タグ*/
#contents h3 {
	margin-bottom: 20px;
}
#contents section + section {
	margin-top: 30px;
}

/*list（worksページで使っている横長ブロック）
---------------------------------------------------------------------------*/
/*ボックス内のボタン（共通）*/
.btn1 a {
	padding: 5px 10px;			/*上下、左右へのボタン内の余白*/
}

/*テーブル（ta1）
---------------------------------------------------------------------------*/
/*ta1設定*/
.ta1, .ta1 td, .ta1 th {
	padding: 5px;	/*ボックス内の余白*/
}
/*ta1の左側ボックス*/
.ta1 th {
	width: 100px;
}

/*list-column（トップページで使っている３列ブロック）
---------------------------------------------------------------------------*/
/*カラムブロック全体を囲むボックス*/
#contents .list-column-container {
	display: flex;
	justify-content: space-between;	/*中のブロックの横並びの揃え方*/
	flex-wrap: wrap;				/*中のブロックを自動で折り返す*/
	margin: 0 3%;
}
/*１カラムあたりの設定*/
#contents .list-column {
	display: flex;
	flex-direction: column;			/*中のブロックを並べる向きの指定。これは縦に並べる意味。*/
	width: 94%;						/*ブロック幅*/
	margin-bottom: 12px;			/*ブロックの下に空ける余白*/
	background: #ff9b05;			/*背景色*/
	color: #fff;					/*文字色*/
	border-radius: 10px;				/*角丸の指定。ほんの少し角が丸くなります。*/
	overflow: hidden;				/*角丸から内容が飛び出ないよう、飛び出た部分を非表示にする指定*/
}
/*リンクテキストの文字色*/
#contents .list-column a {
	color: #fff;
}
/*ボックス内のh4（見出し）タグ*/
#contents .list-column h4 {
	margin-bottom: 8px;	/*下のテキストとの間に空けるスペース*/
	font-size: 140%;		/*文字サイズ*/
}
/*ボックス内のp（段落）タグ*/
#contents .list-column p {
	padding: 0;		/*余白のリセット*/
}

/*「class="text"」を指定したブロック。テキストブロック。*/
#contents .list-column .text {
	padding: 5% 0% 0% 5%;			/*ブロック内の余白*/
	flex: 1 0 auto;
}
/*IEバグ対応*/
#contents .list-column figure {
	min-height: 0%;
}



/* メディアクエリ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img {
    width: 80%;
    margin-bottom: 20px;
  }

  .text {
    width: 80%;
  }
 }
  

@media (max-width: 768px) {
  /* 全体の基本フォントサイズを小さめに */
  body {
    font-size: 14px;
  }

  /* ヘッダーや見出し類も少し縮小 */
  header nav ul li a {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
    padding: 0.4em 1.8em;
  }

  .team-row .member p {
    font-size: 0.95rem;
  }

  .text {
    font-size: 1rem;
  }

  .company-table {
    font-size: 0.95rem;
  }
}


/*その他
---------------------------------------------------------------------------*/
.ws,.wl {width: 94%;}
.fl {float: none;}
.fr {float: none;}
.big1 {font-size: 16px;}
.sh {display:block;}
.pc {display:none;}

