/* ちゅらしるべ ポートフォリオサイト */
/* 配色：海の青緑（#0e6e7a）＋砂浜の白（#faf6ee）＋珊瑚色のアクセント（#b4513a） */

:root {
  --sea: #0e6e7a;
  --sea-dark: #0a4f58;
  --sea-soft: #e3f1f2;
  --sand: #faf6ee;
  --sand-deep: #f1eadb;
  --coral: #b4513a;
  --text: #2b2b2b;
  --text-sub: #55534e;
  --line: #e4ddcd;
  --bg: #ffffff;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-sans: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--sea); }

h1, h2, h3 {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--sea-dark);
  line-height: 1.5;
  margin: 0;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 下書き中の表示（公開前に削除する） */
.draft-banner {
  background: #fff4c2;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}

/* 未記入の箇所 */
.todo {
  background: #fff4c2;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

.logo {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--sea-dark);
  text-decoration: none;
  line-height: 1.2;
}

.logo small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--sea-dark);
  background: #fff;
  border: 1px solid var(--sea);
  border-radius: 999px;
  cursor: pointer;
}

.global-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.global-nav.is-open { display: block; }

.global-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.global-nav a:hover { background: var(--sea-soft); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 28px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); }

.btn-outline { background: #fff; color: var(--sea-dark); border-color: var(--sea); }
.btn-outline:hover { background: var(--sea-soft); }

.btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sea-soft) 0%, var(--sand) 70%);
  padding: 64px 0 88px;
}

/* 波の形（装飾） */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  /* 画面の幅に合わせて伸び縮みする波（SVG） */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C200 0 400 60 600 30 S1000 0 1200 30 L1200 48 L0 48 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.hero-eyebrow { font-size: 0.9375rem; font-weight: 700; color: var(--coral); margin-bottom: 12px; }

.hero h1 { font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 20px; }

.hero-lead { font-size: 1.0625rem; max-width: 640px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand); }

.section-head { margin-bottom: 36px; text-align: center; }

.section-head .en {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 4px;
}

.section-head h2 { font-size: 1.625rem; }
.section-head p { margin: 12px auto 0; max-width: 640px; color: var(--text-sub); }

/* ---------- できること ---------- */
.services { display: grid; gap: 16px; }

.service {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
}

.service h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.service p { margin: 0; color: var(--text-sub); }

/* ---------- 制作イメージ ---------- */
.works { display: grid; gap: 24px; }

.work {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-thumb { aspect-ratio: 16 / 10; background: var(--sand-deep); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.work-thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-weight: 700;
}

.work-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.work-label {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 999px;
  padding: 0 10px;
}

.work h3 { font-size: 1.125rem; }
.work p { margin: 0; color: var(--text-sub); font-size: 0.9375rem; }
.work .btn { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 8px 20px; font-size: 0.9375rem; }

.works-note { margin-top: 24px; text-align: center; font-size: 0.875rem; color: var(--text-sub); }

/* ---------- お約束 ---------- */
.promises { display: grid; gap: 12px; }

.promise {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  padding: 18px 20px 18px 56px;
  border: 1px solid var(--line);
}

.promise::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 700;
}

.promise h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--text-sub); font-size: 0.9375rem; }

/* ---------- 料金 ---------- */
.hero-monitor { margin: 20px 0 0; }
.hero-monitor a { display: inline-block; padding: 6px 16px; font-weight: 700; color: var(--coral); text-decoration: none; background: #fff; border: 1px solid var(--coral); border-radius: 999px; }
.hero-monitor strong { font-size: 1.125rem; white-space: nowrap; }

.monitor-note { max-width: 760px; margin: 0 auto 24px; padding: 18px 20px; text-align: center; background: #fbeee9; border-radius: 12px; }
.monitor-title { margin-bottom: 6px; font-family: var(--font-round); font-weight: 700; font-size: 1.125rem; color: var(--coral); }
.monitor-note p:last-child { margin: 0; font-size: 0.9375rem; }

.plans { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; padding: 26px 22px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.plan.is-featured { border: 2px solid var(--sea); }
.plan-badge { position: absolute; top: -13px; left: 20px; padding: 2px 12px; font-size: 0.8125rem; font-weight: 700; color: #fff; background: var(--sea); border-radius: 999px; }
.plan h3 { font-size: 1.375rem; }
.plan-desc { margin: 2px 0 10px; color: var(--text-sub); font-size: 0.9375rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan-price s { color: var(--text-sub); font-size: 0.9375rem; }
.plan-now { font-weight: 700; color: var(--coral); }
.plan-now strong { font-family: var(--font-round); font-size: 2.25rem; line-height: 1.2; }
.plan-price small { color: var(--text-sub); font-size: 0.8125rem; }
.plan ul li, .price-card ul li { position: relative; padding: 3px 0 3px 22px; font-size: 0.9375rem; }
.plan ul li::before, .price-card ul li::before { content: "✓"; position: absolute; left: 2px; top: 3px; font-weight: 700; color: var(--sea); }
.plan-sample { margin: 12px 0 0; padding: 8px 12px; font-size: 0.875rem; background: var(--sea-soft); border-radius: 8px; }

.price-sub { display: grid; gap: 16px; max-width: 880px; margin: 24px auto 0; }
.price-card { padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.price-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.price-line { margin-bottom: 10px; font-weight: 700; color: var(--sea-dark); }
.price-line strong { font-family: var(--font-round); font-size: 1.75rem; }
.price-line span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--text-sub); }
.price-small { margin: 10px 0 0; font-size: 0.875rem; color: var(--text-sub); }

.option-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.option-table th, .option-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.option-table td { text-align: right; white-space: nowrap; font-weight: 700; color: var(--sea-dark); }

.price-notes { max-width: 880px; margin: 20px auto 0; font-size: 0.875rem; color: var(--text-sub); }
.price-notes li { padding-left: 1em; text-indent: -1em; }
.price-notes li::before { content: "※"; }

/* ---------- 制作の流れ ---------- */
.flow { display: grid; gap: 12px; counter-reset: step; }

.flow-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 16px 64px;
  counter-increment: step;
}

.flow-step::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-family: var(--font-round);
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
}

.flow-step h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.flow-step p { margin: 0; color: var(--text-sub); font-size: 0.9375rem; }

/* ---------- プロフィール ---------- */
.profile {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 28px 24px;
}

.profile-name { font-family: var(--font-round); font-size: 1.25rem; font-weight: 700; color: var(--sea-dark); margin-bottom: 12px; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--sea); color: #fff; padding: 64px 0; text-align: center; }
.contact h2 { color: #fff; font-size: 1.625rem; margin-bottom: 12px; }
.contact p { color: #fff; }
.contact .btn-light { background: #fff; color: var(--sea-dark); }
.contact .btn-light:hover { background: var(--sea-soft); }
.contact a:not(.btn) { color: #fff; }
.contact .todo { color: var(--text); }

/* ---------- フッター ---------- */
.site-footer { background: var(--sea-dark); color: #e6f0f1; padding: 24px 0; font-size: 0.875rem; text-align: center; }
.site-footer p { margin: 0; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .nav-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; border-top: 0; background: transparent; }
  .global-nav ul { display: flex; gap: 4px; }
  .global-nav a { padding: 8px 12px; border-bottom: 0; font-size: 0.9375rem; border-radius: 999px; }

  .hero { padding: 104px 0 128px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-lead { font-size: 1.125rem; }
  .hero-actions { flex-direction: row; }

  .section { padding: 88px 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(3, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .plans, .price-sub { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .profile { padding: 36px 40px; }
}
