/* ==============================
   タナカワークス コンセプトサイト
   色: オフホワイト × ネイビー
   ============================== */

:root {
  --color-bg: #f7f6f2;        /* オフホワイト */
  --color-navy: #1b2a4a;      /* メインのネイビー */
  --color-navy-soft: #3e5379; /* やわらかいネイビー(補助) */
  --color-line: #d8d5cc;      /* 罫線 */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
}

/* ---- リセット・ベース ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-navy);
  background-color: var(--color-bg);
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-navy);
  text-decoration-color: var(--color-navy-soft);
  text-underline-offset: 0.3em;
  transition: opacity 0.25s ease;
}

a:hover {
  opacity: 0.6;
}

a:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 4px;
}

/* ---- ファーストビュー ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.hero__logo {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* 中央揃えのズレ補正 */
  color: var(--color-navy-soft);
  margin-bottom: 28px;
}

.hero__catch {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  letter-spacing: 0.14em;
  line-height: 1.9;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--color-navy-soft);
  text-transform: uppercase;
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 10px auto 0;
  background-color: var(--color-navy-soft);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- セクション共通 ---- */
.section {
  padding: 120px 24px;
}

.section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-navy-soft);
  margin-bottom: 12px;
}

.section__label::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--color-line);
  margin-top: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

/* ---- About ---- */
.about__body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}

.about__photo {
  flex-shrink: 0;
}

.about__photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.about__text p + p {
  margin-top: 1.4em;
}

/* ---- できること ---- */
.services__list {
  list-style: none;
}

.services__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 1.0625rem;
  font-weight: 500;
}

.services__item:first-child {
  border-top: 1px solid var(--color-line);
}

.services__note {
  margin-top: 24px;
  color: var(--color-navy-soft);
}

.services__works {
  margin-top: 48px;
}

.services__works a {
  font-weight: 500;
  margin-left: 0.5em;
}

/* ---- Contact ---- */
.contact__list {
  margin-top: 8px;
}

.contact__row {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.contact__row:first-child {
  border-top: 1px solid var(--color-line);
}

.contact__row dt {
  width: 7em;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--color-navy-soft);
}

.contact__note {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-navy-soft);
  margin-left: 0.5em;
}

/* ---- フッター ---- */
.footer {
  padding: 48px 24px 40px;
  text-align: center;
}

.footer__copy {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-navy-soft);
}

/* ---- フェードイン ---- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らす設定の人には最初から表示 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll::after {
    animation: none;
  }
}

/* ---- スマホ対応 ---- */
.sp-only {
  display: none;
}

@media (max-width: 640px) {
  .sp-only {
    display: inline;
  }

  .section {
    padding: 88px 24px;
  }

  .about__body {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .about__photo img {
    width: 160px;
    height: 160px;
  }

  .contact__row {
    flex-direction: column;
    gap: 4px;
  }

  .contact__row dt {
    width: auto;
  }

  .contact__note {
    display: block;
    margin-left: 0;
  }
}
