/* みんなのメッセージ：共通スタイル（本サイト「船出」のデザイントークンに合わせる） */
:root {
  --kura: #f7f5f0;
  --kura-2: #efebe2;
  --kura-3: #e4dfd3;
  --sumi: #202224;
  --uzuma: #23485b;
  --uzuma-deep: #163240;
  --uzuma-night: #0d1a22;
  --kin: #b99a5a;
  --kin-light: #d9c28f;
  --kin-ink: #7d6230;
  --nezumi: #5f6468;
  --shu: #b4533c;
  --font-sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-latin: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--uzuma-night);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--kura);
  color: var(--sumi);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.serif {
  font-family: var(--font-serif);
}

.latin {
  font-family: var(--font-latin);
  letter-spacing: 0.02em;
}

.phrase {
  word-break: auto-phrase;
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - var(--gutter) * 2, 1080px);
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- ボタン・入力 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 28px;
  border: 1px solid var(--uzuma);
  border-radius: 999px;
  background: var(--uzuma);
  color: var(--kura);
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    opacity 0.2s;
}

.btn:hover {
  background: var(--uzuma-deep);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--uzuma);
}

.btn--ghost:hover {
  background: rgb(35 72 91 / 0.08);
}

.btn--small {
  min-height: 36px;
  padding: 4px 16px;
  font-size: 0.85rem;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.field__hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--nezumi);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--kura-3);
  border-radius: 10px;
  background: #fff;
  font-size: 16px; /* iPhone で拡大されないように */
  line-height: 1.7;
}

.input:focus {
  outline: 2px solid var(--kin);
  outline-offset: 1px;
  border-color: var(--kin);
}

textarea.input {
  resize: vertical;
  min-height: 7.5em;
}

:focus-visible {
  outline: 2px solid var(--kin);
  outline-offset: 2px;
}

.notice {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--kura-2);
  font-size: 0.92rem;
}

.notice--ok {
  background: #e8efe9;
  color: #234a2e;
}

.notice--error {
  background: #f6e6e1;
  color: #7a2f1f;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--uzuma-night);
  color: rgb(247 245 240 / 0.72);
  font-size: 0.8rem;
  line-height: 2;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 18px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--kin-light);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
