/* =============================================
   リセット・変数
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:   #f5f2ec;
  --bg2:  #edeae3;
  --bg3:  #e4e0d8;
  --ink:  #1c1c1c;
  --ink2: #3a3a3a;
  --ink3: #6a6a6a;
  --red:  #b53a2f;
  --line: rgba(28, 28, 28, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  line-height: 1.7;
}

/* =============================================
   ナビゲーション
============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 13px;
  padding: 0.5rem 1.2rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* =============================================
   ① ファーストビュー
============================================= */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg-char {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Zen Old Mincho', serif;
  font-size: 28vw;
  font-weight: 900;
  color: var(--ink);
  opacity: 0.04;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero-inner {
  max-width: 700px;
  position: relative;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

h1 {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink3);
  line-height: 1.95;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.btn-main {
  display: inline-block;
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 1rem 2.5rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-main:hover {
  opacity: 0.85;
}

.btn-main-note {
  font-size: 11px;
  color: var(--ink3);
}

/* =============================================
   セクション共通
============================================= */
section {
  padding: 5rem 2.5rem;
  border-bottom: 1px solid var(--line);
}

.sec-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sec-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
}

h2 {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* =============================================
   ② 自己紹介
============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 0.93rem;
  color: var(--ink2);
  line-height: 2;
  margin-bottom: 1.1rem;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
}

/*
 * アイコン写真エリア
 * 実際の麻雀牌写真を使う場合：
 *   1. 写真ファイル（例: icon-photo.jpg）を index.html と同じフォルダに置く
 *   2. <img class="real-photo"> の src 属性をそのファイル名に変更する
 *   3. .real-photo の display を none → block に変更
 */
.profile-icon-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-icon-wrap img.real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.profile-name {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.profile-role {
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.profile-bio {
  font-size: 0.88rem;
  color: var(--ink3);
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.tag {
  font-size: 11px;
  padding: 0.2rem 0.6rem;
  background: var(--bg2);
  color: var(--ink3);
  border: 1px solid var(--line);
}

.profile-x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}
.profile-x-link:hover {
  color: var(--ink1);
}

/* =============================================
   ③ 事業内容
============================================= */
.services-bg {
  background: var(--bg2);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(28, 28, 28, 0.07);
}

.service-num {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--ink3);
  line-height: 1.9;
}

/* =============================================
   ④ 実績
============================================= */
.works-card {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 240px 1fr;
}

.works-left {
  padding: 2.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--bg2);
}

.works-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.25rem 0.6rem;
  width: fit-content;
}

/*
 * 雀荘通貫ロゴエリア
 * ロゴ画像の差し替え方：
 *   1. ロゴファイル（例: janso-tsuukan-logo.png）を index.html と同じフォルダに置く
 *   2. <img> の src 属性をそのファイル名に変更する
 *   ※ 画像が見つからない場合は自動でテキストが表示されます
 */
.works-logo-wrap {
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.works-logo-wrap img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.works-logo-placeholder {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  display: none;
}

.works-ruby {
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.works-right {
  padding: 2.5rem;
}

.works-desc {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 2;
  margin-bottom: 2rem;
}

.works-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta-item {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.meta-label {
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 0.2rem;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--ink);
}

.works-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Zen Old Mincho', serif;
  font-size: 1rem;
  color: #fff;
  background: var(--red);
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.works-link:hover {
  opacity: 0.85;
}

.works-link-note {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 0.6rem;
}

/* =============================================
   ⑤ お問い合わせ
============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-lead {
  font-size: 0.92rem;
  color: var(--ink3);
  line-height: 2;
  margin-top: 1rem;
}

.form-row {
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 12px;
  color: var(--ink3);
  display: block;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--ink3);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* =============================================
   フッター
============================================= */
footer {
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 11px;
  color: var(--ink3);
}

/* =============================================
   レスポンシブ（スマホ対応）
============================================= */
@media (max-width: 768px) {
  nav ul { display: none; }
  nav { padding: 0 1.2rem; }

  .hero { padding: 4rem 1.2rem; min-height: 80vh; }
  .hero-bg-char { font-size: 50vw; right: -1rem; }

  section { padding: 3.5rem 1.2rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-list { grid-template-columns: 1fr; }
  .works-card { grid-template-columns: 1fr; }
  .works-left { border-right: none; border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* フォーム送信結果メッセージ */
.form-notice {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.form-notice--ok {
  background: #e6f4ea;
  color: #1e6b33;
  border: 1px solid #a8d5b5;
}
.form-notice--err {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c2c0;
}
