/* ==========================================
   有限会社三井食品 - 統合Webサイト
   Global Styles
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Montserrat:wght@400;600;700&display=swap');

/* CSS Variables */
:root {
  --color-main: #2E7D32;
  --color-main-dark: #1B5E20;
  --color-main-light: #4CAF50;
  --color-sub: #FFF8E7;
  --color-accent: #E65100;
  --color-accent-dark: #BF360C;
  --color-text: #212121;
  --color-text-sub: #757575;
  --color-bg: #FFFFFF;
  --color-border: #E0E0E0;

  --font-jp: 'Noto Sans JP', 'Yu Gothic', '游ゴシック', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --max-width: 1200px;
  --section-padding: 80px 0;
  --section-padding-sp: 56px 0;

  --transition: 0.3s ease;
}

/* ==========================================
   SVG Icon System
   ========================================== */

/* ベース：サイズを context ごとに必ず明示するのでここでは最小限に */
svg.icon {
  display: block;
  flex-shrink: 0;
  flex-grow: 0;
  width: 24px;
  height: 24px;
}

/* ==========================================
   Image Placeholder Badge Component
   .img-ph > .img-ph__badge > svg
              .img-ph__label
   ========================================== */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}

.img-ph__badge {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.14);
}

.img-ph__badge svg.icon {
  width: 26px;
  height: 26px;
  color: var(--color-main);
}

.img-ph__label {
  font-size: 11px;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-main);
  opacity: 0.6;
}

/* Large variant – biz-img-placeholder (business.html) */
.img-ph--lg .img-ph__badge {
  width: 72px;
  height: 72px;
}

.img-ph--lg .img-ph__badge svg.icon {
  width: 34px;
  height: 34px;
}

.img-ph--lg .img-ph__label {
  font-size: 12px;
}

/* ==========================================
   Context-specific icon sizes
   ========================================== */

/* Strength card: 64px circle → 28px icon */
.strength-card__icon svg.icon {
  width: 28px;
  height: 28px;
  color: var(--color-main);
}

/* Contact info icon */
.contact-info__icon svg.icon {
  width: 22px;
  height: 22px;
  color: var(--color-main);
}

/* Flow step icon */
.flow-step__icon svg.icon {
  width: 36px;
  height: 36px;
  color: var(--color-main);
}

/* Recruit step icon */
.recruit-step__icon svg.icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

/* Job card head icon */
.job-card__icon svg.icon {
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.9);
}

/* Float recruit button icon */
.float-recruit__icon svg.icon {
  width: 15px;
  height: 15px;
}

/* Map/location placeholder icon */
.company-mini__map svg.icon {
  width: 44px;
  height: 44px;
  color: var(--color-main);
  opacity: 0.45;
}

/* Person silhouette in recruit message */
.recruit-message__photo svg.icon {
  width: 72px;
  height: 72px;
  color: var(--color-main);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { opacity: 0.75; }

ul, ol { list-style: none; }

/* ==========================================
   Layout Utilities
   ========================================== */

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

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

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

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

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

.section__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.section__title span {
  color: var(--color-main);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
}

.btn--primary:hover {
  background-color: var(--color-main-dark);
  border-color: var(--color-main-dark);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.35);
}

.btn--accent {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
}

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

.btn--outline:hover {
  background-color: #fff;
  color: var(--color-main);
  opacity: 1;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 13px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* Arrow icon in buttons */
.btn::after {
  content: '→';
  font-size: 0.9em;
}

.btn--no-arrow::after { display: none; }

/* ==========================================
   Header
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.header__logo-mark {
  width: 40px;
  height: 40px;
  background-color: var(--color-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -1px;
}

.header__logo-text {
  line-height: 1.2;
}

.header__logo-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.header__logo-sub {
  display: block;
  font-size: 10px;
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-item > a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.header__nav-item > a:hover {
  color: var(--color-main);
  opacity: 1;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__tel {
  text-align: right;
  line-height: 1.2;
}

.header__tel-label {
  display: block;
  font-size: 10px;
  color: var(--color-text-sub);
}

.header__tel-number {
  display: block;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.header__recruit-btn {
  background-color: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition);
}

.header__recruit-btn:hover {
  background-color: var(--color-accent-dark);
  opacity: 1;
  transform: translateY(-1px);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition);
}

/* ==========================================
   First View (WebGL canvas + overlay)
   ========================================== */

.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.fv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 94, 32, 0.72) 0%,
    rgba(27, 94, 32, 0.45) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.fv__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 72px;
}

.fv__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
}

.fv__catch {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.fv__catch-sub {
  display: block;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  opacity: 0.9;
}

.fv__desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.9;
}

.fv__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fv__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.fv__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ==========================================
   Strengths Section
   ========================================== */

.strengths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.strength-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.strength-card:hover {
  border-color: var(--color-main);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.12);
}

.strength-card__icon {
  width: 64px;
  height: 64px;
  background-color: rgba(46, 125, 50, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.strength-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
}

.strength-card__text {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.75;
}

/* ==========================================
   Business Section
   ========================================== */

.business__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.business-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  background: #fff;
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.business-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #E8F5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.business-card__body {
  padding: 24px;
}

.business-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-main);
  background-color: rgba(46, 125, 50, 0.1);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  font-family: var(--font-en);
  text-transform: uppercase;
}

.business-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.business-card__text {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.75;
  margin-bottom: 20px;
}

.business-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-main);
  transition: gap var(--transition);
}

.business-card__link:hover {
  opacity: 1;
  gap: 10px;
}

.business__more {
  text-align: center;
}

/* ==========================================
   News Section
   ========================================== */

.news__list {
  max-width: 800px;
  margin: 0 auto 40px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition);
}

.news-item:first-child {
  border-top: 1px solid var(--color-border);
}

.news-item__date {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-text-sub);
  padding-top: 2px;
  min-width: 100px;
}

.news-item__tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: var(--font-en);
}

.news-item__tag--info {
  background-color: #E3F2FD;
  color: #1565C0;
}

.news-item__tag--recruit {
  background-color: #FFF3E0;
  color: var(--color-accent);
}

.news-item__tag--news {
  background-color: #E8F5E9;
  color: var(--color-main);
}

.news-item__title {
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 1.6;
}

.news-item__title:hover {
  color: var(--color-main);
}

.news__more {
  text-align: center;
}

/* ==========================================
   Recruit Banner Section
   ========================================== */

.recruit-banner {
  background: linear-gradient(135deg, #E65100 0%, #BF360C 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.recruit-banner::before {
  content: 'RECRUIT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 160px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  white-space: nowrap;
  pointer-events: none;
}

.recruit-banner__label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.recruit-banner__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
}

.recruit-banner__text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ==========================================
   Company Mini Section
   ========================================== */

.company-mini__inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.company-mini__info {
  flex: 1;
}

.company-mini__info-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-main);
}

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

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

.company-mini__table th {
  padding: 12px 16px 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-sub);
  white-space: nowrap;
  width: 120px;
  vertical-align: top;
}

.company-mini__table td {
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-text);
}

.company-mini__map {
  flex: 1;
  height: 280px;
  background-color: #E8F5E9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sub);
  font-size: 14px;
  border: 1px solid var(--color-border);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  background-color: #1B2A1C;
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-mark {
  width: 36px;
  height: 36px;
  background-color: var(--color-main);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
}

.footer__logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.footer__brand-text {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer__tel {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer__nav-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.05em;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-list a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__nav-list a::before {
  content: '–';
  color: var(--color-main-light);
}

.footer__nav-list a:hover {
  color: #fff;
  opacity: 1;
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 16px;
}

.footer__bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: rgba(255,255,255,0.7);
  opacity: 1;
}

/* ==========================================
   Float Recruit Button
   ========================================== */

.float-recruit {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background-color: var(--color-accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(230, 81, 0, 0.4);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.float-recruit:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 81, 0, 0.5);
  opacity: 1;
}

.float-recruit__icon {
  font-size: 16px;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
}

.fv__label { animation: fadeInUp 0.6s ease 0.3s both; }
.fv__catch { animation: fadeInUp 0.7s ease 0.5s both; }
.fv__desc { animation: fadeInUp 0.7s ease 0.7s both; }
.fv__cta { animation: fadeInUp 0.7s ease 0.9s both; }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1199px) {
  .strengths__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-sp);
  }

  .header__nav,
  .header__tel {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__inner {
    height: 60px;
  }

  .fv {
    min-height: 100svh;
  }

  .fv__catch {
    font-size: clamp(26px, 7vw, 38px);
  }

  .strengths__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .business__grid {
    grid-template-columns: 1fr;
  }

  .company-mini__inner {
    flex-direction: column;
  }

  .company-mini__map {
    width: 100%;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .float-recruit {
    bottom: 16px;
    right: 16px;
    padding: 10px 18px;
    font-size: 12px;
  }

  .news-item {
    flex-wrap: wrap;
  }
}

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

  .fv__cta {
    flex-direction: column;
  }

  .btn--lg {
    padding: 16px 28px;
    font-size: 15px;
  }

  .strengths__grid {
    grid-template-columns: 1fr;
  }
}
