@charset "UTF-8";

/* ==================================================
   1. 基本設定
   モバイル向けのスタイルを通常ルールとして書きます。
   ================================================== */

:root {
  --color-main: #195f9b;
  --color-main-dark: #10456f;
  --color-accent: #d77d28;
  --color-line: #d9e3ec;
  --color-text: #2d3338;
  --color-muted: #66727d;
  --color-light: #f4f7fa;
  --color-white: #ffffff;
  --content-width: 1100px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 320px;
  color: var(--color-text);
  background-color: var(--color-white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--color-main);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
textarea {
  font: inherit;
}

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

.section {
  padding-block: 56px;
}

.section--light {
  background-color: var(--color-light);
}

.section-title {
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 5px solid var(--color-main);
  font-size: clamp(1.5rem, 7vw, 2rem);
  line-height: 1.4;
}

.section-lead {
  margin-bottom: 28px;
}

.content-image {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.small-text {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* ==================================================
   2. ヘッダー・スマートフォンメニュー
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
}

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

.site-logo {
  position: relative;
  z-index: 1002;
  display: block;
  width: 180px;
}

.site-logo img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-button {
  position: relative;
  z-index: 1002;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  position: absolute;
  width: 28px;
  height: 2px;
  background-color: var(--color-main-dark);
  border-radius: 999px;
  content: "";
  transition:
    transform 0.25s,
    top 0.25s,
    opacity 0.25s;
}

.menu-button span::before {
  top: -8px;
}

.menu-button span::after {
  top: 8px;
}

.global-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 1001;
  padding: 28px 24px;
  background-color: rgba(255, 255, 255, 0.98);
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}

.global-nav__list {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin-inline: auto;
  list-style: none;
}

.global-nav__list a {
  display: block;
  padding: 14px 8px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  font-weight: 700;
  text-decoration: none;
}

.global-nav__tel {
  margin-top: 16px;
  color: var(--color-main) !important;
  font-size: 1.2rem;
  text-align: center;
}

.nav-toggle:checked + .menu-button span {
  transform: rotate(45deg);
}

.nav-toggle:checked + .menu-button span::before {
  top: 0;
  opacity: 0;
}

.nav-toggle:checked + .menu-button span::after {
  top: 0;
  transform: rotate(-90deg);
}

.nav-toggle:checked ~ .global-nav {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

/* ==================================================
   3. ヒーロー
   ================================================== */

.hero {
  min-height: calc(100svh - var(--header-height));
  background-image: url("../images/241017_0017.jpg");
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 56px;
  background: linear-gradient(rgba(7, 24, 39, 0.55), rgba(7, 24, 39, 0.35));
}

.hero__content {
  color: var(--color-white);
}

.hero__label {
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.hero__message {
  margin-bottom: 28px;
  font-size: clamp(1rem, 4.8vw, 1.3rem);
  font-weight: 700;
  line-height: 2;
}

/* ==================================================
   4. ボタン
   ================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.button--outline {
  color: var(--color-main);
  background-color: var(--color-white);
  border-color: var(--color-main);
}

.button--line {
  width: 100%;
  color: var(--color-white);
  background-color: #06c755;
}

/* ==================================================
   5. 各セクション
   ================================================== */

.interview__lead {
  margin-bottom: 20px;
  font-weight: 700;
}

.about {
  display: grid;
  gap: 24px;
}

.about__text {
  display: grid;
  gap: 16px;
}

.service-list,
.news-list,
.contact-methods {
  display: grid;
  gap: 24px;
}

.service-card,
.news-card,
.contact-card,
.contact-form {
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(25, 95, 155, 0.08);
}

.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card__body,
.news-card,
.contact-card,
.contact-form {
  padding: 22px;
}

.service-card h3,
.news-card h3,
.contact-card h3,
.contact-form h3,
.flow-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.service-card p,
.news-card p,
.contact-card p {
  margin-bottom: 16px;
}

.text-link {
  display: inline-block;
  font-weight: 700;
}

.flow-list {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: flow;
}

.flow-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px;
  background-color: var(--color-white);
  border-radius: 8px;
}

.flow-card__number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-white);
  background-color: var(--color-main);
  border-radius: 50%;
  font-weight: 700;
}

.news-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.news-card h3 a {
  color: var(--color-text);
}

.section-action {
  margin-top: 28px;
  text-align: center;
}

.contact-section {
  background-color: #eaf2f8;
}

.contact-card__tel {
  display: inline-block;
  color: var(--color-main-dark);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-buttons {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.contact-button--line {
  background-color: #06c755;
}

.contact-button--mail {
  background-color: var(--color-main);
}

.contact-button:focus-visible {
  outline: 3px solid #333;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .contact-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.contact-form {
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--color-white);
  border: 1px solid #9aa8b3;
  border-radius: 5px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(25, 95, 155, 0.22);
  border-color: var(--color-main);
}

.required {
  display: inline-block;
  padding: 1px 6px;
  color: var(--color-white);
  background-color: #b93838;
  border-radius: 3px;
  font-size: 0.75rem;
}

.form-submit {
  width: 100%;
  border: 0;
}

/* ==================================================
   6. フッター
   ================================================== */

.site-footer {
  padding-block: 48px 24px;
  color: var(--color-white);
  background-color: #173246;
}

.site-footer__name {
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.office-info {
  display: grid;
  gap: 16px;
}

.office-info div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.office-info dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.office-info a {
  color: var(--color-white);
}

.copyright {
  margin-top: 28px;
  text-align: center;
}

/* ==================================================
   7. PC向けの下準備
   今回はPCデザインを作り込まず、幅が広がった時に
   不自然にならない最低限の変更だけを書いています。
   ================================================== */

@media (min-width: 768px) {
  :root {
    --header-height: 76px;
  }

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

  .section {
    padding-block: 80px;
  }

  .site-logo {
    width: 220px;
  }

  .about {
    grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
    align-items: start;
  }

  .service-list,
  .news-list,
  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button--line {
    width: auto;
  }
}
