﻿/* ========== KNOTS織房 — Modern Craft-Tech Style ========== */
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #111827;
  --ink-secondary: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  
  /* Brand Accent: 深緑（Forest）× 真鍮（Brass Gold） */
  --accent: #1e3f32;
  --accent-light: #2d5a47;
  --accent-soft: rgba(30, 63, 50, 0.05);
  --accent-border: rgba(30, 63, 50, 0.15);
  --gold: #b38e44;
  --gold-light: #dfc285;
  --gold-soft: rgba(179, 142, 68, 0.1);
  
  --line: rgba(0, 0, 0, 0.07);
  --line-strong: rgba(0, 0, 0, 0.12);
  
  /* Fluid Typo */
  --s0: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --s1: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --s2: clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
  --s3: clamp(2.2rem, 1.8rem + 2vw, 3.6rem);
  --s4: clamp(3rem, 2.2rem + 3.5vw, 5.5rem);
  --space: clamp(2rem, 1.5rem + 2.5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--s0);
  line-height: 1.85;
  color: var(--ink-secondary);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== Navigation ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--space);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

nav .logo {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

nav .logo span {
  color: var(--accent);
  font-weight: 500;
}

nav .nav-links { display: flex; gap: 0.4rem; }

nav .nav-links a {
  padding: 0.45rem 1rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: all 0.25s ease;
}

nav .nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

nav .nav-links a.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(30, 63, 50, 0.25);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--space) * 2.5) var(--space) var(--space);
  position: relative;
  background: linear-gradient(180deg, rgba(17, 29, 23, 0.72) 0%, rgba(13, 23, 18, 0.9) 100%), url('images/kominka.jpg') center 35%/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(191, 161, 95, 0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.knot-mark {
  width: 90px;
  height: auto;
  margin-bottom: 2rem;
  opacity: 0.95;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s4);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero .tagline {
  font-size: var(--s1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  max-width: 620px;
  line-height: 2;
  margin-bottom: 3.5rem;
}

.hero-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}

.hero-nav a {
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-nav a.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #111d17;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(179, 142, 68, 0.4);
}

.hero-nav a.primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 6px 25px rgba(179, 142, 68, 0.6);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

/* ========== Page Header (Sub Pages) ========== */
.page-header {
  padding: calc(var(--space) * 2.8) var(--space) calc(var(--space) * 1.5);
  text-align: center;
  background: linear-gradient(135deg, #183327 0%, #111d17 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(179, 142, 68, 0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-header .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.page-header h1 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s3);
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* ========== Main Layout ========== */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--space) * 1.5) var(--space);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s2);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.6rem;
  letter-spacing: 0.03em;
}

h3 {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s1);
  font-weight: 700;
  color: var(--accent);
  margin: 3rem 0 1.2rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 0.9rem;
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.lead {
  font-size: var(--s1);
  color: var(--ink);
  font-weight: 400;
  line-height: 2;
  margin-bottom: 2.2rem;
}

p { margin-bottom: 1.4rem; }

.divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 3.5rem 0;
}

/* ========== Cards & Surfaces ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 2.2rem;
  border-radius: 12px;
  margin: 1.8rem 0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 20px 40px -8px rgba(30, 63, 50, 0.08);
}

.card h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0;
}

/* ========== Diagnostic Banner & Comparison ========== */
.diagnostic-banner {
  background: linear-gradient(135deg, #183327 0%, #111d17 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.4rem;
  margin: 2.2rem 0;
  border: 1px solid rgba(179, 142, 68, 0.4);
  box-shadow: 0 12px 32px rgba(17, 29, 23, 0.16);
}

.diagnostic-banner .badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(179, 142, 68, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.diagnostic-banner h3 {
  color: #fff;
  margin: 0 0 0.8rem 0;
  padding-left: 0;
  font-size: 1.4rem;
}

.diagnostic-banner h3::before {
  display: none;
}

.diagnostic-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: #111d17;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(179, 142, 68, 0.35);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.compare-col {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 1.6rem;
}

.compare-col.highlight {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.compare-col .col-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: block;
}

.compare-col.highlight .col-tag {
  color: var(--accent);
}

.compare-col h5 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.compare-col ul {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

.compare-col ul li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.compare-col ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ========== Preview Grid (Top Page) ========== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 2rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -10px rgba(179, 142, 68, 0.15);
}

.preview-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.preview-card h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.preview-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ========== Quote Block ========== */
.quote-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.quote-block p {
  font-family: "Noto Serif JP", serif;
  font-size: var(--s1);
  font-weight: 600;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 0.6rem;
}

.quote-block .source {
  font-size: 0.85rem;
  color: var(--gold);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
}

/* ========== Profile & Avatar ========== */
.profile-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 2.2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #111d17 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: "Noto Serif JP", serif;
  font-size: 2.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.profile-info h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.profile-info .role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ========== Tags (資格・スキルバッジ) ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 2.5rem;
}

.tag {
  padding: 0.45rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--line));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85rem; top: 0.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item .year {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.timeline-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========== Contact Grid & Form ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.6rem;
  border-radius: 10px;
}

.contact-item h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.contact-item p {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0;
  word-break: break-all;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

.contact-item a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 2.4rem;
  margin: 2.5rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-group label .req {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.05rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 63, 50, 0.25);
}

.form-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 63, 50, 0.35);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
}

.contact-note {
  background: var(--gold-soft);
  border: 1px solid var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 1.4rem 1.8rem;
  margin: 3rem 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.85;
}

/* ========== CTA Section ========== */
.cta-section {
  background: radial-gradient(circle at 50% 10%, #1e3f32 0%, #0d1712 100%);
  color: #fff;
  padding: calc(var(--space) * 2) var(--space);
  text-align: center;
  margin-top: calc(var(--space) * 2.5);
  position: relative;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--gold);
  color: #111d17;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(179, 142, 68, 0.4);
}

.cta-button:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(179, 142, 68, 0.6);
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: calc(var(--space) * 0.8) var(--space);
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

footer a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ========== Responsive ========== */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .preview-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .compare-box { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; gap: 1.2rem; }
  .contact-form-wrapper { padding: 1.6rem; }
}