/* ===== リセット・基本設定 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.8;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a6b;
}

.logo-sub {
  font-size: 0.65rem;
  color: #888;
  letter-spacing: 0.05em;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-list a:hover { color: #1a6bc5; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

/* ===== ヒーロー ===== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(26,58,107,0.82) 0%, rgba(26,107,197,0.75) 100%),
    url('../images/hero.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #93c5fd;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.9;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: #1a3a6b;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-white {
  background: #fff;
  color: #1a3a6b;
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

/* ===== セクション共通 ===== */
.section { padding: 90px 0; }
.section-gray { background: #f5f7fa; }
.section-navy { background: #1a3a6b; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a6bc5;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1a3a6b;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #1a6bc5;
  border-radius: 2px;
}

/* ===== 代表挨拶 ===== */
.greeting-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.daihyo-photo {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.greeting-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8eef6;
}

.greeting-body p {
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 2;
  color: #444;
}

/* ===== 著作 ===== */
.books-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}

.book-card {
  text-align: center;
  width: 180px;
}

.book-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.book-img {
  width: 160px;
  height: auto;
  border-radius: 4px;
  box-shadow: -4px 4px 0 #c0c8d8, 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-link:hover .book-img {
  transform: translateY(-4px);
  box-shadow: -4px 8px 0 #b0b8c8, 0 12px 32px rgba(0,0,0,0.2);
}

.book-title-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3a6b;
  line-height: 1.6;
}

.book-author {
  font-size: 0.8rem;
  color: #777;
}

.book-buy-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #ff9900;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s;
}

.book-link:hover .book-buy-btn {
  background: #e68900;
}

/* ===== 理念 ===== */
.rinen-main {
  text-align: center;
  margin-bottom: 56px;
}

.rinen-catchcopy {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a3a6b;
  line-height: 1.6;
}

.rinen-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rinen-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.rinen-card:hover { transform: translateY(-4px); }

.rinen-icon {
  font-size: 2rem;
  font-weight: 700;
  color: #1a6bc5;
  opacity: 0.3;
  margin-bottom: 16px;
  font-family: 'Noto Serif JP', serif;
}

.rinen-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 12px;
}

.rinen-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* ===== 事業紹介 ===== */
.jigyou-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.jigyou-card {
  background: #fff;
  border: 1px solid #e0e8f4;
  border-radius: 12px;
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.2s;
}

.jigyou-card:hover { box-shadow: 0 8px 32px rgba(26,59,107,0.1); }

.jigyou-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0e8f4;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 12px;
  line-height: 1;
}

.jigyou-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 12px;
}

.jigyou-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.jigyou-link {
  color: #1a6bc5;
  font-size: 0.88rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.jigyou-link:hover { opacity: 0.7; }

.coming-soon {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #1a3a6b, #1a6bc5);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ===== 会社紹介 ===== */
.kaisha-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.kaisha-table tr {
  border-bottom: 1px solid #e0e8f4;
}

.kaisha-table th {
  width: 180px;
  padding: 20px 24px;
  text-align: left;
  color: #1a3a6b;
  font-weight: 700;
  background: #eef3fb;
  white-space: nowrap;
}

.kaisha-table td {
  padding: 20px 24px;
  color: #444;
}

.kaisha-table td a {
  color: #1a6bc5;
  text-decoration: underline;
}

/* ===== 会社沿革 ===== */
.enkaku-list {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.enkaku-list::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 2px;
  background: #e0e8f4;
}

.enkaku-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.enkaku-item::after {
  content: '';
  position: absolute;
  left: 113px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: #1a6bc5;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #1a6bc5;
}

.enkaku-year {
  width: 100px;
  font-weight: 700;
  color: #1a3a6b;
  font-size: 0.95rem;
  flex-shrink: 0;
  padding-top: 4px;
}

.enkaku-desc {
  font-size: 0.95rem;
  color: #444;
  padding-top: 4px;
  padding-left: 20px;
}

.enkaku-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: #aaa;
}

/* ===== 人材募集 ===== */
.recruit-lead {
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 48px;
  line-height: 2;
}

.recruit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.recruit-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(4px);
}

.recruit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.recruit-card ul {
  list-style: none;
}

.recruit-card li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.recruit-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #93c5fd;
}

.recruit-contact {
  text-align: center;
}

.contact-lead {
  color: #555;
  margin-bottom: 36px;
  font-size: 0.97rem;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3a6b;
}

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  border-radius: 3px;
  font-weight: 700;
  vertical-align: middle;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d8e8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1a6bc5;
  box-shadow: 0 0 0 3px rgba(26,107,197,0.1);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  align-self: center;
  margin-top: 8px;
  padding: 14px 48px;
}

/* ===== フッター ===== */
.footer {
  background: #111827;
  color: #aaa;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 24px;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer-logo-en {
  font-size: 0.7rem;
  color: #666;
  font-weight: 400;
}

.footer-info p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #93c5fd;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.7; }

.footer-copy {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid #222;
  font-size: 0.8rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 16px 0 24px;
  }
  .nav.open .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav.open .nav-list a {
    display: block;
    padding: 14px 32px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .hamburger { display: flex; }

  .greeting-inner { grid-template-columns: 1fr; }
  .photo-placeholder { max-width: 240px; margin: 0 auto; }

  .rinen-cards { grid-template-columns: 1fr; }
  .jigyou-cards { grid-template-columns: 1fr; }
  .recruit-cards { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }

  .enkaku-list::before { left: 80px; }
  .enkaku-item::after { left: 73px; }
  .enkaku-year { width: 70px; font-size: 0.85rem; }

  .kaisha-table th { width: 120px; padding: 14px 12px; font-size: 0.85rem; }
  .kaisha-table td { padding: 14px 12px; font-size: 0.85rem; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-desc { display: none; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.5rem; }
}
