/* ==========================================================
   オアシス制作室
   デザインの考え方:「静かな青白の紙に、手描きの線」
   - 背景は青みがかった白、文字は青みのある濃いグレー
   - アクセントは深い青 --accent の1色だけ
   - 手描き風の線・記号は mask で --accent を流し込んで色を揃える
   ========================================================== */

:root {
  /* 紙とインク */
  --paper:      #f6f8fb;
  --paper-deep: #edf1f7;
  --card:       #ffffff;
  --ink:        #27303c;
  --ink-soft:   #4e5968;
  --ink-faint:  #6b7684;
  --ink-deep:   #1e2632;
  --rule:       #dde4ec;

  /* アクセントはこの1色だけ */
  --accent:      #2f6690;
  /* 濃い背景の上で使う、少し明るい青(白文字とのコントラスト確保用) */
  --accent-mid:  #3c7aae;
  --accent-tint: #e6eef5;

  /* LINEのブランド色は変更しない */
  --line: #06c755;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;

  /* 手描きの線・記号(色は mask で --accent を流し込む) */
  --mark-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6.6C19 3.2 31 8.6 47 5.6S78 2.6 92 6.1s18-1.9 25-.6' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --mark-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.4 5.3C9 4.4 16 4.9 19.5 4.6c.4 4.4 0 10.4.2 14.7-4.6.5-11.6 0-15 .2-.4-4.5.1-10.5-.3-14.2Z' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mark-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 12.4c2.5 1.5 4.2 3.4 5.8 5.8C13 13.2 16.3 8.7 20.2 5.4' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mark-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M2 8.2c5.6-.6 13.4-.4 19.4-.5M15.6 2.4C17.4 4.8 19.4 6.6 21.6 7.8c-2.3 1.4-4.2 3.2-6 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- ベース ---------- */

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

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.9;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- ナビゲーション ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2.2rem);
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.2s, filter 0.2s;
}

.nav-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.nav-cta.line {
  background: var(--line);
  color: #06331a !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- ヒーロー ---------- */

.hero {
  display: flex;
  flex-direction: column;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6.5vh, 4rem) 1.5rem clamp(1.5rem, 3vh, 2.5rem);
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.25rem 1rem;
  margin-bottom: 1.4rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1rem + 2.6vw, 3rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  overflow-wrap: anywhere;
}

.hero-content > p {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  overflow-wrap: anywhere;
}

.hero-buttons {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* イラストは隠さず、ページの「地面」として置く */
.hero-scene {
  position: relative;
  width: 100%;
}

.hero-scene img {
  width: 100%;
  height: clamp(200px, 40vh, 440px);
  object-fit: cover;
  /* 下端はイラストの地面に合わせ、切り口は上のグラデーションで隠す */
  object-position: center bottom;
}

/* 上下を紙色に溶かしつつ、全体に薄い青のベールをかけて地色を合わせる */
.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--paper) 4%, rgba(246, 248, 251, 0) 52%),
    linear-gradient(rgba(246, 248, 251, 0) 80%, var(--paper) 100%),
    rgba(226, 238, 250, 0.26);
}

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

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2.1rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 3px 0 rgba(23, 53, 79, 0.3);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.cta-button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(23, 53, 79, 0.3);
}

.cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(23, 53, 79, 0.3);
}

.cta-button.outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-faint);
  box-shadow: none;
}

.cta-button.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  filter: none;
}

/* ---------- セクション共通 ---------- */

.section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  /* 固定ヘッダーの下に見出しが潜らないように */
  scroll-margin-top: 66px;
}

.section > * {
  max-width: 940px;
  margin-inline: auto;
}

.section.deep {
  background: var(--paper-deep);
}

.section h1,
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* 見出しの下の手描き線 */
.section h1::after,
.section h2::after {
  content: "";
  display: block;
  width: 108px;
  height: 9px;
  margin: 0.5rem auto 0;
  background-color: var(--accent);
  -webkit-mask: var(--mark-squiggle) center / 100% 100% no-repeat;
  mask: var(--mark-squiggle) center / 100% 100% no-repeat;
}

.section-lead {
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 3つの強み ---------- */

.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  text-align: left;
}

.strength-card .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  color: var(--accent);
  background: var(--accent-tint);
}

.strength-card .icon svg {
  width: 24px;
  height: 24px;
}

.strength-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

.strength-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.strength-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- 代表について ---------- */

.profile-card {
  max-width: 680px;
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: flex-start;
  text-align: left;
}

.profile-avatar {
  flex-shrink: 0;
  width: clamp(130px, 22vw, 170px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1.5px var(--accent), 0 8px 20px rgba(39, 48, 60, 0.1);
}

.profile-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.profile-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.profile-body p + p {
  margin-top: 0.9rem;
}

.profile-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.profile-more::after {
  content: "";
  width: 22px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: var(--mark-arrow) center / contain no-repeat;
  mask: var(--mark-arrow) center / contain no-repeat;
  transition: transform 0.2s;
}

.profile-more:hover::after {
  transform: translateX(4px);
}

.profile-cta {
  margin-top: clamp(2.2rem, 4vw, 3rem);
}

/* ---------- こんなお悩み(チェックリスト) ---------- */

.worry-list {
  list-style: none;
  max-width: 620px;
  text-align: left;
}

.worry-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 0.2rem;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--rule);
}

.worry-list li:first-child {
  border-top: 1px dashed var(--rule);
}

.worry-list li::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 0.35rem;
  background-color: var(--accent);
  -webkit-mask: var(--mark-box) center / contain no-repeat;
  mask: var(--mark-box) center / contain no-repeat;
}

/* ---------- 制作実績 ---------- */

.portfolio-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  text-align: left;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(39, 48, 60, 0.12);
}

.mockup {
  background: #f1f4f8;
  border-bottom: 1px solid var(--rule);
}

.portfolio-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.portfolio-card p {
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.portfolio-card .link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.portfolio-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- 料金 ---------- */

.price-card {
  max-width: 460px;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 10px 28px rgba(39, 48, 60, 0.1);
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.price-amount span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.price-tax {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.price-includes {
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}

.price-includes li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.price-includes li + li {
  margin-top: 0.7rem;
}

.price-includes li::before {
  content: "";
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 0.4rem;
  background-color: var(--accent);
  -webkit-mask: var(--mark-check) center / contain no-repeat;
  mask: var(--mark-check) center / contain no-repeat;
}

.price-note {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  text-align: left;
  color: var(--ink-faint);
}

/* ---------- ご依頼の流れ ---------- */

.flow-list {
  list-style: none;
  max-width: 640px;
  text-align: left;
}

.flow-list li {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding-bottom: 1.8rem;
}

.flow-list li:last-child {
  padding-bottom: 0;
}

/* 1→5 をつなぐ点線 */
.flow-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background-image: linear-gradient(var(--accent) 55%, transparent 55%);
  background-size: 2px 9px;
  opacity: 0.45;
}

.flow-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.flow-list h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.flow-list p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- よくある質問 ---------- */

.faq {
  max-width: 660px;
  text-align: left;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.5rem;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2.2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2.2px 100% no-repeat;
  border-radius: 2px;
  transition: transform 0.25s;
}

.faq details[open] summary::before {
  transform: rotate(135deg);
}

.faq details p {
  padding: 0 0 1.3rem 2.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- 対応エリア ---------- */

.area-box {
  max-width: 600px;
  text-align: left;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--card);
}

.area-box p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.area-box .area-main {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ---------- お問い合わせ ---------- */

.contact {
  background: var(--ink-deep);
  color: #fff;
}

.contact h1,
.contact h2 {
  color: #fff;
}

.contact .section-lead {
  color: #a9b4c2;
}

.contact-buttons {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: transform 0.18s, filter 0.18s, border-color 0.18s;
}

.contact-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.contact-btn.tel {
  background: var(--accent);
}

.contact-btn.web {
  background: transparent;
  border-color: var(--ink-faint);
  color: var(--ink);
}

.contact-btn.web:hover {
  border-color: var(--accent);
}

/* 濃い背景のセクションの中だけ、明るめの青と白い枠線に切り替える */
.contact .contact-btn.tel {
  background: var(--accent-mid);
}

.contact .contact-btn.web {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.contact .contact-btn.web:hover {
  border-color: #fff;
}

.contact-btn.line {
  background: var(--line);
  color: #06331a;
}

.contact-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.contact .contact-note {
  color: #8b96a4;
}

.line-qr {
  width: 140px;
  height: 140px;
  margin: 1.2rem auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

/* ---------- お問い合わせフォーム ---------- */

.contact-form {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  max-width: 580px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.form-lead {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.form-row {
  margin-bottom: 1.4rem;
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.form-row .req {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.45rem;
  vertical-align: 0.1em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--ink-faint);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-row textarea {
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.contact-form button[type="submit"] {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ---------- 特定商取引法の表 ---------- */

.legal-table {
  max-width: 740px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

.legal-table dl {
  display: grid;
  grid-template-columns: 11rem 1fr;
}

.legal-table div {
  display: contents;
}

.legal-table dt,
.legal-table dd {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}

.legal-table dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
}

.legal-table dd {
  color: var(--ink-soft);
}

.legal-table div:last-child dt,
.legal-table div:last-child dd {
  border-bottom: none;
}

/* ---------- フッター ---------- */

footer {
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: var(--ink-deep);
  color: #a9b4c2;
  font-size: 0.83rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer .credits {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #7f8b99;
}

footer .footer-links {
  margin-top: 0.9rem;
  font-size: 0.78rem;
}

footer .footer-links a {
  color: #c2cbd6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- スマホ下部の固定バー ---------- */

.mobile-fixed-bar {
  display: none;
}

/* ---------- 動きの演出 ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-badge,
.hero-content h1,
.hero-content > p,
.hero-buttons,
.hero-scene {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.hero-badge    { animation-delay: 0.05s; }
.hero-content h1 { animation-delay: 0.16s; }
.hero-content > p { animation-delay: 0.28s; }
.hero-buttons  { animation-delay: 0.4s; }
.hero-scene    { animation-delay: 0.5s; animation-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge,
  .hero-content h1,
  .hero-content > p,
  .hero-buttons,
  .hero-scene,
  .faq summary::before,
  .profile-more::after {
    animation: none;
    transition: none;
  }
}

/* ==========================================================
   レスポンシブ
   ========================================================== */

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(246, 248, 251, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 0 1.2rem;
    box-shadow: 0 12px 20px rgba(39, 48, 60, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.6rem 2rem;
  }
}

@media (max-width: 720px) {
  .hero-scene img {
    height: clamp(240px, 34vh, 340px);
  }

  footer {
    padding-bottom: calc(2.2rem + 74px + env(safe-area-inset-bottom));
  }

  .mobile-fixed-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    background: #fff;
    border-top: 1px solid var(--rule);
    box-shadow: 0 -6px 18px rgba(39, 48, 60, 0.12);
  }

  .mobile-fixed-btn {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.5rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--accent);
  }

  .mobile-fixed-btn.tel {
    border-right: 1px solid var(--rule);
  }

  .mobile-fixed-btn.line {
    color: #04913f;
  }

  .mobile-fixed-btn-label,
  .mobile-fixed-btn-sub {
    display: block;
  }

  .mobile-fixed-btn-sub {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 500;
  }
}

@media (max-width: 560px) {
  .legal-table dl {
    grid-template-columns: 1fr;
  }

  .legal-table dt {
    border-bottom: none;
    padding-bottom: 0.3rem;
  }

  .legal-table dd {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
  }

  .profile-avatar {
    width: 160px;
  }

  .profile-body {
    width: 100%;
  }

  .contact-btn,
  .cta-button {
    width: 100%;
    text-align: center;
  }

  .hero-buttons,
  .contact-buttons {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    flex-direction: column;
  }
}
