/* バリッジ採用ページ モックアップ CSS */

:root {
  --primary: #1a5ca8;
  --primary-dark: #0d3f7a;
  --primary-light: #e8f0fa;
  --accent: #e85d26;
  --accent-hover: #d04e1c;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f7f8fa;
  --border: #e0e4e8;
  --max-width: 960px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "メイリオ", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
}

/* ヘッダー */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header .logo img {
  height: 36px;
}

.header-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: normal;
  vertical-align: middle;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

.site-header nav a:hover {
  color: var(--primary);
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%), url('images/hero-top.jpg') center/cover;
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 0;
}

.hero .lead {
  max-width: 640px;
  margin: 4px auto 0;
  font-size: 14px;
  line-height: 2;
  opacity: 0.75;
  letter-spacing: 0.1em;
}

/* 職種ページのヒーロー */
.hero-job {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.hero-job.hero-office {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%), url('images/hero-office.jpg') center/cover;
}

.hero-job.hero-sales {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%), url('images/hero-sales.jpg') center/cover;
}

.hero-job.hero-development {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%), url('images/hero-tech.jpg') center/cover;
}

.hero-job.hero-support {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%), url('images/lens-bg.jpg') center/cover;
}

.hero-job.hero-design {
  background: linear-gradient(135deg, rgba(13,63,122,0.85) 0%, rgba(26,92,168,0.8) 100%), url('images/mechatronics.jpg') center/cover;
}

/* セクション内画像 */
.section-image {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.image-float-right {
  float: right;
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  margin: 0 0 16px 20px;
  border-radius: 8px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.image-gallery img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 180px;
}

/* キャプション付き写真グリッド */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-grid figure {
  margin: 0;
  text-align: center;
}

.photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-grid figcaption {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.image-float-left {
  float: left;
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  margin: 0 20px 16px 0;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .image-float-left {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }
  .image-float-right {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }
}

.hero-job h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-job .subtitle {
  font-size: 15px;
  opacity: 0.9;
}

/* メインコンテンツ */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* セクション */
section {
  padding: 36px 0;
}

section:nth-child(even) {
  background: var(--bg-gray);
}

section h2 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

section h3 {
  font-size: 17px;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

/* 導入文 */
.intro {
  background: var(--bg-gray);
  padding: 24px 24px;
}

.intro .container {
  font-size: 15px;
  line-height: 2;
}

/* 職種カード */
.job-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.3s, transform 0.3s;
}

.job-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.job-card .job-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.job-card .job-subtitle {
  font-size: 12px;
  color: var(--text-light);
  flex-grow: 1;
}

.job-card .arrow {
  color: var(--primary);
  font-size: 16px;
  text-align: right;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .job-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* リスト */
ul.features {
  list-style: none;
  display: grid;
  gap: 16px;
}

ul.features li {
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
}

ul.features li strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 4px;
}

ul.check {
  list-style: none;
}

ul.check li {
  padding: 3px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

ul.check li::before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* 業務内容のカード */
.role-cards {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid var(--primary);
}

.role-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.role-card ul {
  margin-left: 20px;
  color: var(--text-light);
}

.role-card ul li {
  padding: 2px 0;
}

.role-card .target {
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  font-weight: bold;
}

/* 条件テーブル */
.conditions {
  width: 100%;
  border-collapse: collapse;
}

.conditions th {
  text-align: left;
  padding: 12px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  width: 140px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.conditions td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

/* 技術スタック横レイアウト */
.tech-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tech-layout .conditions {
  flex: 1;
}

.tech-image {
  width: 250px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tech-layout {
    flex-direction: column;
  }
  .tech-image {
    width: 100%;
    max-height: 200px;
  }
}

/* 福利厚生タグ */
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefits span {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* 選考プロセス */
.process {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.process .step {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.process .arrow {
  color: var(--primary);
  font-size: 24px;
  padding: 0 8px;
}

/* 歓迎スキル（ドットリスト） */
ul.dot {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-light);
}

ul.dot li {
  padding: 3px 0;
  line-height: 1.6;
}

/* 求める人物像（シンプルリスト） */
ul.plain {
  list-style: none;
}

ul.plain li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}

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

/* タグ形式（開発プロセス・AI活用等） */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-list span {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* CTAボタン */
.cta {
  background: var(--primary-dark);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}

.cta h2 {
  color: #fff;
  border: none;
  padding: 0;
  margin-bottom: 16px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* 代表メッセージ */
.message {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.message .name {
  flex-shrink: 0;
  text-align: center;
}

.message .name .title {
  font-size: 12px;
  color: var(--text-light);
}

.message .name .person {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
}

.message .body {
  font-size: 14px;
  line-height: 2;
}

/* 技術スタック */
.tech-stack {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}

.tech-stack dt {
  color: var(--text-light);
  text-align: right;
}

.tech-stack dd {
  color: var(--text);
}

/* 補足情報 */
.note {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 16px;
}

/* 手紙風メッセージ */
.letter {
  background: #fff;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 25px,
    #eee 25px,
    #eee 26px
  );
  background-position: 0 36px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  min-height: 300px;
  padding: 36px 40px;
  position: relative;
  font-size: 13.5px;
  line-height: 26px;
  z-index: 1;
  flex: 1;
}

.letter::before,
.letter::after {
  content: "";
  height: 98%;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.letter::before {
  background: #fafafa;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  left: -5px;
  top: 4px;
  transform: rotate(-2.5deg);
}

.letter::after {
  background: #f9f9f9;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  right: -3px;
  top: 1px;
  transform: rotate(1.4deg);
}


/* 手紙ラッパー（写真+手紙） */
.letter-wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 20px 0;
}

.letter-author {
  flex-shrink: 0;
  text-align: center;
  width: 160px;
}

.letter-author img {
  width: 150px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.letter-author .title {
  font-size: 11px;
  color: var(--text-light);
}

.letter-author .person {
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-dark);
}

.letter .greeting {
  font-size: 17px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.letter p {
  margin-bottom: 26px;
  text-indent: 1em;
}


/* 手紙の開閉アニメーション */
.letter-body {
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.6s ease;
  position: relative;
}

.letter-body.open {
  max-height: 2000px;
}

.letter-body:not(.open)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.letter-toggle {
  display: block;
  text-align: center;
  padding: 12px;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-weight: bold;
}

.letter-toggle:hover {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .letter-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .letter {
    padding: 28px 24px;
  }
  .letter .greeting {
    font-size: 17px;
  }
}

/* フッター */
.site-footer {
  background: #2a2a2a;
  color: #999;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero-job h1 { font-size: 22px; }
  .message { flex-direction: column; }
  .process { flex-direction: column; align-items: flex-start; }
  .process .arrow { transform: rotate(90deg); padding: 4px 0; }
  .tech-stack { grid-template-columns: 1fr; }
  .tech-stack dt { text-align: left; font-weight: bold; margin-top: 8px; }
  .conditions th { width: 100px; }
}
