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

:root {
  --bg:        #f4f3ee;
  --bg-w:      #ffffff;
  --bg-d:      #ebe8e1;
  --text:      #1a1a1a;
  --text-2:    #555;
  --text-3:    #888;
  --accent:    #b5763a;
  --accent-bg: #f7f0e8;
  --border:    #e5dfd7;
  --serif:     'Noto Serif JP', 'Yu Mincho', Georgia, serif;
  --sans:      'Noto Sans JP', -apple-system, sans-serif;
  --mw:        1200px;
}
html { font-size: 17px; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* SWELL overrides */
.l-header { display: none !important; }
.l-sidebar { display: none !important; }
.l-mainContent { max-width: 100% !important; width: 100% !important; padding: 0 !important; }
.l-main { padding-top: 0 !important; margin-top: 0 !important; }
.l-wrap { padding-top: 0 !important; margin-top: 0 !important; }
.post_content { padding: 0 !important; }
html, body { margin-top: 0 !important; padding-top: 0 !important; }

/* Header (shared) */
.uc-hdr { position: sticky; top: 0; z-index: 200; background: var(--bg-w); border-bottom: 1px solid var(--border); }
.uc-hdr-top { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 60px; }
.uc-hdr-logo { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .1em; color: var(--text); }
.uc-hdr-logo-icon { flex-shrink: 0; color: var(--accent); }
.uc-hdr-ham { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px 0; font-family: var(--sans); font-size: .75rem; color: var(--text-2); letter-spacing: .06em; }
.uc-hdr-ham-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.uc-hdr-ham-bar { display: block; height: 1.5px; background: var(--text); border-radius: 1px; transition: all .25s; }
.uc-hdr-ham.open .uc-hdr-ham-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.uc-hdr-ham.open .uc-hdr-ham-bar:nth-child(2) { opacity: 0; }
.uc-hdr-ham.open .uc-hdr-ham-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.uc-hdr-search-bar { background: var(--bg); border-top: 1px solid var(--border); padding: 0 40px; height: 46px; display: flex; align-items: center; }
.uc-hdr-search-form { display: flex; align-items: center; gap: 10px; max-width: 600px; width: 100%; margin: 0 auto; }
.uc-hdr-search-icon { color: var(--text-3); flex-shrink: 0; }
.uc-hdr-search-input { flex: 1; border: none; background: transparent; font-family: var(--sans); font-size: .88rem; color: var(--text); outline: none; }
.uc-hdr-search-input::placeholder { color: var(--text-3); }
.uc-hdr-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; }
.uc-hdr-overlay.open { opacity: 1; pointer-events: auto; }
.uc-hdr-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg-w); z-index: 400; transform: translateX(100%); transition: transform .32s cubic-bezier(.25,.46,.45,.94); display: flex; flex-direction: column; overflow-y: auto; }
.uc-hdr-drawer.open { transform: translateX(0); }
.uc-hdr-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--border); }
.uc-hdr-drawer-logo { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; letter-spacing: .1em; color: var(--text); }
.uc-hdr-drawer-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-3); padding: 4px; transition: color .2s; }
.uc-hdr-drawer-close:hover { color: var(--accent); }
.uc-hdr-nav-list { list-style: none; padding: 20px 0; }
.uc-hdr-nav-link { display: block; padding: 14px 28px; font-family: var(--serif); font-size: 1rem; letter-spacing: .04em; color: var(--text); border-bottom: 1px solid var(--border); transition: color .2s, background .2s; }
.uc-hdr-nav-link:hover { color: var(--accent); background: var(--accent-bg); }

/* Page */
.hr-page {
  font-family: var(--sans); font-size: 1rem; line-height: 1.8;
  color: var(--text); background: var(--bg-w); -webkit-font-smoothing: antialiased;
}
.hr-inner { max-width: 900px; margin: 0 auto; padding: 0 40px; }

/* Progress */
.hr-progress { padding: 48px 0 40px; text-align: center; }
.hr-prog-track { height: 3px; background: var(--border); border-radius: 2px; max-width: 320px; margin: 0 auto 8px; }
.hr-prog-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s ease; }
.hr-prog-label { font-size: .72rem; letter-spacing: .2em; color: var(--text-3); font-family: var(--sans); }

/* Steps */
.hr-step { padding-bottom: 80px; }
.hr-h2 { font-family: var(--serif); font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: .04em; line-height: 1.7; margin-bottom: 44px; position: relative; }
.hr-skip-btn { position: absolute; top: 0; right: 0; background: none; border: none; cursor: pointer; font-size: .75rem; color: var(--text-3); font-family: var(--sans); letter-spacing: .06em; padding: 4px 0; transition: color .2s; }
.hr-skip-btn:hover { color: var(--accent); }
.hr-back-wrap { margin-bottom: 24px; }
.hr-back-btn { background: none; border: none; cursor: pointer; font-size: .82rem; color: var(--text-3); font-family: var(--sans); letter-spacing: .04em; padding: 0; transition: color .2s; }
.hr-back-btn:hover { color: var(--accent); }

/* Status cards */
.hr-st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hr-stcard {
  display: flex; flex-direction: column; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 6px; overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-align: center; position: relative; font-family: var(--serif);
}
.hr-stcard:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(0,0,0,.1); border-color: var(--accent); }
.hr-stcard.active { border-color: var(--accent); background: var(--accent-bg); }
.hr-stcard-img { width: 100%; aspect-ratio: 1/1; max-height: 130px; object-fit: cover; display: block; }
.hr-stcard-body { padding: 16px 12px 20px; }
.hr-stcard-name { font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.hr-stcard.active .hr-stcard-name { color: var(--accent); }
.hr-stcard-desc { font-size: .75rem; color: var(--text-3); line-height: 1.7; font-family: var(--sans); }
.hr-stcard-chk { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .6rem; display: none; align-items: center; justify-content: center; }
.hr-stcard.active .hr-stcard-chk { display: flex; }

/* Concern grid */
.hr-s2-sub { font-size: .85rem; color: var(--text-3); margin-bottom: 28px; font-family: var(--sans); }
.hr-cg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 36px; }
.hr-ccard {
  padding: 14px 12px; text-align: center; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer;
  font-family: var(--serif); font-size: .85rem; line-height: 1.6;
  transition: all .2s; user-select: none; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hr-ccard:hover { border-color: var(--accent); background: var(--accent-bg); }
.hr-ccard.selected { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.hr-ccard-chk { font-size: .7rem; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; font-family: var(--sans); }
.hr-ccard.selected .hr-ccard-chk { display: flex; }
.hr-ccard-text { display: block; }
.hr-show-result-wrap { text-align: center; }
.hr-show-result-btn { display: inline-flex; align-items: center; gap: 6px; padding: 13px 36px; background: var(--accent); color: #fff; font-size: .9rem; font-family: var(--sans); font-weight: 500; letter-spacing: .06em; border: none; border-radius: 2px; cursor: pointer; transition: background .2s, transform .2s; }
.hr-show-result-btn:hover { background: #9c6430; transform: translateY(-1px); }

/* Result */
.hr-result { background: var(--bg); padding: 60px 0 100px; }
.hr-result-inner { max-width: 900px; margin: 0 auto; padding: 0 40px; }
.hr-r-disc { font-size: .8rem; color: #888; padding: 14px 18px; border-left: 3px solid var(--border); margin-bottom: 52px; line-height: 1.8; font-family: var(--sans); }
.hr-r-section { margin-bottom: 52px; }
.hr-r-sec-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: var(--text); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.hr-tn-list { list-style: none; }
.hr-tn-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--serif); font-size: .95rem; }
.hr-tn-check { flex-shrink: 0; width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 3px; margin-top: 3px; }
.hr-tn-sub-label { margin-top: 20px; margin-bottom: 8px; font-size: .75rem; color: var(--text-3); letter-spacing: .1em; font-family: var(--sans); }
.hr-r-tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hr-r-tcard { display: flex; background: var(--bg-w); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s; }
.hr-r-tcard:hover { transform: translateY(-3px); }
.hr-r-tcard-img { width: 110px; flex-shrink: 0; object-fit: cover; }
.hr-r-tcard-body { padding: 14px 16px; display: flex; flex-direction: column; }
.hr-r-tcard-name { font-family: var(--serif); font-size: .95rem; font-weight: 700; margin-bottom: 5px; }
.hr-r-tcard-desc { font-size: .78rem; color: var(--text-2); line-height: 1.8; flex: 1; }
.hr-r-tcard-cta { font-size: .78rem; color: var(--accent); margin-top: 8px; }
.hr-pg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hr-pcard { display: flex; flex-direction: column; background: var(--bg-w); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; text-decoration: none; color: var(--text); }
.hr-pcard:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.hr-pcard-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--accent-bg); }
.hr-pcard-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hr-pcard-cat { font-size: .7rem; color: var(--accent); font-family: var(--sans); letter-spacing: .04em; }
.hr-pcard-title { font-family: var(--serif); font-size: .95rem; font-weight: 400; line-height: 1.8; flex: 1; }
.hr-r-reset { text-align: center; margin-top: 16px; }
.hr-redo-btn { background: none; border: 1.5px solid var(--border); border-radius: 2px; padding: 12px 32px; font-size: .85rem; font-family: var(--sans); color: var(--text-3); cursor: pointer; letter-spacing: .06em; transition: all .2s; }
.hr-redo-btn:hover { border-color: var(--accent); color: var(--accent); }
.hr-h2-label { font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 500; letter-spacing: .04em; line-height: 1.5; margin-bottom: 28px; }
.hp-loading { text-align: center; color: var(--text-3); font-size: .85rem; padding: 40px 0; }

@media (max-width: 980px) {
  .uc-hdr-top { padding: 0 28px; }
  .uc-hdr-search-bar { padding: 0 28px; }
  .hr-inner { padding: 0 28px; }
  .hr-st-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hr-cg-grid { grid-template-columns: repeat(3, 1fr); }
  .hr-r-tgrid { grid-template-columns: 1fr; }
  .hr-result-inner { padding: 0 28px; }
}
@media (max-width: 600px) {
  .uc-hdr-top { padding: 0 20px; height: 54px; }
  .uc-hdr-search-bar { padding: 0 20px; }
  .hr-inner { padding: 0 20px; }
  .hr-h2 { margin-bottom: 28px; }
  .hr-skip-btn { position: static; display: block; margin-bottom: 14px; text-align: right; }
  .hr-st-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hr-stcard-body { padding: 12px 10px 16px; }
  .hr-cg-grid { grid-template-columns: repeat(2, 1fr); }
  .hr-r-tgrid { grid-template-columns: 1fr; }
  .hr-pg-grid { grid-template-columns: 1fr; }
  .hr-result-inner { padding: 0 20px; }
}