/* ==========================================================================
   有限会社Rispondere コーポレートサイト - 最終版（求人最優先・可読性重視）
   ========================================================================== */

/* リセット
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* デザインシステム変数
   ========================================================================== */
:root {
  /* ブランドカラー（ミントグリーン） */
  --color-primary: #67EDE1;
  --color-primary-dark: #4DD4C8;
  --color-primary-light: #A0F4ED;
  
  /* ダークグレー（本文・見出し） */
  --color-text: #1F2937;
  --color-heading: #111827;
  --color-text-light: #6B7280;
  
  /* 背景 */
  --color-bg: #FFFFFF;
  --color-bg-light: #F9FAFB;
  --color-bg-gray: #F3F4F6;
  
  /* ボーダー */
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  
  /* 影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* 余白システム（統一） */
  --spacing-section: 72px;
  --spacing-section-sp: 48px;
  --spacing-content: 48px;
  --spacing-content-sp: 32px;
  
  /* 角丸 */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  
  /* コンテンツ幅 */
  --width-content: 1100px;
  --width-narrow: 800px;
}

/* タイポグラフィ（可読性最優先）
   ========================================================================== */
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-heading);
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-heading);
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-heading);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* スマホ対応タイポグラフィ */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  p {
    font-size: 1rem;
    max-width: 100%;
  }
}

/* ヘッダー（プロ感強化：ロゴ完全制御）
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  height: 80px;
  overflow: hidden;
}

.header__inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  max-height: 100%;
}

.header__logo a {
  display: block;
  line-height: 0;
  max-height: 100%;
}

.header__logo img {
  width: auto;
  height: 60px;
  max-width: 280px;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.header__nav a:hover {
  background-color: var(--color-bg-light);
  opacity: 1;
}

.header__nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

/* スマホヘッダー（崩れ防止・視認性UP） */
@media (max-width: 768px) {
  .header {
    position: relative;
    height: auto;
    min-height: 64px;
  }
  
  .header__inner {
    padding: 12px 20px;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .header__logo {
    flex: 0 0 auto;
    max-height: 48px;
  }
  
  .header__logo a {
    max-height: 48px;
  }
  
  .header__logo img {
    width: auto;
    height: 46px;
    max-width: 200px;
    max-height: 48px;
    object-fit: contain;
  }
  
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }
  
  .header__nav.is-open {
    display: flex;
  }
  
  .header__nav a {
    width: 100%;
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border-light);
  }
  
  .header__hamburger {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: rgba(103, 237, 225, 0.3);
    touch-action: manipulation;
  }
}

/* ヒーローセクション
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
  padding: 80px 0 80px;
  text-align: center;
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ロゴ表示（ヒーローセクション用） */
.hero__logo {
  margin: 0 auto 56px;
  max-width: 500px;
  width: 100%;
}

.hero__logo img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero__text {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 48px;
  max-width: 100%;
}

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

@media (max-width: 768px) {
  .hero {
    padding: 56px 0 56px;
  }
  
  .hero__logo {
    max-width: 75%;
    margin-bottom: 40px;
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .hero__text {
    font-size: 0.9375rem;
  }
  
  .hero__buttons {
    flex-direction: column;
    gap: 12px;
  }
}

/* セクション
   ========================================================================== */
.section {
  padding: var(--spacing-section) 0;
}

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

.section__inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 24px;
}

.section__heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}

.section__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section__lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section__cta {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-section-sp) 0;
  }
  
  .section__heading {
    font-size: 1.625rem;
    margin-bottom: 32px;
  }
  
  .section__lead {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}

/* カードグリッド
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* カード
   ========================================================================== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 100%;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

@media (max-width: 768px) {
  .card {
    padding: 24px;
  }
}

/* ボタン（高さ44px以上）
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--color-heading);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  opacity: 1;
}

.btn--large {
  padding: 16px 40px;
  min-height: 52px;
  font-size: 1.0625rem;
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    padding: 14px 24px;
  }
  
  .btn--large {
    padding: 16px 32px;
  }
}

/* フッター
   ========================================================================== */
.footer {
  background: var(--color-heading);
  color: white;
  padding: 48px 0 32px;
}

.footer__company-info {
  max-width: var(--width-content);
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
}

.footer__company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__address {
  font-size: 0.95rem;
  color: #9CA3AF;
  margin-bottom: 8px;
}

.footer__contact {
  font-size: 0.95rem;
  color: #9CA3AF;
  margin-top: 8px;
}

.footer__email {
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer__section ul {
  list-style: none;
}

.footer__section ul li {
  margin-bottom: 12px;
}

.footer__section ul li a {
  color: #9CA3AF;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer__section ul li a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.footer__bottom {
  text-align: center;
  padding-top: 32px;
  color: #9CA3AF;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 24px;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 下部固定CTA（スマホのみ）
   ========================================================================== */
.fixed-cta {
  display: none;
}

@media (max-width: 768px) {
  .fixed-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-top: 1px solid var(--color-border);
  }
  
  .fixed-cta__btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    min-height: 48px;
    background: var(--color-primary);
    color: var(--color-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
  }
  
  .fixed-cta__btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    opacity: 1;
  }
  
  body.has-fixed-cta {
    padding-bottom: 80px;
  }
}

/* テキスト中央揃えユーティリティ
   ========================================================================== */
.text-center {
  text-align: center;
}

/* 制作物モックエリア
   ========================================================================== */
.mock-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.mock-item {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mock-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mock-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F0FDFA 0%, #E0F2F1 100%);
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Works カード（3点専用） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.work-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.work-card__image {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-light);
  overflow: hidden;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__content {
  padding: 24px;
}

.work-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.work-card__detail {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 12px;
}

.work-card__detail strong {
  color: var(--color-heading);
  font-weight: 600;
}

.works-note {
  margin-top: 48px;
  padding: 24px;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .mock-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 会社情報テーブル
   ========================================================================== */
.company-info__list {
  max-width: 700px;
  margin: 0 auto;
}

.company-info__list dt {
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.company-info__list dt:first-child {
  padding-top: 0;
  border-top: none;
}

.company-info__list dd {
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.company-info__list dd a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 募集導入ブロック（プロ仕様：横3列）
   ========================================================================== */
.recruit-intro {
  max-width: 1100px;
  margin: 0 auto;
}

.recruit-intro__heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 48px;
  text-align: center;
}

.recruit-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recruit-point {
  position: relative;
  padding: 64px 32px 36px;
  background: white;
  border-radius: var(--radius);
  border: 2px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.recruit-point:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(103, 237, 225, 0.15);
  transform: translateY(-4px);
}

.recruit-point__number {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recruit-point__content {
  padding-top: 0;
}

.recruit-point__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.6;
  margin-bottom: 8px;
}

.recruit-point__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6B7280;
}

@media (max-width: 768px) {
  .recruit-intro__heading {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }
  
  .recruit-points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .recruit-point {
    padding: 56px 24px 32px;
  }
  
  .recruit-point__number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    top: 20px;
    left: 20px;
  }
  
  .recruit-point__title {
    font-size: 1.0625rem;
  }
  
  .recruit-point__text {
    font-size: 0.9375rem;
  }
}

/* ===== スマホメニュー 強制修正 ===== */
@media (max-width: 900px) {

  .header {
    position: relative;
    z-index: 10000;
  }

  .header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    margin-left: auto;
  }

  .header__hamburger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
  }

  .header__nav {
    position: fixed;
    top: 64px; /* ヘッダー高さに合わせて調整 */
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .header__nav.is-open {
    display: flex;
  }
}
