/* ============================================================
   augusta_new — 弁護士法人オーガスタ theme
   (structure ported from tomotuna-lp02/assets/css/custom-style.css,
    recolored/re-fonted using lp1/diagnose's visual language)
   ============================================================ */

:root {
  /* augusta palette */
  --navy: #214484;           /* primary / headings / brand emphasis */
  --navy-soft: #4a6aa5;      /* muted navy text */
  --orange: #ff7f00;         /* accent / required badge */
  --orange-deep: #b26200;    /* hover / pressed accent */
  --pill-bg: #d3f1ff;        /* unselected answer pill background */
  --pill-shadow: #76c5ff;    /* unselected answer pill 3D shadow */
  --pill-selected-bg: #f87833; /* selected/pressed answer pill background */
  --dark: #333333;           /* body text */
  --dark-soft: #7a7a7a;      /* muted text */
  --danger: #de2636;

  /* backgrounds */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f7fbff;
  --bg-hover: #eaf7ff;

  --border-input: #c7dcf0;
  --border-back-btn: #cfd8e6;
  --border-dotted: #cfe6f7;
  --tab-bg: #ececec;
  --footer-bg: #eef3fa;
  --footer-cp: #6b7686;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
form,
fieldset,
label,
header,
footer,
section,
button,
input,
select {
  margin: 0;
  padding: 0;
  border: 0;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  cursor: pointer;
  font-family: inherit;
}
a {
  color: var(--navy);
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.8;
}

body {
  font-family:
    "M PLUS Rounded 1c",
    "Hiragino Kaku Gothic Pro",
    "Yu Gothic",
    Meiryo,
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
  background: var(--bg-page);
}

/* ===== Wrapper ===== */
.wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
}
header img {
  height: 36px;
  width: auto;
}
header .cv {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
}
header .cv span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--dark-soft);
}
header .cv em {
  font-style: normal;
  font-size: 12px;
}

/* ===== Section main ===== */
#section-main {
  background: #ffffff;
}

/* ===== FV Banner (image) ===== */
.fv-banner {
  background: #ffffff;
  line-height: 0;
}
.fv-image {
  width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Main card ===== */
.main {
  background: #fff;
  margin: 0 20px;
  padding: 24px 16px 50px;
  position: relative;
  z-index: 1;
  border-radius: 6px;
}

.fv-headline {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 18px;
}
.fv-headline em {
  font-style: normal;
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}
.fv-headline .main-color {
  color: var(--navy);
}
.main.step-complete .fv-headline {
  display: none;
}

.heading-show-question {
  font-size: 13px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 14px;
  font-weight: 500;
}

.fv-disclaimer {
  margin-bottom: 20px;
}
.fv-disclaimer li {
  font-size: 11px;
  color: var(--dark-soft);
  line-height: 1.6;
  padding-left: 1em;
  text-indent: -1em;
}
.fv-disclaimer li + li {
  margin-top: 4px;
}
.main.step-complete .fv-disclaimer {
  display: none;
}

.heading-show-complete {
  display: none;
  margin-bottom: 22px;
}
.heading-show-complete h3 {
  color: var(--dark);
  font-size: 22px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.heading-show-complete h3 span {
  color: var(--orange);
  font-size: 32px;
  font-weight: 900;
}
.heading-show-complete .heading-note {
  font-size: 12px;
  color: var(--dark-soft);
  text-align: center;
}
.main.step-complete .heading-show-question {
  display: none;
}
.main.step-complete .heading-show-complete {
  display: block;
}

/* ===== Progress tabs ===== */
.list-tab {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px dotted var(--border-dotted);
  align-items: stretch;
}
.list-tab .tab {
  flex: 1 1 0;
  min-width: 0;
}
.list-tab .tab span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 6px 4px;
  border-radius: 12px;
  background: var(--tab-bg);
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: all 0.2s ease;
}
.list-tab .tab.active span {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

/* ===== Question pages ===== */
.question-page {
  display: none;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.question-page.show {
  display: block;
  opacity: 1;
}
.question-page.hide {
  display: none;
}

.flow-image {
  width: 100%;
  margin: 0 auto 18px;
}

.question-page h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 8px;
}
.question-page .question-sub {
  color: var(--dark-soft);
  font-size: 12px;
  text-align: center;
  margin-bottom: 26px;
}

/* ===== Choose-answer pill buttons ===== */
.question-page .choose-answer {
  background: var(--pill-bg);
  width: 100%;
  display: block;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  box-shadow: 0 10px 0 0 var(--pill-shadow);
  text-align: center;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.question-page .choose-answer label {
  cursor: pointer;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}
/* Pressed/selected state */
.question-page .choose-answer:active,
.question-page .choose-answer.active {
  background: var(--pill-selected-bg);
  box-shadow: 0 0 0 var(--pill-selected-bg);
  color: #fff;
  transform: translate(0, 10px);
}
@media (hover: hover) and (pointer: fine) {
  .question-page .choose-answer:hover {
    background: var(--pill-selected-bg);
    box-shadow: 0 4px 0 var(--orange-deep);
    color: #fff;
    transform: translate(0, 6px);
  }
}
.question-page input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.question-page .choose-answer:focus-within {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
}
.question-page .choose-answer label:focus-visible {
  outline: none;
}

/* ===== Back button ===== */
.question-nav {
  margin-top: 22px;
  text-align: center;
}
.btn-back {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border-back-btn);
  background: #fff;
  color: var(--navy-soft);
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back:hover {
  background: var(--bg-hover);
  border-color: var(--navy);
  color: var(--navy);
}

/* ===== Form fields (complete page) ===== */
.question-complete .form-group {
  margin-bottom: 24px;
}
.question-complete .form-group > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.question-complete .form-group > label > span:not(.check-text) {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.question-complete .form-group input[type="text"],
.question-complete .form-group input[type="email"],
.question-complete .form-group input[type="tel"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  background: var(--bg-input);
  color: var(--dark);
  font-family: inherit;
}
.question-complete .form-group input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 68, 132, 0.12);
}
.question-complete .form-group input::placeholder {
  color: #a9c0d8;
}
.question-complete .form-group input.field-invalid {
  border-color: var(--danger);
  background: #fff5f5;
}
.input-att {
  font-size: 11px;
  color: var(--dark-soft);
  margin-top: 6px;
  line-height: 1.5;
}

/* Error message */
.error-msg {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.4;
}

/* Checkbox */
.form-check {
  margin-top: 28px;
}
.question-complete .form-group.form-check > .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.6;
  margin-bottom: 0;
}
.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check .check-text {
  flex: 1;
  min-width: 0; /* allow shrinking inside flex */
  word-break: keep-all; /* don't break mid-word for Japanese */
  overflow-wrap: break-word;
}
.form-check .check-text a {
  white-space: nowrap; /* keep link text on one line */
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
}
.form-check.field-invalid .check-label {
  color: var(--danger);
}

/* ===== Submit button ===== */
.btn-send {
  margin: 40px 0 16px;
  border: none;
  width: 100%;
  min-height: 72px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 6px 0 var(--orange-deep);
  background: linear-gradient(to top, var(--orange), #ffab4d);
}
.btn-send:hover {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--orange-deep);
}
.btn-send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
  padding: 32px 0 28px;
  text-align: center;
  background: var(--footer-bg);
  color: var(--dark);
}
footer ul {
  margin-bottom: 14px;
}
footer li {
  display: inline-block;
  margin: 0 4px;
}
footer li a {
  color: var(--navy);
  font-size: 13px;
  padding: 2px 10px;
  text-decoration: underline;
}
footer p {
  font-size: 12px;
  color: var(--dark);
  margin-top: 6px;
  line-height: 1.6;
  padding: 0 20px;
}
footer .cp {
  font-size: 11px;
  margin-top: 16px;
  color: var(--footer-cp);
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 480px) {
  .main {
    margin: 0 14px;
    padding: 20px 16px 40px;
  }

  .fv-headline {
    font-size: 16px;
  }
  .fv-headline em {
    font-size: 20px;
  }

  .list-tab {
    gap: 4px;
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  .list-tab .tab span {
    min-height: 48px;
    font-size: 13px;
    border-radius: 10px;
  }

  .question-page h3 {
    font-size: 16px;
  }
  .question-page .question-sub {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .question-page .choose-answer {
    min-height: 58px;
    font-size: 15px;
    border-radius: 28px;
    margin-bottom: 16px;
  }

  .heading-show-complete h3 {
    font-size: 18px;
  }
  .heading-show-complete h3 span {
    font-size: 26px;
  }

  .question-complete .form-group > label {
    font-size: 15px;
  }
  .btn-send {
    font-size: 17px;
    min-height: 64px;
  }
}

@media screen and (max-width: 380px) {
  .list-tab .tab span {
    font-size: 12px;
    min-height: 44px;
  }
}

/* ============================================================
   Sub-pages (thank-you)
   ============================================================ */
.page {
  margin: 20px 20px 40px;
  padding: 28px 16px 36px;
  background: var(--bg-card);
  border-radius: 6px;
}

/* thank-you */
.ty {
  text-align: center;
}
.ty-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}
.ty-lead {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.ty-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 22px;
}
.ty-card {
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 18px;
  margin: 0 auto 8px;
}
.ty-card-head {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom:5px;
}
.ty-tel-list {
  /* fit-content + auto margins centers the whole block, while each li below
     stays left-aligned within it — so the icon column lines up across rows
     regardless of how many digits each phone number has. */
  width: fit-content;
  margin: 12px auto 6px;
}
.ty-tel-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.03em;
  padding: 6px 0;
}
.ty-tel-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.ty-hours {
  font-size: 13px;
  color: var(--dark-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}
.ty-note {
  font-size: 12px;
  color: var(--dark-soft);
  line-height: 1.6;
}
.ty-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 22px 0;
  border-radius: 8px;
  overflow: hidden;
}
.ty-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

@media screen and (max-width: 480px) {
  .ty-lead{
    font-size: 14px;
  }

  .ty-hours {
    font-size: 12px;
  }
}
