@charset "UTF-8";

/* ===================================
 * 変数定義（写真が映えるモノトーン基調）
 * =================================== */
:root {
  --primary-color: #111111; /* 引き締まった黒 */
  --accent-color: #94a3b8;  /* 上品なブルーグレー */
  --text-main: #333333;
  --text-muted: #888888;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border-color: #eaeaea;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-white);
}

/* ===================================
 * ヘッダー
 * =================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
nav { display: flex; gap: 30px; }
nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
nav a:hover { color: var(--accent-color); }

/* ===================================
 * ヒーローセクション（施工事例用）
 * =================================== */
.hero-portfolio {
  height: 60vh; /* メインコンテンツに早く到達させるために少し低めに */
  background-image: url("../images/hero-architecture.jpg"); /* ★用意した美しい施工写真を入れてください */
  background-color: #d1d5db; /* 画像がない場合のプレースホルダー色 */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-portfolio::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 写真を暗くして文字を目立たせる */
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}
.hero-content h1 { font-size: 42px; font-weight: 700; margin-bottom: 10px; letter-spacing: 2px;}
.hero-content p { font-size: 16px; letter-spacing: 4px; text-transform: uppercase; }

/* ===================================
 * 共通セクション設定
 * =================================== */
section { padding: 100px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.bg-light { background: var(--bg-light); }
h2 { text-align: center; font-size: 32px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;}
.section-subtitle { text-align: center; color: var(--accent-color); font-size: 13px; font-weight: 500; margin-bottom: 50px; }

/* ===================================
 * Works (施工事例グリッド)
 * =================================== */
/* カテゴリフィルター */
.works-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.works-filter li {
  padding: 8px 24px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.works-filter li:hover, .works-filter li.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ===================================
 * Works (1列ドカンと見せるプレミアムレイアウト)
 * =================================== */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 100px; /* 事例と事例の間を広くとって余白の美を演出 */
  margin-top: 60px;
}

.portfolio-item-large {
  display: flex;
  align-items: center;
  gap: 60px; /* 画像とテキストの隙間 */
  text-decoration: none;
  color: var(--text-main);
}

/* ★ここが魔法！偶数番目は「右が画像・左がテキスト」に反転する */
.portfolio-item-large:nth-child(even) {
  flex-direction: row-reverse;
}

.portfolio-thumb-large {
  flex: 0 0 60%; /* 画像に全体の60%の幅を贅沢に使う */
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9; /* 映画のスクリーンのようなダイナミックな比率 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* ほんのり高級な影 */
}

.portfolio-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item-large:hover .portfolio-thumb-large img {
  transform: scale(1.03); /* ホバーでゆっくりズーム */
}

/* 写真の上のカテゴリラベル（少しデザイン調整） */
.portfolio-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
}

/* 偶数番目はカテゴリラベルを右側に */
.portfolio-item-large:nth-child(even) .portfolio-category {
  left: auto;
  right: 20px;
}

.portfolio-info-large {
  flex: 1; /* 残りの幅40%をテキストエリアに */
}

.portfolio-info-large h3 {
  font-size: 28px; /* タイトルを大きく！ */
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.portfolio-item-large:hover .portfolio-info-large h3 {
  color: var(--accent-color);
}

.portfolio-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: 1px;
}

.portfolio-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-main);
}

/* --- 消しちゃダメだったボタンのコード --- */
.more-btn-container { text-align: center; margin-top: 80px; }
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn-primary:hover { background: #333; }

/* ===================================
 * Philosophy / About
 * =================================== */
.philosophy-content p {
  text-align: center;
  font-size: 16px;
  line-height: 2.2;
  max-width: 800px;
  margin: 0 auto;
}

/* ===================================
 * Company & Contact (左右分割レイアウト)
 * =================================== */
.split-layout {
  display: flex;
  gap: 60px;
}
.company-side, .contact-side { flex: 1; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 14px;
}
.company-table th { width: 30%; color: var(--text-muted); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-light);
  transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-color); background: white; }
.contact-form button {
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.contact-form button:hover { opacity: 0.8; }

/* ===================================
 * Footer (本格版)
 * =================================== */
.site-footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.7); /* 文字を少し透けさせて上品に */
  padding: 80px 20px 20px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* うすい区切り線 */
  padding-bottom: 40px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-address, 
.footer-tel {
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

/* ホバー時は真っ白にして光らせる */
.footer-links a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===================================
 * Work Detail (事例詳細ページ)
 * =================================== */
.work-detail-section {
  padding: 80px 20px 120px;
}

.work-detail-inner {
  max-width: 900px; /* 一覧より少し幅を狭めて文章を読みやすく */
  margin: 0 auto;
}

/* サンプル注意書き */
.sample-notice {
  background: #fef2f2;
  border-left: 5px solid #ef4444;
  padding: 20px;
  margin-bottom: 40px;
  color: #b91c1c;
  font-weight: 700;
  border-radius: 4px;
  text-align: center;
}

/* タイトル周り */
.detail-header {
  text-align: center;
  margin-bottom: 50px;
}
.detail-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.detail-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}
.detail-meta {
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: 1px;
}

/* メイン画像 */
.detail-main-visual {
  margin-bottom: 60px;
  border-radius: 4px;
  overflow: hidden;
}
.detail-main-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本文エリア */
.detail-content h2 {
  font-size: 24px;
  text-align: left;
  margin: 60px 0 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
}
.detail-content p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-main);
  margin-bottom: 40px;
}

/* 詳細内ギャラリー */
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* 建築データ表 */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
}
.detail-table th, .detail-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.detail-table th {
  width: 30%;
  color: var(--text-muted);
  font-weight: 500;
}

/* 戻るボタン */
.back-link {
  text-align: center;
  margin-top: 80px;
}
.btn-secondary {
  display: inline-block;
  padding: 16px 50px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* ===================================
 * スマホ対応（すべての@media）
 * =================================== */
@media (max-width: 768px) {
  header { flex-direction: column; gap: 15px; padding: 15px; }
  .hero-content h1 { font-size: 28px; }
  .split-layout { flex-direction: column; gap: 50px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  
  .portfolio-list { gap: 60px; }
  .portfolio-item-large, .portfolio-item-large:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .portfolio-thumb-large { flex: auto; width: 100%; }
  .portfolio-info-large h3 { font-size: 22px; }

  /* ↓ここから詳細ページ用のスマホ対応↓ */
  .detail-header h1 {
    font-size: 24px;
  }
  .detail-gallery {
    grid-template-columns: 1fr; /* スマホではギャラリーを縦1列に */
  }
  .detail-table th, .detail-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .detail-table th {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 13px;
  }
}