/* TOP挿画の下部に表示するお知らせ用スタイル */
.top-video-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* 動画のスタイル */
.top-video {
    width: 100%;
    height: auto;
    display: block;
}

/* お知らせボックスの位置とスタイル */
.news-overlay {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 3em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Shippori Mincho', serif;
    text-align: center;
    width: 70%;
    z-index: 10;
}


/* お知らせの中身のレイアウト */
.news-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5em;
    font-size: 15px;
    color: #000;
}

/* Newsラベル */
.news-label {
    font-weight: bold;
    color: #c00;
}

/* 日付 */
.news-date {
    font-style: italic;
    color: #000;
}

/* テキスト */
.news-text {
    margin: 0 0.5em;
}

/* ボタン */
.news-button {
    background-color: #992251;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 15px;
    margin-left: 1em;
}

.news-button:hover {
    background-color: #900;
}

/* スマホ対応（画面幅600px以下） */
@media screen and (max-width: 600px) {
    .news-overlay {
        padding: 8px 1em;
        width: 90%;
    }

    .news-content {
        flex-direction: column;
        align-items: flex-start;
        font-size: 13px;
        gap: 0.3em;
    }

    .news-label,
    .news-date,
    .news-text {
        display: block;
        width: 100%;
    }

    .news-button {
        font-size: 13px;
        padding: 3px 8px;
        margin-left: 0;
        align-self: flex-end;
    }
}


/* トップページ　トップメッセージエリア */
.vertical-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2em;
  padding: 2em;
  background-color: #fdfaf5;
  border: 1px solid #e0dcd5;
  max-width: 1000px;
  margin: 2em auto;
}

/* スライダーコンテナ（画像エリア） */
.slider-container {
  position: relative;
  flex: 1;
  max-width: 50%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* スライダー内の画像 */
.slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slider img.active {
  opacity: 1;
  z-index: 1;
}

/* 縦書きテキストエリア（PC表示） */
.vertical-text {
  flex: 1;
  max-width: 50%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  line-height: 2;
  color: #3c2f2f;
  background: rgba(255, 255, 255, 0.8);
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 見出し */
.vertical-heading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 1em;
  color: #992251;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .vertical-section {
    flex-direction: column;
    padding: 1em;
  }

  .slider-container {
    max-width: 100%;
    width: 100%;
    height: 250px;
  }

  .vertical-text {
    max-width: 100%;
    width: 100%;
    writing-mode: horizontal-tb; /* ← 横書きに変更 */
    text-orientation: initial;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 1em;
    font-family: 'Shippori Mincho', serif;
    color: #3c2f2f;
    background: rgba(255, 255, 255, 0.8);
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .vertical-heading {
    font-size: 18px;
    margin-bottom: 0.5em;
    color: #992251;
  }
}



/*トップ見出しデザイン*/
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1&display=swap');
/* 見出し全体 */
.product-heading {
  text-align: center;

  margin: 4rem 0 2rem;

  position: relative;
}

/* メイン見出し */
.product-heading h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.8rem;
  color: #992251;
  letter-spacing: 0.15em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5em;
}

/* アンダーライン装飾 */
.product-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #d4af37, #992251);
  margin: 0.5em auto 0;
}

/* 日本語タイトル */
.jp-title {
  display: block;
}

/* 英語サブタイトル */
.en-sub {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-family: 'Shippori Mincho', serif;
  margin-top: 0.3em;
  letter-spacing: 0.1em;
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .product-heading h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    padding-bottom: 0.4em;
  }

  .product-heading h2::after {
    width: 40px;
    height: 1.5px;
    margin-top: 0.4em;
  }

  .en-sub {
    font-size: 0.8rem;
    margin-top: 0.2em;
  }
}



/*代表挨拶エリア*/
/* 色の定義（カスタムプロパティ） */
:root {
  --main-color: #992251;       /* ベースカラー：深紅紫 */
  --accent-color: #d4af37;     /* 金色アクセント */
  --bg-color: #fdfaf5;         /* 和紙風生成り背景 */
  --text-color: #2c2c2c;       /* 墨色テキスト */
}

/* サブタイトル（ご挨拶） */
.subtitle {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  color: var(--main-color);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.subtitle::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  margin: 1rem auto 0;
}

/* 社長挨拶セクション */
.president-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
  margin: 4rem 0;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

  max-width: 1100px;
  margin: auto;
}

/* 社長写真 */
.president-photo img {
  width: 300px;
  border-radius: 12px;
  /*border: 4px solid var(--main-color);*/
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* メッセージ本文 */
.president-message {
  flex: 1;
  font-family: 'Shippori Mincho', serif;
  color: var(--text-color);
  line-height: 2;
  padding-right: 1rem;
}

/* 見出し（代表挨拶） */
.president-message h3 {
  font-size: 1.6rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 0.5rem;
}

/* サブ見出し（社長の言葉） */
.president-message h4 {
  font-size: 1.2rem;
  color: #444;
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* 社長署名 */
.signature {
  margin-top: 2rem;
  font-style: normal;
  font-weight: bold;
  color: var(--main-color);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .president-section {
    flex-direction: column;

    padding: 1.5rem;
  }

  .president-message {
    padding: 0;
  }

  .president-photo img {
    width: 80%;
    max-width: 280px;
  }
  .president-photo{
    display:none;
  }
}



/*　会社概要用スタイル　*/
.company-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
  background: #fdfaf5; /* 和紙風生成り背景 */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.overview-title {
  flex: 0 0 125px;
  font-family: 'Shippori Mincho', serif;
  color: #992251;
  border-left: 4px solid #d4af37;
  padding-left: 1rem;
}

.overview-title h3 {
  font-size: 1.6rem;
  margin: 0;
}

.overview-content {
  flex: 1;
  font-family: 'Shippori Mincho', serif;
  color: #2c2c2c;
}

.overview-content dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 1rem;
  column-gap: 1rem;
}

.overview-content dt {
  font-weight: bold;
  color: #555;
}

.overview-content dd {
  margin: 0;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company-overview {
    flex-direction: column;
    padding: 1.5rem;
  }

  .overview-title {
    border-left: none;
    border-bottom: 2px solid #d4af37;
    padding-left: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .overview-title h3 {
    font-size: 1.4rem;
  }

  .overview-content dl {
    grid-template-columns: 1fr;
  }

  .overview-content dt {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  .overview-content dd {
    font-size: 0.95rem;
  }
}
.factory-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.factory-info {
  flex: 1;
  font-family: 'Shippori Mincho', serif;
  color: #2c2c2c;
  line-height: 1.6;
}

.factory-photo img {
  width: 240px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .factory-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .factory-photo img {
    width: 80%;
    max-width: 300px;
  }
}



/**　アクセスエリアの内容　**/

.access-block {
  margin: 4rem 0;
  background: #fdfaf5;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.factory-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.6rem;
  color: #992251;
  border-left: 4px solid #d4af37;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.access-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.access-details {
  flex: 1;
  font-family: 'Shippori Mincho', serif;
  color: #2c2c2c;
}

.access-details dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 1rem;
  column-gap: 1rem;font-family: 'Shippori Mincho', serif;
}

.access-details dt {
  font-weight: bold;
  color: #555;font-family: 'Shippori Mincho', serif;
}

.access-details dd {
  margin: 0;
  line-height: 1.6;
}

.access-photo {
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

.access-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .access-info {
    flex-direction: column;
    text-align: center;
  }

  .access-details dl {
    grid-template-columns: 1fr;
  }

  .access-photo {
    width: 100%;
  }

  .access-photo img {
    max-width: 300px;
    margin: 0 auto;
  }

  .factory-title {
    text-align: center;
    border-left: none;
    border-bottom: 2px solid #d4af37;
    padding-left: 0;
    padding-bottom: 0.5rem;
  }
}


/**　TOPメッセージ用スタイル　　**/
.recruit-top {
  max-width: 1000px;
  margin: 60px 10px;
  padding: 40px 20px;
  font-family: 'Shippori Mincho', serif;
  line-height: 1.9;
  color: #333;
  background: linear-gradient(to bottom, #fffdf8, #fdf6f0); /* 和紙風の淡い背景 */
  box-shadow: 0 8px 24px #992251;
}

.top-heading {
  font-size: 2.4em;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #992251, #d4af37); /* ワインレッド→金色 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* グラデーション文字 */
  font-weight: bold;
  letter-spacing: 0.05em;
}

.top-sub {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #992251;
  background: #fff5f8;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  gap: 20px;
  font-weight: bold;
    color: #992251;
}

/* 偶数番目は画像を左に */
.top-section:nth-child(even) {
  flex-direction: row-reverse;
}

.top-text {
  flex: 2;
}

.top-image-wrap {
  flex: 1;
  text-align: center;
}

.top-image, .ceo-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border: 4px solid #d4af37; /* 金色縁取りで華やかに */
  transition: transform 0.3s ease;
}

.top-image:hover, .ceo-photo:hover {
  transform: scale(1.08);
}

/* スマホ対応：縦並びに戻す */
@media screen and (max-width: 768px) {
  .top-section {
    flex-direction: column !important;
    text-align: center;
  }
}
.vision-message {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4em;
  line-height: 2;
  color: #333;
  background: linear-gradient(to bottom, #fffdf8, #fdf6f0); /* 和紙風の淡い背景 */
  box-shadow: 0 8px 24px rgb(223 181 40);
}

.vision-message span {
  color: #992251; /* ワインレッドで強調 */
  font-weight: bold;
  background: linear-gradient(90deg, #992251, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* グラデーション文字 */
}


/*タブメニュー用スタイル*/

.recruit-tabs {
  max-width: 1000px;
  margin: 40px auto;
  font-family: 'Shippori Mincho', serif;
}

.tab-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 2px solid #ddd;
}

.tab-menu li {
  padding: 12px 24px;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  transition: all 0.3s ease;
  border-radius: 6px 6px 0 0; /* 上部だけ角丸 */
}

.tab-menu li:hover {
  background: #f9f3f5; /* ホバー時に淡い色 */
}

.tab-menu li.active {
  color: #fff;
  background: linear-gradient(90deg, #992251, #d4af37); /* ワインレッド→金色グラデーション */
  border-bottom: none; /* 下線を消して選択感を強調 */
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1) inset;
}


.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .tab-menu {
    flex-direction: column;
    align-items: center;
  }
  .tab-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
}


/*採用情報用　*/
.sub-tab-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-bottom: 2px solid #ddd;
}

.sub-tab-menu li {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  transition: all 0.3s ease;
}

.sub-tab-menu li.active {
  color: #992251;
  border-bottom: 3px solid #992251;
}

.sub-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.sub-tab-content.active {
  display: block;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.recruit-table th {
  background: #f5f0eb;
  text-align: left;
  padding: 12px;
  width: 25%;
  font-size: 0.92em;
}

.recruit-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.9em;
font-weight: bold;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
/*採用情報のボタン用*/
.recruit-contact {
  text-align: center;
  margin: 40px 0 20px;
}

.contact-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #992251, #d4af37); /* ワインレッド→金色グラデーション */
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  background: linear-gradient(90deg, #d4af37, #992251); /* ホバー時に反転 */
}



/*　仕事を知るエリア用　*/
.work-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 30px 10px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 6px 18px #992251ab;
  gap: 20px;
  flex-wrap: wrap; /* ← スマホで右端切れ防止 */
}

.work-left {
  flex: 0 0 25%;   /* ← PC時は幅を25%に固定（狭める） */
  max-width: 250px; /* ← 左エリアの最大幅を制限 */
  background: #fdf6f0;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-sizing: border-box;
}

.work-left h4 {
  color: #130909;
  margin-bottom: 10px;
  font-size: 1.2em;
  margin-top: -5px;
}

.work-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-left ul li {
  margin: 6px 0;
  font-weight: bold;
  color: #130909;
  font-size: 0.95em;
}

.work-right {
  flex: 1;          /* ← 残りの幅を右側に */
  min-width: 0;     /* ← スマホで右端切れ防止 */
  padding: 20px;
  font-size: 0.95em;
  line-height: 1.8;
  color: #333;
  box-sizing: border-box;
      font-weight: bold;
}

.work-right p {
  margin: 0;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .work-area {
    flex-direction: column;
  }
  .work-left, .work-right {
    width: 100%;   /* ← スマホでは全幅に */
    max-width: 100%;
  }
  .work-left {
    margin-bottom: 15px;
  }
}


/*先輩社員メッセージエリア用*/
/* 全体の縦並び */
.employee-list {
  max-width: 900px;
  margin: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 各社員ブロック */
.employee-block {
  background: #fff;
  padding: 25px;
  box-shadow: 0 8px 24px rgb(153 34 81);
  animation: fadeIn 0.5s ease;
}

/* 写真＋名前＋部署の横並び */
.employee-mini {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* 写真（丸） */
.emp-photo-mini {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 12px rgba(153,34,81,0.3);
}

/* 名前＋部署の縦並び */
.mini-text {
  display: flex;
  flex-direction: column;
}

/* 名前 */
.mini-name {
  font-size: 1.3em;
  font-weight: bold;
  color: #992251;
  margin: 0;
  letter-spacing: 1px;
}

/* 部署 */
.mini-dept {
  font-size: 0.95em;
  color: #555;
  margin: 3px 0 0;
}

/* メッセージ部分 */
.emp-message {
  line-height: 1.8;
  color: #333;
}

.emp-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #992251;
  margin-bottom: 10px;
}


@media screen and (max-width: 900px) {

  /* トップ見出し */
  .top-heading { font-size: 2em; }
  .top-sub { font-size: 1.05em; }

  /* セクション本文 */
  .top-section { font-size: 0.95em; }

  /* 画像サイズも少し縮める */
  .top-image, .ceo-photo {
    width: 120px;
    height: 120px;
  }

  /* ビジョンメッセージ */
  .vision-message { font-size: 1.2em; }

  /* タブメニュー */
  .tab-menu li { font-size: 0.95em; }
  .sub-tab-menu li { font-size: 0.95em; }



  /* 仕事を知る */
  .work-left h4 { font-size: 1.15em; }
  .work-right { font-size: 0.9em; }

  /* 先輩社員 */
  .mini-name { font-size: 1.15em; }
  .mini-dept { font-size: 0.9em; }
  .emp-title { font-size: 1em; }
}
@media screen and (max-width: 600px) {

  /* トップ見出し */
  .top-heading { font-size: 1.1em; }
  .top-sub { font-size: 0.95em; padding: 8px 14px; }

  /* セクション本文 */
  .top-section { font-size: 0.9em; }

  /* 画像サイズ */
  .top-image, .ceo-photo {
    width: 100px;
    height: 100px;
  }

  /* ビジョンメッセージ */
  .vision-message {
    font-size: 1.05em;
    padding: 20px;
  }

  /* タブメニュー */
  .tab-menu li { font-size: 0.9em; padding: 10px 18px; }
  .sub-tab-menu li { font-size: 0.9em; }

  /* テーブル */
  .recruit-table th,
  .recruit-table td {
    font-size: 0.9em;
    padding: 10px;
  }

  /* 仕事を知る */
  .work-left h4 { font-size: 1.1em; }
  .work-right { font-size: 0.95em; }

  /* 先輩社員 */
  .mini-name { font-size: 1.1em; }
  .mini-dept { font-size: 0.85em; }
  .emp-title { font-size: 0.95em; }
  .emp-message { font-size: 0.95em; }
}
