*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2c4a2e;
  --green-light: #3a5e3c;
  --dark: #1a1a1a;
  --gray: #666;
  --light-gray: #f5f4f0;
  --border: #ddd;
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-icon svg {
  width: 36px;
  height: 36px;
}

.logo-text { line-height: 1.2; }
.logo-text strong { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--dark); }
.logo-text span { font-size: 9px; color: var(--gray); letter-spacing: 0.06em; display: block; }

nav { display: flex; gap: 32px; }
nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dark);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
nav a:hover, nav a.active { border-bottom-color: var(--green); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
}

.hero-vertical-text {
  position: absolute;
  left: -70px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #aaa;
  white-space: nowrap;
}

.hero-left h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero-left p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 320px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  width: fit-content;
}
.btn-primary:hover { background: var(--green-light); }

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-script {
  position: absolute;
  right: 40px;
  bottom: 60px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 34px);
  color: rgba(44,74,46,0.25);
  line-height: 1.4;
  text-align: right;
  pointer-events: none;
}

/* ========== SECTION COMMON ========== */
section { padding: 100px 80px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--dark);
}

/* ========== ABOUT ========== */
.about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-left h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-left p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 36px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--dark);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.about-right {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 400px;
}

.about-photo {
  border-radius: 2px;
  overflow: hidden;
}

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

.about-photo:first-child { grid-row: 1 / 3; }

/* ========== ABOUT EXPAND ========== */
.about-expand {
  display: none;
  grid-column: 1 / -1;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.about-expand.open { display: block; }

.about-expand-inner {
  max-width: 720px;
}

.about-expand-inner p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-expand-inner h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.about-expand-inner ul {
  list-style: none;
  margin-bottom: 32px;
}

.about-expand-inner ul li {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
  padding-left: 16px;
  position: relative;
}

.about-expand-inner ul li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.btn-outline.active { background: var(--dark); color: var(--white); }

/* ========== SERVICE ========== */
.service {
  background: var(--light-gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); z-index: 1; position: relative; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--dark);
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.link-more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--dark);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.link-more:hover { gap: 14px; }
.link-more.active { color: var(--gray); border-bottom-color: var(--gray); }

.service-expand {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray);
  line-height: 1.9;
}
.service-expand.open { display: block; }

/* ========== PROFILE ========== */
.profile {
  background: var(--dark);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/profile-bg.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.12;
  pointer-events: none;
}

.profile-left .section-label { color: #888; }
.profile-left .section-label::after { background: #888; }

.profile-left h2 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.6;
}

.profile-left p {
  font-size: 12px;
  color: #aaa;
  line-height: 1.9;
  margin-bottom: 32px;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: all 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-outline-white.active { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }

/* ========== PROFILE EXPAND ========== */
.profile-expand {
  display: none;
  grid-column: 1 / -1;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

.profile-expand.open { display: block; }

.profile-expand-inner {
  max-width: 720px;
}

.profile-expand-inner p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.9;
  margin-bottom: 32px;
}

.profile-expand-inner h3 {
  font-size: 13px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile-expand-inner ul {
  list-style: none;
  margin-bottom: 32px;
}

.profile-expand-inner ul li {
  font-size: 13px;
  color: #aaa;
  line-height: 1.9;
  padding-left: 16px;
  position: relative;
}

.profile-expand-inner ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #888;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat { text-align: center; }

.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  opacity: 0.7;
}

.stat-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* ========== FOOTER ========== */
footer {
  background: #111;
  color: var(--white);
  padding: 48px 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo strong { color: var(--white); }
.footer-logo span { color: #666; }

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #888;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: #666; color: var(--white); }
.footer-social svg { width: 14px; height: 14px; }

.footer-copy {
  text-align: center;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.05em;
  padding-top: 24px;
  border-top: 1px solid #222;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 99;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--green); }
#back-to-top svg { width: 16px; height: 16px; }

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-direction: column;
  padding: 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dark);
  border-bottom: 1px solid var(--light-gray);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--light-gray); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}
.mobile-overlay.open { display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  header { padding: 0 24px; }
  nav { gap: 16px; }
  nav a { font-size: 11px; }

  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 300px; }
  .hero-left { padding: 60px 24px 40px; }

  section { padding: 64px 24px; }

  .about { grid-template-columns: 1fr; }
  .about-right { height: 280px; }

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

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

  footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; gap: 24px; }
}
.overview {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 40px;
}

.overview h2 {
  margin-bottom: 48px;
}

.overview-table {
  margin: 0;
  border: 1px solid #dde8dd;
  border-radius: 10px;
  overflow: hidden;
}

.overview-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #dde8dd;
  transition: background 0.15s;
}
.overview-row:last-child {
  border-bottom: none;
}
.overview-row:hover {
  background: #f4f9f4;
}

.overview-row dt {
  flex: 0 0 160px;
  padding: 20px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #3d6b40;
  background: #eef5ee;
  border-right: 1px solid #dde8dd;
  display: flex;
  align-items: center;
}

.overview-row dd {
  margin: 0;
  padding: 20px 28px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  display: flex;
  align-items: center;
}

.overview-row dd a {
  color: #6a9a6c;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.overview-row dd a:hover {
  opacity: 0.7;
}

/* ---- モバイル ---- */
@media (max-width: 768px) {
  .overview {
    padding: 64px 24px;
  }

  .overview h2 {
    margin-bottom: 32px;
  }

  .overview-row {
    flex-direction: column;
  }

  .overview-row dt {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #dde8dd;
    padding: 12px 16px;
  }

  .overview-row dd {
    padding: 12px 16px;
  }
}
