:root {
  --bg: #fbfaf7;
  --bg-soft: #f7f1e7;
  --surface: #ffffff;
  --surface-soft: #fff9ed;
  --line: #eadfce;
  --line-soft: #f2eadf;

  --text: #2f2a24;
  --text-sub: #746b5f;
  --text-muted: #9b9185;

  --primary: #d99a16;
  --primary-dark: #a66f00;
  --primary-soft: #fff1cf;
  --primary-pale: #fff8e8;

  --blue: #3f86df;
  --blue-soft: #eaf3ff;

  --green: #36a968;
  --green-soft: #e8f8ee;

  --purple: #8d78bd;
  --purple-soft: #f2ecfb;

  --red: #cc5b4a;
  --red-soft: #fff0ed;

  --warning-text: #8a6a1e;

  --shadow: 0 10px 28px rgba(71, 54, 30, 0.07);
  --shadow-soft: 0 6px 18px rgba(71, 54, 30, 0.05);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  --sidebar: 280px;
  --content-max: 1560px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(217, 154, 22, 0.08), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 52%, #fff 100%);
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 20px 24px;
  background: rgba(255, 255, 255, 0.84);
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 10;
}

.brand {
  padding: 0 8px 10px;
}

.brand__logo {
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9e6900;
}

.brand__sub {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.navtoggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #7a5400;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;        /* 残りの高さを占有 */
  min-height: 0;
  overflow-y: auto;      /* メニューが多くてもスクロールで全部見える */
  overflow-x: hidden;
}
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: #e3d9c4; border-radius: 8px; }

.nav__item,
.nav__parent {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #3f3932;
  transition: 0.18s ease;
}

.nav__item:hover,
.nav__parent:hover {
  background: #fff7e8;
  color: var(--primary-dark);
}

.nav__item.is-active {
  background: var(--primary-pale);
  color: var(--primary-dark);
  border: 1px solid #f3c873;
  box-shadow: var(--shadow-soft);
}

.nav__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: currentColor;
}

/* SVGアイコン共通（線アイコン・currentColor） */
.nav__icon svg,
.service-icon svg,
.stat-icon svg,
.step__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__icon svg { width: 19px; height: 19px; }
.service-icon svg { width: 28px; height: 28px; }
.stat-icon svg { width: 24px; height: 24px; }
.step__icon svg { width: 23px; height: 23px; }

.nav__chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  margin-right: -6px;
  border-radius: 8px;
  transition: transform .15s ease, background .12s;
  line-height: 1;
}
.nav__chevron:hover { background: rgba(0,0,0,.06); }
.nav-group.collapsed .submenu { display: none; }
.nav-group.collapsed .nav__chevron { transform: rotate(-90deg); }

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.submenu {
  margin: 2px 0 10px 27px;
  padding-left: 18px;
  border-left: 1px solid #ded4c6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submenu__item {
  position: relative;
  padding: 8px 10px 8px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #5f564d;
}

.submenu__item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 11px;
  height: 1px;
  background: #ded4c6;
}

.submenu__item:hover,
.submenu__item.is-active {
  background: #fff7e8;
  color: var(--primary-dark);
}

.support-card {
  margin-top: 4px;
  flex: 0 0 auto;               /* nav がスクロールしてもサポート枠は縮めない */
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ed 100%);
  box-shadow: var(--shadow-soft);
  overflow: visible;            /* 人物イラストを枠からはみ出させる */
  position: relative;
  margin-bottom: 6px;
}

.support-illust {
  height: 108px;
  margin-bottom: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 48% 28%, #f3d7bd 0 8px, transparent 9px),
    radial-gradient(circle at 44% 24%, #7d4f3a 0 22px, transparent 23px),
    linear-gradient(145deg, transparent 0 52%, rgba(68, 93, 118, 0.18) 53% 72%, transparent 73%),
    linear-gradient(90deg, transparent 0 24%, #f5dfc9 25% 42%, transparent 43%),
    linear-gradient(135deg, #fff7eb, #f1e1d0);
  position: relative;
}

/* 人物イラスト：枠の上・左右にはみ出して“ポップ”させる（:has非依存・常時適用） */
.support-illust {
  height: auto;
  width: 116%;
  margin: -50px -8% 2px;
  border-radius: 0;
  background: none;
  filter: drop-shadow(0 8px 10px rgba(80, 60, 35, 0.12));
}

.support-illust::before {
  content: "";
  position: absolute;
  left: 52px;
  bottom: 24px;
  width: 82px;
  height: 34px;
  border-radius: 8px;
  background: #e7edf1;
  box-shadow: 0 10px 18px rgba(70, 58, 39, 0.08);
  transform: skewX(-10deg);
}

/* イラストは装飾ボックスを消して画像のみ表示（:has非依存） */
.support-illust,
.guide-illust {
  background: none;
}

.support-illust::before,
.support-illust::after,
.guide-illust::before,
.guide-illust::after {
  display: none;
}

.support-illust img,
.guide-illust img {
  width: 100%;
  height: auto;
  display: block;
}

.support-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.support-card__badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.support-card__title {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.support-card__text {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-sub);
  text-align: center;
}

.support-card__line {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.support-card__line svg {
  flex: 0 0 auto;
}

.main {
  min-width: 0;
  padding: 24px 30px 34px;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.search {
  width: min(520px, 100%);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.search__icon {
  font-size: 17px;
  color: var(--text-sub);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid #f0d59a;
}

.user__name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.user__role {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}

.plan-badge {
  min-width: 190px;
  border-radius: 999px;
  border: 1px solid #f0d59a;
  background: #fffaf0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-badge__icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #ffe7ad;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-size: 15px;
}

.plan-badge__name {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.plan-badge__balance {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.notice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #eed7a7;
  background: linear-gradient(180deg, #fff8e8 0%, #fff4dd 100%);
  color: var(--warning-text);
  margin-bottom: 28px;
}

.notice__icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #e4b95e;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.notice strong {
  margin-right: 8px;
  font-weight: 800;
  color: var(--primary-dark);
}

.notice--flash {
  background: linear-gradient(180deg, #eef8f0 0%, #e6f5ea 100%);
  border-color: #bfe3c8;
  color: #2c7a48;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-head span {
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.service-card {
  min-height: 218px;
  padding: 26px 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -44px -58px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(217, 154, 22, 0.05);
  pointer-events: none;
}

.service-card--blue::after {
  background: rgba(63, 134, 223, 0.06);
}

.service-card--green::after {
  background: rgba(54, 169, 104, 0.06);
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.service-card--blue .service-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.service-card--green .service-icon {
  background: var(--green-soft);
  color: var(--green);
}

.service-content h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-sub {
  margin: 0 0 14px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
}

.service-desc {
  margin: 0;
  color: #524a42;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 500;
}

.service-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.service-note {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 23px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn--blue {
  color: var(--blue);
}

.btn--green {
  color: var(--green);
}

.btn--solid {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--disabled {
  color: var(--text-muted);
  background: #f3efe7;
  border-color: #e3d9c9;
  cursor: not-allowed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--blue-soft);
  color: var(--blue);
  flex: 0 0 auto;
}

.stat-card:nth-child(2) .stat-icon {
  background: var(--primary-pale);
  color: var(--primary);
}

.stat-card:nth-child(3) .stat-icon {
  background: var(--green-soft);
  color: var(--green);
}

.stat-card:nth-child(4) .stat-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.stat-label {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-unit {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.05fr) minmax(520px, 1.45fr);
  gap: 16px;
  margin-bottom: 26px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-link {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  position: relative;
  padding: 10px 0 4px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 7.5%;
  right: 7.5%;
  height: 1px;
  background: #efd6a3;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  min-width: 0;
}

.step__num {
  width: 22px;
  height: 22px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #ebb448;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.step__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--primary-pale);
  color: var(--primary);
}

.step:nth-child(2) .step__icon {
  background: #fff0ed;
  color: #d97968;
}

.step:nth-child(3) .step__icon {
  background: #eaf3ff;
  color: #4e90dc;
}

.step:nth-child(4) .step__icon {
  background: #edf4ff;
  color: #598adf;
}

.step:nth-child(5) .step__icon {
  background: #edf4ff;
  color: #5d86cd;
}

.step:nth-child(6) .step__icon {
  background: #e8f8ee;
  color: #39a96d;
}

.step:nth-child(7) .step__icon {
  background: #e6f8ee;
  color: #2fa35f;
}

.step__label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 32px;
}

.step__count {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.step__unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-left: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-width: 0;
}

.product-img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #d9c8b3 0%, #f5ede2 45%, #e0c1a7 100%);
  position: relative;
  border: 1px solid rgba(126, 97, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* 実画像があるときは装飾を消して写真を表示 */
.product-img img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img:has(img) {
  background: var(--bg-soft);
}

.product-img:has(img)::before,
.product-img:has(img)::after {
  display: none;
}

.product-img::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  width: 36%;
  height: 55%;
  border-radius: 999px 999px 18px 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 -16px 0 -8px rgba(89, 57, 37, 0.22);
}

.product-img::after {
  content: "";
  position: absolute;
  inset: auto 18% 10% 18%;
  height: 19%;
  border-radius: 60% 60% 12px 12px;
  background: rgba(214, 158, 101, 0.38);
}

.product-name {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-brand {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.product-price {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: #514a43;
  font-size: 12px;
  font-weight: 700;
}

.guide-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.guide-text {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.85;
  font-weight: 500;
}

.guide-illust {
  height: 92px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 82%, #9dc389 0 14px, transparent 15px),
    linear-gradient(90deg, transparent 0 24%, #d4aa62 25% 31%, transparent 32%),
    linear-gradient(105deg, transparent 0 26%, #fffaf0 27% 50%, #f1e0bf 51% 53%, #fff6e8 54% 76%, transparent 77%),
    linear-gradient(180deg, transparent 0 72%, #d6aa61 73% 82%, transparent 83%);
  position: relative;
}

.guide-illust::before {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 15px;
  width: 28px;
  height: 48px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #96bb8b, #7ca76f);
}

.guide-illust::after {
  content: "";
  position: absolute;
  left: 50px;
  right: 30px;
  bottom: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(115, 82, 40, 0.18);
}

.guide-btn {
  justify-self: end;
  color: var(--primary-dark);
  background: #fffdf7;
}

@media (max-width: 1280px) {
  :root {
    --sidebar: 248px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(6, minmax(110px, 1fr));
  }
}

.line-card-bottom {
  display: none;
}

@media (max-width: 980px) {
  .app {
    display: block;
  }

  /* LINE窓口カード: スマホではサイドバー上部でなく、ページ下部（line-card-bottom）に出す */
  .sidebar .line-card {
    display: none;
  }

  .line-card-bottom {
    display: block;
    margin-top: 32px;
    padding: 20px 6px 10px;
    border-top: 1px solid var(--line-soft);
    text-align: center;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .navtoggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
  }

  .sidebar.open .nav {
    display: grid;
  }

  .nav-group {
    min-width: 0;
  }

  .submenu {
    margin-bottom: 6px;
  }

  .support-card {
    display: none;
  }

  .main {
    padding: 20px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .user-area {
    justify-content: space-between;
  }

  .search {
    width: 100%;
  }

  .service-grid,
  .stats-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-columns: 1fr;
  }

  .guide-btn {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px 14px 28px;
  }

  .notice {
    align-items: flex-start;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand__logo {
    font-size: 28px;
  }

  .user-area {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-badge {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .service-card {
    padding: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-value {
    font-size: 24px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding: 14px 10px;
    border-radius: 16px;
    background: #fffaf2;
    border: 1px solid var(--line-soft);
  }

  .step__num {
    margin-bottom: 10px;
  }

  .step__label {
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-actions {
    width: 100%;
  }

  .service-note,
  .btn {
    width: 100%;
  }
}
