/*
Theme Name: Kiniham Original Theme
Author: Kiniham
Version: 1.0
*/

/* =========================
   Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.9;
  color: #475569;
  background-color: #fff;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* =========================
   Header
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ナビ */
.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3f6db5;
}

/* =========================
   FV
========================= */
.top-section {
  height: 70vh;
  min-height: 520px;
  padding-top: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.top-background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.03) 0%,
      rgba(15, 23, 42, 0.12) 45%,
      rgba(15, 23, 42, 0.22) 100%
    ),
    url("/wp-content/themes/kiniham/assets/img/company-fv.jpg");
  background-size: cover;
  background-position: center;
}

.top-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 60px;
}

.top-title {
  font-size: 44px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 25px rgba(0,0,0,0.28);
}

.top-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 15px rgba(0,0,0,0.22);
}

/* =========================
   Section Base
========================= */
.section {
  padding: 140px 0;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 80px;
}

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

.section-title {
  font-size: 34px;
  font-weight: 300;
  color: #233f9a;
  margin-bottom: 24px;
}

.section-line {
  width: 60px;
  height: 2px;
  background: #233f9a;
  margin: 0 auto;
  opacity: 0.6;
}

.section-text {
  font-size: 16px;
  color: #475569;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================
   Service
========================= */
.service-section {
  background: #f8fafc;
}

.service-content {
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ★ aタグ化対応：display / link装飾を明示 */
.service-card {
  display: block;              /* ← 追加（超重要） */
  text-decoration: none;       /* ← 追加 */
  color: inherit;              /* ← 追加 */

  background: #fff;
  padding: 40px 32px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* 左→右に流れる“薄い紺の光” */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(35, 63, 154, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(35, 63, 154, 0.15);
}

.service-card h3 {
  font-size: 16px;
  font-weight: 400;
  color: #233f9a;
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* もし view more を入れるなら */
.service-link {
  font-size: 13px;
  color: #3f6db5;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #233f9a;
}

/* =========================
   Service Text Align
========================= */
.service-card {
  text-align: center;
}

.service-card h3 {
  text-align: center;
}

.service-card p {
  text-align: center;
}

.service-link {
  display: inline-block;
}



/* =========================
   Company Section
========================= */
.company-section {
  background: #ffffff;
}

/* タイトルと同じ“中央基準”にする */
.company-section .company-info {
  max-width: 720px;
  margin: 0 auto;          /* ここが一番重要 */
}

/* 念のため section-inner の影響を切る */
.company-section .company-list {
  margin: 0 auto;
}

/* 定義リスト（2カラム） */
.company-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 56px;
  row-gap: 48px;
}

/* 左ラベル */
.company-list dt {
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: #233f9a;
  letter-spacing: 0.08em;
}

/* 右テキスト */
.company-list dd {
  margin: 0;
  font-size: 16px;
  color: #475569;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* =========================
   Contact Section
========================= */
.contact-section {
  background: #f8fafc;
}

.contact-section .section-header {
  margin-bottom: 72px;
}

.contact-section .section-text {
  font-size: 15px;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 64px;
}

/* フォーム全体 */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 入力欄 */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 22px 26px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 300;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

/* プレースホルダー */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #cbd5e1;
  letter-spacing: 0.06em;
}

/* フォーカス時 */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #233f9a;
  box-shadow: 0 0 0 3px rgba(35, 63, 154, 0.12);
}

/* textareaサイズ */
.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

/* 送信ボタン */
.submit-btn {
  margin-top: 20px;
  align-self: center;
  padding: 18px 56px;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  background: #6f7fbd;
  border: none;
  border-radius: 4px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* hover */
.submit-btn:hover {
  background: #233f9a;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(35, 63, 154, 0.25);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .contact-section .section-text {
    font-size: 14px;
    margin-bottom: 48px;
  }

  .contact-form {
    padding: 0 16px;
  }

  .submit-btn {
    width: 100%;
  }
}



/* =========================
   Responsive
========================= */
@media (max-width: 768px) {

  /* =========================
     Header
  ========================= */
  .header-inner {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ナビはJS制御のため常にflex */
  .nav {
    display: flex;
  }

  .nav-link {
    font-size: 16px;
  }

  /* FV */
  .top-title {
    font-size: 32px;
  }

  /* Section base */
  .section {
    padding: 100px 0;
  }

  .section-inner {
    padding: 0 20px;
  }

  /* Service */
  .service-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Company */
  .company-info {
    max-width: 100%;
    padding: 0;
  }

  .company-list {
    grid-template-columns: 1fr;
    row-gap: 24px;
    column-gap: 0;
  }

  .company-list dt {
    font-size: 13px;
    margin-bottom: -8px;
  }

  .company-list dd {
    font-size: 15px;
  }
}


/* =========================
   Hamburger
========================= */
.hamburger {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #233f9a;
  border-radius: 2px;
}


/* SPで表示 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}


/* =========================
   Header scroll state
========================= */
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(35, 63, 154, 0.12);
}


/* =========================
   Nav active
========================= */
.nav-link.is-active {
  color: #233f9a;
}


/* =========================
   Section fade-in
========================= */
.section,
.service-card {
  opacity: 0;
  transform: translateY(30px);
}

.section.is-visible,
.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* =========================
   Hero animation
========================= */
.hero-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.hero-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}


/* =========================
   Contact
========================= */
.submit-btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-thanks {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  letter-spacing: 0.06em;
}


/* =========================
   JS Fade Final
========================= */
.js-fade {
  opacity: 0;
  transform: translateY(30px);
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card.js-fade {
  transition: opacity 0.6s ease, transform 0.6s ease;
}


/* =========================
   SP Simple Dropdown（完成形）
========================= */
@media (max-width: 768px) {

  .nav {
    position: absolute;
    top: 64px;
    right: 20px;

    width: 180px;
    padding: 16px 0;

    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all .25s ease;

    z-index: 9999;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 14px;
  }
}

/* ==================================================
   Linxy Contact SP FIX（最優先）
================================================== */
@media (max-width: 768px) {

  .lp-contact {
    padding: 60px 16px 80px;
  }

  .lp-contact h1 {
    font-size: 22px;
  }

  .lp-contact-lead {
    font-size: 13px;
    margin-bottom: 28px;
  }

  /* フォームカード */
  .lp-contact form,
  .lp-contact .wpcf7 form {
    max-width: 100%;
    padding: 24px 18px 28px;
    border-radius: 16px;
  }

  /* 入力 */
  .lp-contact input,
  .lp-contact textarea {
    font-size: 14px;
    padding: 14px;
  }

  /* 送信ボタン */
  .lp-contact button,
  .lp-contact input[type="submit"],
  .lp-contact .wpcf7-submit {
    width: 100%;
  }
}

/* =========================
   Footer
========================= */
.footer {
  background: #233f9a;
  padding: 22px 20px;
  text-align: center;
}

.footer-inner {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.05em;
}