/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* コンテナ */
.container {
  width: 90%;
  max-width: 1400px;
  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設定（メニューが画面上部に到達した際のスタイル）
---------------------------------------------------------------------------*/
/*上部固定メニュー用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('hero001.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;
  border-bottom: 5px solid  #ff0303;	/*下の線の幅、線種、色*/
}

@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);
}

/*選ばれる理由のタイトルの輝き
---------------------------------------------------------------------------*/
.shine-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden; /* 輝きのはみ出しを非表示に */
}

.glow-image {
  display: block;
  width: 40%;          /* 画像サイズを40%に */
  height: auto;
  max-width: 100%;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .glow-image {
    width: 80%;
  }
}

/* 細い輝きのシャインエフェクト */
.shine-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 2.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shine {
  0%   { left: -150%; }
  100% { left: 150%; }
}

/* コンテンツセクション */
.conte {
  background: #000055;
  padding: 5px 10px;
  text-align: center;
  border-radius: 20px;
  margin-top: 5px;
}

.conte h2 {
   font-family: "serif", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "MS P明朝", "MS Mincho", serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 5px;
}

.conte p {
  font-size: 1.1rem;
  color: #555;
}
.note {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* サービスセクション */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.service-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.service-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #004b6b;
}

.service-item p {
  color: #444;
  font-size: 0.95rem;
}

/* ===== 見出しを額風に装飾 ===== */
.section-title {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 0.2em 2.5em;
  font-size: 1.8rem;
  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;
}

/* ===== 見出しを額風に装飾その２ ===== */
.section-title-02 {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 0.2em 3.5em;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom, #ffd700, #daa520, #b8860b); /* 金色グラデ */
  border: 3px solid #b8860b; /* 濃い金色（縁取り） */
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 200, 0.5), /* 内側の光沢（明るめ） */
    0 6px 12px rgba(0, 0, 0, 0.3);           /* 外側シャドウで浮き上がり */
  text-shadow: 1px 1px 2px rgba(80, 40, 0, 0.6); /* 金に合う茶系の影 */
  font-weight: bold;
  letter-spacing: 0.05em;
  position: relative;
}

/* フッター */
footer {
  background-color:   #ff0303;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* メディアクエリ */
@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;
  }
  .conte h2 {
    font-size: 1.6rem;
  }
    .h3 {
    font-size: 1.6rem;
  }
    .conte h4 {
    font-size: 1.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;
  }

