/* ========================================
   合同会社きわみ コーポレートサイト
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a2a4a;
  --primary-light: #2c4a7c;
  --accent: #c8a45c;
  --accent-light: #e0c882;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #f0f2f5;
  --border: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.nav-list {
  display: flex;
  gap: 0;
}

.nav-list li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  letter-spacing: 0.04em;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
  width: 60%;
}

.nav-list li a:hover {
  color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(rgba(26, 42, 74, 0.82), rgba(44, 74, 124, 0.82)),
              url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&q=80&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(200, 164, 92, 0.08);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-lead {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero p {
  font-size: 16px;
  line-height: 2;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 164, 92, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.section-header .en {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 15px;
}

.bg-light {
  background: var(--bg-light);
}

.bg-dark {
  background: var(--bg-dark);
}

/* ========================================
   Features / Services Cards
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
}

.feature-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -40px -30px 20px -30px;
  width: calc(100% + 60px);
}

.feature-card.has-img {
  padding-top: 0;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   About / Company Info
   ======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  height: 350px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.company-table th {
  width: 160px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  white-space: nowrap;
}

.company-table td {
  color: var(--text);
}

/* ========================================
   Recruit / Job Listings
   ======================================== */
.recruit-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 15px;
  color: var(--text-light);
}

.job-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.job-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.job-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 24px 28px;
}

.job-card-header .job-type {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.job-card-header h3 {
  font-size: 22px;
  font-weight: 700;
}

.job-card-body {
  padding: 28px;
}

.job-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.job-detail-label {
  min-width: 80px;
  font-weight: 700;
  color: var(--primary);
}

.job-detail-value {
  color: var(--text);
}

.salary-highlight {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.salary-highlight span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
}

.job-card .btn {
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(rgba(26, 42, 74, 0.88), rgba(44, 74, 124, 0.88)),
              url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1400&q=80&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

/* Recruit Banner */
.recruit-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 50px;
  position: relative;
  height: 280px;
}

.recruit-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 42, 74, 0.7), rgba(44, 74, 124, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.recruit-banner-overlay h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.recruit-banner-overlay p {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 8px;
}

/* Job Card Image */
.job-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.cta-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 32px;
  font-size: 15px;
}

/* ========================================
   Contact Form
   ======================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-text {
  font-size: 14px;
}

.contact-info-text strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group label .required {
  color: #e74c3c;
  font-size: 12px;
  margin-left: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

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

.form-submit {
  text-align: center;
  margin-top: 10px;
}

.form-submit .btn {
  min-width: 240px;
}

/* ========================================
   Page Header (Sub Pages)
   ======================================== */
.page-header {
  background: linear-gradient(rgba(26, 42, 74, 0.85), rgba(44, 74, 124, 0.85)),
              url('https://images.unsplash.com/photo-1497215842964-222b430dc094?w=1400&q=80&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}

.page-header-recruit {
  background-image: linear-gradient(rgba(26, 42, 74, 0.85), rgba(44, 74, 124, 0.85)),
                     url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1400&q=80&fit=crop');
}

.page-header-services {
  background-image: linear-gradient(rgba(26, 42, 74, 0.85), rgba(44, 74, 124, 0.85)),
                     url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1400&q=80&fit=crop');
}

.page-header-contact {
  background-image: linear-gradient(rgba(26, 42, 74, 0.85), rgba(44, 74, 124, 0.85)),
                     url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1400&q=80&fit=crop');
}

.page-header .en {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.breadcrumb {
  text-align: center;
  padding: 14px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ========================================
   Service Detail
   ======================================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-image {
  border-radius: var(--radius);
  height: 280px;
  overflow: hidden;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.service-detail-image:hover img {
  transform: scale(1.03);
}

.service-detail-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-detail-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.service-list {
  margin-top: 16px;
}

.service-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 9px;
}

/* ========================================
   Philosophy / Values
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px 24px;
}

.value-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

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

.value-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

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

.footer-nav li a {
  font-size: 13px;
  transition: color var(--transition);
}

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

.footer-contact-info p {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Map Embed
   ======================================== */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-wrapper,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .job-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .header-inner {
    height: 64px;
  }

  .section {
    padding: 50px 0;
  }
}
