/* MOMENTUM — 空間相談ページ（方向B：写真主役のスプリットレイアウト） */

:root {
  --bg: #F3F1EC;
  --ink: #1C1C1C;
  --muted: #6A6560;
  --accent: #4F5D4E;
  --line: #DDD8D0;

  --font-heading: "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;

  --gutter: clamp(28px, 5vw, 72px);
  --content-max: 460px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

/* フォーカス可視化 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- スプリットレイアウト ---------- */

.split {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.split__photo {
  position: relative;
  margin: 0;
  height: 46vh;
  min-height: 320px;
  overflow: hidden;
  background: #E7E3DA;
}

.split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: photo-breathe 18s ease-in-out infinite alternate;
}

@keyframes photo-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.split__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  margin: 0;
  color: #FBFAF7;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.split__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 56px) var(--gutter) 40px;
  animation: content-fade 0.9s ease-out;
}

@keyframes content-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  margin-bottom: clamp(32px, 7vw, 56px);
}

.brand__label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.brand__eyebrow {
  margin: 8px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.content {
  max-width: var(--content-max);
}

.content__title {
  font-size: clamp(2.1rem, 3.8vw, 2.7rem);
  letter-spacing: 0.05em;
  margin-bottom: 26px;
  font-weight: 500;
}

.content__lead {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.95;
  max-width: 32ch;
  margin-bottom: 30px;
}

.meta {
  list-style: none;
  margin: 0 0 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}

.meta li {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.meta li:not(:first-child) {
  position: relative;
  padding-left: 26px;
  margin-left: 4px;
}

.meta li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--line);
  transform: translateY(-50%);
}

/* ---------- フォーム ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.field__label .required {
  color: var(--accent);
  margin-left: 0.3em;
  font-size: 0.78rem;
}

.field__label .optional {
  color: var(--muted);
  margin-left: 0.3em;
  font-size: 0.75rem;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px;
  transition: border-color 0.2s ease;
  width: 100%;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 4px) 55%, calc(100% - 10px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #A8A29A;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field-row {
  display: flex;
  gap: 20px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.form__submit {
  margin-top: 10px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.form__submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.form__note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- フッター ---------- */

.footer {
  margin-top: clamp(40px, 8vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer__link {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__link:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* ---------- デスクトップ：左右スプリット ---------- */

@media (min-width: 861px) {
  .split {
    flex-direction: row;
  }

  .split__photo {
    flex: 0 0 52%;
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .split__content {
    flex: 1;
    min-height: 100vh;
    overflow-y: auto;
  }
}

@media (min-width: 1400px) {
  .split__photo {
    flex-basis: 56%;
  }
}

/* ---------- モーション低減 ---------- */

@media (prefers-reduced-motion: reduce) {
  .split__img {
    animation: none;
  }

  .split__content {
    animation: none;
  }
}
