/* =========================================
   全体の基本設定
========================================= */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}

/* =========================================
   ヘッダー
========================================= */
header {
  background-color: #fff;
  text-align: center;
  padding: 25px 0;
}
header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 28px;
  margin: 0;
}

/* =========================================
   ナビゲーションメニュー
========================================= */
nav {
  background: linear-gradient(to bottom, #87bbf7, #66a3f0);
  border-top: 1px solid #fff;
}
.global-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
}
.global-nav li {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}
.global-nav li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}
.global-nav li a {
  display: block;
  padding: 15px 25px;
  text-decoration: none;
  color: #555;
  font-weight: bold;
}
.global-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   レイアウト（2カラム）
========================================= */
.container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
aside {
  flex: 0 0 240px;
  padding: 30px 20px;
  border-right: 1px solid #eee;
}
main {
  flex: 1;
  padding: 30px;
}

/* =========================================
   見出し・テキスト・テーブル
========================================= */
.page-title {
  background: linear-gradient(to bottom, #87bbf7, #66a3f0);
  color: #fff;
  padding: 12px 15px;
  font-size: 1.3em;
  margin-top: 0;
}
.section-title {
  background-color: #eee;
  color: #666;
  padding: 10px 15px;
  font-size: 1.1em;
  margin-top: 30px;
}
aside h3 {
  color: #87bbf7;
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 10px;
}
aside p {
  font-size: 0.9em;
  color: #555;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
th, td {
  border: 1px solid #ccc;
  padding: 12px;
}
th {
  background-color: #fff;
  text-align: center;
  width: 25%;
  font-weight: normal;
  letter-spacing: 0.3em;
}

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

/* =========================================
   ギャラリー用のデザイン
========================================= */
.gallery-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.gallery-img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #d3d3d3;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-list li {
  margin-bottom: 15px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 8px;
}
.archive-list li a {
  text-decoration: none;
  color: #0056b3;
  display: block;
}
.archive-list li a::before {
  content: "→ ";
  color: #87bbf7;
}
.archive-list li a:hover {
  opacity: 0.7;
}

/* =========================================
   トップページ用のデザイン
========================================= */
/* トップ画像を枠内に収める */
.top-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ご挨拶テキスト */
.greeting {
  font-size: 1.5em;
  text-align: center;
  font-weight: bold;
  color: #0056b3;
  margin: 40px 0;
}

/* 新着情報のリスト */
.news-list {
  border-top: 2px solid #87bbf7;
  padding-top: 15px;
  margin-top: 15px;
}
.news-list dt {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}
.news-list dd {
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
  line-height: 1.8;
}

/* =========================================
   ボタンのデザイン（営業情報ページなど）
========================================= */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.btn-blue {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  color: #ffffff !important;
  background-color: #007bff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-blue:hover {
  background-color: #0056b3;
}

/* =========================================
   社長ご挨拶ページ用のデザイン
========================================= */
.message-body {
  padding: 20px 10px;
  line-height: 1.8;
}
.president-photo {
  text-align: center;
  margin: 0 0 30px 0;
}
.president-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.message-body p {
  margin-bottom: 20px;
  text-align: justify;
}
.message-body .signature {
  text-align: right;
  font-weight: bold;
  margin-top: 40px;
}

/* =========================================
   採用情報ページ用のデザイン（今回追加分）
========================================= */
.contact-box {
  background-color: #f4f8fe;
  border: 1px solid #c9dff7;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}
.contact-box p {
  margin: 0 0 8px 0;
}
.contact-box p:last-child {
  margin-bottom: 0;
}
.contact-divider {
  border: none;
  border-top: 1px dashed #a3c6ea;
  margin: 20px 0;
}
.mail-template {
  background-color: #ffffff;
  padding: 15px;
  border: 1px solid #c9dff7;
  border-radius: 4px;
  font-family: monospace;
  line-height: 1.8;
  color: #555;
  white-space: pre-wrap;
  margin-top: 10px;
}

/* =========================================
   スマホ対応（画面幅が768px以下の場合に適用）
========================================= */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 20px;
    flex-direction: column;
    gap: 10px;
  }
  .global-nav {
    flex-wrap: wrap;
  }
  .global-nav li {
    width: 33.33%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
  }
  .global-nav li a {
    padding: 10px 5px;
    font-size: 13px;
    text-align: center;
  }
  .container {
    flex-direction: column;
  }
  main {
    order: 1;
    padding: 15px;
  }
  aside {
    order: 2;
    flex: auto;
    width: 100%;
    box-sizing: border-box;
    border-right: none;
    border-top: 1px solid #ddd;
    padding: 20px 15px;
  }
  th {
    width: 30%;
    font-size: 0.9em;
    letter-spacing: normal;
    padding: 8px;
  }
  td {
    font-size: 0.9em;
    padding: 8px;
  }
  .gallery-photos {
    gap: 15px;
  }
  .gallery-img {
    width: 100%;
  }
}