/* Fixed: 別ページ運用だった出願フォームをredesign準拠の1ページ（タブ切替）に統合する際の専用スタイル（理由: Next.js版/web-shutsuganとデザインを一致させつつ、MW WP Formの実出力にも対応するため） */
.shutsugan-redesign {
  --sg-bg: #fbf9f5;
  --sg-white: #fff;
  --sg-soft: #f4f0e8;
  --sg-ink: #2e2e2e;
  --sg-muted: #666;
  --sg-primary: #3a93ca;
  --sg-primary-dark: #2c74a0;
  --sg-primary-soft: #e7f2f9;
  --sg-line: #e5e0d6;
  --sg-red: #d9455a;
  --sg-font-sans: var(--font-sans, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif);
  --sg-font-heading: var(--font-heading, "Zen Maru Gothic", var(--sg-font-sans));
  background: var(--sg-bg);
  color: var(--sg-ink);
  font-family: var(--sg-font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.shutsugan-redesign .container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.shutsugan-redesign .section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.shutsugan-redesign .section--soft {
  background: var(--sg-soft);
}

.shutsugan-redesign .section-heading {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.shutsugan-redesign .section-heading__en {
  display: block;
  margin-bottom: .5rem;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: .08em;
  color: var(--sg-primary);
  font-weight: 600;
}

.shutsugan-redesign .section-heading__title {
  font-family: var(--sg-font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.4;
}

.shutsugan-redesign .section-heading__lead {
  margin-top: 1rem;
  color: var(--sg-ink);
  font-size: 1rem;
  font-weight: 600;
}

/* ===== ヒーロー ===== */
.shutsugan-redesign .pageHero.shutsugan-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--sg-line);
  background:
    radial-gradient(120% 90% at 90% 0%, var(--sg-primary-soft) 0%, transparent 55%),
    var(--sg-soft);
}

.shutsugan-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/top/hero_rightlower.webp") center / cover;
  transform: scale(1.15);
  filter: blur(48px) saturate(1.15);
  opacity: .5;
  pointer-events: none;
}

.shutsugan-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -70deg,
    rgba(255, 255, 255, .33) 0,
    rgba(255, 255, 255, .33) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

.shutsugan-hero > .container {
  position: relative;
  z-index: 3;
}

.shutsugan-hero__en,
.shutsugan-hero h1,
.shutsugan-hero p {
  display: table;
  background: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: .06em .28em;
}

.shutsugan-hero__en {
  font-family: var(--sg-font-sans);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sg-primary);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.1;
}

.shutsugan-hero h1 {
  margin: 0;
  font-family: var(--sg-font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  line-height: 1.4;
}

.shutsugan-hero p {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--sg-muted);
}

.shutsugan-hero nav {
  display: inline-flex;
  gap: .65rem;
  margin-top: 1.5rem;
  padding: .35rem .95rem;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(58, 147, 202, .08);
  font-size: .82rem;
  color: var(--sg-muted);
}

.shutsugan-hero nav a {
  color: var(--sg-primary);
}

/* ===== アンカーナビ ===== */
.shutsugan-anchor-nav {
  background: var(--sg-soft);
  border-bottom: 1px solid var(--sg-line);
}

.shutsugan-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  list-style: none;
  margin: 0;
  padding-block: 1rem;
}

.shutsugan-anchor-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 700;
  padding: .4rem 0;
  color: var(--sg-primary);
  text-decoration: none;
  transition: gap .2s ease, opacity .2s ease;
}

.shutsugan-anchor-link:hover {
  gap: .55rem;
  opacity: .8;
}

/* ===== 出願の流れ（Steps） ===== */
.shutsugan-redesign .stepsGrid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 860px;
  margin-inline: auto;
}

.shutsugan-redesign .step {
  display: flex;
  gap: 1.5rem;
}

.shutsugan-redesign .stepNumWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.shutsugan-redesign .stepNum {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--sg-primary);
  color: #fff;
  font-family: var(--sg-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(58, 147, 202, .25);
}

.shutsugan-redesign .stepConnector {
  display: block;
  width: 0;
  flex: 1;
  min-height: 1.5rem;
  border-left: 2px dotted rgba(58, 147, 202, .4);
  margin-top: .75rem;
}

.shutsugan-redesign .stepBody {
  flex: 1;
  min-width: 0;
  background: var(--sg-white);
  border-radius: 16px 0 16px 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(58, 147, 202, .08);
}

.shutsugan-redesign .stepTitle {
  font-size: 1.2rem;
  margin: 0 0 .6rem;
}

.shutsugan-redesign .stepDesc {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.shutsugan-redesign .stepInfoBox {
  background: rgba(244, 240, 232, .7);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-top: .75rem;
}

.shutsugan-redesign .stepInfoLabel {
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.shutsugan-redesign .stepDl {
  display: grid;
  gap: .35rem;
  margin: 0;
}

.shutsugan-redesign .stepDlRow {
  display: flex;
  gap: 1rem;
  font-size: .9rem;
}

.shutsugan-redesign .stepDlRow dt {
  font-weight: 700;
  color: var(--sg-primary-dark);
  white-space: nowrap;
  min-width: 5rem;
}

.shutsugan-redesign .stepDlRow dd {
  margin: 0;
}

.shutsugan-redesign .stepList {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shutsugan-redesign .stepListItem {
  font-size: .95rem;
  font-weight: 500;
  padding-left: 1rem;
  position: relative;
  line-height: 1.7;
}

.shutsugan-redesign .stepListItem:before {
  content: "・";
  position: absolute;
  left: 0;
}

.shutsugan-redesign .stepNote {
  font-size: .875rem;
  color: var(--sg-muted);
  margin-top: .75rem;
  line-height: 1.75;
}

/* ===== 出願前にご用意いただくもの ===== */
.prepareGrid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.prepareCard {
  background: var(--sg-white);
  border-radius: 16px 0 16px 16px;
  box-shadow: 0 2px 8px rgba(58, 147, 202, .08);
  overflow: hidden;
}

.prepareCardHead {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--sg-primary);
  color: #fff;
}

.prepareNum {
  font-family: var(--sg-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  opacity: .8;
  flex-shrink: 0;
}

.prepareTitle {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.prepareBody {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prepareBodyFee {
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.prepareBodyFee .prepareNote {
  grid-column: 1 / -1;
}

.feeHighlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sg-primary-soft);
  border-radius: 8px;
  padding: .75rem 1.25rem;
}

.feeLabel {
  font-size: .85rem;
  font-weight: 700;
  color: var(--sg-primary-dark);
}

.feeAmount {
  font-family: var(--sg-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sg-primary-dark);
}

.feeAmount span {
  font-size: .95rem;
  font-weight: 400;
}

.tableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tableInner {
  display: block;
  width: fit-content;
  min-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.defTable {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--sg-white);
}

.defTable th {
  padding: .7rem 1rem;
  background: var(--sg-soft);
  font-weight: 700;
  color: var(--sg-primary-dark);
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: 1px solid var(--sg-line);
  text-align: left;
  width: 6rem;
}

.defTable td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--sg-line);
  line-height: 1.6;
}

.defTable tr:last-child th,
.defTable tr:last-child td {
  border-bottom: none;
}

.prepareNote {
  font-size: .82rem;
  color: var(--sg-muted);
  line-height: 1.75;
  margin: 0;
}

.methodList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.methodItem {
  border-left: 3px solid var(--sg-primary-soft);
  padding-left: .85rem;
}

.methodLabel {
  font-size: .88rem;
  font-weight: 700;
  color: var(--sg-primary-dark);
  margin: 0 0 .35rem;
}

.methodDesc {
  font-size: .88rem;
  color: var(--sg-muted);
  line-height: 1.75;
  margin: 0;
}

.photoBlock {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.photoCondLabel {
  font-size: .85rem;
  font-weight: 700;
  margin: 0;
}

.photoList {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photoList li {
  display: flex;
  gap: .5rem;
  font-size: .88rem;
  color: var(--sg-muted);
  line-height: 1.6;
}

.checkIcon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: .15rem;
}

.photoExamples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 544px;
}

@media (min-width: 641px) {
  .photoExamples {
    gap: 2rem;
  }
}

.photoExample {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.photoExampleImg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.photoExampleLabel {
  font-size: .85rem;
  color: var(--sg-muted);
}

/* ===== 出願フォーム（セグメントコントロール） ===== */
.segmentedWrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--sg-line);
  border-radius: 999px;
  padding: 4px;
  position: relative;
  width: 100%;
  max-width: 560px;
}

.slidingThumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--sg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform .28s cubic-bezier(.34, 1.1, .64, 1);
  pointer-events: none;
  z-index: 0;
}

.segmentedBtn {
  position: relative;
  z-index: 1;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--sg-font-heading);
  background: transparent;
  border: none;
  color: var(--sg-muted);
  cursor: pointer;
  transition: color .18s ease;
  white-space: nowrap;
  text-align: center;
}

.segmentedBtnActive {
  color: var(--sg-primary);
}

.tabDesc {
  text-align: center;
  font-size: .85rem;
  color: var(--sg-muted);
  margin: 0 auto 1.75rem;
  line-height: 1.7;
  max-width: 560px;
}

.formWrap {
  max-width: 720px;
  margin-inline: auto;
}

.shutsugan-form-panel[hidden] {
  display: none;
}

/* ===== MW WP Formが出力する既存マークアップの再スタイル ===== */
.shutsugan-form-panel .mw_wp_form {
  display: block;
}

.shutsugan-form-panel .form.fadeUpTrigger {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shutsugan-form-panel h3.hdg02 {
  background: var(--sg-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: .75rem 1.5rem;
  letter-spacing: .03em;
  margin: 1.5rem 0 0;
  border-radius: 16px 0 0 0;
}

.shutsugan-form-panel h3.hdg02:first-child {
  margin-top: 0;
}

.shutsugan-form-panel dl {
  padding: 1.25rem 1.5rem;
  margin: 0;
  border: 1px solid var(--sg-line);
  border-top: none;
  background: var(--sg-white);
}

.shutsugan-form-panel h3.hdg02 + dl {
  border-radius: 0;
}

.shutsugan-form-panel dl:last-of-type {
  border-radius: 0 0 16px 16px;
}

.shutsugan-form-panel dt {
  font-size: .9rem;
  font-weight: 700;
  color: var(--sg-ink);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.shutsugan-form-panel dt .req {
  display: inline-flex;
  align-items: center;
  background: var(--sg-red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 999px;
}

.shutsugan-form-panel dt .opt {
  display: inline-flex;
  align-items: center;
  background: var(--sg-line);
  color: var(--sg-muted);
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 999px;
}

.shutsugan-form-panel dt .form-small-text {
  flex-basis: 100%;
  font-size: .82rem;
  font-weight: 400;
  color: var(--sg-muted);
  line-height: 1.7;
  margin: .35rem 0 0;
}

.shutsugan-form-panel dd {
  margin: 0 0 1.25rem;
}

.shutsugan-form-panel dd:last-child {
  margin-bottom: 0;
}

.shutsugan-form-panel dd.birth-list {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.shutsugan-form-panel dd.menndan-dd {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.shutsugan-form-panel dd.hide-relationship {
  margin-top: -.75rem;
}

.shutsugan-form-panel input[type="text"],
.shutsugan-form-panel input[type="tel"],
.shutsugan-form-panel input[type="email"],
.shutsugan-form-panel select,
.shutsugan-form-panel textarea {
  padding: .7rem 1rem;
  border: 1.5px solid var(--sg-line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--sg-font-sans);
  background: var(--sg-white);
  color: var(--sg-ink);
  transition: border-color .2s;
  appearance: none;
}

.shutsugan-form-panel input[type="text"]:focus,
.shutsugan-form-panel input[type="tel"]:focus,
.shutsugan-form-panel input[type="email"]:focus,
.shutsugan-form-panel select:focus,
.shutsugan-form-panel textarea:focus {
  outline: none;
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 3px rgba(58, 147, 202, .12);
}

.shutsugan-form-panel input[type="file"] {
  font-size: .9rem;
  color: var(--sg-muted);
}

.shutsugan-form-panel input[type="radio"],
.shutsugan-form-panel input[type="checkbox"] {
  accent-color: var(--sg-primary);
  width: 1rem;
  height: 1rem;
  margin-right: .35rem;
}

.shutsugan-form-panel .privacy {
  padding: 1.25rem 1.5rem;
  font-size: .85rem;
  color: var(--sg-muted);
  line-height: 1.8;
  background: var(--sg-soft);
  border-radius: 8px;
  margin-top: 1.5rem;
}

.shutsugan-form-panel .privacy a {
  color: var(--sg-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shutsugan-form-panel .privacy input[type="checkbox"] {
  margin-top: .35rem;
}

.shutsugan-form-panel .btn02.form_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 1.5rem auto 0;
  padding: .68rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--sg-primary);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.shutsugan-form-panel .btn02.form_button:hover {
  opacity: .85;
}

.shutsugan-form-panel .error,
.shutsugan-form-panel .mwform-error-message {
  font-size: .8rem;
  color: #e05555;
  margin-top: .35rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .shutsugan-anchor-link {
    padding: .85rem 0;
    font-size: .82rem;
  }

  .segmented {
    width: 100%;
  }

  .segmentedBtn {
    font-size: .875rem;
    padding: .6rem .5rem;
  }

  .prepareBodyFee,
  .prepareBody {
    padding: 1.25rem;
  }

  .shutsugan-redesign .stepNum {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .shutsugan-redesign .step {
    gap: 1rem;
  }

  .shutsugan-redesign .stepTitle {
    font-size: 1.1rem;
  }

  .shutsugan-form-panel dl,
  .shutsugan-form-panel h3.hdg02 {
    padding: 1rem;
  }
}
