/* ===== リセット & 基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: clamp(15px, 2vw, 19px); /* PC最低19px≒14pt */
  line-height: 1.9;
  color: #222;
  background: #f9f8f6;
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
  --header-h: 100px;
  --footer-h: 44px;
  --max-w: 1200px;
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #c8a96e;
  z-index: 200;
  padding: 8px 16px 4px;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.header-logo img {
  height: clamp(20px, 8vw, 40px);
  width: auto;
  display: block;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  font-size: clamp(12px, 1.8vw, 20px);
  font-weight: 700;
  color: #2c4a7c;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

nav a:hover {
  background: #2c4a7c;
  color: #fff;
}

nav .sep {
  color: #bbb;
  font-size: 20px;
}

hr.nav-hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 4px 0;
}

/* ===== メインコンテンツ ===== */
.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* ===== 本文カード ===== */
.content-card {
  background: #fff;
  border-left: 5px solid #c8a96e;
  border-radius: 6px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.greeting-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: #2c4a7c;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e0d0;
}

.greeting-body p {
  margin-bottom: 1.4em;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.95;
}

/* ===== お知らせ ===== */
.notice-box {
  margin-top: 28px;
  background: #f3f0ea;
  border: 1px solid #d8d0c0;
  border-radius: 6px;
  padding: clamp(14px, 3vw, 22px);
}

.notice-box h3 {
  font-size: clamp(15px, 2vw, 19px);
  color: #5a3e1b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-box ul {
  list-style: none;
  padding: 0;
}

.notice-box ul li {
  font-size: clamp(15px, 2vw, 19px);
  padding: 5px 0 5px 20px;
  position: relative;
  border-bottom: 1px dashed #ccc;
}

.notice-box ul li:last-child { border-bottom: none; }

.notice-box ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #c8a96e;
  font-size: 12px;
  top: 9px;
}

/* ===== フッター ===== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #2c4a7c;
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: clamp(9.5px, 1.2vw, 12px);
  letter-spacing: 0.05em;
  z-index: 200;
}

/* ===== 公告 ===== */
.notice-year-section {
  margin-bottom: 28px;
}

.notice-year-title {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 700;
  color: #2c4a7c;
  background: #eef2f9;
  border-left: 5px solid #2c4a7c;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.85;
  padding: 10px 0 10px 22px;
  border-bottom: 1px dashed #ddd;
  position: relative;
  color: #333;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #c8a96e;
  font-size: 11px;
  top: 15px;
}

/* ===== 連絡先 ===== */
.contact-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e0d0;
}

.contact-block:last-of-type {
  border-bottom: none;
}

.contact-block-title {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 700;
  color: #2c4a7c;
  background: #eef2f9;
  border-left: 5px solid #2c4a7c;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.contact-label {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  color: #fff;
  background: #2c4a7c;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  min-width: 56px;
  text-align: center;
}

.contact-tel {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: #2c4a7c;
  text-decoration: none;
  letter-spacing: .05em;
}

.contact-tel:hover { text-decoration: underline; }

.contact-mail {
  font-size: clamp(15px, 2vw, 19px);
  color: #2c4a7c;
  text-decoration: underline;
}

.contact-mail:hover { opacity: .75; }

.contact-address {
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.8;
  margin-bottom: 14px;
  color: #444;
}

.contact-map {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

.contact-qr {
  text-align: center;
  margin-top: 24px;
}

.contact-qr img {
  max-width: clamp(120px, 30vw, 200px);
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.contact-qr-label {
  font-size: clamp(13px, 1.6vw, 15px);
  color: #888;
  margin-bottom: 8px;
}

/* ===== 採用情報 ===== */
.recruit-top {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.recruit-photos {
  flex: 0 0 auto;
}

.recruit-main-photo {
  width: clamp(200px, 40vw, 330px);
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

.recruit-thumbs {
  display: flex;
  gap: 8px;
}

.recruit-thumbs img {
  width: clamp(60px, 12vw, 100px);
  height: auto;
  border-radius: 4px;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
}

.recruit-thumbs img:hover {
  border-color: #2c4a7c;
  opacity: .85;
}

.recruit-message {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.recruit-message p {
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 700;
  color: #2c4a7c;
  padding-left: 14px;
  border-left: 4px solid #c8a96e;
  margin: 0;
  line-height: 1.5;
}

.recruit-subtitle {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 700;
  color: #2c4a7c;
  background: #eef2f9;
  border-left: 5px solid #2c4a7c;
  padding: 8px 14px;
  margin: 28px 0 14px;
  border-radius: 0 4px 4px 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recruit-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: clamp(13px, 1.8vw, 17px);
  line-height: 1.7;
}

.recruit-table th,
.recruit-table td {
  border: 1px solid #ccc;
  padding: clamp(8px, 1.5vw, 13px) clamp(9px, 1.5vw, 15px);
  vertical-align: middle;
  text-align: left;
}

.recruit-table thead th {
  background: #2c4a7c;
  color: #fff;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.recruit-table tbody tr:nth-child(even) {
  background: #f5f8ff;
}

.recruit-table td.num {
  text-align: center;
  white-space: nowrap;
  color: #666;
}

.recruit-benefits {
  margin-top: 18px;
  padding: clamp(12px, 2vw, 18px);
  background: #f3f0ea;
  border: 1px solid #d8d0c0;
  border-radius: 6px;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.9;
  color: #444;
}

/* CCUS バッジ */
.ccus-table td:first-child {
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.ccus-table td:nth-child(2) {
  text-align: center;
}

.ccus-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
}

.ccus-white  { background: #f0f0f0; color: #444; border: 1px solid #bbb; }
.ccus-blue   { background: #2979d0; color: #fff; }
.ccus-silver { background: #9e9e9e; color: #fff; }
.ccus-gold   { background: #c8a96e; color: #fff; }

/* ===== 風景ギャラリー ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.gallery-item {
  background: #faf7f2;
  border: 1px solid #e0d8cc;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.gallery-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.gallery-item img {
  width: 100%;
  height: clamp(160px, 22vw, 280px);
  object-fit: cover;
  display: block;
}

.gallery-caption {
  font-size: clamp(13px, 1.7vw, 16px);
  color: #555;
  text-align: center;
  padding: 8px 6px;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SDGs ===== */
.sdg-section {
  margin-bottom: 36px;
}

.sdg-section-title {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 700;
  color: #2c4a7c;
  background: #eef2f9;
  border-left: 5px solid #2c4a7c;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

.sdg-item {
  padding: 12px 0 12px 16px;
  border-bottom: 1px dashed #ddd;
}

.sdg-item:last-of-type {
  border-bottom: none;
}

.sdg-item-title {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  color: #3a3a3a;
  margin-bottom: 6px;
}

.sdg-item-title::before {
  content: "・";
  color: #c8a96e;
}

.sdg-item p {
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.85;
  color: #444;
  margin-bottom: 4px;
}

.sdg-effect {
  font-size: clamp(13px, 1.7vw, 16px) !important;
  color: #2a6e3f !important;
  background: #f0faf4;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.sdg-photo {
  margin-top: 16px;
  padding: 16px;
  background: #faf7f2;
  border: 1px solid #e0d8cc;
  border-radius: 6px;
  text-align: center;
}

.sdg-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 8px;
}

.sdg-photo-caption {
  font-size: clamp(13px, 1.7vw, 16px);
  color: #666;
}

/* ===== 会社概要テーブル ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.85;
}

.company-table th,
.company-table td {
  padding: clamp(10px, 2vw, 16px) clamp(10px, 2vw, 20px);
  border-bottom: 1px solid #e8e0d0;
  vertical-align: top;
  text-align: left;
}

.company-table th {
  width: 30%;
  color: #5a3e1b;
  font-weight: 700;
  white-space: nowrap;
  background: #faf7f2;
}

.company-table td strong {
  color: #2c4a7c;
  display: block;
  margin-bottom: 4px;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* ===== スマホ特化調整 ===== */
@media (max-width: 600px) {
  body { --header-h: 120px; }

  nav a { padding: 5px 7px; }

  .content-card { padding: 18px 14px; }

  .company-table th {
    width: 36%;
    white-space: normal;
  }
}
