/* ========================================
   common.css - Reset & Common Components
   ======================================== */

:root {
  --color-blue: #0041a7;
  --color-blue-dark: #00317d;
  --color-light-blue: #ecf2fe;
  --color-sky-blue: #3f8fdf;
  --color-sky-blue-light: #68a9e9;
  --color-green: #6eba50;
  --color-light-green: #f0f7f2;
  --color-yellow: #ffcc3d;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: #d9dee8;
  --color-error: #e53935;
  --header-height: 100px;
  --card-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body.is-drawer-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.lp {overflow: hidden;}

/* PC / TB-SP tel display switch */
.is-sp-tel {
  display: none;
}

.is-pc-only {
  display: inline;
}

span.header__action.is-pc-only {
  display: flex;
}

a.header__action.is-sp-tel {
  display: none;
}

/* Responsive display utilities */
.pc_only,
.pc_tb,
.pc_sp {
	display: block;
}

.sp_only,
.tb_only,
.sp_tb,
.note_pc {
	display: none!important;
}

@media screen and (max-width: 1300px) {
	.note_pc {
		display: block!important;
	}
}

@media screen and (max-width: 1200px) {
	.tb_only,
	.sp_tb {
		display: block!important;
	}

	.pc_only,
	.pc_sp {
		display: none!important;
	}
}

@media screen and (max-width: 890px) {
	.pc_only {
		display: none!important;
	}

	.pc_tb {
		display: block!important;
	}

	.sp_only {
		display: none!important;
	}

	.sp_tb {
		display: block!important;
	}

	.sp_none {
		display: none;
	}
}

@media screen and (max-width: 599px) {
	.pc_only,
	.tb_only,
	.pc_tb {
		display: none!important;
	}

	.sp_only,
	.sp_tb,
	.pc_sp {
		display: block!important;
	}
}

/* Inner */
.inner {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.inner--wide {
  max-width: 1440px;
}

.inner--price {
  max-width: 1200px;
}

.inner--area {
  max-width: 1200px;
}

.inner--narrow {
  max-width: 1000px;
}

#main {
  padding-top: var(--header-height);
}

/* Section Heading */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading--left {
  text-align: left;
  margin-bottom: 28px;
}

.section-heading__en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 21px;
  font-weight: 700;
  color: var(--color-sky-blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-heading__en::before,
.section-heading__en::after {
  content: "";
  display: block;
  width: 200px;
  height: 1px;
  background-color: var(--color-sky-blue);
  flex-shrink: 0;
}

.section-heading__en--plain {
  display: block;
  text-align: left;
}

.section-heading__en--plain::before,
.section-heading__en--plain::after {
  display: none;
}

.section-heading__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.4;
}

.section-heading__lead {
  font-size: 18px;
  color: var(--color-black);
  margin-top: 16px;
  line-height: 1.8;
}

/* Green circle check */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-green);
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
}

.check-icon::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg) translateY(-1px);
}

.check-icon--lg {
  width: 48px;
  height: 48px;
}

.check-icon--lg::after {
  width: 12px;
  height: 20px;
  border-right-width: 3px;
  border-bottom-width: 3px;
}

.service .check-icon,
.case .check-icon {
  margin-top: 4px;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 5px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.btn-cta:hover {
  background-color: #003080;
}

.btn-cta__arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.btn-cta:hover .btn-cta__arrow {
  transform: rotate(45deg) translate(3px, -3px);
}

.btn-cta--price {
  width: 380px;
  max-width: 100%;
}

.btn-cta--area img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  z-index: 2100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 0 40px;
}

.header__logo img {
  height: 52px;
  width: auto;
}

.header__actions {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 100px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  gap: 4px;
  transition: opacity 0.3s;
}

.header__action:hover {
  opacity: 0.92;
}

.header__action--form {
  background-color: var(--color-blue);
}

.header__action--tel {
  background-color: var(--color-sky-blue);
}

.header__action-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header__action-main {
  display: block;
}

.header__action-sub {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  line-height: 1.3;
}

.header__action--form .header__action-sub {
  background-color: var(--color-blue-dark);
}

.header__action--tel .header__action-sub {
  background-color: var(--color-sky-blue-light);
}

.header__menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  background-color: var(--color-white);
  border-left: 1px solid var(--color-border);
  position: relative;
  z-index: 2110;
}

.header__menu-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 22px;
  position: relative;
}

.header__menu-lines span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-blue);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.header__menu-button[aria-expanded="true"] .header__menu-lines span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.header__menu-button[aria-expanded="true"] .header__menu-lines span:nth-child(2) {
  opacity: 0;
}

.header__menu-button[aria-expanded="true"] .header__menu-lines span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.header__menu-text {
  font-size: 16px;
  font-weight: 700;
  color: #0041a6;
  letter-spacing: 0.05em;
}

.header__menu-button[aria-expanded="true"] .header__menu-text {
  color: #0041a6;
}

/* ========================================
   DRAWER NAV
   ======================================== */
.drawer-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
}

.drawer-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-nav__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
}

.drawer-nav.is-open .drawer-nav__overlay {
  opacity: 1;
}

.drawer-nav__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  min-width: 280px;
  max-width: 480px;
  height: 100%;
  background-color: var(--color-white);
  padding: 120px 40px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.drawer-nav.is-open .drawer-nav__inner {
  transform: translateX(0);
}

.drawer-nav__item {
  border-bottom: 1px solid var(--color-border);
}

.drawer-nav__link {
  display: block;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-blue);
  transition: color 0.3s;
}

.drawer-nav__link:hover {
  color: var(--color-sky-blue);
}

/* ========================================
   FORM
   ======================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}

.form-required {
  display: inline-block;
  background-color: var(--color-error);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: var(--color-white);
  color: var(--color-black);
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-error);
}

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

.form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-black);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-blue);
}

.form-checkbox--agree {
  justify-content: center;
  align-items: center;
}

.form-error {
  color: var(--color-error);
  font-size: 14px;
  margin-top: 6px;
}

.form-privacy {
  margin: 32px 0;
}

.form-privacy__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 12px;
  text-align: center;
}

.form-privacy__box {
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  padding: 16px;
  height: 12em;
  min-height: 12em;
  max-height: 40em;
  overflow-y: auto;
  resize: vertical;
  font-size: 16px;
  color: var(--color-black);
  line-height: 1.7;
  margin-bottom: 20px;
}

.form-privacy__box p + p {
  margin-top: 12px;
}

.form-submit {
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 18px 24px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  border-radius: 5px;
  transition: background-color 0.3s;
  text-align: center;
}

.btn-submit:hover {
  background-color: #003080;
}

.btn-submit .btn-cta__arrow {
  margin-left: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--color-white);
  border-top: 3px solid var(--color-blue);
  padding: 48px 20px 32px;
  text-align: center;
}

.footer__logo {
  margin-bottom: 20px;
}

.footer__logo img {
  height: 48px;
  width: auto;
}

.footer__info {
  font-size: 16px;
  color: var(--color-black);
  margin-bottom: 8px;
}

.footer__line {
  border: none;
  border-top: 1px solid #cccccc;
  max-width: 480px;
  margin: 24px auto 16px;
}

.footer__copy {
  font-size: 14px;
  color: #444444;
}

/* ========================================
   PAGE TOP
   ======================================== */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-blue);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, background-color 0.3s;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  background-color: #003080;
}

.page-top__arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--color-white);
  border-right: 3px solid var(--color-white);
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ========================================
   SCROLL ANIMATION
   ======================================== */
.js-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .drawer-nav__inner,
  .drawer-nav__overlay,
  .faq__answer,
  .contact__form-wrap,
  .page-top {
    transition: none;
  }
}

/* ========================================
   FORM MODAL（確認・完了専用）
   ======================================== */
body.is-form-modal-open {
  overflow: hidden;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.form-modal[hidden] {
  display: none !important;
}

.form-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.form-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--color-white);
  border: 3px solid var(--color-blue);
  border-radius: 10px;
  padding: 36px 32px 28px;
  box-sizing: border-box;
}

.form-modal__dialog--complete {
  max-width: 600px;
  text-align: center;
}

.form-modal__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-blue);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.4;
}

.form-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-modal__row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.form-modal__label {
  flex: 0 0 28%;
  max-width: 180px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  display: flex;
  align-items: center;
}

.form-modal__value {
  flex: 1;
  min-width: 0;
  background-color: #f7f9fc;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--color-black);
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}

.form-modal__error {
  color: var(--color-error);
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.form-modal__complete-text {
  font-size: 16px;
  color: var(--color-black);
  line-height: 1.8;
  margin-bottom: 28px;
}

.form-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.form-modal__actions--center {
  justify-content: center;
}

.form-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
  padding: 16px 24px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
}

.form-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-modal__btn--main {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.form-modal__btn--main:hover:not(:disabled) {
  background-color: #003080;
}

.form-modal__btn--sub {
  background-color: var(--color-white);
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.form-modal__btn--sub:hover:not(:disabled) {
  background-color: var(--color-light-blue);
}

@media screen and (max-width: 768px) {
  .form-modal {
    padding: 16px;
  }

  .form-modal__dialog {
    width: 90%;
    max-height: 85vh;
    padding: 28px 18px 20px;
  }

  .form-modal__title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .form-modal__row {
    flex-direction: column;
    gap: 6px;
  }

  .form-modal__label {
    flex: none;
    max-width: none;
  }

  .form-modal__btn {
    width: 100%;
    min-width: 0;
  }
}

