/* =============================================================
   components.css — ヘッダー・フッター・ボタン・CTA・カード・フォーム・パンくず
   ProfitScope株式会社
   ============================================================= */

/* ===== Site Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  flex-shrink: 0;
  text-decoration: none;
}

.brand__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* PC Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: 1;
  justify-content: flex-end;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}

.site-nav__list a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--slate);
  padding: .4em .75em;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--sky-deep);
  background: var(--ice);
}

/* Nav CTA */
.site-nav__cta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

/* Hamburger (SP) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: .85em 1.8em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(244,200,67,.55);
}

.btn--outline {
  background: transparent;
  color: var(--sky-deep);
  border: 1.5px solid var(--line);
}

.btn--outline:hover {
  background: var(--ice);
}

.btn--sm {
  font-size: .85rem;
  padding: .65em 1.4em;
}

/* Nav CTA buttons */
.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  padding: .6em 1.3em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(244,200,67,.5);
}

.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  padding: .55em 1.2em;
  border-radius: 999px;
  background: transparent;
  color: var(--sky-deep);
  border: 1.5px solid var(--line);
  transition: background .2s;
  white-space: nowrap;
}

.btn-nav-outline:hover {
  background: var(--ice);
}

/* ===== CTA Block ===== */
.cta-block {
  background: linear-gradient(120deg, var(--ice), var(--line));
  border-radius: 20px;
  padding: clamp(1.8rem,4vw,2.8rem) clamp(1.5rem,4vw,2.4rem);
  text-align: center;
}

.cta-block__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--sky-deep);
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.cta-block h2 {
  font-size: clamp(1.15rem,2.5vw,1.4rem);
  font-weight: 700;
  margin-bottom: .7rem;
  color: var(--ink);
}

.cta-block p {
  color: var(--slate);
  margin-bottom: 1.4rem;
  font-size: .97rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .82rem;
  color: var(--slate);
  margin-bottom: 1.6rem;
}

.breadcrumb a {
  color: var(--sky-deep);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--line);
  margin: 0 .2rem;
}

/* ===== Forms ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group .required-mark {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--paper);
  background: #E0440E;
  border-radius: 4px;
  padding: .1em .45em;
  margin-left: .4rem;
  vertical-align: middle;
}

.form-group .optional-mark {
  display: inline-block;
  font-size: .72rem;
  color: var(--slate);
  background: var(--ice);
  border-radius: 4px;
  padding: .1em .45em;
  margin-left: .4rem;
  vertical-align: middle;
}

.form-control {
  font-family: var(--font);
  font-size: .97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .75em 1em;
  width: 100%;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(2,132,199,.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6B8C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  color: var(--slate);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: .15em;
  accent-color: var(--sky-deep);
  cursor: pointer;
}

.form-hint {
  font-size: .82rem;
  color: var(--slate);
}

.form-error {
  font-size: .82rem;
  color: #C0392B;
}

/* Spam honeypot — hidden from users */
.form-honeypot {
  display: none !important;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ice);
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--pad-x);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.site-footer__brand img {
  height: 32px;
  width: auto;
}

.site-footer__info {
  font-size: .82rem;
  color: var(--slate);
  line-height: 1.6;
}

.site-footer__copy {
  font-size: .82rem;
  color: var(--slate);
}

/* ===== SP Responsive ===== */
@media (max-width: 880px) {
  .hamburger { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad-x) 1.5rem;
    transform: translateY(-120%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 190;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h));
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: .8rem;
    margin-bottom: .8rem;
  }

  .site-nav__list a {
    font-size: 1rem;
    padding: .75em .5em;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__list li:last-child a {
    border-bottom: none;
  }

  .site-nav__cta {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }

  .btn-nav-primary,
  .btn-nav-outline {
    justify-content: center;
    padding: .85em 1.5em;
    font-size: .95rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
  }
}

/* =============================================================
   ロゴサイズ固定（CSSが読み込まれない場合はHTML側のstyleが効く）
   ============================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand__logo {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.site-footer__brand img {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.site-header {
  min-height: 64px;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
}
