/* ========================================
   合同会社sloows コーポレートサイト
   Design: Warm Brown + Natural White
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #a9785d;
  --color-primary-light: #c19a7f;
  --color-primary-dark: #8b5e42;
  --color-logo: #38231b;
  --color-text: #0d1217;
  --color-text-light: #5a6370;
  --color-bg: #faf8f5;
  --color-bg-warm: #f0ebe4;
  --color-bg-section: #f5f0ea;
  --color-white: #ffffff;
  --color-border: #e0d6cc;
  --color-footer: #2b1d15;
  --color-footer-text: #c4b5a6;

  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Outfit', sans-serif;

  --container-max: 1100px;
  --container-narrow: 680px;
  --section-padding: clamp(60px, 10vw, 100px);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: 0.3s ease;

  --shadow-sm: 0 2px 8px rgba(56, 35, 27, 0.06);
  --shadow-md: 0 4px 20px rgba(56, 35, 27, 0.08);
  --shadow-lg: 0 8px 40px rgba(56, 35, 27, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-ja);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__logo {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
}

.nav__link--cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 29, 21, 0.55) 0%,
    rgba(43, 29, 21, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.hero__theme {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero__description {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 40px;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ja);
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.btn--large {
  font-size: 15px;
  padding: 14px 36px;
}

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

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

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

/* === SECTIONS === */
.section {
  padding: var(--section-padding) 0;
}

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

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

.section__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section__label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--color-logo);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.section__subtitle {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--color-text-light);
  margin-top: 12px;
  line-height: 1.7;
}

/* === ABOUT === */
.about {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.about__logo {
  flex-shrink: 0;
  width: 160px;
}

.about__logo img {
  width: 100%;
  opacity: 0.9;
}

.about__content {
  flex: 1;
}

.about__lead {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--color-logo);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about__text {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}

.about__text:last-child {
  margin-bottom: 0;
}

/* === BUSINESS CARDS === */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.business-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.business-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.business-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.business-card:hover .business-card__image img {
  transform: scale(1.05);
}

.business-card__body {
  padding: 28px 24px 32px;
}

.business-card__title {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--color-logo);
  line-height: 1.5;
  margin-bottom: 14px;
}

.business-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* === COMPANY TABLE === */
.company-table {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th,
.company-table td {
  padding: 20px 28px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.company-table th {
  width: 140px;
  font-weight: 600;
  color: var(--color-logo);
  background: rgba(169, 120, 93, 0.06);
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text);
  line-height: 1.8;
}

.company-table td a {
  color: var(--color-primary);
}

.company-table td a:hover {
  text-decoration: underline;
}

/* === FORM === */
.form {
  background: var(--color-white);
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-logo);
  margin-bottom: 8px;
}

.required {
  color: #c0392b;
  margin-left: 4px;
  font-size: 12px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(169, 120, 93, 0.12);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #b0a89e;
}

.form__error {
  display: none;
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
}

.form__error.show {
  display: block;
}

.form__submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 16px;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 16px;
}

/* Form success/error states */
.form__status {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin-top: 16px;
  display: none;
  font-size: 15px;
  font-weight: 500;
}

.form__status--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form__status--error {
  background: #fce4ec;
  color: #c62828;
}

/* === FOOTER === */
.footer {
  background: var(--color-footer);
  padding: 60px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand-block {
  flex-shrink: 0;
}

.footer__brand {
  margin-bottom: 12px;
}

.footer__logo {
  height: 48px;
  width: auto;
}

.footer__tagline {
  font-size: 13px;
  color: var(--color-primary-light);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.footer__text {
  font-size: 13px;
  color: var(--color-footer-text);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-footer-text);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px 32px 32px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(224, 214, 204, 0.4);
  }

  .nav__link--cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .about {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .about__logo {
    width: 120px;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-table th,
  .company-table td {
    padding: 16px 20px;
    font-size: 14px;
  }

  .company-table th {
    width: 110px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    letter-spacing: 0.04em;
  }

  .company-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
    background: transparent;
  }

  .company-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .company-table tr {
    display: block;
    padding: 8px 0;
  }

  .form {
    padding: 24px 20px;
  }
}
