/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- root ---------- */
:root {
  --accent: #D9892A;            /* オレンジ（ロゴから抽出） */
  --accent-dark: #B97119;       /* 強アクセント */
  --accent-soft: #FFF1D6;       /* 薄いクリーム */
  --text: #1f1a14;              /* 黒に近いダーク */
  --text-sub: #6f6358;          /* 暖色寄りグレー */
  --text-mute: #b6a99a;          /* ミュート */
  --bg: #FFFAF1;                /* オフホワイト（暖色寄り） */
  --bg-deep: #FFF4E0;           /* 装飾用の薄黄 */
  --card-bg: #ffffff;
  --card-border: #f0e6d4;
  --card-border-hover: #D9892A;
  --shadow-sm: 0 1px 2px rgba(120, 80, 20, 0.06), 0 1px 3px rgba(120, 80, 20, 0.05);
  --shadow-md: 0 4px 10px rgba(120, 80, 20, 0.10), 0 10px 26px rgba(120, 80, 20, 0.10);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- body ---------- */
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ---------- layout ---------- */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 22px 40px;
}

@media (max-width: 480px) {
  .container { padding: 32px 18px 28px; }
}

/* ---------- profile header ---------- */
.profile {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  width: auto;
  max-width: 180px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

@media (max-width: 480px) {
  .logo { max-width: 160px; margin-bottom: 14px; }
}

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid #ffffff;
  box-shadow: 0 6px 20px rgba(217, 137, 42, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* デニム写真の顔位置を中央に合わせる（縦長写真→丸型クロップ用） */
  object-position: 82% 12%;
  transform: scale(1.8);
  transform-origin: 82% 12%;
}

.avatar--fallback::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.25;
}

.name {
  margin: 0 0 2px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.furigana {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0.18em;
}

.title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
}

.bio {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ---------- company intro ---------- */
.company-intro {
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: left;
}

.company-intro p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-sub);
}

.company-intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .company-intro {
    padding: 16px 18px;
    margin-bottom: 28px;
  }
}

/* ---------- links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-hover);
}

.link-card:active,
.link-card.is-active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.link-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.link-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent-dark);
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.8;
}

.footer-links {
  margin: 0 0 6px;
}

.footer-links a {
  color: var(--text-sub);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.copyright {
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- focus visible (accessibility) ---------- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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