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

:root {
  --color-primary: #003893;
  --color-secondary: #0165bd;
  --color-accent: #bcf443;
  --color-primary-light: #cde0ff;
  --color-text: #222222;
  --color-text-dark: #333333;
  --color-text-body: #444444;
  --color-text-sub: #555555;
  --color-bg-gray: #f4f5f6;
  --color-bg-blue: #eefbff;
  --color-bg-footer: #111827;
  --color-border-form: #cccccc;
  --color-border-card: #dddddd;
  --color-required: #e30c0c;
  --color-separator: #797979;
  --color-deco-light: #daeffc;
  --color-deco-mid: #0d72b3;
  --color-deco-pale: #f0f7fc;
  --sp-section: 80px;
  --sp-section-sp: 48px;
  --sp-heading: 50px;
  --inner-width: 1060px;
  --inner-width-sp: 335px;
  --card-padding: 40px;
  --card-padding-sp: 30px;
  --card-radius: 12px;
  --form-gap: 20px;
  --shadow-card: 0 3px 17px rgba(0, 0, 0, 0.1);
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: 15px 20px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand img {
  width: 127px;
  height: auto;
}

.brand span {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--color-text-sub);
  font-size: 13px;
}

.header-action span::after {
  display: inline-block;
  margin-left: 6px;
  content: "";
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--color-text-sub);
}

.header-button,
.button-primary,
.result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 40px;
  border: 0;
  border-radius: 28px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.2s ease;
}

.header-button {
  min-height: 41px;
  padding: 10px 20px;
  font-size: 14px;
}

.header-button:hover,
.button-primary:hover,
.result-button:hover {
  background: #0050cc;
}

.button-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  min-height: 62px;
  padding: 16px 40px;
  border-radius: 28px;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.2s ease;
}

.button-accent:hover {
  background: #aee03a;
}

.hero {
  position: relative;
  min-height: 898px;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: #ddf8ff;
  background-image: linear-gradient(rgba(221, 248, 255, 0.2), rgba(221, 248, 255, 0.2)), url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 43px 0 110px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-badge strong {
  margin: 0 2px;
  color: #d4ff76;
  font-size: 30px;
  line-height: 1;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-primary);
  font-size: 53px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero h1 span {
  position: relative;
  white-space: nowrap;
}

.hero h1 .marker::after {
  position: absolute;
  z-index: -1;
  left: -2px;
  right: -2px;
  bottom: 7px;
  height: 16px;
  content: "";
  transform: skewX(-20deg);
  background: rgba(181, 255, 11, 0.9);
}

.hero-lead {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.carrier-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.carrier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-height: 56px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}

.carrier.docomo {
  background: #cc0134;
}

.carrier.au {
  background: #eb5505;
}

.carrier.softbank {
  background: #717171;
}

.area-card {
  position: relative;
  isolation: isolate;
  width: 805px;
  min-height: 121px;
  margin: 40px auto 0;
  padding: 48px 0 12px;
  border: 4px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #1aa0c8 0%, #1aa0c8 42%, #70c640 100%) border-box;
}

.area-card::before {
  position: absolute;
  z-index: 1;
  top: -4px;
  left: 50%;
  width: 472px;
  height: 39px;
  content: "";
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 28px 100%);
  background: linear-gradient(90deg, #1aa0c8 0%, #0165bd 42%, #70c640 100%);
}

.area-card > p {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  width: 390px;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.area-card dl {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

.area-card div {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.area-card dt,
.area-card dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.area-card strong {
  color: var(--color-secondary);
  font-size: 23px;
  line-height: 1;
}

.area-card small {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 2px;
  color: rgba(34, 34, 34, 0.85);
  font-size: 11px;
  line-height: 1.5;
}

.section-heading {
  text-align: center;
}

.section-heading span {
  display: block;
  color: var(--color-primary);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
}

.section-heading p {
  margin: 36px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.simulator-section {
  position: relative;
  margin-top: -50px;
  padding: 0 20px 80px;
  background: var(--color-bg-gray);
}


.simulator {
  position: relative;
  z-index: 1;
  max-width: var(--inner-width);
  margin: -50px auto 0;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.simulator-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 101px;
  padding: 20px 32px;
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
}

.simulator-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.simulator-heading span img {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.simulator-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.simulator-form {
  display: grid;
  grid-template-columns: 200px 1fr 144px 234px;
  align-items: start;
  gap: 30px;
  padding: 32px;
}

.simulator-form label {
  display: grid;
  gap: 8px;
  align-self: start;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 700;
}

.simulator-form label > span {
  line-height: 21px;
  white-space: nowrap;
}

.simulator-form input,
.simulator-form select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border-form);
  border-radius: 4px;
  background: #ffffff;
  color: var(--color-text);
}

.simulator-form small {
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.simulator-form button {
  align-self: start;
  margin-top: 27px;
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  transition: background 0.2s ease;
}

.simulator-form button:hover {
  background: #d1ff55;
}

.simulator-result {
  margin: 0 32px 40px;
  text-align: center;
}

.bill-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.bill-links a,
.bill-link-btn {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bill-link-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.bill-link-btn:hover {
  color: var(--color-secondary);
}

.bill-link-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

.result-panel {
  padding: 28px 32px 30px;
  border: 1.4px solid var(--color-primary);
  border-radius: 8px;
  background: #f8fbff;
}

.simulator-result p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.simulator-result strong {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-block;
  margin: 8px 0 12px;
  color: var(--color-primary);
  font-size: 50px;
  font-weight: 900;
  line-height: 1.2;
}

.simulator-result strong::after {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 14px;
  content: "";
  transform: skewX(-20deg);
  background: rgba(181, 255, 11, 0.9);
}

.simulator-result small {
  display: block;
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--color-text-sub);
  font-size: 12px;
  line-height: 1.7;
}

.result-button {
  gap: 10px;
  margin-top: 22px;
}

.result-button::after {
  display: block;
  width: 14px;
  height: 10px;
  content: "";
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background: #ffffff;
}

.result-note {
  margin-top: 20px !important;
  color: var(--color-text-sub);
}

/* result-note の hidden も確実に非表示にする */
.result-note[hidden] {
  display: none !important;
}

.mini-form {
  display: grid;
  gap: 12px;
  width: 400px;
  margin: 18px auto 0;
}

/* hidden属性をCSSのdisplayが上書きしないようにする */
.mini-form[hidden] {
  display: none !important;
}

.mini-form input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border-form);
  border-radius: 4px;
}

.problem {
  position: relative;
  padding: var(--sp-section) 20px 110px;
  overflow: hidden;
  background: var(--color-bg-blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 110px), 50% 100%, 0 calc(100% - 110px));
}

.problem .section-heading h2 {
  line-height: 1.5;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 45px 60px;
  max-width: var(--inner-width);
  margin: 45px auto 0;
}

.problem-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.problem-card.lower:first-of-type,
.problem-card.lower {
  grid-column: span 2;
}

.problem-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.problem-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.problem-card h3 {
  margin: 0 0 20px;
  min-height: 48px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.problem-card h3 strong {
  color: var(--color-primary);
  font-weight: 700;
}

.problem-card img {
  height: 156px;
  width: auto;
  object-fit: contain;
}

.problem-message {
  margin: 55px 0 0;
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.problem-message::after {
  display: block;
  width: 65px;
  height: 63px;
  margin: 26px auto 0;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2765%27%20height%3D%2763%27%20viewBox%3D%270%200%2065%2063%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M2%203L32.5%2022L63%203%27%20stroke%3D%27%23003893%27%20stroke-width%3D%274%27/%3E%3Cpath%20d%3D%27M2%2024L32.5%2043L63%2024%27%20stroke%3D%27%23003893%27%20stroke-width%3D%274%27/%3E%3Cpath%20d%3D%27M2%2045L32.5%2062L63%2045%27%20stroke%3D%27%23003893%27%20stroke-width%3D%274%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.reason {
  padding: var(--sp-section) 20px;
  background: #ffffff;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  max-width: var(--inner-width);
  margin: 50px auto 0;
}

.reason-card {
  overflow: visible;
  padding-top: 20px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.reason-card-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: calc(100% + 16px);
  min-height: 48px;
  margin: 0 0 0 -16px;
  padding: 9px 24px 9px 136px;
  background: var(--color-secondary);
  color: #ffffff;
}

.reason-card-title::before {
  position: absolute;
  left: 0;
  top: 100%;
  width: 16px;
  height: 22px;
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  background: #005795;
}

.reason-card-title span {
  position: absolute;
  left: 79px;
  top: -13px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--color-primary);
  color: #cdff6d;
  font-family: "Roboto", sans-serif;
  font-size: 37px;
  font-weight: 800;
  line-height: 1;
}

.reason-card-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.reason-card > img {
  width: calc(100% - 60px);
  height: 230px;
  margin: 24px auto 0;
  object-fit: cover;
}

.reason-card p {
  margin: 24px 30px 30px;
  font-size: 16px;
  line-height: 1.5;
}

.logo-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 16px 18px;
  height: 230px;
  margin: 30px;
  padding: 22px 28px;
  background: #ffffff;
}

.logo-board img {
  max-height: 42px;
  width: 100%;
  object-fit: contain;
}

.plan {
  padding: var(--sp-section) 20px;
  background: #ffffff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--inner-width);
  margin: 50px auto 0;
}

.plan-card {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.plan-card h3 {
  margin: 0;
  padding: 14px 20px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.plan-garake h3 {
  background: var(--color-secondary);
}

.device-area {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 30px 20px 10px;
}

.device-area img {
  max-height: 335px;
  width: auto;
}

.plan-garake .device-area img {
  max-height: 340px;
}

.price {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.price strong {
  font-size: 32px;
}

.tax {
  margin: 4px 0 26px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.data-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  margin: 0 20px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-card);
}

.data-row > span {
  color: var(--color-text-sub);
  font-size: 14px;
}

.data-options {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.data-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.data-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 2px 10px;
  border-radius: 2px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
}

.plan-garake .data-row b {
  background: var(--color-secondary);
}

.plan-card small {
  display: block;
  margin: 22px 20px 28px;
  color: var(--color-text-sub);
  font-size: 12px;
  line-height: 1.7;
}

.plan-card ul {
  min-height: 193px;
  margin: 0;
  padding: 18px 20px 20px;
  list-style: none;
  background: #f8fbff;
}

.plan-card li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-dark);
  font-size: 14px;
  line-height: 1.5;
}

.plan-card li + li {
  margin-top: 10px;
}

.plan-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  content: "✓";
}

.plan-cta {
  display: flex;
  width: 304px;
  margin: 56px auto 0;
  font-size: 16px;
}

.dx {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--sp-section) 20px;
  background-color: #f2f5f7;
}

.dx::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: url("../images/dx-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.75;
  pointer-events: none;
}

.dx::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: #f2f5f7;
  mix-blend-mode: hard-light;
  pointer-events: none;
}

.dx-inner {
  position: relative;
  z-index: 1;
  max-width: var(--inner-width);
  margin: 0 auto;
  text-align: center;
}

.dx-title {
  display: inline-block;
  min-width: 620px;
  padding: 10px 28px;
  background: #ffffff;
}

.dx-title h2 {
  position: relative;
  z-index: 0;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.dx-title h2::after {
  position: absolute;
  z-index: -1;
  left: 166px;
  bottom: 10px;
  width: 234px;
  height: 13px;
  content: "";
  transform: skewX(-20deg);
  background: rgba(181, 255, 11, 0.9);
}

.dx h3 {
  margin: 32px 0 0;
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}

.dx-lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.dx-visual {
  display: block;
  margin-top: 28px;
}

.dx-visual img {
  width: min(100%, 1060px);
  max-height: 761px;
  object-fit: contain;
}

.dx-list {
  display: grid;
  gap: 24px;
  margin-top: 34px;
  text-align: left;
}

.dx-card {
  overflow: hidden;
  border: 1px solid #c2c2c2;
  border-radius: 6px;
  background: #ffffff;
}

.dx-card h4 {
  margin: 0;
  padding: 10px 20px;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.dx-card-body {
  display: grid;
  grid-template-columns: 1fr 247px;
  gap: 24px;
  padding: 28px 44px;
}

.dx-card h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.dx-card p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

.dx-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 22px;
}

.dx-logos img {
  width: auto;
  max-width: 158px;
  height: 28px;
  object-fit: contain;
}

.dx-card-image {
  width: 247px;
  height: 211px;
  object-fit: cover;
  border-radius: 4px;
}

.case-studies {
  position: relative;
  max-width: var(--inner-width);
  margin: var(--sp-section) auto 0;
  padding: 60px 50px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-secondary);
  color: #ffffff;
}

.case-studies::before,
.case-studies::after {
  position: absolute;
  z-index: 0;
  width: 1450px;
  height: 724px;
  content: "";
  background-image: url("../images/case-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  mix-blend-mode: lighten;
  opacity: 0.6;
  pointer-events: none;
  transform-origin: center;
}

.case-studies::before {
  left: -687px;
  top: 40px;
  transform: rotate(90deg);
}

.case-studies::after {
  left: 297px;
  top: -90px;
  transform: rotate(-90deg);
}

.case-studies > * {
  position: relative;
  z-index: 1;
}

.case-studies .section-heading span {
  color: #cde0ff;
}

.case-studies .section-heading h2,
.case-studies .section-heading p {
  color: #ffffff;
}

.case-studies .section-heading p {
  margin-top: 40px;
}

.case-list {
  display: grid;
  gap: 40px;
  max-width: 960px;
  margin: 40px auto 0;
}

.case-card {
  position: relative;
  min-height: 209px;
  padding: 30px 30px 28px 310px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  color: #333333;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.case-card::before {
  content: "";
  display: none;
}

.case-card > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 270px;
  height: 100%;
  transform: none;
  border-radius: 0;
  object-fit: cover;
}

.case-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 67px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 3px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  vertical-align: middle;
}

.case-card .industry {
  display: inline-block;
  margin: 0 0 0 12px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  vertical-align: middle;
}

.case-card h3 {
  margin: 10px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}

.case-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.case-card li {
  position: relative;
  padding-left: 1em;
  color: #333333;
  font-size: 16px;
  line-height: 1.5;
}

.case-card li::before {
  position: absolute;
  left: 0;
  content: "・";
}

.case-card li + li {
  margin-top: 7px;
}

.flow {
  padding: var(--sp-section) 20px;
  background: #ffffff;
}

.flow-list {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
  padding: 0;
  list-style: none;
}

.flow-list::before {
  position: absolute;
  top: 106px;
  bottom: 106px;
  left: 53px;
  z-index: 0;
  width: 8px;
  content: "";
  background: var(--color-primary);
}

.flow-list li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 140px;
  padding: 24px 38px 24px 24px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
}

.flow-list li + li {
  margin-top: 21px;
}

.flow-list span {
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: 1px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #0046a6;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.flow-list strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.flow-list h3 {
  margin: 0;
  color: var(--color-text-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.flow-list p {
  margin: 8px 0 0;
  color: var(--color-text-body);
  font-size: 15px;
  line-height: 1.8;
}

.faq {
  padding: var(--sp-section) 20px;
  background: var(--color-bg-blue);
}

.faq-list {
  max-width: 752px;
  margin: 50px auto 0;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--color-border-card);
  border-radius: 8px;
  background: #ffffff;
}

.faq-list details + details {
  margin-top: 18px;
}

.faq-list summary {
  position: relative;
  padding: 17px 54px 17px 25px;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
}

.faq-list summary::before {
  display: inline-block;
  margin-right: 6px;
  content: "Q.";
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  content: "+";
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  position: relative;
  margin: 0;
  padding: 18px 28px 22px 52px;
  color: var(--color-text-body);
  font-size: 15px;
  line-height: 1.8;
}

.faq-list p::before {
  position: absolute;
  top: 18px;
  left: 25px;
  content: "A.";
  color: var(--color-secondary);
  font-weight: 800;
  line-height: 1.8;
}

/* WordPress the_content() 出力用（.faq-answerラッパー） */
.faq-list .faq-answer {
  position: relative;
  padding: 18px 28px 22px 52px;
  color: var(--color-text-body);
  font-size: 15px;
  line-height: 1.8;
}

.faq-list .faq-answer::before {
  position: absolute;
  top: 18px;
  left: 25px;
  content: "A.";
  color: var(--color-secondary);
  font-weight: 800;
  line-height: 1.8;
}

/* faq-answer内のpタグはA.を出さない */
.faq-list .faq-answer p {
  position: static;
  padding: 0;
  margin: 0 0 6px;
}

.faq-list .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-list .faq-answer p::before {
  display: none;
}

/* faq-answer内のリスト */
.faq-list .faq-answer ul,
.faq-list .faq-answer ol {
  margin: 4px 0 6px;
  padding-left: 1.4em;
}

.faq-list .faq-answer li {
  margin-bottom: 2px;
}

.offices {
  padding: var(--sp-section) 20px;
  background: #ffffff;
}

.office-card {
  display: grid;
  grid-template-columns: 1fr 450px;
  max-width: var(--inner-width);
  margin: 50px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.office-text {
  padding: 28px 32px;
}

.office-text > p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
}

.office-text dl {
  margin: 0;
}

.office-text dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 4px;
  padding: 15px 0;
  border-bottom: 1px solid #e6e6e6;
}

.office-text dt {
  grid-row: 1 / span 8;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-weight: 700;
}

.office-text dt::before {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2016%2016%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M8%2014s5-4.35%205-8A5%205%200%201%200%203%206c0%203.65%205%208%205%208Z%27%20stroke%3D%27%23003893%27%20stroke-width%3D%271.8%27%20stroke-linejoin%3D%27round%27/%3E%3Ccircle%20cx%3D%278%27%20cy%3D%276%27%20r%3D%271.8%27%20stroke%3D%27%23003893%27%20stroke-width%3D%271.8%27/%3E%3C/svg%3E") center / contain no-repeat;
}

.office-text dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.office-map {
  position: relative;
  width: 450px;
  height: 495px;
}

.office-map img {
  width: 450px;
  height: 495px;
  object-fit: cover;
}

.office-map p {
  position: absolute;
  top: 20px;
  right: 34px;
  left: 34px;
  display: grid;
  place-items: center;
  min-height: 62px;
  margin: 0;
  padding: 9px 18px;
  background: rgb(1 101 189 / 88%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.contact {
  padding: var(--sp-section) 20px;
  background: var(--color-bg-gray);
}

.contact-form {
  display: grid;
  gap: var(--form-gap);
  max-width: 800px;
  margin: 50px auto 0;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: #ffffff;
}

.contact-form label {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 0;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 700;
}

.contact-form em {
  color: var(--color-required);
  font-style: normal;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--color-border-form);
  border-radius: 2px;
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 40px;
}

/* 現在のキャリア：ラベル144px + select 220px（Figma通り） */
.form-row label:first-child {
  grid-template-columns: 144px 1fr;
}

/* 回線数：ラベル84px + input 220px（Figma通り） */
.form-row label:last-child {
  grid-template-columns: 84px 1fr;
}

.textarea-label {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

.privacy {
  display: flex !important;
  justify-content: center;
  gap: 8px !important;
  font-weight: 400 !important;
}

.privacy input {
  width: 20px;
  min-height: 20px;
}

.contact-form .button-primary {
  width: 400px;
  margin: 20px auto 0;
}

.bottom-cta {
  padding: 70px 20px;
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
}

.bottom-cta h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
}

.bottom-cta p {
  margin: 14px 0 30px;
  font-size: 16px;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 20px 12px;
  background: var(--color-bg-footer);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer p {
  font-size: 15px;
}

.site-footer img {
  width: 114px;
  height: auto;
  margin: 14px 0 10px;
}

.site-footer small {
  display: block;
  width: calc(100% + 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.floating-contact {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 48px;
  border-radius: 28px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 56, 147, 0.25);
  transition: background 0.2s ease;
}

.floating-contact:hover {
  background: #0050cc;
}

@media (max-width: 767px) {
  :root {
    --header-height: 49px;
  }

  body {
    font-size: 14px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 6px 20px;
  }

  .brand img {
    width: 99px;
  }

  .brand span,
  .header-action span {
    display: none;
  }

  .header-button {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero {
    min-height: 699px;
    background-image: linear-gradient(rgba(221, 248, 255, 0.08), rgba(221, 248, 255, 0.08)), url("../images/hero-bg-sp.jpg");
    background-position: center top;
  }

  .hero-inner {
    max-width: var(--inner-width-sp);
    padding: 44px 0 44px;
  }

  .hero-badge {
    min-height: 34px;
    margin-bottom: 16px;
    font-size: 14px;
  }

  .hero-badge strong {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.32;
  }

  .hero h1 span::after {
    bottom: 4px;
    height: 10px;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.8;
  }

  .carrier-buttons {
    gap: 8px;
    margin-top: 24px;
  }

  .carrier {
    width: 103px;
    min-height: 43px;
    font-size: 16px;
  }

  .area-card {
    width: 335px;
    min-height: 148px;
    margin-top: 34px;
    padding-top: 56px;
    border-width: 3px;
  }

  .area-card::before {
    top: -3px;
    width: 292px;
    height: 46px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 18px 100%);
  }

  .area-card > p {
    width: 260px;
    top: 6px;
    font-size: 10px;
    line-height: 1.6;
  }

  .area-card dl {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 0 12px;
  }

  .area-card dt,
  .area-card dd {
    font-size: 12px;
  }

  .area-card strong {
    font-size: 18px;
  }

  .section-heading h2 {
    font-size: 26px;
    line-height: 1.5;
  }

  .section-heading p {
    margin-top: 24px;
    font-size: 14px;
  }

  .simulator-section {
    margin-top: 0;
    padding: 0 20px 50px;
  }

  .simulator {
    max-width: var(--inner-width-sp);
  }

  .simulator-heading {
    padding: 22px 12px 16px;
  }

  .simulator-heading h2 {
    font-size: 17px;
  }

  .simulator-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .simulator-form button {
    margin-top: 0;
  }

  .simulator-result {
    margin: 0 12px 22px;
  }

  .bill-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
  }

  .result-panel {
    min-height: auto;
    padding: 26px 14px;
  }

  .simulator-result strong {
    font-size: 34px;
  }

  .mini-form {
    width: 100%;
  }

  .problem {
    padding: var(--sp-section-sp) 20px 86px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 50% 100%, 0 calc(100% - 64px));
  }

  .problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: var(--inner-width-sp);
  }

  .problem-card,
  .problem-card:nth-child(4),
  .problem-card:nth-child(5) {
    grid-column: auto;
    min-height: 210px;
  }

  .problem-message {
    margin-top: 32px;
    font-size: 18px;
  }

  .problem-message::after {
    width: 52px;
    height: 50px;
    margin-top: 20px;
  }

  .reason,
  .plan,
  .case-studies,
  .flow,
  .faq,
  .offices,
  .contact,
  .dx {
    padding: var(--sp-section-sp) 20px;
  }

  .reason-grid,
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: var(--inner-width-sp);
  }

  .reason-card {
    padding-top: 16px;
  }

  .reason-card-title {
    width: calc(100% + 12px);
    min-height: 44px;
    margin: 0 0 0 -12px;
    padding: 8px 12px 8px 78px;
  }

  .reason-card-title::before {
    width: 12px;
    height: 18px;
  }

  .reason-card-title span {
    left: 54px;
    top: -8px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    transform: translateX(-50%);
  }

  .reason-card-title h3 {
    font-size: 16px;
    white-space: normal;
  }

  .reason-card > img {
    width: calc(100% - 40px);
    height: 176px;
    margin-top: 20px;
  }

  .reason-card p {
    margin: 20px;
    font-size: 14px;
  }

  .logo-board {
    height: auto;
    margin: 20px;
    padding: 18px;
  }

  .device-area {
    min-height: 300px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .data-options {
    justify-items: start;
  }

  .data-line {
    justify-content: flex-start;
  }

  .plan-card small {
    margin-bottom: 20px;
  }

  .plan-cta {
    width: 100%;
    max-width: 335px;
  }

  .dx-title {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
  }

  .dx-title h2 {
    font-size: 20px;
  }

  .dx-title h2::after {
    left: 86px;
    width: 145px;
    height: 9px;
    bottom: 7px;
  }

  .dx h3 {
    font-size: 20px;
  }

  .dx-lead {
    font-size: 14px;
  }

  .dx-card-body {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .dx-card h5 {
    font-size: 17px;
  }

  .dx-card p {
    font-size: 14px;
  }

  .dx-logos {
    gap: 10px 14px;
  }

  .dx-logos img {
    max-width: 132px;
    height: 24px;
  }

  .dx-card-image {
    width: 100%;
    height: 190px;
  }

  .case-list {
    max-width: var(--inner-width-sp);
    gap: 20px;
    margin-top: 30px;
  }

  .case-studies {
    max-width: none;
    margin-top: var(--sp-section-sp);
    padding: 50px 20px;
    border-radius: 0;
  }

  .case-studies .section-heading p {
    margin-top: 28px;
  }

  .case-card {
    min-height: 0;
    padding: 251px 20px 24px;
    background: #ffffff;
    color: #333333;
  }

  .case-card::before {
    display: none;
  }

  .case-card > img {
    left: 0;
    top: 0;
    width: 100%;
    height: 225px;
    transform: none;
  }

  .case-card span {
    min-width: 67px;
  }

  .case-card h3 {
    font-size: 18px;
  }

  .case-card .industry {
    display: block;
    margin: 10px 0 0;
  }

  .case-card li {
    font-size: 14px;
  }

  .flow-list {
    max-width: var(--inner-width-sp);
    margin-top: 36px;
  }

  .flow-list::before {
    top: 84px;
    bottom: 84px;
    left: 43px;
    width: 6px;
  }

  .flow-list li {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    min-height: 132px;
    padding: 20px 18px 20px 18px;
  }

  .flow-list span {
    width: 56px;
    height: 56px;
    font-size: 11px;
  }

  .flow-list strong {
    font-size: 24px;
  }

  .flow-list h3 {
    font-size: 17px;
  }

  .flow-list p {
    font-size: 14px;
  }

  .faq-list {
    max-width: var(--inner-width-sp);
  }

  .faq-list summary {
    padding: 15px 46px 15px 18px;
    font-size: 14px;
  }

  .faq-list p {
    padding: 16px 18px 16px 44px;
    font-size: 14px;
  }

  .faq-list p::before {
    top: 16px;
    left: 18px;
  }

  .office-card {
    grid-template-columns: 1fr;
    max-width: var(--inner-width-sp);
  }

  .office-text {
    padding: 24px 20px;
  }

  .office-text dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .office-text dt {
    grid-row: auto;
  }

  .office-map {
    width: 100%;
    height: auto;
  }

  .office-map img {
    width: 100%;
    height: auto;
  }

  .office-map p {
    top: 16px;
    right: 16px;
    left: 16px;
    min-height: 52px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .contact-form {
    max-width: var(--inner-width-sp);
    padding: var(--card-padding-sp) 10px;
  }

  .contact-form label,
  .form-row label:first-child,
  .form-row label:last-child {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--form-gap);
  }

  .contact-form .button-primary {
    width: 295px;
  }

  .bottom-cta {
    padding: 48px 20px;
  }

  .bottom-cta h2 {
    font-size: 26px;
  }

  .button-accent {
    width: 335px;
    min-height: 52px;
    padding: 16px 24px;
    box-shadow: 0 6px 8px rgba(0, 56, 147, 0.18);
    font-size: 16px;
  }

  .floating-contact {
    display: none;
  }
}

/* ===== 明細モーダル ===== */
.bill-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.bill-modal[hidden] {
  display: none;
}

/* モーダルウィンドウ本体 — Figma: 白背景・角丸12px */
.bill-modal-content {
  position: relative;
  width: min(600px, 92vw);
  max-height: 90vh;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: billModalIn 0.22s ease;
}

@keyframes billModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 閉じるボタン — Figma: 円形 #464646、右上に絶対配置 */
.bill-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #464646;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.bill-modal-close:hover {
  background: #222222;
}

/* × アイコン（2本のspan） */
.bill-modal-close span {
  position: absolute;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: #ffffff;
}

.bill-modal-close span:first-child { transform: rotate(45deg); }
.bill-modal-close span:last-child  { transform: rotate(-45deg); }

/* ボディ — スクロール対応 */
.bill-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 28px 24px;
}

/* タイトル — Figma: #003893 青・Bold */
.bill-modal-heading {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

/* 補足テキスト — Figma: #222 通常 */
.bill-modal-desc {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.bill-modal-img-wrap {
  border-radius: 4px;
  overflow: hidden;
}

.bill-modal-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .bill-modal-content {
    width: min(335px, 92vw);
    max-height: 88vh;
    border-radius: 8px;
  }

  .bill-modal-close {
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
  }

  .bill-modal-close span { width: 13px; }

  .bill-modal-body {
    padding: 20px 16px 18px;
  }

  .bill-modal-heading { font-size: 14px; }
  .bill-modal-desc    { font-size: 13px; }
  .bill-link-btn      { font-size: 13px; }
}

/* ============================================================
   Contact Form 7 スタイル
   .contact-form と同等のレイアウトを .wpcf7-form に適用
   CF7テンプレートは <label> 構造で記述（wpautop無効化済）
   ============================================================ */

/* ---- フォームラッパー（= .contact-form） ---- */
.contact .wpcf7-form {
  display: grid;
  gap: var(--form-gap);
  max-width: 800px;
  margin: 50px auto 0;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: #ffffff;
}

/* CF7が残す可能性のある p/br/fieldset をリセット */
.contact .wpcf7-form > p { display: contents; }
.contact .wpcf7-form br  { display: none; }
.contact .wpcf7-form fieldset.hidden-fields-container { display: none; }
.contact .wpcf7-form .screen-reader-response { display: none; }

/* ---- form-row内のラベルはCF7ラベル設定を引き継ぐ ---- */
/* .form-row の grid-template-columns は CSS側で定義済み */

/* ---- label（= .contact-form label） ---- */
.contact .wpcf7-form label {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 0;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 700;
}

/* 必須マーク */
.contact .wpcf7-form em {
  color: var(--color-required);
  font-style: normal;
}

/* ---- input / select / textarea ---- */
.contact .wpcf7-form input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]),
.contact .wpcf7-form select,
.contact .wpcf7-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--color-border-form);
  border-radius: 2px;
  background: #ffffff;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

.contact .wpcf7-form textarea {
  min-height: 116px;
  resize: vertical;
}

/* ---- wpcf7-form-control-wrap（入力欄のラッパー） ---- */
.contact .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ---- .form-row（キャリア＋回線数 2カラム）---- */
/* 上の .form-row CSS がそのまま適用される               */

/* ---- textarea ラベル（= .textarea-label）---- */
/* 既存の .textarea-label CSS がそのまま適用される        */

/* ---- プライバシー同意（= .privacy）---- */
/* .privacy wrapper がある場合はそちらが適用される */
/* CF7 acceptance-check を直接中央寄せ（wrapper構造に依存しない確実な指定） */
.contact .wpcf7-form .wpcf7-form-control-wrap[data-name="acceptance-check"] {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  font-weight: 400;
}

/* CF7 acceptance の内部構造を flex に */
.contact .wpcf7-form .wpcf7-acceptance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact .wpcf7-form .wpcf7-list-item {
  display: flex;
  align-items: center;
}
.contact .wpcf7-form .wpcf7-list-item label,
.contact .wpcf7-form .wpcf7-acceptance label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  grid-template-columns: none !important;
  color: var(--color-text);
  font-size: 14px;
}
.contact .wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  flex-shrink: 0;
}

/* ---- プレースホルダーを非表示（HTML版に合わせる） ---- */
.contact .wpcf7-form input::placeholder,
.contact .wpcf7-form textarea::placeholder {
  color: transparent;
}


/* ---- 送信ボタン（= .button-primary + .contact-form .button-primary） ---- */
.contact .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  max-width: 100%;
  min-height: 54px;
  margin: 20px auto 0;
  padding: 14px 40px;
  border: 0;
  border-radius: 28px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}
.contact .wpcf7-form input[type="submit"]:hover { background: #0050cc; }

/* ---- バリデーションエラー ---- */
.contact .wpcf7-form .wpcf7-not-valid { border-color: var(--color-required) !important; }
.contact .wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: var(--color-required);
  margin-top: 4px;
}

/* ---- レスポンスメッセージ ---- */
.contact .wpcf7-response-output {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

/* ============================================================
   mini-form 内の CF7 スタイル（プレースホルダーのみ・縦積み）
   ============================================================ */

.mini-form .wpcf7-form { display: flex; flex-direction: column; gap: 20px; }

.mini-form .wpcf7-form > p {
  display: contents;
  margin: 0;
  padding: 0;
}
.mini-form .wpcf7-form > p::before,
.mini-form .wpcf7-form > p::after { display: none; }
.mini-form .wpcf7-form br { display: none; }
.mini-form .wpcf7-form fieldset.hidden-fields-container { display: none; }

/* シミュレーターデータフィールドを非表示（[text]タグで代替しCSSで隠す） */
.mini-form .wpcf7-form .wpcf7-form-control-wrap[data-name="simulator-result"],
.mini-form .wpcf7-form .wpcf7-form-control-wrap[data-name="simulator-carrier"],
.mini-form .wpcf7-form .wpcf7-form-control-wrap[data-name="simulator-amount"],
.mini-form .wpcf7-form .wpcf7-form-control-wrap[data-name="simulator-lines"] {
  display: none !important;
}
.contact .wpcf7-form .wpcf7-form-control-wrap[data-name="simulator-result"] {
  display: none !important;
}

.mini-form .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.mini-form .wpcf7-form input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]) {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border-form);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.mini-form .wpcf7-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: auto;
  flex-shrink: 0;
  cursor: pointer;
}

.mini-form .wpcf7-form .wpcf7-form-control-wrap[data-name="acceptance-check"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.mini-form .wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.mini-form .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 40px;
  border: 0;
  border-radius: 28px;
}
/* ============================================================
   プライバシーポリシーページ
   ============================================================ */
.page-privacy-policy {
  background: #ffffff;
  padding-top: var(--header-height);
}

.policy-page-heading {
  text-align: center;
  padding: 56px 20px 40px;
  border-bottom: 1px solid #e8e8e8;
  background: var(--color-bg-gray);
}
.policy-page-heading span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.policy-page-heading h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.policy-wrap {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  box-sizing: border-box;
}

.policy-intro {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-text-body);
  margin-bottom: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8e8e8;
}

.policy-section {
  padding: 28px 0;
  border-bottom: 1px solid #e8e8e8;
}
.policy-section h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 14px;
}
.policy-num {
  font-weight: 700;
  color: var(--color-secondary);
  margin-right: 4px;
}
.policy-section p {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-text-body);
  margin: 0 0 10px;
}
.policy-section p:last-child { margin-bottom: 0; }

.policy-dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 16px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-text-body);
}
.policy-dl dt { font-weight: 700; color: var(--color-text); }
.policy-dl dd { margin: 0; }

.policy-ol {
  padding-left: 20px;
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-text-body);
}
.policy-ol li { margin-bottom: 4px; }

.policy-address {
  background: var(--color-bg-gray);
  border-left: 3px solid var(--color-secondary);
  padding: 12px 16px;
  margin-top: 12px;
}
.policy-address p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

.policy-back {
  text-align: center;
  margin-top: 56px;
}
.policy-back a {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 28px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.policy-back a:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .policy-page-heading { padding: 40px 20px 32px; }
  .policy-wrap { padding: 32px 16px 60px; }
  .policy-dl { grid-template-columns: 60px 1fr; }
}
