@font-face {
  font-family: "Noto Sans JP Local";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/NotoSansCJKjp-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP Local";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../assets/fonts/NotoSansCJKjp-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP Local";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/NotoSansCJKjp-Bold.woff2") format("woff2");
}

:root {
  --ink: #14383e;
  --text: #536b70;
  --accent: #1597a8;
  --accent-dark: #0e7e8d;
  --line: #dce8ea;
  --mist: #f1f7f8;
  --ice: #e4f5f8;
  --white: #ffffff;
  --header-height: 72px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Noto Sans JP Local", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

body,
a,
button {
  letter-spacing: 0;
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--ink);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgb(20 56 62 / 18%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1280px);
  height: 100%;
  margin-inline: auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  width: 154px;
  height: 52px;
}

.site-header__logo img {
  width: 100%;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgb(255 255 255 / 45%);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.header-contact:hover,
.header-contact:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - var(--header-height)));
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  --hero-line-angle: -45deg;

  position: absolute;
  top: -35%;
  left: 25%;
  width: clamp(120px, 14vw, 200px);
  height: 220%;
  background: rgb(21 151 168 / 24%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(var(--hero-line-angle)) scaleY(0);
  transform-origin: top center;
  animation: hero-diagonal-draw 550ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms forwards;
}

.hero::after {
  content: none;
}

@keyframes hero-diagonal-draw {
  from {
    opacity: 0;
    transform: rotate(var(--hero-line-angle)) scaleY(0);
  }

  to {
    opacity: 1;
    transform: rotate(var(--hero-line-angle)) scaleY(1);
  }
}

.hero__line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 88px 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.eyebrow::before {
  width: 48px;
  height: 1px;
  background: var(--accent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  max-width: 920px;
  margin-bottom: 32px;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.42;
}

h1 span {
  color: var(--accent-dark);
}

h2 {
  margin-bottom: 38px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.46;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 38px;
  font-size: 18px;
  line-height: 2.05;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 292px;
  min-height: 64px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button--primary {
  color: var(--white);
  background: var(--accent);
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button:focus-visible,
.header-contact:focus-visible,
.site-header__logo:focus-visible {
  outline: 3px solid #f1bf53;
  outline-offset: 3px;
}

.section {
  padding-block: 124px;
}

.intro {
  padding-bottom: 112px;
}

.intro h2 {
  margin-bottom: 0;
}

.intro__copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 28px;
}

.intro__copy p {
  margin-bottom: 0;
}

.intro__copy p + p {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.intro__copy p:first-child {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

.consultation {
  background: var(--mist);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 58px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.consultation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.consultation-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.consultation-list__number {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1.5;
}

.consultation-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.consultation-list p {
  margin-bottom: 0;
}

.three-best {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: center;
  padding: 52px 0 46px 38px;
  border-left: 5px solid var(--accent);
}

.three-best p {
  margin-bottom: 0;
}

.three-best__title {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.three-best__en {
  margin-bottom: 6px !important;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.quality__content {
  padding-top: 82px;
}

.quality__content > p:not(.eyebrow) {
  max-width: 990px;
}

.quality__note {
  margin: 36px 0 0;
  padding: 12px 0 12px 24px;
  border-left: 3px solid var(--accent);
}

.contact {
  background: var(--ice);
}

.contact__inner {
  text-align: center;
}

.contact .eyebrow {
  justify-content: center;
}

.contact .eyebrow::after {
  width: 48px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.contact h2 {
  margin-bottom: 24px;
}

.contact__lead {
  margin-bottom: 42px;
}

.button--large {
  justify-content: center;
  gap: 12px;
  min-width: 340px;
}

.contact__notice {
  max-width: 760px;
  margin: 54px auto 0;
  font-size: 12px;
  line-height: 1.9;
}

.contact__office-link {
  display: inline-block;
  margin-top: 24px;
  color: #1764b0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact__office-link:hover,
.contact__office-link:focus-visible {
  color: #0d437c;
}

.contact__office-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-footer {
  color: #7c9296;
  background: var(--white);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  body {
    font-size: 14px;
    line-height: 1.9;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .site-header__inner {
    width: calc(100% - 32px);
  }

  .site-header__logo {
    width: 112px;
    height: 44px;
  }

  .site-header__logo img {
    height: 34px;
  }

  .header-contact {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .header-contact .arrow {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero::before {
    --hero-line-angle: -32deg;

    top: -22%;
    left: -12%;
    height: 200%;
  }

  .hero__inner {
    padding-block: 60px 76px;
  }

  .eyebrow {
    gap: 12px;
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .eyebrow::before,
  .contact .eyebrow::after {
    width: 32px;
  }

  h1 {
    margin-bottom: 26px;
    font-size: 30px;
    line-height: 1.45;
  }

  h2 {
    margin-bottom: 28px;
    font-size: 24px;
    line-height: 1.5;
  }

  .hero__lead {
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.95;
  }

  .desktop-only {
    display: none;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }

  .section {
    padding-block: 80px;
  }

  .intro {
    padding-bottom: 72px;
  }

  .intro__copy {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }

  .intro__copy p + p {
    padding-top: 32px;
  }

  .intro__copy p:first-child {
    font-size: 15px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 40px;
  }

  .section-heading p {
    margin-top: -8px;
  }

  .consultation-list li {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 26px 0;
  }

  .consultation-list__number {
    font-size: 18px;
  }

  .consultation-list h3 {
    font-size: 16px;
    line-height: 1.65;
  }

  .consultation-list p {
    font-size: 13px;
  }

  .three-best {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0 34px 20px;
  }

  .three-best__title {
    font-size: 32px;
  }

  .three-best__en {
    font-size: 11px;
  }

  .quality__content {
    padding-top: 62px;
  }

  .quality__note {
    margin-top: 30px;
    padding-left: 16px;
  }

  .contact__lead {
    margin-bottom: 34px;
  }

  .button--large {
    min-width: 0;
  }

  .contact__notice {
    margin-top: 42px;
    font-size: 11px;
    text-align: left;
  }

  .site-footer__inner {
    display: block;
    min-height: 0;
    padding-block: 24px;
    text-align: center;
  }

  .site-footer p {
    margin-top: 6px;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .is-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero::before,
  .hero::after {
    animation: none;
  }

  .hero::before {
    opacity: 1;
    transform: rotate(var(--hero-line-angle)) scaleY(1);
  }
}
