/* ========================================
   株式会社職人 コーポレートサイト スタイル
   ======================================== */

/* ---------- CSS カスタムプロパティ ---------- */
:root {
  --color-primary:    #1a1a2e;
  --color-accent:     #e63946;
  --color-accent-sub: #f4a261;
  --color-gold:       #c9a84c;
  --color-text:       #2d2d2d;
  --color-text-light: #666;
  --color-bg:         #fff;
  --color-bg-gray:    #f5f6f8;
  --color-bg-dark:    #1a1a2e;
  --color-border:     #e0e0e0;
  --font-main:        'Noto Sans JP', sans-serif;
  --shadow-sm:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:        0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:        0 8px 40px rgba(0,0,0,.18);
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --transition:       0.3s ease;
  --max-width:        1100px;
}

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

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: .75; }

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

address { font-style: normal; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only { display: inline; }

/* ========================================
   ヘッダー
   ======================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,26,46,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.logo:hover { opacity: 1; }

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent), #ff6b6b);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo-text {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
}
.logo-text strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

/* ナビ */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-list a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-list a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  opacity: 1;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: #c0202d !important;
  opacity: 1 !important;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   ヒーロー
   ======================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0f0c29, #302b63, #1a1a2e);
}

/* 背景パターン */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(230,57,70,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244,162,97,.1) 0%, transparent 40%);
}

/* グリッドパターン */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,30,.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-sub {
  display: inline-block;
  color: var(--color-accent);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .15em;
  text-align: center;
  z-index: 1;
}
.hero-scroll i {
  display: block;
  margin-top: 6px;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #c0202d;
  border-color: #c0202d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,.4);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  opacity: 1;
}

.btn-white {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  opacity: 1;
}

.btn-sm  { padding: 10px 20px; font-size: .88rem; }
.btn-lg  { padding: 18px 36px; font-size: 1.05rem; }

/* ========================================
   キャッチ帯
   ======================================== */
.catch-band {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  box-shadow: var(--shadow-sm);
}

.catch-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.catch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.catch-item i {
  font-size: 1.4rem;
  color: var(--color-accent);
}

.catch-sep {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  opacity: .4;
}

/* ========================================
   セクション共通
   ======================================== */
.section { padding: 100px 0; }
.section-gray { background: var(--color-bg-gray); }
.section-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--color-accent);
  background: rgba(230,57,70,.08);
  border: 1px solid rgba(230,57,70,.2);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

.section-header--light .section-title { color: #fff; }
.section-header--light .section-desc  { color: rgba(255,255,255,.65); }

/* ========================================
   会社概要
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.about-icon {
  background: linear-gradient(135deg, var(--color-primary), #302b63);
  color: #fff;
  padding: 20px 28px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-icon::after {
  content: '会社情報';
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.about-info { padding: 0; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: .92rem;
  line-height: 1.6;
}
.company-table th {
  width: 120px;
  color: var(--color-text-light);
  font-weight: 600;
  background: var(--color-bg-gray);
  white-space: nowrap;
}
.company-table td a {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.about-message {
  padding: 8px 0;
}
.about-message h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}
.about-message p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.9;
  font-size: .97rem;
}

/* ========================================
   事業内容
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-sub));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-card--wide { grid-column: span 2; }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}
.service-icon--1 { background: linear-gradient(135deg, #e63946, #ff6b6b); }
.service-icon--2 { background: linear-gradient(135deg, #302b63, #6a5acd); }
.service-icon--3 { background: linear-gradient(135deg, #f4a261, #e76f51); }
.service-icon--4 { background: linear-gradient(135deg, #2a9d8f, #52b788); }
.service-icon--5 { background: linear-gradient(135deg, #c9a84c, #e9c46a); }

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 30px;
  margin: 3px 3px 0 0;
}

.services-cta { text-align: center; }

/* ========================================
   強み
   ======================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.strength-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.strength-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.strength-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.07);
  line-height: 1;
  font-style: italic;
}

.strength-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent), #ff6b6b);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
}

.strength-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.4;
}

.strength-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.85;
}

/* ========================================
   拠点情報
   ======================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.location-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.location-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.location-card--main {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(230,57,70,.12);
}

.location-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: .06em;
}
.location-badge--sub   { background: #302b63; }
.location-badge--studio { background: var(--color-gold); }

.location-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.location-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

address {
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.location-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--color-accent);
  font-weight: 600;
  border: 1px solid var(--color-accent);
  padding: 7px 16px;
  border-radius: 30px;
  transition: all var(--transition);
}
.location-map-link:hover {
  background: var(--color-accent);
  color: #fff;
  opacity: 1;
}

/* ========================================
   CTAバナー
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c0202d 60%, #8b0000 100%);
  padding: 80px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner-text p {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}

/* ========================================
   フッター
   ======================================== */
#footer {
  background: #0d0d1a;
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.logo-mark--sm {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}

.footer-logo-text {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.footer-logo-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.footer-info {
  font-size: .85rem;
  line-height: 1.9;
}
.footer-info a { color: rgba(255,255,255,.6); }
.footer-info a:hover { color: #fff; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; opacity: 1; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ========================================
   スクロールアニメーション
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   レスポンシブ（タブレット以下）
   ======================================== */
@media (max-width: 900px) {
  .about-grid        { grid-template-columns: 1fr; }
  .strengths-grid    { grid-template-columns: 1fr; }
  .locations-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid     { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }
  .cta-banner-inner  { flex-direction: column; text-align: center; }
}

/* ========================================
   レスポンシブ（スマートフォン）
   ======================================== */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .pc-only { display: none; }

  /* ヘッダー */
  .nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26,26,46,.98);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-list a {
    display: block;
    padding: 12px 16px;
    font-size: .95rem;
    border-radius: var(--radius-sm);
  }
  .hamburger { display: flex; }

  /* ヒーロー */
  .hero-content { padding-top: 120px; padding-bottom: 100px; }
  .hero-btns    { flex-direction: column; }
  .btn          { justify-content: center; }

  /* キャッチ帯 */
  .catch-band-inner { gap: 12px; }
  .catch-sep        { display: none; }
  .catch-item       { font-size: .9rem; }

  /* セクション */
  .section          { padding: 72px 0; }
  .section-header   { margin-bottom: 48px; }

  /* ロケーション */
  .locations-grid   { grid-template-columns: 1fr; }

  /* フッター */
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-nav   { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
}
