/* =====================================================
   委任状説明ページ — proxy.css
   ===================================================== */

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

:root {
  --c-navy:        #0d2d4f;
  --c-blue-deep:   #1155a0;
  --c-blue:        #1a6fc4;
  --c-blue-bright: #2b8de8;
  --c-blue-light:  #5aaff0;
  --c-gold:        #c8931a;

  --c-danger:      #c0392b;
  --c-danger-bg:   #fff5f5;
  --c-danger-bd:   #f5c6c6;
  --c-warn:        #d97706;
  --c-warn-bg:     #fffbeb;
  --c-warn-bd:     #fde68a;
  --c-info-bg:     #eff6ff;
  --c-info-bd:     #bfdbfe;
  --c-success:     #1a7a43;
  --c-success-bg:  #f0fdf4;
  --c-success-bd:  #a7f3d0;

  --c-text:        #0d2d4f;
  --c-text-2:      #2c4a68;
  --c-text-3:      #6b7e96;
  --c-border:      #d8e6f3;
  --c-bg:          #f4f8fd;
  --c-bg-alt:      #eef4fb;
  --c-white:       #ffffff;

  --f-sans:        'Noto Sans JP', sans-serif;
  --f-serif:       'Noto Serif JP', serif;

  --sh-xs:  0 1px 4px rgba(17,85,160,.05);
  --sh-sm:  0 2px 12px rgba(17,85,160,.08);
  --sh-md:  0 6px 28px rgba(17,85,160,.10);
  --sh-lg:  0 12px 44px rgba(17,85,160,.13);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --tr: .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--f-sans);
  background: var(--c-white);
  color: var(--c-text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 64px;
}

/* ---- Layout ---- */
.container        { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* =====================================================
   HEADER
   ===================================================== */
.px-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--tr);
}
.px-header.is-scrolled { box-shadow: var(--sh-sm); }

.px-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.px-header__logo { flex-shrink: 0; }
.px-header__logo-img { height: 36px; width: auto; display: block; }

.px-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.px-header__nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--tr), color var(--tr);
  white-space: nowrap;
}
.px-header__nav-link:hover {
  background: var(--c-bg);
  color: var(--c-blue-deep);
}

/* ハンバーガー */
.px-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}
.px-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.px-header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.px-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.px-header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ */
.px-header__mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding: 8px 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.px-header__mobile-nav.is-open {
  max-height: 400px;
}
.px-header__mobile-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 12px 24px;
  display: block;
  border-bottom: 1px solid var(--c-bg);
}
.px-header__mobile-nav a:hover { background: var(--c-bg); }

/* =====================================================
   HERO
   ===================================================== */
.px-hero {
  background: linear-gradient(145deg, #0b2240 0%, #1155a0 55%, #1a6fc4 100%);
  color: var(--c-white);
  padding: 80px 28px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.px-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.px-hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.px-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.px-hero__title {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.px-hero__title-accent {
  color: #fde68a;
  font-size: 1.15em;
  font-weight: 900;
}

.px-hero__sub {
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
}

.px-hero__cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.px-hero__scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 20px;
  animation: bounce 2s ease-in-out infinite;
  transition: opacity .3s;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   CTA BUTTONS
   ===================================================== */
.px-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  transition: transform var(--tr), box-shadow var(--tr), opacity var(--tr);
  cursor: pointer;
}
.px-cta:hover { transform: translateY(-2px); }

.px-cta--primary {
  background: linear-gradient(90deg, #1155a0, #1a6fc4);
  color: var(--c-white);
  box-shadow: 0 4px 18px rgba(17,85,160,.35);
}
.px-cta--primary:hover { box-shadow: 0 8px 28px rgba(17,85,160,.45); }

.px-cta--outline {
  background: transparent;
  color: var(--c-blue-deep);
  border: 2px solid var(--c-blue-deep);
}
.px-hero .px-cta--outline {
  color: var(--c-white);
  border-color: rgba(255,255,255,.6);
}
.px-cta--outline:hover { background: rgba(17,85,160,.06); }

.px-cta--lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.px-section {
  padding: 80px 0;
}
.px-section--alt {
  background: var(--c-bg-alt);
}
.px-section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--c-blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.px-section__title {
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 18px;
  line-height: 1.4;
}
.px-section__lead {
  font-size: 16px;
  color: var(--c-text-2);
  line-height: 1.9;
  margin-bottom: 36px;
}

/* =====================================================
   NOTICE BOXES
   ===================================================== */
.px-notice-box {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border-left: 4px solid;
}
.px-notice-box--warning {
  background: var(--c-warn-bg);
  border-color: var(--c-warn);
}
.px-notice-box--warning .px-notice-box__icon { color: var(--c-warn); }
.px-notice-box--info {
  background: var(--c-info-bg);
  border-color: var(--c-blue);
}
.px-notice-box--info .px-notice-box__icon { color: var(--c-blue); }
.px-notice-box--danger {
  background: var(--c-danger-bg);
  border-color: var(--c-danger);
}
.px-notice-box--danger .px-notice-box__icon { color: var(--c-danger); }

.px-notice-box__icon {
  font-size: 26px;
  flex-shrink: 0;
  padding-top: 2px;
}
.px-notice-box__body { flex: 1; }
.px-notice-box__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 12px;
}
.px-notice-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.px-notice-list li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-2);
}
.px-notice-list li strong { color: var(--c-navy); }

/* =====================================================
   COMPARE TABLE
   ===================================================== */
.px-compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--sh-md);
  border: 1px solid var(--c-border);
}
.px-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--c-white);
  font-size: 14px;
}
.px-compare-table thead tr {
  background: linear-gradient(90deg, #0d2d4f, #1155a0);
}
.px-compare-table thead th {
  padding: 16px 20px;
  color: var(--c-white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
  vertical-align: middle;
}
.px-compare-table__item-col { width: 22%; text-align: left !important; }
.px-compare-table__a-col, .px-compare-table__b-col { width: 39%; }

.px-compare-table tbody tr {
  border-bottom: 1px solid var(--c-border);
}
.px-compare-table tbody tr:last-child { border-bottom: none; }
.px-compare-table tbody tr:hover { background: var(--c-bg); }

.px-compare-table__item {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 13px;
  color: var(--c-text-2);
  background: var(--c-bg-alt);
  border-right: 1px solid var(--c-border);
}
.px-compare-table__a {
  padding: 16px 20px;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  border-right: 1px solid var(--c-border);
  background: var(--c-success-bg);
}
.px-compare-table__b {
  padding: 16px 20px;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
.px-compare-table__b--warn {
  background: var(--c-warn-bg);
}
.px-compare-table__b--warn strong { color: var(--c-danger); }

/* バッジ */
.px-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.px-badge--safe {
  background: var(--c-success-bg);
  color: var(--c-success);
  border: 1px solid var(--c-success-bd);
}
.px-badge--caution {
  background: var(--c-warn-bg);
  color: var(--c-warn);
  border: 1px solid var(--c-warn-bd);
}

/* タグ */
.px-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.px-tag--safe { background: var(--c-success-bg); color: var(--c-success); }
.px-tag--warn { background: var(--c-warn-bg); color: #b45309; }

/* =====================================================
   CAUTION CARDS
   ===================================================== */
.px-caution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.px-caution-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-danger);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--sh-sm);
  position: relative;
}
.px-caution-card__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-danger);
  margin-bottom: 10px;
}
.px-caution-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.px-caution-card__title i { color: var(--c-blue); font-size: 18px; }
.px-caution-card__body {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.8;
}
.px-caution-card__body strong { color: var(--c-navy); }

/* =====================================================
   QUO BOX
   ===================================================== */
.px-quo-box {
  display: flex;
  gap: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-warn-bd);
  border-left: 4px solid var(--c-warn);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--sh-sm);
}
.px-quo-box__icon {
  font-size: 36px;
  color: var(--c-warn);
  flex-shrink: 0;
  padding-top: 4px;
}
.px-quo-box__body { flex: 1; }
.px-quo-box__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 12px;
}
.px-quo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.px-quo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.px-quo-list li i { color: var(--c-blue); margin-top: 3px; flex-shrink: 0; }

/* =====================================================
   STEPS
   ===================================================== */
.px-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.px-step {
  flex: 1;
  min-width: 200px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--sh-sm);
  text-align: center;
}
.px-step__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1155a0, #2b8de8);
  color: var(--c-white);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.px-step__num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--c-blue);
  margin-bottom: 8px;
}
.px-step__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 10px;
}
.px-step__body {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.75;
}
.px-step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--c-blue-light);
  font-size: 20px;
  margin-top: 60px;
}

/* =====================================================
   RETURN INFO
   ===================================================== */
.px-return-info {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  margin-bottom: 36px;
}
.px-return-info__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--c-border);
}
.px-return-info__item:last-child { border-bottom: none; }
.px-return-info__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue-deep);
  white-space: nowrap;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
.px-return-info__label i { color: var(--c-blue); }
.px-return-info__val {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.75;
}
.px-return-info__val small {
  display: block;
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 4px;
}

/* プレースホルダー */
.px-placeholder {
  background: #fef3c7;
  border: 1.5px dashed #f59e0b;
  color: #92400e;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

.px-return-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   FAQ
   ===================================================== */
.px-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.px-faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: box-shadow var(--tr);
}
.px-faq-item[open] {
  box-shadow: var(--sh-md);
  border-color: var(--c-blue);
}

.px-faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.6;
  list-style: none;
  user-select: none;
  transition: background var(--tr);
}
.px-faq-item__q::-webkit-details-marker { display: none; }
.px-faq-item__q:hover { background: var(--c-bg); }
.px-faq-item[open] .px-faq-item__q { background: var(--c-bg-alt); }

.px-faq-item__q-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1155a0, #2b8de8);
  color: var(--c-white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.px-faq-item__a {
  padding: 20px 24px 24px;
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.85;
  border-top: 1px solid var(--c-border);
}
.px-faq-item__a p + p { margin-top: 10px; }
.px-faq-item__a strong { color: var(--c-navy); }

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

/* =====================================================
   CLOSING
   ===================================================== */
.px-closing {
  background: linear-gradient(145deg, #0b2240 0%, #1155a0 70%, #1a6fc4 100%);
  color: var(--c-white);
  text-align: center;
}
.px-closing__inner {
  max-width: 700px;
  margin: 0 auto;
}
.px-closing__icon {
  font-size: 44px;
  color: #fde68a;
  margin-bottom: 20px;
}
.px-closing__title {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}
.px-closing__body {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
}
.px-closing__cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.px-closing .px-cta--primary {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  color: var(--c-white);
  box-shadow: none;
}
.px-closing .px-cta--primary:hover {
  background: rgba(255,255,255,.25);
  box-shadow: none;
}
.px-closing .px-cta--outline {
  color: var(--c-white);
  border-color: rgba(255,255,255,.4);
}

/* =====================================================
   FOOTER
   ===================================================== */
.px-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.7);
  padding: 36px 0 20px;
}
.px-footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.px-footer__logo-img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.px-footer__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
}
.px-footer__note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.px-footer__back-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tr);
}
.px-footer__back-link:hover { color: var(--c-white); }
.px-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  body { padding-top: 56px; }

  .px-header__inner { height: 56px; padding: 0 16px; }
  .px-header__logo-img { height: 30px; }
  .px-header__nav { display: none; }
  .px-header__hamburger { display: flex; }
  .px-header__mobile-nav { display: flex; }

  .px-hero { padding: 60px 20px 56px; }

  .px-section { padding: 56px 0; }
  .container, .container--narrow { padding: 0 16px; }

  .px-notice-box {
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px;
  }
  .px-notice-box__icon { font-size: 22px; }

  .px-compare-table { font-size: 13px; }
  .px-compare-table thead th,
  .px-compare-table__item,
  .px-compare-table__a,
  .px-compare-table__b { padding: 12px 14px; }

  .px-caution-cards { grid-template-columns: 1fr; }

  .px-quo-box {
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px;
  }

  .px-steps {
    flex-direction: column;
    gap: 16px;
  }
  .px-step__arrow {
    transform: rotate(90deg);
    margin-top: 0;
    padding: 0;
    display: none;
  }

  .px-return-info__item {
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
  }
  .px-return-info__label { min-width: unset; }

  .px-return-cta { flex-direction: column; }

  .px-closing__cta-group { flex-direction: column; align-items: center; }

  .px-footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .px-hero__cta-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .px-hero__title { font-size: 1.45rem; }
  .px-section__title { font-size: 1.25rem; }
  .px-cta { padding: 12px 22px; font-size: 14px; }
  .px-cta--lg { padding: 14px 28px; font-size: 15px; }
}
