:root {
  color-scheme: light;
  --page: #FFFDF8;
  --ink: #272824;
  --muted: #746D64;
  --green: #4E6547;
  --green-hover: #3A4D35;
  --sage: #9DAF97;
  --sage-pale: #EDF0E9;
  --clay: #A87658;
  --clay-dark: #7B5340;
  --clay-pale: #F4E9E1;
  --card: #FFFFFF;
  --border: #E4E1D8;
  --font-jp: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 18px 44px rgba(39, 40, 36, .10), 0 3px 10px rgba(78, 101, 71, .06);
}

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

html {
  min-width: 320px;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-jp);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.profile-page {
  width: min(100% - 32px, 440px);
  margin-inline: auto;
  padding: 24px 0 max(32px, env(safe-area-inset-bottom));
}

.business-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 61%) minmax(0, 39%);
  aspect-ratio: 91 / 55;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.business-card::before {
  position: absolute;
  inset: auto auto -42% -7%;
  z-index: -1;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(157, 175, 151, .44);
  border-radius: 50%;
  content: "";
}

.card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(15px, 5vw, 24px) 4px clamp(15px, 4vw, 21px) clamp(17px, 5vw, 25px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--green);
  font-family: var(--font-en);
  font-size: clamp(.62rem, 2.6vw, .76rem);
  font-weight: 700;
  letter-spacing: .09em;
}

.brand-mark span {
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px 7px 7px 7px;
  transform: rotate(12deg);
}

.brand-mark span::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.identity {
  min-width: 0;
}

.role-jp,
.role-en,
.role-note,
.identity h1 {
  margin: 0;
}

.role-jp {
  color: var(--muted);
  font-size: clamp(.58rem, 2.45vw, .72rem);
  font-weight: 600;
  letter-spacing: .025em;
  white-space: nowrap;
}

.identity h1 {
  margin-top: 2px;
  font-size: clamp(1.28rem, 6vw, 1.82rem);
  font-weight: 750;
  letter-spacing: .09em;
  line-height: 1.2;
}

.role-en {
  margin-top: clamp(5px, 1.5vw, 9px);
  color: var(--green);
  font-family: var(--font-en);
  font-size: clamp(.92rem, 4.25vw, 1.34rem);
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.1;
  white-space: nowrap;
}

.role-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: clamp(.57rem, 2.45vw, .71rem);
  font-weight: 500;
  white-space: nowrap;
}

.portrait-area {
  position: relative;
  z-index: -1;
  background: var(--sage-pale);
}

.portrait-area::before {
  position: absolute;
  inset: 0 auto 0 -16px;
  width: 32px;
  background: var(--card);
  border-radius: 0 50% 50% 0;
  content: "";
}

.portrait-area img {
  position: absolute;
  right: clamp(-18px, -3vw, -8px);
  bottom: clamp(-9px, -2vw, -3px);
  z-index: 2;
  width: 116%;
  height: auto;
  max-width: none;
  border-radius: 50%;
  filter: saturate(.92) contrast(.98);
}

.portrait-orbit {
  position: absolute;
  inset: 13% -27% auto auto;
  width: 126%;
  aspect-ratio: 1;
  border: 1px solid rgba(78, 101, 71, .31);
  border-radius: 50%;
}

.builder-node {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 1px rgba(123, 83, 64, .18);
}

.node-one {
  top: 18%;
  left: 12%;
}

.node-two {
  right: 10%;
  bottom: 12%;
  background: var(--green);
}

.intro {
  position: relative;
  margin: 24px 2px 28px;
  padding-left: 18px;
}

.intro::before {
  position: absolute;
  inset: 4px auto 4px 0;
  width: 3px;
  border-radius: 4px;
  background: var(--clay);
  content: "";
}

.intro-message {
  margin: 0;
  font-size: clamp(1.01rem, 4.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.65;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-label::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.primary-links {
  display: grid;
  gap: 10px;
}

.link-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px 10px 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.link-card:hover {
  border-color: rgba(78, 101, 71, .48);
  box-shadow: 0 8px 24px rgba(78, 101, 71, .09);
  transform: translateY(-1px);
}

.link-card:active {
  transform: translateY(0);
}

.link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--green);
  background: var(--sage-pale);
}

.link-card--letter .link-icon {
  color: var(--clay-dark);
  background: var(--clay-pale);
}

.link-card--sitter .link-icon {
  color: var(--clay-dark);
  background: #F8F0EA;
}

.link-icon svg,
.social-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-copy {
  display: block;
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  display: block;
}

.link-copy strong {
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.35;
}

.link-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 1rem;
}

.section-label--social {
  margin-top: 26px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.social-links a {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .76);
  font-family: var(--font-en);
  font-size: .79rem;
  font-weight: 650;
  transition: border-color .18s ease, background-color .18s ease;
}

.social-links a:hover {
  border-color: var(--sage);
  background: var(--card);
}

.social-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--green);
  background: var(--card);
  font-family: var(--font-en);
  font-size: .82rem;
  font-weight: 750;
}

.social-mark svg {
  width: 17px;
  height: 17px;
}

.social-mark--note {
  color: var(--clay-dark);
  font-size: .92rem;
}

a:focus-visible {
  outline: 3px solid rgba(168, 118, 88, .46);
  outline-offset: 3px;
}

footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-en);
}

footer span {
  color: var(--green);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
}

footer small {
  font-size: .62rem;
  letter-spacing: .05em;
}

@media (min-width: 700px) {
  .profile-page {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 359px) {
  .profile-page {
    width: min(100% - 22px, 440px);
    padding-top: 14px;
  }

  .business-card {
    border-radius: 15px;
  }

  .card-copy {
    padding-left: 14px;
  }

  .role-jp {
    letter-spacing: 0;
  }

  .intro {
    margin-top: 20px;
    margin-bottom: 23px;
  }

  .link-card {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 9px;
    padding-right: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* ブランドのライトテーマを維持し、ブラウザの自動反転を防ぎます。 */
  :root {
    color-scheme: light;
  }

  html,
  body {
    color: var(--ink);
    background: var(--page);
  }
}


/* 連絡先に保存（2026-08-28 追加）
   ゆかり指摘＝「タブを閉じたら残らない」。vCardをダウンロードさせて端末の連絡先に入れる。
   名刺として一番大事な動作なので、他のリンクより目立たせる。 */
.link-card--save {
  border-color: #4E6547;
  background: #EDF0E9;
}
.link-card--save strong { color: #35452F; }
.link-card--save .link-icon { color: #4E6547; }
