@charset "UTF-8";

/* ========================================
   変数定義 (Variables)
======================================== */
:root {
  --color-primary: #1a1b1f;    /* ベースのダークカラー */
  --color-accent: #b89b72;     /* ゴールド系のアクセント */
  --color-text: #333333;       /* メインテキスト */
  --color-text-light: #666666; /* サブテキスト */
  --color-bg: #ffffff;         /* メイン背景 */
  --color-bg-light: #f8f9fa;   /* 薄い背景 */
  --color-error: #e74c3c;      /* エラー色 */
  
  --font-base: 'Noto Sans JP', sans-serif;
  --font-heading: 'Noto Serif JP', serif;
  --font-en: 'Cormorant Garamond', serif;

  --header-height: 80px;
}

/* ========================================
   リセット & ベース (Reset & Base)
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* JSで制御するためデフォルトはauto */
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ========================================
   共通レイアウト (Common Layout)
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}

.section-dark {
  background-color: var(--color-primary);
  color: #fff;
}

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

.section-label {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-label.light { color: var(--color-accent); }
.section-title.light { color: #fff; }

/* ========================================
   ヘッダー (Header)
======================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  color: #fff;
}

#header.scrolled .logo { color: var(--color-primary); }

.logo-en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}

.logo-ja {
  font-size: 0.7rem;
  margin-top: 4px;
}

#globalNav ul {
  display: flex;
  gap: 40px;
}

#globalNav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

#header.scrolled #globalNav a { color: var(--color-text); }
#globalNav a:hover { color: var(--color-accent) !important; }

/* ハンバーガーメニュー (Mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: 0.3s ease;
}

#header.scrolled .nav-toggle span { background-color: var(--color-primary); }

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--color-primary); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--color-primary); }

/* ========================================
   ヒーロー (Hero)
======================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  /* 実際の案件ではここに背景画像を設定 */
  background-image: linear-gradient(135deg, #1a1b1f 0%, #3a3f4e 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

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

.hero-sub {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.hero-title span { display: block; }

.hero-desc {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}

.btn-hero {
  display: inline-block;
  padding: 16px 48px;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 500;
  border-radius: 30px;
  letter-spacing: 0.1em;
}

.btn-hero:hover {
  background-color: #a3875f;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #fff;
  animation: scrollDown 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ========================================
   代表挨拶 (Greeting)
======================================== */
.greeting-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.greeting-text {
  flex: 1;
}

.greeting-lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--color-primary);
}

.greeting-text p {
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.greeting-sig {
  margin-top: 40px;
  text-align: right;
}

.greeting-sig .sig-title { font-size: 0.9rem; margin-bottom: 5px; }
.greeting-sig .sig-name em {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-left: 10px;
}

.greeting-deco {
  display: none;
  width: 300px;
  position: relative;
}

.deco-box {
  background-color: var(--color-bg-light);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid #eaeaea;
}

.deco-line {
  width: 1px;
  height: 80px;
  background-color: var(--color-accent);
  margin: 0 auto 30px;
}

.deco-en {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--color-accent);
  line-height: 1.4;
  margin-bottom: 10px;
}

.deco-name {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* ========================================
   事業内容 (Business)
======================================== */
.business-grid {
  display: grid;
  /* 変更前: grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  grid-template-columns: repeat(2, 1fr); /* PC時に2列（2×2）に固定 */
  gap: 40px;
}

/* ----------------------------------------
   レスポンシブ (スマホ表示時は1列にする)
---------------------------------------- */
@media screen and (max-width: 768px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
}

.business-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 50px 30px;
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.business-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.card-num {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.card-desc {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
}

/* ========================================
   会社概要 (Company)
======================================== */
.company-inner {
  display: flex;
  gap: 60px;
}

.company-table {
  flex: 1;
  width: 100%;
  border-collapse: collapse;
}

.company-table th, .company-table td {
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
}

.company-table th {
  width: 30%;
  font-weight: 500;
  color: var(--color-primary);
}

.company-table a {
  color: var(--color-accent);
}

.company-table a:hover { text-decoration: underline; }

.company-map {
  flex: 1;
  background: #eee;
  min-height: 300px;
}

/* ========================================
   お問い合わせ (Contact)
======================================== */
.contact-lead {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  margin-bottom: 30px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.required {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: #fafafa;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #fff;
}

.error-msg {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 20px;
}

.input-error {
  border-color: var(--color-error) !important;
  background-color: #fffafa !important;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 18px 60px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-radius: 4px;
}

.btn-submit:hover { background: var(--color-accent); }

.form-success {
  max-width: 800px;
  margin: 0 auto;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 40px;
  text-align: center;
  color: #166534;
  border-radius: 4px;
}

.form-success i { font-size: 3rem; margin-bottom: 15px; }

.contact-tel {
  text-align: center;
  margin-top: 60px;
}

.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-top: 10px;
}

.tel-link:hover { color: var(--color-accent); }

/* ========================================
   フッター (Footer)
======================================== */
#footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 60px 40px;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.footer-logo .logo-en { font-size: 2rem; }

.footer-nav {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-nav a:hover { color: var(--color-accent); }

.footer-address { margin-bottom: 20px; color: #aaa; }
.footer-copy { font-size: 0.8rem; color: #888; font-family: var(--font-en); }

/* ========================================
   ページトップボタン (Page Top)
======================================== */
#pageTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

#pageTop.show {
  opacity: 1;
  visibility: visible;
}

#pageTop:hover { background: var(--color-accent); }

/* ========================================
   アニメーション (Animations)
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ========================================
   レスポンシブ (Responsive)
======================================== */
@media screen and (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .greeting-inner, .company-inner { flex-direction: column; gap: 40px; }
  .greeting-deco { width: 100%; max-width: 400px; margin: 0 auto; }
  .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
  .form-group { margin-bottom: 30px; }
}

@media screen and (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  
  /* ヘッダー・ナビゲーション */
  .nav-toggle { display: block; }
  
  #globalNav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 100;
  }
  
  #globalNav.active { opacity: 1; visibility: visible; }
  
  #globalNav ul { flex-direction: column; text-align: center; gap: 30px; }
  #globalNav a { font-size: 1.2rem; }

  /* ヒーロー */
  .hero-title { font-size: 2rem; }
  .btn-hero { padding: 14px 32px; }

  /* コンタクト */
  .contact-form { padding: 30px 20px; }
  .tel-link { font-size: 1.5rem; }

  /* フッター */
  .footer-nav { flex-direction: column; gap: 15px; }
}