/* ==========================================================
  ■ カラースキーム（共通変数定義）
========================================================== */

:root {
  --main-color: #1a237e; /* メインカラー（紺色系） */
  --accent-color: #d4af37; /* アクセントカラー（金色系） */
  --text-color: #333;
  --bg-color: #fdfcf9;
  --nav-bg-gradient: #eaedf7;
}

/* ==========================================================
  ■ 全体設定
========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Yu Mincho", "Hiragino Mincho Pro", "游明朝", serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background: url("images/haikei3.png") center center / cover no-repeat;
  flex-direction: column;
  background-size: cover;     /* 画面いっぱいに広げる */
  background-attachment: fixed; /* ← スクロールで一緒に動く */
  margin: 0;

}


/* ==========================================================
  ■ HEADER（全ページ共通）
========================================================== */

header {
  background: white;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  color: #000;
  padding: 0.5rem 0rem;
}

.site-header {
    min-height: 160px;
    
}


@media (min-width: 577px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  nav.main-nav {
    margin-left: auto;
    margin-right: 2rem;
    display: flex !important;
  }

  .menu-toggle {
    display: none;
  }

  .header-contact {
    margin: 0;
    white-space: nowrap;
    align-self: center;
  }
}

/* ロゴ＋会社名配置 */
.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.logo-title:visited {
  color: inherit;
}

.logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}

.company-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.company-name h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: bold;
}
.company-name a {
  text-decoration: none; /* 下線を消す */
  color: inherit;        /* 元の色を継承 */
  display: block;        /* ブロック化で全体クリック可能 */
}
.company-name .sub-title {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--main-color);
  letter-spacing: 0.06em;
  text-decoration: none; /* 下線を消す */
  color: inherit; /* 文字色も継承 */
}

.header-contact {
  font-size: 0.9rem;
  color: #333;
}

/* 電話番号共通スタイル */
.contact-phone,
.reception-hours {
  font-size: 0.9rem;
  line-height: 1.3;
}

.phone-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* ナビゲーション紺色帯 */
.site-header .nav-bar {
  background-color: #0068b7;
  width: 100%;
  margin-top: 0.6rem;
}

.site-header .nav-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.site-header .nav-bar li {
  margin: 0;
}

.site-header .nav-bar a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-left: 1px solid rgba(255,255,255,0.3);
  border-right: 1px solid rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.site-header .nav-bar li:first-child a {
  border-left: none;
}

.site-header .nav-bar a:hover {
  background-color: #303f9f;
}

.site-header .nav-bar a .jp {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.site-header .nav-bar a .en {
  display: block;
  font-size: 0.75rem;
  font-weight: normal;
  color: #cce0f5;
  letter-spacing: 0.05em;
}

/* ==========================================================
  ■ FOOTER（全ページ共通）
========================================================== */

footer {
  background: var(--nav-bg-gradient);
  color: #000;
  font-size: 0.9rem;
  min-height: 160px;
  width: 100%;
}

footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 左エリア */
footer .footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 30%;
  margin-top: 0.5rem;
}

footer .company-name {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  line-height: 1.2;
}

footer .company-name h3,
footer .company-name .sub-title {
  margin: 0;
}

footer .company-name .sub-title {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--main-color);
  letter-spacing: 0.06em;
}

/* 中央エリア */
footer .footer-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 0 0 30%;
  margin-top: 0.5rem;
}

footer .footer-center .contact,
footer .footer-center .phone-number {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

footer .footer-center .phone-number {
  font-weight: bold;
  color: #000;
  margin-top: 0rem;
}

/* 右エリア */
footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 0 0 30%;
  margin-top: 1.5rem;
}

footer .footer-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

footer .footer-right a {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  color: var(--main-color);
}

footer .footer-right a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* ==========================================================
  ■ iframeヘッダー/フッター
========================================================== */

#iframe-header,
#iframe-header iframe,
#iframe-header body,
#iframe-footer,
#iframe-footer iframe,
#iframe-footer body {
  width: 100%;
  border: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#iframe-header,
#iframe-footer {
  display: block;
}


/* ==========================================================
  ■ ハンバーガーメニュー（全ページ共通）
========================================================== */

.menu-toggle {
  display: none;
  background: white;
  color: var(--main-color);
  font-size: 1.8rem;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* ==========================================================
  ■ レスポンシブ対応（PC版、スマホ版）
========================================================== */

@media (max-width: 992px) {
  .content-with-sidebar {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* ==========================================================
  ■ スマホ画面共通調整（header, footer 等）
========================================================== */

@media (max-width: 576px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 0.5rem 0.5rem;
  }

  header .logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  header .logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
  }

  header .company-name a > h1 {
    font-size: 1.4rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header .company-name a > .sub-title {
    font-size: 0.7rem !important;
  }

  .header-contact {
    margin: 0.5rem 0 0 0;
    white-space: normal;
  }
  /* 電話番号共通スタイル */
  .contact-phone {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .phone-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-color);
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: white;
    color: var(--main-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 1rem;
    top: 25%;
    transform: translateY(-50%);
  }

  .menu-toggle:hover,
  .menu-toggle:focus {
    background-color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    outline: none;
  }
  .site-header .nav-bar {
    display: none;
  }
  /* ナビゲーションリンク */
  nav.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
  }

  nav.main-nav a {
    display: inline-block;
    background: white;
    color: var(--main-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }

  nav.main-nav a:hover {
    background: #b18d25;
    color: white;
    transform: translateY(-2px);
  }

  nav.main-nav {
    display: none;
  }

  nav.main-nav.active {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    gap: 0.5rem;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav.main-nav li {
    border-bottom: 1px solid #ccc;
    background: #f9f9f9;
  }

  nav.main-nav li:last-child {
    border-bottom: none;
  }

  nav.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--main-color);
    text-align: center;
    text-decoration: none;
  }

  nav.main-nav a:hover {
    background: #eee;
  }

  footer {
    padding: 0rem;
    text-align: left;
  }

  /* 左エリア */
  footer .footer-left {
    display: flex;
    align-items: left;
    gap: 1rem;
    flex: 0 0 30%;
    margin: 0.5rem 0rem 0.5rem;
  }
  footer .logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  footer .logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
  }

  footer .footer-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  footer .company-name {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    line-height: 1.2;
  }
  /* 中央エリア */
  footer .footer-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 0 0 30%;
    margin-top: 0rem;
  }
  footer .contact {
    display: none;
  }
  footer .footer-right ul li:not(.contact-phone) {
    display: none;
  }
}
@media (max-width: 930px) {
  /* 左エリア */
  footer .footer-left {
    display: flex;
    align-items: left;
    gap: 1rem;
    flex: 0 0 30%;
    margin: 0.5rem 0rem 0.5rem;
  }
  footer .logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  footer .logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
  }

  footer .footer-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  footer .company-name {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    line-height: 1.2;
  }
  /* 中央エリア */
  footer .footer-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 0 0 30%;
    margin-top: 0rem;
  }
  footer .contact {
    display: none;
  }
  footer .footer-right ul li:not(.contact-phone) {
    display: none;
  }
}


/* ==========================================================
  ■ スマホ用オーバーレイ（ハンバーガーメニュー背景）
========================================================== */

@media (max-width: 576px) {
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 999;
    padding-top: 2px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease forwards;
  }

  .mobile-overlay.active {
    display: flex;
    flex-direction: column;
  }

  .menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--main-color);
    border: none;
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
  }

  nav.main-nav.active {
    animation: slideDown 0.3s ease forwards;
    background: white;
    border-radius: 12px;
    padding: 0.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    width: 90%;
    max-width: 320px;
    gap: 0.8rem;
  }

  nav.main-nav li {
    border: none;
    background: var(--main-color);
    margin-bottom: 0.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  nav.main-nav a {
    color: var(--main-color);
    font-weight: bold;
    padding: 0.4rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    text-align: center;
  }

  nav.main-nav a:hover {
    background: var(--accent-color);
    color: var(--main-color);
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
/* ==================================================
  ■ index.html 用 CSS
================================================== */

/* ---------- コンテンツ全体レイアウト ---------- */

.content-with-sidebar {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.main-content {
  flex: 1;
}

/* ---------- HEROセクション ---------- */

.hero {
  /*background: url('images/sky2.png') no-repeat center center;*/
  background-size: cover;
  color: white;
  padding: 4rem 2rem;
  border-radius: 12px;
  text-align: center;
  /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);*/
  margin-bottom: 0rem;
}

.hero h2 {
  color: var(--main-color);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: #333;
  font-size: 1.4rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- カードグリッド (スマホ) ---------- */

.mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* カード間の縦の余白 */
  margin: 0;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}
#hover-image {
  transition: opacity 0.5s ease;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent-color);
}

.card h3 {
  color: var(--main-color);
  margin: 1rem 0 0.5rem;
  font-size: 1.4rem;
}

.card p {
  flex: 1;
  padding: 0 1rem 1rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.4;
}

/* アニメーション用 */
.image-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.image-panel img.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.image-panel img.slide-image.active {
  opacity: 1;
  z-index: 2;
}


/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: var(--main-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  align-self: center;
  width: fit-content;
}

.btn:hover {
  background: #b18d25;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- サイドバー ---------- */

.sidebar {
  width: 300px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  color: var(--text-color);
}

.sidebar h3 {
  font-size: 1.3rem;
  color: var(--main-color);
  margin: 1rem 0 0.8rem;
  border-left: 5px solid var(--accent-color);
  padding-left: 0.5rem;
}

.sidebar p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sidebar .sidebar-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
}

.sidebar .sns-links a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.sidebar .sns-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}


/* ==================================================
  ■ レスポンシブ対応
================================================== */

/* ---------- スマホ表示 (〜576px) ---------- */

@media (max-width: 576px) {
  .content-with-sidebar {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-content,
  .sidebar {
    width: 100%;
    max-width: 100%;
    flex: none;
    box-sizing: border-box;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }
  
  .interactive-cards {
    display: none;
  }
  .mobile-cards {
    gap: 1.5rem; /* スマホで少し狭めに */
  }

  .card img {
    height: 140px;
  }

  .btn {
    width: 70%;
    padding: 1rem;
    font-size: 1.1rem;
    box-sizing: border-box;
  }
}

/* タブレット：577px〜991px */
@media (min-width: 577px) and (max-width: 991px) {
  .sidebar {
    width: 100%;
  }
}

/* ---------- PC表示 (768px〜) ---------- */
@media (min-width: 577px) {
  .mobile-cards {
    display: none;
  }

  .interactive-cards {
    display: block;
    /* gap: 3rem; */
    align-items: stretch;
    height: 315px; /* ← 親に高さを設定 */
    
  }

  .interactive-cards .image-panel {
    flex: 1.2;
    width: 100%;
    max-width: 800px;
    display: block; /* ← flex をやめる */
    height: 100%;
      margin-top: 0;
  align-self: stretch;
  margin-bottom: 0.5rem;
  }

  .interactive-cards .image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;

  }

  .interactive-cards .image-panel img:hover {
    transform: scale(1.05);
  }

  .interactive-cards .info-list {
    flex: 1.2;
    list-style: none;
    padding-left: 0;
    font-size: 3rem;
    color: var(--main-color);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* height: 100%; */
          margin-top: 0;
  /* align-self: stretch; */
  border-radius: 15px;
  }

  .interactive-cards .info-list > li {
    cursor: pointer;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: auto;
  }

  .interactive-cards .info-list > li:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px);
    color: var(--accent-color);
  }

  .interactive-cards .info-list > li ul {
    margin-top: 0rem;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
    padding-left: 1.6rem;
    font-size: 1.1rem;
    border-radius: 4px;
    padding: 0.5rem;
  }
}


/* ==================================================
  ■ company.html 用 CSS
================================================== */

/* ---------- コンテンツ全体 ---------- */
.company-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

/* ---------- ヒーローセクション ---------- */
.company-hero {
  margin-bottom: 3rem;
  padding: 1rem;
  border-radius: 15px;
  background: url(images/president3.png) no-repeat left center;
  background-size: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  min-height: 550px;
  position: relative;
}

.company-hero h2 {
  max-width: 100%;
  text-align: center;
  font-size: 1.4rem;
  padding-left: 50%;
}

.company-hero p {
  max-width: 100%;
  text-align: center;
  font-size: 0.8rem;
  padding-left: 50%;
}

/* ---------- ページタイトル ---------- */
.hero-title {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  color: #000;
  text-align: center;
}

.hero-name {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #000;
  text-align: right;
}

/* ---------- セクション ---------- */
.company-section {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-title {
  text-align: left;
  margin: 0 0 1rem;
  font-size: 2.2rem;
  border-bottom: 3px solid var(--accent-color);
  color: var(--main-color);
}

.company-subtitle {
  font-size: 2rem;
  color: var(--main-color);
  margin: 0 0 1.5rem;
  font-weight: 900;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

/* ---------- 会社概要テーブル ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff9e6;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 126, 0.15);
}

.company-table th {
  background: #fff9e6;
  color: #333;
  font-weight: 900;
  width: 30%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(26, 35, 126, 0.15);
  border-top: none;
}

.company-table th:first-child {
  border-left: none;
}

.company-table th:last-child {
  border-right: none;
}

.company-table td {
  background: #fffbea;
  color: #333;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(26, 35, 126, 0.15);
  border-top: none;
}

.company-table td:first-child {
  border-left: none;
}

.company-table td:last-child {
  border-right: none;
}

/* ---------- 所在地テキスト ---------- */
.company-text {
  background: #fff;
  padding: 0 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  border-radius: 12px;
  margin-bottom: 2rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  user-select: text;
}

/* ---------- 地図 ---------- */
.company-map iframe {
  border-radius: 15px;
  width: 100%;
  height: 450px;
}

.company-map iframe:hover {
  transform: scale(1.03);
}

/* ---------- リスト ---------- */
.company-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
  color: #444;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 576px) {
  .page-title {
    font-size: 1.6rem;
  }

  .company-hero {
    margin-bottom: 3rem;
    padding: 1rem;
    border-radius: 15px;
    background: url(images/president3-1.png) no-repeat left center;
    background-size: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    min-height: 1000px;
    position: relative;
  }

  .company-hero h2 {
    max-width: 100%;
    text-align: center;
    font-size: 1.4rem;
    padding-left: 0;
  }

  .company-hero p {
    max-width: 100%;
    text-align: center;
    font-size: 0.8rem;
    padding-left: 0;
  }

  .mobile-break::after {
    content: "\A";
    white-space: pre;
  }

  .company-table th,
  .company-table td {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .company-section {
    padding: 1.2rem 1rem;
  }

  .company-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .company-text {
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .company-map iframe {
    height: 250px !important;
  }

  .company-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* ==================================================
  ■ recruit.html 用 CSS
================================================== */

.recruit-page {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #333;
  line-height: 1.6;
  border-radius: 15px;
}

.recruit-page h1 {
  font-size: 2rem;
  color: #1a237e;
  border-bottom: 3px solid #1a237e;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.recruit-page p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1em;
  text-indent: -1em;
}

.recruit-page .job {
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  border-left: 5px solid #1a237e;
  background-color: #f1f4fa;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recruit-page .job h2 {
  font-size: 1.4rem;
  color: #1a237e;
  margin-bottom: 1rem;
}

.recruit-page .job ul {
  padding-left: 0;
  list-style: none;
}

.recruit-page .job ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2em;
}

.recruit-page .job ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
}

.recruit-page .job p {
  font-size: 1rem;
}

.recruit-flow {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background-color: #f1f4fa;
  border-left: 5px solid #1a237e;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recruit-flow h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1a237e;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-item {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 15px;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.arrow {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a237e;
  line-height: 1.5;
}

.step-note {
  margin-top: 1rem;
  color: red;
  font-size: 0.9rem;
  line-height: 1.5;
}

.recruit-page .recruit-btn {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 2rem; 
}

.recruit-page .recruit-btn > .btn {
  font-size: 2rem;
  padding: 0.75rem 2rem;
  color: var(--main-color);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: inline-block;
  text-align: center;
}

.recruit-page .recruit-btn > .btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-3px);
  color: var(--accent-color);
}

.apply-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap; /* 画面が狭いときは縦並び */
  margin: 2rem 0;
}

.apply-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.apply-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--main-color);
}

.apply-card .btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background-color: var(--main-color);
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.apply-card .btn:hover {
  background-color: var(--accent-color);
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 576px) {
  .main-content-rec,
  .recruit-detail {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .recruit-page {
    margin: 3rem 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .recruit-page .job {
    padding: 1rem 0.3rem;
  }

  .apply-card .btn {
    font-size: 1.1rem;
    padding: 0.3rem 0.2rem;
  }
  body {
    background: url("images/haikei4.png") center center / cover no-repeat;
  }
}


/* ---------- タブレット対応 (577px〜910px) ---------- */
@media (min-width: 577px) and (max-width: 910px) {
  .recruit-page {
    margin: 3rem 1rem;
  }
}



/* ==================================================
  ■ ローディング 用 CSS
================================================== */
/* オーバーレイ全画面 */
#intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: url('images/haikei2.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
}

#content-with-sidebar {
  display: none;
}

/* 会社名 */
#company-name {
  font-weight: 700;
  font-size: 4rem;
  color: var(--main-color);
  text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 10px;
}

/* メッセージは下にスペースを空けて縦に */
#message {
  color: #333;
  font-size: 1.5rem;
  margin-top: 20px;  /* 上に余白 */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* 1文字ずつ左からスライド＆フェードイン */
#company-name span {
  opacity: 0;
  transform: translateX(-50px);
  animation-fill-mode: forwards;
  animation-name: slideFadeIn;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}


/*初期状態で本文を隠す */
#main-content,
.sidebar,
#header-frame,
#footer-frame {
  display: none;
}
/* スライド＆フェードインのkeyframes */
@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* #header-frame,
#footer-frame,
#main-content,
.sidebar {
  display: block !important;
} */