/*
Theme Name: KINZOKUKAKOU.COM
Template: affinger
Description: AFFINGER6 対応
Version: 20210719
*/

/* ===== ベース ===== */

.kk-top {
  background: #fff;
  color: #111827;
}

.kk-container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* ===== ヘッダー ===== */

.kk-header {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
}

.kk-header-inner {
  width: min(1180px, 90%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kk-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111827;
  font-size: 26px;
  font-weight: 800;
}

.kk-logo-mark {
  width: 42px;
  height: 42px;
  border: 2px solid #cbd5e1;
  display: grid;
  place-items: center;
}

.kk-logo small {
  display: block;
  font-size: 10px;
  color: #64748b;
}

.kk-nav {
  display: flex;
  gap: 24px;
}

.kk-nav a {
  text-decoration: none;
  color: #111827;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.kk-nav small {
  display: block;
  font-size: 9px;
  color: #94a3b8;
}

/* ===== HERO ===== */

.kk-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.98) 0%,
      rgba(255,255,255,.88) 38%,
      rgba(255,255,255,.12) 67%
    ),
    url("images/main-visual.jpg") center right / cover no-repeat;
}

.kk-hero-text {
  width: 48%;
}

.kk-hero h1 {
  font-size: 42px;
  line-height: 1.5;
  margin-bottom: 26px;
  letter-spacing: .04em;
}

.kk-hero p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 32px;
}

.kk-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 34px;
  border: 1px solid #111827;
  text-decoration: none;
  color: #111827;
  background: #fff;
  font-weight: 700;
  transition: .3s;
}

.kk-btn:hover {
  background: #111827;
  color: #fff;
}

/* ===== SCROLL ===== */

.kk-scroll {
  position: absolute;
  left: 40px;
  bottom: 56px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.kk-scroll span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: .25em;
  color: #111827;
  margin-bottom: 14px;
}

.kk-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 78px;
  background: #d1d5db;
}

.kk-scroll::before {
  content: "";
  position: absolute;
  top: 82px;
  width: 1px;
  height: 24px;
  background: #111827;
  animation: kk-scroll-dot 1.5s ease-in-out 3;
}

@keyframes kk-scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(54px);
    opacity: 0;
  }
}

/* ===== セクション ===== */

.kk-section {
  padding: 80px 0;
}

.kk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.kk-head h2 {
  font-size: 32px;
}

.kk-process-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}

.kk-process-card {
  min-height: 140px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #111827;
  background: #fff;
}

.kk-process-card p {
  margin-top: 12px;
}

.kk-article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kk-article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.kk-about {
  background: #f8fafc;
  padding: 90px 0;
}

.kk-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.kk-about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.kk-feature {
  padding: 60px 0;
}

.kk-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.kk-logo{
  display:flex;
  align-items:center;
  width:260px;
  height:82px;
  overflow:hidden;
  text-decoration:none;
}

.kk-logo-img{
  width:260px;
  height:60px;
  object-fit:contain;
  object-position:left center;
  display:block;
}

.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 60px 0 0;
  color: #111;
}

.footer-inner {
  width: min(1120px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 120px;
  gap: 36px;
  align-items: flex-start;
}

.footer-logo img {
  width: 160px;
  height: auto;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 2;
  color: #444;
}

.footer-nav h3 {
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-nav a {
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #0b2a5b;
}

.footer-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.footer-copy {
  margin-top: 50px;
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-image {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 40px;
  }
}


.kk-feature-item img{
  width:64px;
  height:64px;
}

/* ========================================
   トップページの横幅制限を解除
======================================== */

body.kk-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
}

/* AFFINGER側のレイアウト制限を解除 */
body.kk-home #wrapper,
body.kk-home #content,
body.kk-home #contentInner,
body.kk-home #main,
body.kk-home main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* メインコンテンツ全体を画面幅まで広げる */
body.kk-home .kk-top {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
}

/* 各セクションは画面幅いっぱい */
body.kk-home .kk-hero,
body.kk-home .kk-section,
body.kk-home .kk-about,
body.kk-home .kk-feature {
  width: 100%;
  max-width: none;
}

/* 中身だけ中央に収める */
body.kk-home .kk-container {
  width: min(1180px, 90%);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== レスポンシブ ===== */

@media (max-width: 1024px) {
  .kk-process-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (max-width: 768px) {
  .kk-nav {
    display: none;
  }

  .kk-hero {
    min-height: 500px;
  }

  .kk-hero-text {
    width: 100%;
  }

  .kk-hero h1 {
    font-size: 36px;
  }

  .kk-process-grid,
  .kk-article-grid,
  .kk-feature-grid {
    grid-template-columns: 1fr;
  }

  .kk-scroll {
    display: none;
  }



}