/*
Theme Name: TMIM Theme
Theme URI: https://tmim.co.jp
Author: TM Industrial Management Co., Ltd.
Description: TMインダストリアルマネジメント株式会社 公式サイトテーマ
Version: 1.0
*/

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

:root {
  --black:   #111111;
  --charcoal:#1C1C1C;
  --red:     #C8201E;
  --red-dark:#A01818;
  --white:   #FFFFFF;
  --gray:    #888888;
  --light:   #F5F5F5;
  --border:  #2E2E2E;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --font-en: 'Archivo Black', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-ja); background: var(--white); color: var(--black); -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(28,28,28,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-text .ja { font-size: 11px; font-weight: 700; color: var(--white); letter-spacing: 0.04em; line-height: 1; }
.nav-logo-text .en { font-size: 8px; font-weight: 500; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; line-height: 1; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.6); text-decoration: none; letter-spacing: 0.08em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; background: var(--red); color: var(--white); text-decoration: none; border-radius: 4px; transition: background 0.2s; }
.nav-cta:hover { background: var(--red-dark); }

/* ── HERO ── */
.hero { min-height: 100vh; background: var(--charcoal); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 120px 48px 80px; gap: 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(200,32,30,0.12) 0%, transparent 60%); pointer-events: none; }
.hero-left { position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: var(--red); text-transform: uppercase; margin-bottom: 32px; }
.hero-tag::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--red); }
.hero-title { font-family: var(--font-en); font-size: clamp(40px, 5vw, 72px); line-height: 1.05; color: var(--white); letter-spacing: -0.02em; margin-bottom: 32px; }
.hero-title em { color: var(--red); font-style: normal; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.9; max-width: 440px; margin-bottom: 48px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-red { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; background: var(--red); color: var(--white); text-decoration: none; border-radius: 4px; transition: background 0.2s; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); text-decoration: none; border-radius: 4px; transition: all 0.2s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* PHOTO MOSAIC */
.hero-mosaic { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 200px 180px 160px; gap: 8px; }
.mosaic-item { background: var(--border); border-radius: 8px; overflow: hidden; position: relative; }
.mosaic-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.mosaic-item:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.mosaic-item:nth-child(3) { grid-column: 1; grid-row: 2 / 4; }
.mosaic-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.mosaic-item:nth-child(5) { grid-column: 2 / 4; grid-row: 3; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.mosaic-item:nth-child(1)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200,32,30,0.3) 0%, transparent 60%); }

/* ── TICKER ── */
.ticker { background: var(--red); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; gap: 64px; animation: ticker 20s linear infinite; }
.ticker-item { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: rgba(255,255,255,0.9); text-transform: uppercase; display: flex; align-items: center; gap: 16px; }
.ticker-item::after { content: '◆'; font-size: 6px; color: rgba(255,255,255,0.5); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── MESSAGE ── */
.message-section { padding: 120px 48px; text-align: center; max-width: 900px; margin: 0 auto; }
.message-label { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.message-label::before, .message-label::after { content: ''; display: block; width: 32px; height: 1px; background: var(--red); }
.message-title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 32px; }
.message-title em { color: var(--red); font-style: normal; }
.message-desc { font-size: 15px; color: #555; line-height: 2; max-width: 640px; margin: 0 auto; }

/* ── BUSINESS ── */
.business-section { background: var(--charcoal); padding: 100px 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 64px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-label-white { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-label-white::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--red); }
.section-title-white { font-size: 36px; font-weight: 900; color: var(--white); letter-spacing: -0.02em; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; max-width: 1200px; margin: 0 auto; }
.biz-card { background: #1C1C1C; padding: 40px 32px; transition: background 0.25s; cursor: default; }
.biz-card:hover { background: #242424; }
.biz-num { font-family: var(--font-en); font-size: 56px; line-height: 1; color: rgba(255,255,255,0.06); margin-bottom: 16px; letter-spacing: -0.04em; }
.biz-icon { font-size: 24px; margin-bottom: 16px; }
.biz-name { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.5; margin-bottom: 12px; }
.biz-desc { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.9; }
.biz-tag { display: inline-block; margin-top: 16px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--red); border: 1px solid var(--red); padding: 3px 8px; border-radius: 2px; text-transform: uppercase; }

/* ── STRENGTHS ── */
.strengths-section { padding: 100px 48px; background: var(--light); }
.strengths-inner { max-width: 1200px; margin: 0 auto; }
.strengths-header { margin-bottom: 64px; }
.s-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.s-label::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--red); }
.s-title { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; }
.strength-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.strength-card { background: var(--white); border: 1px solid #E0E0E0; border-radius: 8px; padding: 40px; display: flex; gap: 28px; transition: box-shadow 0.2s; }
.strength-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.s-num { font-family: var(--font-en); font-size: 64px; line-height: 1; color: #EBEBEB; letter-spacing: -0.04em; flex-shrink: 0; }
.s-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.s-content p { font-size: 13px; color: var(--gray); line-height: 1.9; }

/* ── ABOUT ── */
.about-section { background: var(--charcoal); padding: 100px 48px; }
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.about-left h2 { font-size: 32px; font-weight: 900; color: var(--white); line-height: 1.4; margin-bottom: 24px; }
.about-left h2 em { color: var(--red); font-style: normal; }
.about-left p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.9; }
table.info { width: 100%; border-collapse: collapse; }
table.info tr { border-bottom: 1px solid var(--border); }
table.info tr:first-child { border-top: 1px solid var(--border); }
table.info th { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; padding: 18px 0; text-align: left; width: 130px; vertical-align: top; }
table.info td { font-size: 13px; color: rgba(255,255,255,0.75); padding: 18px 0; line-height: 1.8; vertical-align: top; }
table.info td a { color: var(--white); text-decoration: none; }

/* ── CONTACT ── */
.contact-section { background: var(--red); padding: 100px 48px; position: relative; overflow: hidden; }
.contact-section::before { content: 'CONTACT'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-size: 180px; line-height: 1; color: rgba(0,0,0,0.12); pointer-events: none; white-space: nowrap; }
.contact-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.c-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.c-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.9; }
.contact-box { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 48px; }
.c-tel { font-family: var(--font-en); font-size: 40px; color: var(--white); margin-bottom: 6px; }
.c-tel a { color: var(--white); text-decoration: none; }
.c-hours { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 28px; letter-spacing: 0.08em; }
.btn-white-solid { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; background: var(--white); color: var(--red); text-decoration: none; border-radius: 4px; transition: opacity 0.2s; }
.btn-white-solid:hover { opacity: 0.88; }

/* Contact Form 7 スタイル */
.wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.wpcf7-form label { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; gap: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; color: var(--white);
  font-size: 13px; font-family: var(--font-ja);
  transition: border-color 0.2s;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  padding: 14px 28px; background: var(--white); color: var(--red);
  border: none; border-radius: 4px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; cursor: pointer; transition: opacity 0.2s;
  font-family: var(--font-ja);
}
.wpcf7-form input[type="submit"]:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer { background: #0D0D0D; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #1E1E1E; }
.f-logo { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.f-copy { font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 100px 20px 60px; gap: 48px; min-height: auto; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .mosaic-item:nth-child(1) { grid-column: 1/3; grid-row: 1; }
  .mosaic-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .mosaic-item:nth-child(3) { display: none; }
  .mosaic-item:nth-child(4) { grid-column: 2; grid-row: 2; }
  .mosaic-item:nth-child(5) { display: none; }
  .message-section, .business-section, .strengths-section, .about-section, .contact-section { padding: 72px 20px; }
  .biz-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
