/*
  編集メモ:
  ・色を変えたい場合は、まず下の :root のカラー指定を変更してください。
  ・余白を広くしたい場合は .section の padding を調整してください。
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --text: #252525;
  --muted: #66615a;
  --line: #ded8cc;
  --green: #496b5a;
  --green-dark: #30483d;
  --gold: #b8894d;
  --paper: #fbfaf7;
  --shadow: 0 24px 60px rgba(37, 37, 37, 0.09);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(222, 216, 204, 0.7);
  backdrop-filter: blur(12px);
}

.site-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  min-height: calc(86vh - 72px);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.45;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.4vw, 42px);
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hero-lead,
.section-heading p,
.contact-inner > p {
  color: var(--muted);
  font-size: 17px;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 22px;
}

.hero-note {
  max-width: 680px;
  margin-bottom: 34px;
  padding: 18px 20px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

.hero-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: #ffffff;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(73, 107, 90, 0.11), transparent 54%),
    linear-gradient(180deg, #fbfaf7, #f2eee6);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 52%;
  height: 14px;
  background: rgba(48, 72, 61, 0.16);
  border-radius: 999px;
}

.paper-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(37, 37, 37, 0.08);
}

.main-paper {
  top: 72px;
  left: 50%;
  width: min(74%, 330px);
  padding: 28px;
  transform: translateX(-50%) rotate(-2deg);
}

.main-paper::after {
  content: "";
  display: block;
  width: 68%;
  height: 8px;
  margin-top: 24px;
  background: var(--line);
  box-shadow: 0 18px 0 var(--line), 0 36px 0 var(--line);
}

.paper-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
}

.main-paper strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.5;
}

.main-paper p {
  color: var(--muted);
  margin-bottom: 0;
}

.note-paper {
  right: 34px;
  bottom: 48px;
  display: grid;
  gap: 10px;
  width: 180px;
  padding: 20px;
  transform: rotate(3deg);
}

.note-paper span {
  padding-bottom: 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.works-box,
.profile-card,
.flow-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.service-card {
  min-height: 245px;
  padding: 28px;
}

.card-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.service-card p,
.strength-item p,
.works-box p,
.works-box li,
.profile-text p,
.flow-list p,
.small-note {
  color: var(--muted);
}

.muted-section {
  max-width: none;
  background: var(--bg-soft);
}

.muted-section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.strength-item {
  padding-top: 24px;
  border-top: 2px solid var(--green);
}

.works-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.works-box {
  padding: 32px;
}

.works-box ul {
  padding-left: 1.2em;
  margin: 0;
}

.works-box li + li {
  margin-top: 10px;
}

.accent-box {
  background: #fbfaf7;
}

.small-note {
  margin-bottom: 0;
  font-size: 14px;
}

.profile-section {
  max-width: none;
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.profile-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(44px, 8vw, 84px);
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 80px) clamp(32px, 7vw, 72px);
  background: #f1ebe2;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(156, 125, 96, 0.18);
  pointer-events: none;
}

.profile-image {
  position: relative;
  z-index: 1;
  width: min(100%, 270px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 10px solid #dfccb4;
  border-radius: 3px;
  box-shadow: 0 18px 34px rgba(78, 62, 45, 0.12);
}

.profile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: 0;
}

.profile-text .eyebrow,
.contact-inner .eyebrow {
  color: #6f5a45;
  letter-spacing: 0.28em;
}

.profile-line,
.contact-line {
  display: block;
  width: 40px;
  height: 1px;
  margin: 12px 0 34px;
  background: #9c7d60;
}

.profile-text h2 {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
}

.profile-text {
  position: relative;
  z-index: 1;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.profile-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  color: #6f5a45;
  border: 1px solid #c6aa8a;
  background: rgba(255, 255, 255, 0.28);
  font-size: 14px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 16px;
  color: #ffffff;
  background: #6f5a45;
  border: 1px solid #6f5a45;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-links a:hover {
  color: #6f5a45;
  background: #ffffff;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  counter-reset: flow;
}

.flow-section .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.flow-list li {
  padding: 26px;
}

.flow-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.flow-list p {
  margin-bottom: 0;
}

.contact-section {
  max-width: none;
  padding-top: clamp(76px, 10vw, 128px);
  padding-bottom: clamp(76px, 10vw, 128px);
  background: #fbfaf7;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  text-align: center;
}

.contact-line {
  margin-left: auto;
  margin-right: auto;
}

.contact-inner > p,
.contact-inner .small-note {
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-top: 4px;
  color: #7a6049;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d8d2ca;
  border-radius: 6px;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b8b8b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #9c7d60;
  outline: 2px solid rgba(156, 125, 96, 0.18);
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
}

.form-button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  color: #3c332b;
  background: transparent;
  border: 1px solid #bcb3aa;
  border-radius: 7px;
  font: inherit;
  letter-spacing: 0.35em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.form-button:hover {
  background: #f1ebe2;
  border-color: #9c7d60;
}

.contact-inner .small-note {
  margin-top: 20px;
}

.contact-inner .small-note a {
  border-bottom: 1px solid currentColor;
}

.site-footer {
  padding: 26px 20px;
  color: #d8cbbd;
  text-align: center;
  background: #3c332b;
  border-top: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .card-grid,
  .strength-list,
  .works-layout,
  .flow-list {
    grid-template-columns: 1fr 1fr;
  }

  .profile-panel {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .profile-text {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.75;
  }

  .site-header {
    position: static;
    padding: 16px 20px;
  }

  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .section {
    padding: 64px 20px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 320px;
  }

  .main-paper {
    top: 48px;
    width: 78%;
    padding: 22px;
  }

  .main-paper strong {
    font-size: 19px;
  }

  .note-paper {
    right: 18px;
    bottom: 30px;
    width: 154px;
    padding: 16px;
  }

  .card-grid,
  .strength-list,
  .works-layout,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .works-box,
  .profile-panel,
  .flow-list li {
    padding: 24px;
  }

  .profile-image {
    width: min(100%, 210px);
  }

  .profile-line {
    margin-bottom: 26px;
  }

  .form-button {
    width: 100%;
  }
}
