@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* ==================
   Reset & Base
================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f4ef;
  color: #3a3a36;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

/* ==================
   Header
================== */
header {
  background: #f5f4ef;
  border-bottom: 0.5px solid #d8d5cc;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
width: 100%;
max-width: 100px;
}

.back-link {
  font-size: 12px;
  color: #8a8880;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.back-link::before {
  content: '←';
}

.back-link:hover {
  color: #3a3a36;
}

/* ==================
   Main Layout
================== */
main {
  max-width: 600px;
  margin: 0 auto;
  padding: 132px 24px 120px;
}

/* ==================
   Step Indicator
================== */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}

.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}

.step.active {
  background: #3d6b56;
  color: #fff;
}

.step.done {
  background: #c8d9d0;
  color: #3d6b56;
}

.step.pending {
  background: #e8e6df;
  color: #aaa89f;
  border: 0.5px solid #d0cec6;
}

.step-line {
  flex: 1;
  height: 0.5px;
  background: #d0cec6;
  max-width: 40px;
}

.step-line.done-line {
  background: #c8d9d0;
}

/* ==================
   Page Sections
================== */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================
   Section Typography
================== */
.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #3d6b56;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.6;
  color: #2e2e2a;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 13px;
  line-height: 1.9;
  color: #7a7870;
  margin-bottom: 48px;
}

/* ==================
   Form
================== */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #5a5850;
  margin-bottom: 10px;
}

.required-mark {
  display: inline-block;
  font-size: 10px;
  color: #b8785a;
  margin-left: 6px;
  letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #fff;
  border: 0.5px solid #d0cec6;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: #3a3a36;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #c0bdb5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #3d6b56;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-right: 1px solid #8a8880;
  border-bottom: 1px solid #8a8880;
  rotate: 45deg;
  pointer-events: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

/* ==================
   Checkboxes
================== */
.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 0.5px solid #c0bdb5;
  border-radius: 2px;
  background: #fff;
  accent-color: #3d6b56;
  cursor: pointer;
  flex-shrink: 0;
}

.check-item span {
  font-size: 13px;
  color: #5a5850;
  letter-spacing: 0.02em;
}

/* ==================
   Buttons
================== */
.nav-row {
  display: flex;
  flex-direction: column;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: #3d6b56;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 48px;
}

.btn-primary:hover {
  background: #2e5040;
}

.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: #06c755;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 12px;
}

.btn-line:hover {
  background: #05b04b;
}

.line-icon {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-edit {
  background: none;
  border: 0.5px solid #d0cec6;
  border-radius: 3px;
  color: #8a8880;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  padding: 12px 32px;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  margin-top: 48px;
}

.btn-edit:hover {
  border-color: #8a8880;
  color: #5a5850;
}

/* ==================
   Privacy Note
================== */
.privacy-note {
  font-size: 11px;
  color: #aaa89f;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-top: 24px;
}

.privacy-note a {
  color: #3d6b56;
  text-decoration: none;
}

/* ==================
   Confirm Table
================== */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.confirm-table tr {
  border-bottom: 0.5px solid #e8e6df;
}

.confirm-table td:first-child {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8a8880;
  padding: 16px 0 14px;
  width: 140px;
  vertical-align: top;
}

.confirm-table td:last-child {
  font-size: 13px;
  color: #3a3a36;
  padding: 14px 0;
  line-height: 1.7;
}

/* ==================
   Complete Screen
================== */
.complete-icon {
  width: 72px;
  height: 72px;
  background: #e8f2ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.complete-icon svg {
  width: 32px;
  height: 32px;
}

.complete-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 300;
  color: #2e2e2a;
  text-align: center;
  margin-bottom: 16px;
}

.complete-desc {
  font-size: 13px;
  line-height: 2;
  color: #7a7870;
  text-align: center;
  margin-bottom: 48px;
}

/* ==================
   LINE CTA Card
================== */
.line-cta-card {
  background: #fff;
  border: 0.5px solid #d0cec6;
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
}

.line-cta-card .sub {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #aaa89f;
  margin-bottom: 10px;
}

.line-cta-card .title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 300;
  color: #2e2e2a;
  margin-bottom: 6px;
  line-height: 1.6;
}

.line-cta-card .note {
  font-size: 12px;
  color: #8a8880;
  margin-bottom: 20px;
  line-height: 1.7;
}

.line-cta-card .btn-line {
  margin-top: 0;
}

/* ==================
   Divider
================== */
.divider {
  height: 0.5px;
  background: #e2e0d8;
  margin: 40px 0;
}

/* ==================
   Back to Top
================== */
.back-to-top {
  text-align: center;
  font-size: 12px;
  color: #aaa89f;
  letter-spacing: 0.05em;
}

.back-to-top a {
  color: #3d6b56;
  text-decoration: none;
}
