:root {
  --bg: #fbfaf8;
  --bg-tint: #f4f1ec;
  --text: #2f2b28;
  --text-soft: #6b645d;
  --line: #e5e0d8;
  --accent: #a08a6a;      /* 上品なゴールドベージュ */
  --accent-dark: #8a7455;
  --white: #ffffff;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --maxw: 1040px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(60, 50, 40, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}
.nav__menu {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.nav__menu a { color: var(--text-soft); transition: color 0.2s; }
.nav__menu a:hover { color: var(--accent-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 130px;
  background:
    radial-gradient(1200px 400px at 70% -10%, #f0e8dc 0%, transparent 60%),
    var(--bg);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 動画の上に、うっすら明るいベールをかけて文字を読みやすく */
  background: linear-gradient(
    to bottom,
    rgba(251, 250, 248, 0.72),
    rgba(251, 250, 248, 0.62)
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero__lead {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent-dark);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: transparent;
}
.btn--ghost:hover { background: var(--accent); color: var(--white); }
.btn--full { width: 100%; border: none; }

/* ---------- Sections ---------- */
.section { padding: 100px 24px; }
.section--tint { background: var(--bg-tint); }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__inner--narrow { max-width: 640px; }
.section__label {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 56px;
}
.section__note {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: -36px;
  margin-bottom: 48px;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.about__photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ede6da, #e0d6c6);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-family: var(--serif);
  letter-spacing: 0.2em;
  box-shadow: var(--shadow);
}
.about__body p { margin-bottom: 20px; color: var(--text-soft); }
.about__body strong { color: var(--text); font-weight: 500; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--accent-dark);
}
.card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__year {
  font-family: var(--serif);
  color: var(--accent-dark);
  letter-spacing: 0.08em;
}
.timeline__body h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
.timeline__body p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Works ---------- */
.cards--works { grid-template-columns: repeat(3, 1fr); }
.work {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work { padding: 32px 28px; }
.work__num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.work__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--accent-dark);
}
.work p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Contact form ---------- */
.contact__lead {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 40px;
}
.form__row { margin-bottom: 22px; }
.form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { resize: vertical; }
.form__note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Contact mail block ---------- */
.contact__mail {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 32px;
}
.contact__mail-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.contact__mail-link {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.contact__mail-link:hover { color: var(--accent-dark); }
.contact__action { text-align: center; }

/* プロフィール画像（イラスト）を入れたときのスタイル */
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---------- Management table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.mgmt-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.88rem;
}
.mgmt-table th,
.mgmt-table td {
  padding: 12px 14px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.mgmt-table thead th {
  background: var(--bg-tint);
  color: var(--accent-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
}
.mgmt-table tbody tr:nth-child(even) { background: #faf8f4; }
.mgmt-table tbody tr:hover { background: #f3eee6; }
.mgmt-table td:first-child { color: var(--text-soft); }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.st-done   { background: #e4efe4; color: #4b7a4b; }
.st-active { background: #e3ebf4; color: #3f6392; }
.st-wait   { background: #f6ecda; color: #9a7b3e; }
.st-todo   { background: #ececec; color: #7a7a7a; }
.pr-high   { background: #f5e2e0; color: #a85248; }
.pr-mid    { background: #f6efda; color: #94793c; }
.pr-low    { background: #ececec; color: #7a7a7a; }
.flag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  background: #f6ecda;
  color: #9a7b3e;
  border: 1px solid #eaddc2;
}
.table-hint {
  display: none;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ---------- Portfolio PDF card ---------- */
.doc-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(60, 50, 40, 0.12); }
.doc-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--line);
}
.doc-card__label {
  display: block;
  text-align: center;
  padding: 18px 16px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: var(--white);
}

/* ---------- Products ---------- */
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(60, 50, 40, 0.12); }
.product img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--line);
}
.product__body { padding: 28px 26px 30px; }
.product__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.product__lead {
  color: var(--accent-dark);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.product__body p { color: var(--text-soft); line-height: 1.9; }
.product__body .btn { margin-top: 22px; }
.product__shop {
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu.is-open { max-height: 340px; }
  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__menu a { display: block; padding: 16px 24px; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 220px; margin: 0 auto; }
  .cards, .cards--works { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 80px 1fr; gap: 16px; }
  .hero { padding: 80px 24px 90px; }
  .section { padding: 72px 24px; }
  .table-hint { display: block; }
}
