/* 電子名刺 — 紙の名刺と同じ配色・同じ間合いにする。
   紙は 案A（クリーム地）を基準にしている。 */

:root {
  color-scheme: light;
  --creme: #f2efe9;
  --creme-fonce: #e6e1d7;
  --sumi: #16150f;
  --sumi-doux: #4a463b;
  --kin: #9c7b3f;
  --shu: #a8392c;
}

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

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

body {
  margin: 0;
  padding: 0 20px 56px;
  background: var(--creme);
  color: var(--sumi);
  font-family: Optima, Candara, "Gill Sans", "Gill Sans MT", "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.carte {
  max-width: 420px;
  margin: 0 auto;
}

/* ---- 頭 ---- */

.marque {
  padding: 40px 0 8px;
  text-align: center;
}

.marque img {
  width: 148px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.portrait {
  width: 172px;
  height: 215px;          /* 4:5 */
  margin: 32px auto 0;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--creme-fonce);
}

.portrait.rond {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-position: center 16%;
}

/* ---- 名前 ---- */

.identite {
  text-align: center;
  margin-top: 26px;
}

.nom {
  margin: 0;
  font-family: Cochin, "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.2;
}

.fonction {
  margin: 8px 0 0;
  color: var(--kin);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.organisation {
  margin: 12px 0 0;
  color: var(--sumi-doux);
  font-size: 14px;
  line-height: 1.5;
}

.filet {
  width: 56px;
  height: 2px;
  margin: 26px auto;
  background: var(--kin);
  border: 0;
}

.devise {
  margin: 0;
  text-align: center;
  font-family: Cochin, "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  color: var(--sumi-doux);
  line-height: 1.45;
}

/* ---- 経歴 ---- */

.parcours {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 14.5px;
  color: var(--sumi-doux);
}

.parcours li + li { margin-top: 6px; }

.offre {
  margin: 0;
  text-align: center;
  font-family: Cochin, "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.35;
}

.offre .sous {
  display: block;
  margin-top: 6px;
  font-family: Optima, Candara, "Gill Sans", "Hiragino Sans", sans-serif;
  font-size: 14px;
  color: var(--sumi-doux);
}

.secondaire {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--sumi-doux);
}

/* ---- ボタン ---- */

.actions {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--creme-fonce);
  background: transparent;
  color: var(--sumi);
  font-size: 15.5px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.bouton:hover,
.bouton:focus-visible {
  background: rgba(22, 21, 15, 0.045);
  border-color: rgba(22, 21, 15, 0.22);
}

.bouton.principal {
  background: var(--sumi);
  border-color: var(--sumi);
  color: var(--creme);
  font-size: 16px;
}

.bouton.principal:hover,
.bouton.principal:focus-visible {
  background: #241f16;
  border-color: #241f16;
}

.bouton svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---- 足 ---- */

.pied {
  margin-top: 34px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--sumi-doux);
}

.pied a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 21, 15, 0.2);
}

.origine {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kin);
}

/* 画面が広いときだけ余白を足す。印刷は考えなくてよい（見るのはスマホ） */
@media screen and (min-width: 480px) {
  .marque { padding-top: 56px; }
}
