/* ============================================================
   株式会社騰翔 サイト共通スタイル
   ============================================================ */

/* ======== リセット・基本 ======== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; background: #fff; color: #333; }

/* ======== ヘッダー ======== */
header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 60px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  z-index: 100;
}
header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: #c00;
}
header .logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; height: 100%;
  transition: transform 0.2s ease;
}
header .logo:hover { transform: scale(1.02); }
header .logo picture { display: flex; align-items: center; }
header .logo .logo-mark img {
  height: 38px; width: auto; display: block;
}
header .logo .logo-text img {
  height: 24px; width: auto; display: block;
}

.hamburger {
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #c00; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(204,0,0,0.2); border-radius: 4px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hamburger:hover { background: rgba(204,0,0,0.06); border-color: rgba(204,0,0,0.4); }
.hamburger .icon-close { display: none; }
.hamburger.open {
  background: #c00; color: #fff; border-color: #c00;
}
.hamburger.open .icon-bars { display: none; }
.hamburger.open .icon-close { display: inline-block; }

/* モバイル用ナビ（ドロワー） */
.mobile-nav {
  position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  z-index: 99;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
}
.mobile-nav.open {
  transform: translateY(0); opacity: 1; visibility: visible;
}
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
  display: block; padding: 16px 24px;
  color: #333; text-decoration: none;
  font-size: 14px; font-weight: bold; letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover { background: rgba(204,0,0,0.04); color: #c00; }
.mobile-nav a.active {
  color: #c00;
  background: rgba(204,0,0,0.06);
  border-left: 3px solid #c00; padding-left: 21px;
}

.header-nav { display: none; }

@media (min-width: 768px) {
  header { padding: 0 48px; height: 72px; }
  header .logo { gap: 20px; }
  header .logo .logo-mark img { height: 48px; }
  header .logo .logo-text img { height: 28px; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }

  .header-nav { display: flex; gap: 8px; align-items: center; }
  .header-nav a {
    position: relative;
    text-decoration: none; color: #444; font-size: 13px;
    padding: 10px 18px; font-weight: bold;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
  }
  .header-nav a::after {
    content: ''; position: absolute;
    left: 18px; right: 18px; bottom: 4px;
    height: 2px; background: #c00;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.25s ease;
  }
  .header-nav a:hover { color: #c00; }
  .header-nav a:hover::after,
  .header-nav a.active::after { transform: scaleX(1); }
  .header-nav a.active { color: #c00; }

  /* CTAボタン（お問い合わせ） */
  .header-nav a.cta {
    margin-left: 12px;
    padding: 11px 26px;
    background: #c00; color: #fff;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(204,0,0,0.25);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.08em;
  }
  .header-nav a.cta::after { display: none; }
  .header-nav a.cta:hover {
    background: #a00; color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(204,0,0,0.35);
  }
  .header-nav a.cta.active {
    background: #a00; color: #fff;
  }
}

/* ======== ページ・セクション共通 ======== */
.page-wrap { padding-top: 60px; }
@media (min-width: 768px) {
  .page-wrap { padding-top: 72px; }
}

.section { padding: 40px 16px; }
.section.gray { background: #f7f7f7; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-head { margin-bottom: 28px; position: relative; }
.section-label {
  font-size: 11px; color: #c00; letter-spacing: 2px;
  font-weight: bold; margin-bottom: 6px; display: block;
}
.section-title {
  font-size: 20px; font-weight: bold; color: #222;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
  position: relative;
}
.section-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px; background: #c00;
}

@media (min-width: 768px) {
  .section { padding: 64px 48px; }
  .section-title { font-size: 24px; }
}

/* ======== TELリンク（PCではクリック無効化／SPはタップ発信） ======== */
.tel-link { color: inherit; text-decoration: none; }
@media (min-width: 768px) {
  .tel-link { pointer-events: none; cursor: text; }
}

/* ======== TOP：ヒーロー ======== */
.hero {
  height: 300px; position: relative; overflow: hidden;
  background: #1a1a1a;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hero-body { position: absolute; bottom: 32px; left: 20px; right: 20px; }
.hero-catch { font-size: 11px; color: rgba(255,255,255,0.75); letter-spacing: 2px; margin-bottom: 10px; }
.hero-title { font-size: 20px; font-weight: bold; color: #fff; line-height: 1.6; letter-spacing: 0.02em; }
.hero-sub {
  font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.8;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

@media (min-width: 768px) {
  .hero { height: 480px; }
  .hero-body { left: 64px; bottom: 56px; max-width: 600px; }
  .hero-title { font-size: 30px; line-height: 1.6; }
  .hero-sub { font-size: 15px; margin-top: 18px; padding-top: 18px; }
  .hero-catch { font-size: 13px; }
}

/* ======== TOP：事業内容 ======== */
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-item {
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #c00;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.service-img {
  display: block; width: 100%; height: 160px;
  background: #ccc; overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-body { padding: 16px 18px 20px; }
.service-name { font-size: 15px; font-weight: bold; margin-bottom: 8px; }
.service-name::before {
  content: ''; display: inline-block;
  width: 4px; height: 14px; background: #c00;
  margin-right: 8px; vertical-align: middle;
}
.service-desc { font-size: 12px; color: #777; line-height: 1.8; }

@media (min-width: 768px) {
  .service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ======== TOP：会社概要 ======== */
.about-map { width: 100%; height: 220px; margin-bottom: 20px; border: none; }
.about-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.about-table th,
.about-table td {
  border: 1px solid #e0e0e0; padding: 10px 12px;
  text-align: left; line-height: 1.7;
}
.about-table th {
  background: #f5f5f5; width: 90px; white-space: nowrap;
  font-weight: bold; color: #444;
}
.about-table .tel-link { color: #c00; }

@media (min-width: 768px) {
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .about-map { height: 100%; min-height: 320px; margin-bottom: 0; }
}

/* ======== CTAバナー ======== */
.cta-banner { background: #c00; padding: 48px 16px; text-align: center; }
.cta-banner p { font-size: 16px; color: #fff; margin-bottom: 20px; font-weight: bold; }
.cta-banner .sub { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: -14px; margin-bottom: 20px; font-weight: normal; }
.cta-banner .btn {
  display: inline-block; padding: 14px 40px; background: #fff;
  color: #c00; font-weight: bold; font-size: 14px;
  border-radius: 2px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ======== フッター ======== */
footer { background: #1a1a1a; color: #aaa; padding: 40px 16px 24px; font-size: 11px; line-height: 2; }
.footer-company { font-weight: bold; color: #fff; margin-bottom: 8px; font-size: 14px; }

footer .footer-nav h4 {
  font-size: 12px; color: #fff; margin-bottom: 10px;
  border-left: 3px solid #c00; padding-left: 8px;
}
footer .footer-nav ul { list-style: none; }
footer .footer-nav ul li a {
  color: #888; text-decoration: none; font-size: 11px;
  line-height: 2.2; display: block;
}
footer .footer-nav ul li a:hover { color: #fff; }

footer .sns-wrap { display: flex; gap: 12px; margin-top: 16px; }
footer .sns-wrap a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #333; color: #fff; text-decoration: none;
  font-size: 16px;
}
footer .sns-wrap a:hover { background: #E1306C; }

footer .copy {
  margin-top: 24px; border-top: 1px solid #333;
  padding-top: 16px; font-size: 10px; text-align: center; color: #666;
}
.footer-copy-link {
  color: #888; text-decoration: none; margin-right: 16px;
}
.footer-sns-center { justify-content: center; margin-top: 16px; }

@media (min-width: 768px) {
  footer .footer-inner {
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
    max-width: 1000px; margin: 0 auto 24px;
  }
  footer .sns-wrap { justify-content: flex-end; margin-top: 0; }
}

/* ======== 採用ページ ======== */
.page-hero {
  height: 80px; background: #eee;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.page-hero span { font-size: 10px; color: #999; }
.page-hero h1 { font-size: 18px; font-weight: bold; }

.job-block {
  border: 1px solid #ddd; border-top: 3px solid #c00;
  border-radius: 2px; overflow: hidden;
}
.job-card { padding: 16px; border: none; }
.job-card .tag {
  display: inline-block; background: #c00; color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 2px; margin-bottom: 8px;
}
.job-card .position { font-size: 15px; font-weight: bold; margin-bottom: 10px; }
.job-card .detail { font-size: 12px; color: #888; line-height: 1.8; }

.job-req { border-collapse: collapse; width: 100%; font-size: 13px; margin-top: 0; }
.job-req th,
.job-req td {
  border-top: 1px solid #ddd; padding: 10px 12px;
  text-align: left; vertical-align: top; line-height: 1.7;
}
.job-req th {
  background: #f5f5f5; width: 30%; font-weight: bold; color: #333;
  white-space: nowrap; border-right: 1px solid #ddd;
}

.job-wrapper { margin-bottom: 24px; }
.job-wrapper.last { margin-bottom: 32px; }
.apply-wrap { text-align: center; }
.apply-btn {
  display: inline-block; padding: 14px 48px;
  background: #c00; color: #fff; text-decoration: none;
  font-size: 14px; border-radius: 2px; font-weight: bold;
  letter-spacing: 0.05em;
}

.recruit-mascot {
  position: absolute; right: 0; bottom: -8px;
  width: 90px;
}
.recruit-mascot img { width: 100%; height: auto; display: block; }

@media (min-width: 768px) {
  .recruit-mascot { width: 140px; bottom: -10px; }
}

/* セクション右下に1体だるま */
.section-mascot {
  position: absolute; right: 0; bottom: -6px;
  display: block; width: 60px;
  pointer-events: none;
}
.section-mascot img { width: 100%; height: auto; display: block; }

@media (min-width: 768px) {
  .section-mascot { width: 110px; bottom: -8px; }
}

/* ======== お問い合わせフォーム ======== */
.contact-lead {
  text-align: center; font-size: 13px; color: #555;
  line-height: 1.9; margin-bottom: 32px;
}

.form-errors {
  background: #fff3f3; border: 1px solid #f5c6c6; border-radius: 2px;
  padding: 14px 18px; margin-bottom: 24px; color: #a00;
  font-size: 13px; line-height: 1.8;
}
.form-errors p { font-weight: bold; margin-bottom: 6px; }
.form-errors ul { padding-left: 20px; }
.form-errors li { margin-bottom: 2px; }

/* インラインフィールドエラー */
.form-row .field.is-error,
.field.just-validate-error-field {
  border-color: #c00; background: #fff5f5;
}
.form-row .field.is-error:focus,
.field.just-validate-error-field:focus {
  border-color: #a00; background: #fff;
}
.field-error,
.just-validate-error-label {
  color: #c00; font-size: 11px; margin-top: 6px;
  line-height: 1.5; display: flex; align-items: flex-start; gap: 6px;
}
.field-error::before,
.just-validate-error-label::before {
  content: '!';
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; flex-shrink: 0;
  background: #c00; color: #fff;
  border-radius: 50%; font-size: 10px; font-weight: bold;
  margin-top: 1px;
}
.privacy-check input[type="checkbox"].just-validate-error-field {
  outline: 2px solid #c00; outline-offset: 2px;
}

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 6px; color: #333; }
.required {
  background: #c00; color: #fff; font-size: 9px;
  padding: 2px 5px; border-radius: 2px; margin-left: 4px; font-weight: normal;
}
.required.either { background: #777; }

.form-row .field {
  width: 100%; height: 40px; background: #f9f9f9;
  border: 1px solid #ccc; border-radius: 2px; box-sizing: border-box;
  padding: 0 10px; font-size: 14px; font-family: inherit; color: #333;
}
.form-row .field:focus { outline: none; border-color: #c00; background: #fff; }
.form-row .field.textarea { height: 140px; padding: 10px; resize: vertical; line-height: 1.7; }
.form-row .field.select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: #f9f9f9;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23666' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note {
  font-size: 11px; color: #888; line-height: 1.7;
  background: #f5f5f5; padding: 12px; border-radius: 2px; margin-top: 8px;
}
.privacy-note-link { color: #c00; }
.privacy-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; }
.privacy-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #c00; }
.privacy-check label { cursor: pointer; }

.submit-btn {
  display: block; width: 100%; padding: 14px;
  background: #c00; color: #fff; text-align: center;
  font-size: 14px; font-weight: bold; border-radius: 2px;
  text-decoration: none; margin-top: 20px; border: none; cursor: pointer;
}

@media (min-width: 768px) {
  .contact-lead { font-size: 14px; margin-bottom: 40px; }
  .submit-btn { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ======== 送信完了ページ ======== */
.thanks-wrap { text-align: center; padding: 24px 0 16px; }
.thanks-title { font-size: 20px; font-weight: bold; color: #222; margin-bottom: 16px; }
.thanks-text {
  font-size: 13px; color: #555; line-height: 2;
  max-width: 560px; margin: 0 auto 32px;
}
.thanks-text-em { color: #c00; }
.thanks-back {
  display: inline-block; padding: 12px 36px;
  background: #c00; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: bold; border-radius: 2px;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .thanks-title { font-size: 24px; margin-bottom: 20px; }
  .thanks-text { font-size: 14px; margin-bottom: 40px; }
}

/* ======== プライバシーポリシー ======== */
.privacy-lead { font-size: 13px; line-height: 2; color: #555; margin-bottom: 32px; }
.privacy-block { margin-bottom: 32px; }
.privacy-block h2 {
  font-size: 15px; color: #222; font-weight: bold;
  padding: 8px 12px; background: #f5f5f5;
  border-left: 3px solid #c00; margin-bottom: 12px;
}
.privacy-block p,
.privacy-block li { font-size: 13px; line-height: 2; color: #555; }
.privacy-block ul { list-style: disc; padding-left: 24px; margin: 8px 0; }
.privacy-block ul li { margin-bottom: 4px; }
.privacy-info {
  margin-top: 32px; padding: 20px;
  background: #fafafa; border: 1px solid #eee; border-radius: 2px;
  font-size: 13px; line-height: 2; color: #333;
}
.privacy-info strong { display: inline-block; min-width: 80px; color: #444; }
.privacy-info-link { color: #c00; }
.privacy-date { margin-top: 24px; text-align: right; font-size: 12px; color: #888; }

@media (min-width: 768px) {
  .privacy-lead { font-size: 14px; }
  .privacy-block h2 { font-size: 16px; }
  .privacy-block p,
  .privacy-block li { font-size: 14px; }
}
