/* ========================================
   株式会社キタサン 共通スタイルシート
   ======================================== */

/* ---------- リセット & ベース ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:   #1a3a5c;   /* 紺 */
  --color-accent:    #c8a84b;   /* ゴールド */
  --color-light:     #f5f7fa;
  --color-white:     #ffffff;
  --color-text:      #333333;
  --color-text-sub:  #666666;
  --color-border:    #dce3ec;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

/* ---------- レイアウト ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--color-light);
}

/* ---------- 見出し ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title p {
  margin-top: 12px;
  color: var(--color-text-sub);
  font-size: 0.95rem;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: #b08c35;
  border-color: #b08c35;
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ---------- ヘッダー ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo a img {
  height: 48px;
  width: auto;
  display: block;
}

.header-logo span {
  color: var(--color-accent);
}

/* ナビ内ロゴ */
.nav-logo a {
  padding: 0 8px 0 0 !important;
  background: none !important;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  vertical-align: middle;
}

/* ---------- グローバルナビ ---------- */
.global-nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

.global-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.global-nav a:hover,
.global-nav a.active {
  color: var(--color-accent);
  background: rgba(200,168,75,0.08);
}

.global-nav .nav-contact a {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 4px;
}

.global-nav .nav-contact a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ページコンテンツ上部オフセット ---------- */
main {
  padding-top: var(--header-height);
}

/* ---------- ページヒーロー（内部ページ共通） ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d5f8a 100%);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* ---------- パンくずリスト ---------- */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.breadcrumb ol {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--color-border);
}

/* ---------- フッター ---------- */
#footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
}

.footer-main {
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-brand .footer-logo span {
  color: var(--color-accent);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ---------- カード ---------- */
.card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ---------- テーブル ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 220px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-light);
  white-space: nowrap;
}

/* ---------- ニュース一覧 ---------- */
.news-list {
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.news-item:hover {
  background: var(--color-light);
  padding-left: 8px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  white-space: nowrap;
  min-width: 110px;
}

.news-category {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.news-category--info     { background: #e8f0fe; color: #1a73e8; }
.news-category--press    { background: #fce8e6; color: #d93025; }
.news-category--recruit  { background: #e6f4ea; color: #188038; }
.news-category--ir       { background: #fef7e0; color: #b06000; }

.news-title {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ---------- フォーム ---------- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #d93025;
  margin-left: 4px;
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---------- グリッドユーティリティ ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- ユーティリティ ---------- */
.text-center { text-align: center; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .hamburger { display: flex; }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .global-nav.open {
    max-height: 400px;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .global-nav a {
    padding: 12px 24px;
    width: 100%;
    border-radius: 0;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .section-title h2 { font-size: 1.6rem; }

  .page-hero h1 { font-size: 1.7rem; }

  .info-table th { width: 120px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .news-item { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 10px 24px; font-size: 0.9rem; }
}
