/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-primary: #FFA965;
  --color-primary-light: #FFF1E6;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #FFFFFF;
  --color-background-sub: #FFF9F4;
  --color-border: #EAEAEA;
  --container-width: 1200px;
  --partner-content-width: 800px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --section-padding: clamp(56px, 8vw, 96px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
}

section {
  padding: var(--section-padding) 0;
}

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

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

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--color-text-light);
}

.placeholder {
  border: 2px dashed #d8d0c8;
  background: #fdfbf9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
}

/* fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease;
  font-size: 1rem;
}

.btn-small {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

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

.nav-cta a {
  background: var(--color-primary);
  color: var(--color-text);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta a:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Hero (first view)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 24, 12, 0.55), rgba(35, 24, 12, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 120px 0;
}

.hero-brand {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 14px;
}

.hero-copy {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

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

/* ==========================================================================
   Stats (数字で見るH.E.)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 24px 10px;
}

.stat-number {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-number span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-left: 4px;
}

.stat-label {
  margin-top: 6px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.stats-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   About (私たちについて)
   ========================================================================== */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.about-text h2 {
  text-align: left;
}

.about-text h2::after {
  margin: 14px 0 0;
}

.about-text p {
  color: var(--color-text-light);
}

/* ==========================================================================
   Services (事業内容)
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card .placeholder {
  height: 200px;
  margin-bottom: 20px;
}

.card-number {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
}

/* ==========================================================================
   Results / Cases (活動実績・事例)
   ========================================================================== */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-card .placeholder {
  height: 180px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  font-size: 0.9rem;
}

.case-meta div {
  display: flex;
  flex-direction: column;
}

.case-meta dt {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.case-meta dd {
  font-weight: 600;
}

.case-role {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.case-card .btn {
  align-self: flex-start;
}

/* ==========================================================================
   Partners (協力店ネットワーク)
   ========================================================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.partners-grid .placeholder {
  height: 110px;
}

.partners-cta {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   Community (地域貢献活動)
   ========================================================================== */
.community-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.community-photo {
  width: 100%;
  height: 260px;
}

.community-text {
  text-align: center;
  max-width: 640px;
  color: var(--color-text-light);
}

/* ==========================================================================
   Message (代表メッセージ)
   ========================================================================== */
.message {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.rep-image {
  width: 100%;
  max-width: 320px;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.message-name {
  font-weight: 700;
  margin-bottom: 12px;
}

.message-text {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  text-align: center;
}

.contact .section-lead {
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-email {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ==========================================================================
   Company overview
   ========================================================================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.company-table th,
.company-table td {
  border: 1px solid var(--color-border);
  padding: 15px;
  text-align: left;
}

.company-table th {
  width: 30%;
  background: var(--color-background-sub);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--color-text);
  color: #fff;
  padding: 56px 0 28px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .site-logo {
  width: 44px;
  height: 44px;
}

.footer-address {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-nav ul,
.footer-sns ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a,
.footer-sns a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-sns a:hover,
.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .cases {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-image,
  .community-photo {
    height: 380px;
  }
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  #nav-menu {
    display: block;
  }

  .about-layout {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .about-layout .about-image {
    flex: 1;
  }

  .about-layout .about-text {
    flex: 1;
  }

  .message {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .message-name,
  .message-text {
    text-align: left;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 899px) {
  #nav-menu {
    display: none;
  }

  #nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }

  #nav-menu.active ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-cta a {
    display: block;
    text-align: center;
  }
}
