/*
Theme Name: Minemori
Theme URI: https://minemori.co.jp
Author: Minemori Co., Ltd.
Description: 株式会社ミネモリ 公式サイトテーマ
Version: 1.0.0
License: Private
Text Domain: minemori
*/

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

:root {
  --green: #2e7d4f;
  --green-light: #3da068;
  --gray: #f5f5f5;
  --dark: #1a1a1a;
  --text: #444;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  color: var(--text);
  background: #fff;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.logo-img {
  height: 36px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

/* WordPress メニュー */
#site-navigation { display: flex; align-items: center; }

#site-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

#site-navigation ul li a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

#site-navigation ul li a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

#site-navigation ul li.menu-item-contact a {
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  border-bottom: none;
}

#site-navigation ul li.menu-item-contact a:hover {
  background: var(--green-light);
}

/* ===== HERO ===== */
.hero {
  margin-top: 70px;
  height: calc(100vh - 70px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: zoomOut 8s ease forwards;
}

/* 動画ヒーロー */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.65) 100%
  );
}

@keyframes zoomOut { to { transform: scale(1); } }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 60px 80px;
  color: #fff;
}

.hero-content .catch {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease 0.5s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content .sub {
  font-size: 1rem;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
  color: rgba(255,255,255,0.85);
}

.hero-scroll {
  position: absolute;
  bottom: 40px; right: 60px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s ease 1.4s forwards;
  opacity: 0;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.5);
  animation: scrollLine 1.8s ease-in-out infinite 1.5s;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ===== SECTION BASE ===== */
section { overflow: hidden; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-inner { padding: 100px 0; }

/* ===== ANIMATIONS ===== */
.slide-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.in-view {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* ===== SECTION HEADING ===== */
.sec-label {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: 0.05em;
  display: block;
}

.sec-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.sec-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--green);
}

.sec-desc {
  color: #666;
  line-height: 1.9;
  font-size: 0.95rem;
  max-width: 520px;
}

/* ===== ABOUT ===== */
#about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-images .main-img { grid-column: 1 / -1; }

.about-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.about-images .main-img img { height: 260px; }

.info-table {
  width: 100%;
  margin-top: 36px;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.info-table tr { border-bottom: 1px solid #eee; }

.info-table th {
  width: 130px;
  padding: 11px 0;
  color: #888;
  font-weight: 600;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}

.info-table td {
  padding: 11px 0 11px 16px;
  color: var(--dark);
  line-height: 1.7;
}

/* ===== SERVICES ===== */
#services { background: var(--gray); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: #fff;
  border-radius: 6px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p { font-size: 0.83rem; color: #777; line-height: 1.8; }

.service-list { list-style: none; margin-top: 8px; }

.service-list li {
  font-size: 0.8rem;
  color: #666;
  padding: 3px 0 3px 14px;
  position: relative;
}

.service-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  color: var(--green);
  top: 6px;
}

/* ===== WORKS ===== */
#works { background: #fff; }

.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item.wide img { height: 260px; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.works-table-wrap { overflow-x: auto; }

.works-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.works-table th {
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.works-table td {
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  color: var(--text);
}

.works-table tr:hover td { background: #f7fdf9; }
.works-table .year { font-weight: 700; color: var(--green); width: 70px; }

/* ===== QUALIFICATIONS ===== */
#qualifications { background: var(--gray); }

.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.qual-group h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 12px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.qual-list { list-style: none; }

.qual-list li {
  padding: 9px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.87rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.qual-rank {
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== RECRUIT ===== */
#recruit { background: #fff; }

.recruit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 56px;
}

.recruit-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.recruit-table tr { border-bottom: 1px solid #eee; }

.recruit-table th {
  padding: 13px 0;
  color: #888;
  font-weight: 600;
  text-align: left;
  width: 130px;
  vertical-align: top;
  white-space: nowrap;
}

.recruit-table td { padding: 13px 0 13px 16px; color: var(--dark); line-height: 1.7; }

.recruit-highlight {
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  padding: 32px;
}

.recruit-highlight h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.recruit-highlight ul { list-style: none; }

.recruit-highlight li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}

.recruit-highlight li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }

/* ===== CONTACT ===== */
#contact { background: var(--dark); color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 0;
}

.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 32px; }

.contact-block { margin-bottom: 28px; }

.contact-block .label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-block p { font-size: 0.92rem; line-height: 1.8; color: #ccc; }
.contact-block .tel { font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; }

.contact-map { border-radius: 6px; overflow: hidden; }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  filter: grayscale(20%);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #666;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  #site-navigation { display: none; }
  .about-grid, .recruit-grid, .contact-grid, .qual-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .section-inner { padding: 70px 0; }
  .contact-grid { padding: 70px 0; }
  .sec-label { font-size: 3rem; }
  .hero-content { padding: 0 30px 60px; }
}