/*
Theme Name: KU Connect
Theme URI: https://keiko-ueda.com
Author: KU Connect
Description: KU Connect official website theme
Version: 1.0
License: Private
Text Domain: ku-connect
*/

/* ===================================
   CSS Variables
=================================== */
:root {
  --kc-main:        #5AB8A2;
  --kc-main-light:  #E8F6F3;
  --kc-text:        #333333;
  --kc-text-light:  #666666;
  --kc-bg-gray:     #F8FBFB;
  --kc-border:      #E5E7EB;
  --kc-shadow-card: 0 4px 20px rgba(0,0,0,0.05);
  --kc-shadow-btn:  0 4px 10px rgba(90,184,162,0.3);
  --kc-header-h:    80px;
  --kc-page-max:    1280px;
  --kc-page-md:     1152px;
  --kc-page-sm:     896px;
  --kc-radius-card: 24px;
  --kc-radius-full: 9999px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--kc-text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===================================
   Header
=================================== */
.kc-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--kc-header-h);
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  z-index: 100;
}

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

.kc-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.kc-logo__ku {
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  color: var(--kc-main);
  letter-spacing: -1px;
  line-height: 1;
}

.kc-logo__connect {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.kc-pc-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.kc-pc-nav__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--kc-text);
  transition: color 0.2s;
  white-space: nowrap;
  padding-bottom: 2px;
}

.kc-pc-nav__link:hover { color: var(--kc-main); }

.kc-pc-nav__link--active {
  color: var(--kc-main);
  border-bottom: 2px solid var(--kc-main);
}

.kc-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kc-main);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--kc-radius-full);
  box-shadow: var(--kc-shadow-btn);
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.kc-header__cta:hover { opacity: 0.88; }

.kc-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--kc-text);
  padding: 4px;
  line-height: 1;
}

/* Mobile Nav */
.kc-mobile-nav {
  display: none;
  position: fixed;
  top: var(--kc-header-h);
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 99;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.kc-mobile-nav.is-open { display: flex; }

.kc-mobile-nav__link {
  display: block;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--kc-text);
  border-bottom: 1px solid var(--kc-border);
  transition: background 0.2s, color 0.2s;
}

.kc-mobile-nav__link:hover {
  background: var(--kc-main-light);
  color: var(--kc-main);
}

.kc-mobile-nav__cta {
  margin: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--kc-main);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--kc-radius-full);
}

/* ===================================
   Hero
=================================== */
.kc-hero {
  position: relative;
  padding-top: calc(var(--kc-header-h) + 80px);
  padding-bottom: 100px;
  overflow: hidden;
}

.kc-hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--kc-main-light) 0%, rgba(255,255,255,0) 60%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0% 100%);
  z-index: 0;
}

.kc-hero__wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: auto;
  z-index: 0;
  opacity: 0.5;
}

.kc-hero__inner {
  max-width: var(--kc-page-max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.kc-hero__left { flex: 1; min-width: 0; }

.kc-hero__title {
  font-size: 48px;
  font-weight: 900;
  color: var(--kc-main);
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.kc-hero__desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--kc-text);
  line-height: 1.9;
  margin-bottom: 40px;
}

.kc-hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.kc-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--kc-radius-full);
  font-size: 15px;
  transition: opacity 0.2s, background 0.2s;
}

.kc-hero__btn--primary {
  background: var(--kc-main);
  color: #fff;
  box-shadow: var(--kc-shadow-btn);
}

.kc-hero__btn--primary:hover { opacity: 0.88; }

.kc-hero__btn--outline {
  background: #fff;
  color: var(--kc-main);
  border: 2px solid var(--kc-main);
}

.kc-hero__btn--outline:hover { background: var(--kc-main-light); }

.kc-hero__right {
  flex: 1;
  min-width: 0;
  position: relative;
}

.kc-hero__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.kc-hero__bubble-wrap {
  position: absolute;
  bottom: -32px;
  right: -24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.kc-hero__speech {
  background: #fff;
  border: 1px solid var(--kc-main-light);
  border-radius: var(--kc-radius-full);
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  font-size: 13px;
  font-weight: 700;
  color: var(--kc-main);
  text-align: center;
  line-height: 1.6;
  position: relative;
}

.kc-hero__speech::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #fff;
}

.kc-hero__consultant {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  object-position: top;
}

/* ===================================
   Sections Common
=================================== */
.kc-section { padding: 80px 0; }

.kc-section--gray {
  background: var(--kc-bg-gray);
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.kc-section__inner {
  max-width: var(--kc-page-max);
  margin: 0 auto;
  padding: 0 32px;
}

.kc-section__inner--sm { max-width: var(--kc-page-sm); }
.kc-section__inner--md { max-width: var(--kc-page-md); }

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

.kc-section-header__en {
  display: block;
  color: var(--kc-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.kc-section-header__ja {
  font-size: 30px;
  font-weight: 700;
  color: var(--kc-text);
  letter-spacing: 1px;
}

/* ===================================
   About
=================================== */
.kc-about__text {
  font-size: 17px;
  font-weight: 500;
  color: var(--kc-text-light);
  line-height: 2.1;
  text-align: center;
}

/* ===================================
   Service Cards
=================================== */
.kc-service__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kc-service-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--kc-radius-card);
  box-shadow: var(--kc-shadow-card);
  border-top: 4px solid var(--kc-main);
  display: flex;
  flex-direction: column;
}

.kc-service-card__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.kc-service-card__icon {
  width: 80px;
  height: 80px;
  background: var(--kc-main-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kc-main);
  font-size: 28px;
}

.kc-service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--kc-main);
  text-align: center;
  margin-bottom: 8px;
}

.kc-service-card__subtitle {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--kc-text);
}

.kc-service-card__desc {
  font-size: 13px;
  color: var(--kc-text-light);
  line-height: 1.85;
  margin-bottom: 20px;
  flex-grow: 1;
}

.kc-service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.kc-service-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--kc-text);
}

.kc-service-card__list li i { color: var(--kc-main); flex-shrink: 0; }

.kc-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--kc-main);
  font-weight: 700;
  font-size: 13px;
  justify-content: center;
  transition: opacity 0.2s;
  margin-top: auto;
}

.kc-service-card__link:hover { opacity: 0.7; }

/* ===================================
   Strength
=================================== */
.kc-strength__wrap {
  background: var(--kc-bg-gray);
  border-radius: 24px;
  padding: 64px;
}

.kc-strength__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.kc-strength__item { text-align: center; }

.kc-strength__icon {
  font-size: 48px;
  color: var(--kc-main);
  margin-bottom: 16px;
  line-height: 1;
}

.kc-strength__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kc-main);
  margin-bottom: 12px;
  line-height: 1.5;
}

.kc-strength__desc {
  font-size: 13px;
  color: var(--kc-text-light);
  line-height: 1.85;
}

/* ===================================
   Works
=================================== */
.kc-works__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kc-border);
}

.kc-works__header-left .kc-section-header__en { text-align: left; }

.kc-works__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--kc-main);
  color: var(--kc-main);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--kc-radius-full);
  transition: background 0.2s;
  white-space: nowrap;
}

.kc-works__all-link:hover { background: var(--kc-main-light); }

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

.kc-work-card { cursor: pointer; }

.kc-work-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  height: 160px;
}

.kc-work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kc-work-card:hover .kc-work-card__thumb img { transform: scale(1.05); }

.kc-work-card__tag {
  position: absolute;
  bottom: 8px;
  left: 0;
  background: var(--kc-main);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 4px 4px 0;
}

.kc-work-card__body {
  border: 1px solid var(--kc-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 16px;
}

.kc-work-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--kc-text);
}

.kc-work-card__desc {
  font-size: 12px;
  color: var(--kc-text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.kc-work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--kc-main);
  border: 1px solid var(--kc-main);
  padding: 4px 14px;
  border-radius: var(--kc-radius-full);
  transition: background 0.2s, color 0.2s;
}

.kc-work-card:hover .kc-work-card__link {
  background: var(--kc-main);
  color: #fff;
}

.kc-works__more-mobile {
  display: none;
  text-align: center;
  margin-top: 32px;
}

/* ===================================
   Flow
=================================== */
.kc-flow__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.kc-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.kc-flow__step-circle {
  width: 96px;
  height: 96px;
  background: #fff;
  border: 1px solid var(--kc-main);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  gap: 4px;
}

.kc-flow__step-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--kc-main);
  line-height: 1;
}

.kc-flow__step-icon {
  font-size: 22px;
  color: var(--kc-main);
}

.kc-flow__step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--kc-main);
  margin-bottom: 8px;
}

.kc-flow__step-desc {
  font-size: 12px;
  color: var(--kc-text-light);
  line-height: 1.6;
  max-width: 100px;
}

.kc-flow__arrow {
  display: flex;
  align-items: center;
  padding-bottom: 56px;
  color: #d1d5db;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===================================
   FAQ
=================================== */
.kc-faq__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.kc-faq__list {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kc-faq__item {
  background: var(--kc-bg-gray);
  border-radius: var(--kc-radius-full);
  overflow: hidden;
}

.kc-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 24px;
  cursor: pointer;
  list-style: none;
  outline: none;
  gap: 16px;
  color: var(--kc-text);
}

.kc-faq__item summary::-webkit-details-marker { display: none; }

.kc-faq__toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kc-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
  font-size: 12px;
}

.kc-faq__item[open] .kc-faq__toggle { transform: rotate(45deg); }

.kc-faq__body {
  padding: 0 24px 16px;
  font-size: 14px;
  color: var(--kc-text-light);
  line-height: 1.85;
}

.kc-faq__image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.kc-faq__image {
  width: 100%;
  max-width: 320px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
}

.kc-faq__q-icon {
  position: absolute;
  top: 32px;
  right: -8px;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--kc-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===================================
   Contact CTA
=================================== */
.kc-cta-section { padding: 0 0 80px; }

.kc-cta {
  max-width: var(--kc-page-md);
  margin: 0 auto;
  padding: 0 32px;
}

.kc-cta__inner {
  background: var(--kc-main);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 8px 40px rgba(90,184,162,0.25);
}

.kc-cta__left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
}

.kc-cta__envelope {
  font-size: 48px;
  color: rgba(255,255,255,0.8);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
}

.kc-cta__title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.kc-cta__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.85;
  font-weight: 500;
}

.kc-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--kc-main);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: var(--kc-radius-full);
  white-space: nowrap;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.kc-cta__btn:hover { background: #f3f4f6; }

/* ===================================
   Footer
=================================== */
.kc-footer {
  background: var(--kc-main);
  color: #fff;
  padding: 48px 0;
}

.kc-footer__inner {
  max-width: var(--kc-page-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr;
  gap: 32px;
}

.kc-footer__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.kc-footer__logo-ku {
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

.kc-footer__logo-connect {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.kc-footer__copy { font-size: 13px; opacity: 0.8; }

.kc-footer__nav-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.kc-footer__nav-title + .kc-footer__nav-title,
.kc-footer__nav-list + .kc-footer__nav-title {
  margin-top: 24px;
}

.kc-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kc-footer__nav-list a {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.kc-footer__nav-list a:hover { opacity: 0.6; }

.kc-footer__info-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.kc-footer__info-text {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.9;
}

/* ===================================
   Tablet (769px〜1200px)
=================================== */
@media (min-width: 769px) and (max-width: 1200px) {
  .kc-service__grid { grid-template-columns: repeat(2, 1fr); }
  .kc-works__grid   { grid-template-columns: repeat(2, 1fr); }
  .kc-strength__wrap { padding: 40px; }
  .kc-hero__title { font-size: 38px; }
}

/* ===================================
   Mobile (768px以下)
=================================== */
@media (max-width: 768px) {
  /* Header */
  .kc-pc-nav,
  .kc-header__cta { display: none; }
  .kc-hamburger   { display: block; }
  .kc-header__inner { padding: 0 20px; }

  /* Hero */
  .kc-hero {
    padding-top: calc(var(--kc-header-h) + 40px);
    padding-bottom: 80px;
  }
  .kc-hero__inner { flex-direction: column; padding: 0 20px; gap: 32px; }
  .kc-hero__title { font-size: 28px; }
  .kc-hero__desc  { font-size: 14px; }
  .kc-hero__right { width: 100%; }
  .kc-hero__bubble-wrap { bottom: -20px; right: -8px; }
  .kc-hero__speech { font-size: 11px; padding: 8px 14px; }
  .kc-hero__consultant { width: 56px; height: 56px; }

  /* Sections */
  .kc-section { padding: 56px 0; }
  .kc-section__inner { padding: 0 20px; }
  .kc-section-header { margin-bottom: 32px; }
  .kc-section-header__ja { font-size: 22px; }

  /* About */
  .kc-about__text { font-size: 14px; }

  /* Service */
  .kc-service__grid { grid-template-columns: 1fr; gap: 20px; }

  /* Strength */
  .kc-strength__wrap { padding: 28px 20px; border-radius: 16px; }
  .kc-strength__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .kc-strength__icon { font-size: 36px; }

  /* Works */
  .kc-works__grid   { grid-template-columns: 1fr; gap: 20px; }
  .kc-works__all-link { display: none; }
  .kc-works__more-mobile { display: block; }

  /* Flow */
  .kc-flow__steps { flex-direction: column; align-items: center; gap: 8px; }
  .kc-flow__arrow { transform: rotate(90deg); padding-bottom: 0; }
  .kc-flow__step-desc { max-width: 200px; }

  /* FAQ */
  .kc-faq__inner { flex-direction: column; gap: 24px; }
  .kc-faq__image-wrap { display: none; }
  .kc-faq__item summary { font-size: 14px; padding: 14px 20px; border-radius: 0; }
  .kc-faq__item { border-radius: 12px; }

  /* CTA */
  .kc-cta-section { padding: 0 0 56px; }
  .kc-cta { padding: 0 20px; }
  .kc-cta__inner { flex-direction: column; padding: 28px 24px; border-radius: 20px; }
  .kc-cta__left  { flex-direction: column; gap: 12px; }
  .kc-cta__envelope { font-size: 36px; }
  .kc-cta__title { font-size: 20px; }
  .kc-cta__btn   { width: 100%; justify-content: center; }

  /* Footer */
  .kc-footer__inner { grid-template-columns: 1fr; padding: 0 20px; }
}
