/* ===========================
  PROCEDURES
=========================== */
.page-procedures .container{
  width: var(--container);
  margin: 0 auto;
}

/* HERO */
.procedures-hero {
  position: relative;
  padding: 64px 0 44px;
  overflow: hidden;
  background: linear-gradient(180deg, #e7f4ff 0%, #ffffff 70%);
}

.procedures-hero__bg {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(30, 32, 132, .08);
  filter: blur(0px);
}

.procedures-hero__eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(30, 32, 132, .75);
}

.procedures-hero__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: .02em;
}

.procedures-hero__lead {
  margin: 0;
  color: rgba(15, 23, 42, .78);
  line-height: 1.9;
  max-width: 48em;
}

/* HERO */
.proc-hero{
  padding: 44px 0 22px;
  background: #f3f6ff;
}
.proc-hero-inner{
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 18px;
  align-items: start;
}
.proc-kicker{ margin: 0 0 6px; letter-spacing: .12em; font-size: 12px; opacity: .7; }
.proc-title{ margin: 0 0 10px; font-size: clamp(22px, 3vw, 34px); font-weight: 900; }
.proc-lead{ margin: 0; color: rgba(15,23,42,.75); line-height: 1.8; }

.proc-hero-cta{ margin-top: 14px; }

.mypage-btn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.mypage-ic{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
}
.mypage-text{ display: grid; gap: 2px; }
.mypage-top{ font-weight: 900; font-size: 18px; }
.mypage-sub{ font-size: 12px; color: rgba(255,255,255,.75); }
.mypage-arrow{ opacity: .8; }

.proc-hero-mini{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mini-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  font-size: 13px;
}

.hero-note{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 14px;
}
.hero-note-head{ margin-bottom: 8px; }
.hero-badge{
  display: inline-block;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
}
.hero-note-list{
  margin: 0;
  padding-left: 1.2em;
  color: rgba(15,23,42,.78);
  line-height: 1.9;
}

/* STICKY NAV */
.proc-sticky{
  position: sticky;
  top: var(--header-h-pc, 96px);
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.proc-sticky-inner{
  padding: 10px 0;
  display: flex;
  gap: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.proc-chip{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration: none;
  color: inherit;
  font-weight: 900;
  font-size: 13px;
}

/* BODY */
.proc-body{ padding: 24px 0 64px; }

.proc-download .dl-card{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 18px;
}
.proc-download h2{ margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.proc-download p{ margin: 0; color: rgba(15,23,42,.72); line-height: 1.8; }

/* BLOCK */
.proc-block{ margin: 22px 0; }
.proc-head{ margin-bottom: 12px; }
.proc-h2{ margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.proc-desc{ margin: 0; color: rgba(15,23,42,.72); }

/* SUMMARY */
.proc-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.sum-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 12px 14px;
}
.sum-label{ display:block; font-size: 12px; opacity: .7; font-weight: 800; }
.sum-val{ display:block; margin-top: 6px; font-weight: 900; }

.badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}
.badge-warn{ background: #fff7ed; border-color: rgba(251,146,60,.35); }
.badge-danger{ background: #fff1f2; border-color: rgba(244,63,94,.30); }

/* ACCORDION */
.proc-acc{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  overflow: hidden;
}
.proc-acc-summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.proc-acc-summary::-webkit-details-marker{ display: none; }
.proc-acc[open] .acc-arrow{ transform: rotate(180deg); }
.acc-arrow{ transition: transform .18s ease; opacity: .7; }

.proc-acc-body{
  padding: 0 16px 16px;
}

/* TABLE (2 columns like reference) */
.proc-table{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
}
.trow{
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid rgba(0,0,0,.08);
}
.trow:first-child{ border-top: 0; }
.th{
  background: #f8fafc;
  padding: 12px 12px;
  font-weight: 900;
  color: rgba(15,23,42,.85);
}
.td{
  padding: 12px 12px;
  color: rgba(15,23,42,.78);
  line-height: 1.8;
}

/* CALLOUT */
.proc-callout{
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(251,146,60,.35);
}
.proc-callout i{ margin-top: 2px; }
.proc-callout.is-danger{
  background: #fff1f2;
  border-color: rgba(244,63,94,.30);
}
.callout-title{ margin: 0 0 4px; font-weight: 900; }
.callout-text{ margin: 0; color: rgba(15,23,42,.75); line-height: 1.8; }

/* actions */
.proc-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* footer note */
.proc-footnote .footnote-card{
  margin-top: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 16px;
}
.proc-footnote h2{ margin: 0 0 10px; font-size: 18px; font-weight: 900; }
.proc-footnote ul{ margin: 0; padding-left: 1.2em; color: rgba(15,23,42,.78); line-height: 1.9; }

/* responsive */
@media (max-width: 960px){
  .proc-hero-inner{ grid-template-columns: 1fr; }
  .proc-summary{ grid-template-columns: 1fr; }
  .trow{ grid-template-columns: 140px 1fr; }
  .proc-sticky{ top: var(--header-h-sp, 76px); }
}


/* 追加CSS */
/* ===== 窓口CTA（マイページなし版） ===== */
.cta-grid{
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.cta-card{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-decoration:none;
  color: inherit;
}

.cta-card--tel{
  border-color: rgba(15,23,42,.18);
}

.cta-card--line{
  border-color: rgba(0,0,0,.10);
}

.cta-ic{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: #f3f6ff;
}

.cta-text{ display:grid; gap:2px; }
.cta-top{ font-weight: 900; font-size: 16px; }
.cta-sub{ font-size: 12px; color: rgba(15,23,42,.70); }
.cta-arrow{ opacity: .7; }

/* 共通案内 */
.proc-common .common-card{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background:#fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 18px;
}
.common-card h2{ margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.common-card p{ margin: 0; color: rgba(15,23,42,.72); line-height: 1.8; }

.common-tags{ display:flex; gap: 10px; flex-wrap: wrap; }
.tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  font-weight: 900;
  font-size: 13px;
}

.hero-sub{ margin-left: 8px; font-size: 12px; opacity: .75; }
.hero-help{
  margin: 10px 0 0;
  color: rgba(15,23,42,.72);
  line-height: 1.8;
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.hero-help i{ margin-top: 2px; }

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

/* 追加CSS */
/* ===========================
  PROCEDURES - TABLE STYLE
  “枠カード感”をやめて、表中心に
=========================== */

.proc-body { padding: 24px 0 64px; }

/* 見出し周りはそのまま活かす */
.proc-block { margin: 26px 0; }
.proc-head { margin-bottom: 10px; }
.proc-h2 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.proc-desc { margin: 0; color: rgba(15,23,42,.72); }

/* 箇条書き（共通案内・注意書き） */
.proc-bullets{
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: rgba(15,23,42,.78);
  line-height: 1.9;
}
.proc-bullets li{
  margin: 6px 0;
}
.proc-bullets i{
  margin-right: 8px;
  opacity: .85;
}

/* まず“一覧表” */
.table-wrap{
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}
.proc-matrix{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px; /* SPは横スクロール */
  font-size: 14px;
}
.proc-matrix th,
.proc-matrix td{
  padding: 12px 12px;
  border-top: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
}
.proc-matrix thead th{
  border-top: 0;
  background: #f8fafc;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}
.proc-matrix tbody tr:nth-child(even){
  background: rgba(15,23,42,.02);
}
.proc-matrix tbody th{
  font-weight: 900;
  white-space: nowrap;
}
.table-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 各手続きの“詳細表” */
.proc-detail{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  margin-top: 10px;
}
.proc-detail th,
.proc-detail td{
  padding: 12px 12px;
  border-top: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
}
.proc-detail tr:first-child th,
.proc-detail tr:first-child td{
  border-top: 0;
}
.proc-detail th{
  width: 180px;
  background: #f8fafc;
  font-weight: 900;
  color: rgba(15,23,42,.85);
}
.proc-detail td{
  color: rgba(15,23,42,.78);
  line-height: 1.8;
}

/* 注意文（枠カード→“行間のある注記”） */
.proc-note{
  margin: 12px 0 0;
  padding: 10px 0;
  color: rgba(15,23,42,.78);
  line-height: 1.8;
  border-top: 1px dashed rgba(0,0,0,.18);
}
.proc-note i{ margin-right: 8px; }

/* CTAボタン行は既存のbtn流用でOK */
.proc-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* SP最適化：詳細表は“縦積み”に */
@media (max-width: 960px){
  .proc-detail th{ width: 140px; }
}

@media (max-width: 640px){
  .proc-detail,
  .proc-detail tbody,
  .proc-detail tr,
  .proc-detail th,
  .proc-detail td{
    display: block;
    width: 100%;
  }
  .proc-detail{
    border-left: 0;
    border-right: 0;
  }
  .proc-detail tr{
    border-top: 1px solid rgba(0,0,0,.10);
    padding: 10px 0;
  }
  .proc-detail tr:first-child{ border-top: 0; }
  .proc-detail th{
    background: transparent;
    border-top: 0;
    padding: 0 0 6px;
    width: 100%;
  }
  .proc-detail td{
    border-top: 0;
    padding: 0;
  }
}