/* ===== デザイントークン ===== */
:root {
  --color-white: #ffffff;
  --color-black: #111111;
  --color-gray: #6e6e6e;
  --color-gray-light: #a8a4a0;
  --color-dark: #1c1c1c;
  --color-beige: #ebe7e1;
  --color-beige-warm: #f3f0eb;
  --color-border: rgba(17, 17, 17, 0.06);
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --shadow-soft: 0 2px 24px rgba(17, 17, 17, 0.05);
  --shadow-card: 0 4px 32px rgba(17, 17, 17, 0.07);
  --shadow-profile: 0 8px 32px rgba(17, 17, 17, 0.08), 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-featured: 0 8px 40px rgba(17, 17, 17, 0.18);
  --radius-card: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ===== リセット ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  min-height: 100dvh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== 背景グラデーション ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(235, 231, 225, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(243, 240, 235, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #faf9f7 45%, #f0ece6 100%);
}

/* ===== レイアウト ===== */
.site {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  padding:
    calc(3.5rem + var(--safe-top))
    1.75rem
    calc(3rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== ヒーロー ===== */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===== プロフィール写真 ===== */
.profile {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.profile__float {
  animation: profile-float 6s var(--ease-out) infinite;
}

/* 縦長カード型：本人写真をメインビジュアルとして表示 */
.profile__frame {
  width: min(196px, 54vw);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-beige-warm);
  box-shadow: var(--shadow-profile);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 顔が中央上部に来るよう調整 */
  object-position: center 22%;
}

.profile__frame.is-error {
  background: var(--color-beige);
}

.profile__img.is-error {
  object-fit: none;
  object-position: center;
}

/* ゆっくり浮くアニメーション */
@keyframes profile-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== ブランド ===== */
.brand__salon {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 6.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--color-black);
  margin-bottom: 1rem;
  padding-left: 0.28em;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5vw, 1.625rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--color-black);
  margin-bottom: 1.75rem;
  padding-left: 0.32em;
}

.brand__tagline {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--color-gray);
  line-height: 2.2;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== リンクカード ===== */
.cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 3.5rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 1.125rem 1.375rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.card:active {
  transform: translateY(-3px) scale(0.985);
  box-shadow: var(--shadow-soft);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(17, 17, 17, 0.1);
  }
}

.card:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 3px;
}

/* LINEカード（控えめに目立たせる） */
.card--featured {
  background: var(--color-dark);
  border-color: transparent;
  box-shadow: var(--shadow-featured);
  min-height: 80px;
  padding: 1.25rem 1.375rem;
}

.card--featured .card__icon {
  color: var(--color-beige);
}

.card--featured .card__label {
  color: var(--color-white);
}

.card--featured .card__sub {
  color: rgba(255, 255, 255, 0.55);
}

.card--featured .card__arrow {
  color: rgba(255, 255, 255, 0.35);
}

.card--featured:active {
  transform: translateY(-4px) scale(0.985);
  box-shadow: 0 6px 28px rgba(17, 17, 17, 0.22);
}

@media (hover: hover) {
  .card--featured:hover {
    box-shadow: 0 12px 48px rgba(17, 17, 17, 0.24);
  }
}

.card__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-dark);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.card__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-black);
  line-height: 1.4;
}

.card__sub {
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-gray-light);
  line-height: 1.5;
}

.card__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: rgba(17, 17, 17, 0.2);
}

.card__arrow svg {
  width: 100%;
  height: 100%;
}

/* ===== 住所 ===== */
.location {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-gray-light);
  line-height: 2;
  margin-bottom: 3rem;
}

.location__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 0.75rem;
}

/* ===== フッター ===== */
.footer p {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--color-gray-light);
}

/* ===== スマートフォン向け調整 ===== */
@media (max-width: 380px) {
  .site {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .brand__salon {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .brand__name {
    letter-spacing: 0.24em;
    padding-left: 0.24em;
  }

  .card {
    padding: 1rem 1.125rem;
    gap: 0.75rem;
  }

  .card__label {
    font-size: 0.8125rem;
  }
}

/* 横スクロール防止 */
.site,
.cards,
.card__body {
  max-width: 100%;
}

.card__label,
.card__sub {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ===== 表示アニメーション ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* プロフィールはよりゆっくり */
.profile.reveal {
  transition-duration: 1.2s;
}

.profile.reveal.is-visible .profile__float {
  animation-delay: 0.6s;
}

/* アニメーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .profile__float {
    animation: none;
  }

  .card {
    transition: none;
  }
}
