/* リセット */
* {
  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: 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設定（メニューが画面上部に到達した際のスタイル）
---------------------------------------------------------------------------*/
/*上部固定メニュー用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;
 /*下の線の幅、線種、色*/
}

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

/* コンテンツセクション */
.conte {
  background: #e30c05;
  padding: 5px 10px;
  text-align: center;
  border-radius: 20px;
  margin: 5px auto; /* 上下5px、左右は自動で中央寄せ */
  width: 80%; /* または 800px など固定幅でもOK */
}

.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: #fff;
}

#map{
    text-align: center;
    margin: 0 auto;
	position: relative;
	padding-bottom: 30%;
	width: 80vw;
	height: 30vh;
	overflow: hidden;
}

#map iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}


/* ===== 見出しを額風に装飾 ===== */
.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 2.5em;
  font-size: 2rem;
  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;
}


/* ===== スタッフレイアウト（上段・下段） ===== */
.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.team-row.directors {
  justify-content: center;
  gap: 2.0rem; /* 必要に応じて間隔を微調整 */
}

.team-row.others {
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* ===== 個々のスタッフカード ===== */
.team-row .member {
  width: 360px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.team-row .member:hover {
  transform: translateY(-10px);
}

.team-row .member img {
  width: 240px !important;
  height: 300px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007acc;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .team-row.directors,
  .team-row.others {
    flex-direction: column;
    align-items: center;
  }
}


/* 会社情報セクション */
.about {
  background-color: #fff;
  padding: 50px 0;
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
  color: white;
  font-size: 1.8rem;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-img {
  width: 50%;
  border-radius: 10px;
}

.text {
  width: 45%;
  font-size: 1.2rem;
}

.detail h2 {
  text-align: center;
  margin-bottom: 30px;
  color: white;
  font-size: 1.8rem;
}  
.company-table {
  width: 80%; /* 表の幅を少し狭くして中央に */
  margin: 20px auto; /* 左右中央寄せ & 上下に余白 */
  border-collapse: collapse;
  font-size: 1rem;
}
.company-table th,
.company-table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
}

.company-table th {
  background-color: #f0f0f0;
  width: 30%;
}

@media (max-width: 768px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
.company-table tr {
    margin-bottom: 15px;
    display: block;
    border: 1px solid #ccc;
 }

  .company-table th {
    background-color: #eee;
   }
}


/* フッター */
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%;
  }
 }
  
/* ▼ ハンバーガーアイコン（スマホで表示） */
.hamburger {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

/* ▼ モバイル用ナビ（初期は非表示） */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #nav-menu {
    display: none;
    width: 100%;
    background-color: #ff0303;
    margin-top: 10px;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #nav-menu.active {
    display: block;
  }

  header nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
  }
}
@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;
  }
}
@media (min-width: 769px) {
  .team-row.directors .member {
    width: 460px; /* お好みで調整、例えば480pxなど */
    margin: 0 10px; /* 左右の余白を減らす */
  }
}

