@charset "UTF-8";

/* ============================================
   トップページ - ヒーロー（Figma準拠：画像なし・緑グラデのみ）
============================================ */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  background: linear-gradient(180deg, #5BAA88 0%, #4E9D7C 40%, #6B95A8 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-message {
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.hero-catch {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-body {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 14px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.05em;
}
.hero-body p + p { margin-top: 24px; }

/* ロード時のアニメーション */
.hero-catch,
.hero-body,
.hero-message .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease forwards;
}
.hero-catch { animation-delay: 0.2s; }
.hero-body { animation-delay: 0.5s; }
.hero-message .btn { animation-delay: 0.8s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   トップページ - 共通セクション設計（Figma準拠）
============================================ */
.intro-section {
  padding: 100px 0;
  position: relative;
  background: var(--white);
  color: var(--gray-900);
}

.intro-section .label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--primary);
  text-align: center;
  margin-bottom: 64px;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.intro-content.reverse > :first-child { order: 2; }
.intro-content.reverse > :last-child { order: 1; }

.intro-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.intro-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.intro-text h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  color: var(--gray-900);
}
.intro-text h3 .small {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-700);
}
.intro-text p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  color: var(--gray-700);
}

/* サブ画像（テキスト下に独立配置・Figma準拠でジグザグ） */
.intro-sub-image {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  justify-content: center; /* デフォルトは中央 */
}
.intro-sub-image.align-right  { justify-content: flex-end; padding-right: 80px; }
.intro-sub-image.align-left   { justify-content: flex-start; padding-left: 80px; }
.intro-sub-image.align-center { justify-content: center; }
.intro-sub-image img {
  width: 195px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.intro-sub-image.portrait img {
  width: 117px;
  height: 156px;
}

/* ============================================
   下層ページ共通 - ページタイトル
============================================ */
.page-hero {
  padding: 40px 0 60px;
  text-align: center;
}
.page-hero .breadcrumb {
  text-align: left;
  max-width: var(--container-max);
  margin: 0 auto 32px;
  padding: 0 24px;
}
.page-hero h1 {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 8px;
}
.page-hero .ja {
  font-size: 16px;
  color: var(--gray-700);
  letter-spacing: 0.1em;
}

/* ============================================
   施工事例ページ - WORKS
============================================ */
.works-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 60px;
}
.works-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-right: 1px solid var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.works-tab:last-child { border-right: none; }
.works-tab.active {
  color: var(--primary);
  font-weight: 600;
}
.works-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.works-tab:hover { color: var(--primary); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.works-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
}
.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.works-item:hover img { transform: scale(1.05); }
.works-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.works-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.works-pagination a,
.works-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  color: var(--gray-700);
}
.works-pagination a:hover,
.works-pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================
   会社案内ページ - COMPANY
============================================ */
.company-message {
  max-width: 880px;
  margin: 0 auto 80px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 60px;
}
.company-message-head {
  text-align: center;
  margin-bottom: 40px;
}
.company-message-head .label {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.15em;
}
.company-message-head h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gray-900);
  letter-spacing: 0.05em;
}
.company-message-body p {
  font-size: 15px;
  line-height: 2.2;
  margin-bottom: 24px;
  color: var(--gray-700);
}
.company-message-sign {
  text-align: right;
  margin-top: 40px;
  font-size: 14px;
  color: var(--gray-700);
}
.company-message-sign strong {
  display: block;
  font-size: 16px;
  color: var(--gray-900);
  font-weight: 600;
  margin-top: 4px;
}

.company-philosophy {
  background: linear-gradient(180deg, #E8F3EE 0%, #D5E8DD 100%);
  padding: 80px 0;
  margin-bottom: 80px;
}
.philosophy-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
}
.philosophy-logo {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.philosophy-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.philosophy-content h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.philosophy-content .principle {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 32px;
}
.philosophy-content h4 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.philosophy-content ul li {
  font-size: 14px;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.philosophy-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.company-overview {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.company-overview h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--gray-100);
}
.company-table th,
.company-table td {
  text-align: left;
  padding: 18px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.company-table th {
  width: 30%;
  background: var(--gray-50);
  font-weight: 500;
  color: var(--gray-900);
}
.company-table td {
  color: var(--gray-700);
  line-height: 1.8;
}

/* ============================================
   お問い合わせページ - CONTACT
============================================ */
.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}
.contact-intro p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
}
.contact-tel {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 24px 0 4px;
  letter-spacing: 0.05em;
}
.contact-tel a { color: var(--gray-900); }
.contact-tel-note {
  font-size: 13px;
  color: var(--gray-500);
}

.contact-form {
  max-width: 760px;
  margin: 60px auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 60px;
}
.form-row {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}
.form-row label {
  font-size: 14px;
  font-weight: 500;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.required-badge {
  background: var(--required);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  transition: var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(60, 167, 122, 0.15);
}
.form-row textarea {
  min-height: 140px;
  resize: vertical;
}
.form-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.privacy-box {
  border-top: 1px solid var(--gray-100);
  padding-top: 40px;
  margin-top: 40px;
}
.privacy-box h3 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.privacy-content {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-700);
  max-height: 220px;
  overflow-y: auto;
}
.privacy-content p { margin-bottom: 12px; }
.privacy-content ol { list-style: decimal; padding-left: 20px; }
.privacy-content ol li { margin-bottom: 8px; }

.privacy-agree {
  text-align: center;
  margin: 32px 0 28px;
}
.privacy-agree label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.privacy-agree input { width: 18px; height: 18px; cursor: pointer; }

.form-submit {
  text-align: center;
}
.form-submit button {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 16px 60px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit button:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 1024px) {
  .intro-content { gap: 40px; }
  .intro-section { padding: 80px 0; }
}

@media (max-width: 768px) {
  /* ヒーロー */
  .hero-message { padding: 50px 20px 70px; }
  .hero-catch { font-size: 22px; margin-bottom: 28px; line-height: 1.6; }
  .hero-body { font-size: 13px; line-height: 2; margin-bottom: 36px; }

  /* セクション */
  .intro-section { padding: 60px 0; }
  .intro-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .intro-content.reverse > :first-child { order: unset; }
  .intro-content.reverse > :last-child { order: unset; }
  .intro-image img { height: 220px; }
  .intro-sub-image img { width: 160px; height: 107px; }
  .intro-sub-image.portrait img { width: 100px; height: 134px; }
  .intro-sub-image.align-right { padding-right: 24px; }
  .intro-sub-image.align-left { padding-left: 24px; }
  .intro-text h3 { font-size: 18px; }

  /* ページタイトル */
  .page-hero { padding: 24px 0 40px; }
  .page-hero h1 { font-size: 28px; }

  /* WORKS */
  .works-tabs { grid-template-columns: repeat(2, 1fr); }
  .works-tab { padding: 14px 8px; font-size: 13px; }
  .works-tab:nth-child(2) { border-right: none; }
  .works-tab:nth-child(-n+2) { border-bottom: 1px solid var(--gray-100); }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* COMPANY */
  .company-message {
    padding: 32px 24px;
    border-radius: 4px;
  }
  .company-message-head h2 { font-size: 18px; }
  .philosophy-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .philosophy-content { text-align: left; }
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .company-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  /* CONTACT */
  .contact-form { padding: 32px 24px; border-radius: 4px; }
  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .form-row label { padding-top: 0; }
  .contact-tel { font-size: 28px; }
}

@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .hero-catch { font-size: 18px; }
}


/* 社長あいさつ - 写真枠を署名の隣に配置（Figma準拠：PHOTO=90×70, gap=18px） */
.company-message-footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 18px;
  margin-top: 32px;
  padding-top: 11px;
  flex-wrap: wrap;
}
.company-message-footer .company-message-sign {
  margin-top: 0;
  text-align: right;
  font-size: 12px;
  line-height: 19.2px;
  color: #555;
  flex: 0 0 auto;
}
.company-message-footer .company-message-sign strong {
  font-size: 13px;
  color: #555;
  font-weight: 600;
  margin-top: 8px;
}
.company-message-photo {
  width: 110px;
  height: 140px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.company-message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .company-message-footer {
    gap: 16px;
  }
  .company-message-photo {
    width: 90px;
    height: 115px;
  }
}

