/*
Theme Name: Outworld Corporate
Theme URI: https://out-world.net
Author: 合同会社アウトワールド
Description: 合同会社アウトワールド コーポレートサイト用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: outworld
*/

/* ===========================
   CSS Variables
=========================== */
:root {
  --color-primary: #C9A800;
  --color-primary-light: #E0BC1A;
  --color-primary-dark: #9A7F00;
  --color-text: #2D2D2D;
  --color-text-light: #666666;
  --color-bg: #FFFFFF;
  --color-bg-gray: #F7F7F5;
  --color-border: #E5E0D8;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --max-width: 1140px;
  --section-padding: 80px;
}

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

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

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

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===========================
   Header
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  height: 70px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo img { height: 36px; width: auto; }
.site-logo span {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.global-nav ul {
  display: flex;
  gap: 36px;
}

.global-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.global-nav a:hover::after { width: 100%; opacity: 1; }

.header-contact-btn {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.header-contact-btn:hover { background: var(--color-primary-dark) !important; opacity: 1 !important; }

/* ===========================
   Page Wrapper
=========================== */
.page-wrapper { padding-top: 70px; }

/* ===========================
   Hero
=========================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-gray);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-desc,
.hero .hero-label { color: #fff; }

.hero .hero-subtitle { opacity: 0.8; }

.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184,151,42,0.08), rgba(184,151,42,0.02));
}

.hero-content { position: relative; z-index: 1; }

.hero-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title strong {
  font-weight: 700;
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-family: var(--font-main);
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 2;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 36px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--color-primary-dark); opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 15px 36px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all 0.2s;
}

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

/* ===========================
   Section Base
=========================== */
.section { padding: var(--section-padding) 0; }
.section-gray { background: var(--color-bg-gray); }

.section-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title strong { font-weight: 700; }

.section-lead {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
  max-width: 560px;
}

.section-header { margin-bottom: 56px; }
.section-header-center { text-align: center; }
.section-header-center .section-lead { margin: 0 auto; }

/* ===========================
   Business Cards
=========================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.business-card {
  background: #fff;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.business-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }

.business-card-number {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(184,151,42,0.1);
  position: absolute;
  top: 24px;
  right: 32px;
  line-height: 1;
}

.business-card-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: block;
}

.business-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.business-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 32px;
}

.business-card-link {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-card-link::after { content: '→'; }

/* ===========================
   Mission Section
=========================== */
.mission-section {
  background: var(--color-text);
  color: #fff;
  padding: var(--section-padding) 0;
  text-align: center;
}

.mission-en {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 24px;
}

.mission-ja {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  opacity: 0.9;
}

.mission-desc {
  font-size: 0.95rem;
  line-height: 2.2;
  opacity: 0.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ===========================
   Representative
=========================== */
.rep-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
}

.rep-image {
  aspect-ratio: 4/5;
  background: var(--color-bg-gray);
  overflow: hidden;
}

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

.rep-label { margin-bottom: 24px; }

.rep-name-en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.rep-name-ja {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.rep-title {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.rep-desc {
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.rep-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.rep-tag {
  font-size: 0.75rem;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  color: var(--color-text-light);
  border-radius: 2px;
}

/* ===========================
   Achievement
=========================== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--color-border);
}

.achievement-num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.achievement-num span { font-size: 1.2rem; }

.achievement-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ===========================
   News
=========================== */
.news-list { border-top: 1px solid var(--color-border); }

.news-item {
  display: grid;
  grid-template-columns: 140px 80px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.news-cat {
  font-size: 0.7rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 3px 10px;
  text-align: center;
}

.news-title { font-size: 0.9rem; }

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* ===========================
   Page Hero
=========================== */
.page-hero {
  padding: 100px 0 60px;
  background: var(--color-bg-gray);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ===========================
   Company Table
=========================== */
.company-table { width: 100%; border-collapse: collapse; }

.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 200px;
  color: var(--color-text-light);
  font-weight: 500;
  background: var(--color-bg-gray);
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-size: 0.8rem;
  line-height: 2;
  opacity: 0.6;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
  font-family: var(--font-en);
}

.footer-nav-list { display: flex; flex-direction: column; gap: 12px; }

.footer-nav-list a {
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-nav-list a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ===========================
   Company Table
=========================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  line-height: 1.8;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  color: var(--color-text-light);
  font-weight: 500;
  white-space: nowrap;
}

/* ===========================
   Single Post
=========================== */
.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.single-content {
  line-height: 2;
  color: var(--color-text);
}

.single-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.single-content h3 {
  font-size: 1.1rem;
  margin: 32px 0 12px;
}

.single-content p { margin-bottom: 20px; }

.single-content a { color: var(--color-primary); }

/* ===========================
   Contact Form
=========================== */
.contact-form-wrap { margin-top: 8px; }

.contact-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 24px; }

.contact-form-wrap label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus { border-color: var(--color-primary); }

.contact-form-wrap textarea { min-height: 160px; resize: vertical; }

.contact-form-wrap input[type="submit"] {
  padding: 16px 48px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.contact-form-wrap input[type="submit"]:hover { background: var(--color-primary-dark); }

/* ===========================
   Hamburger & Mobile Nav
=========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mobile-nav ul { list-style: none; }

.mobile-nav ul li a {
  display: block;
  padding: 16px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}

.mobile-nav.is-open { display: block; }

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  :root { --section-padding: 56px; }

  .global-nav { display: none; }

  .hamburger { display: flex; }

  .site-logo img { height: 24px; }

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

  .rep-grid { grid-template-columns: 1fr; gap: 40px; }

  .achievement-grid { grid-template-columns: 1fr; gap: 16px; }

  .news-item { grid-template-columns: 1fr; gap: 8px; }

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

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .company-table th { width: 120px; }

  .container { padding: 0 16px; }
}
