/*
Theme Name: Kessan Landing Theme
Theme URI: https://example.com/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: 法人決算代行LP用の固定ページテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: kessan-theme
*/

body {
  margin: 0;
}

:root {
  --kessan-header-height: 82px;
  --kessan-admin-offset: 0px;
  --kessan-shell-padding: 14px;
}

body {
  padding-top: calc(var(--kessan-header-height) + var(--kessan-admin-offset));
}

body.admin-bar {
  --kessan-admin-offset: 32px;
}

.site-header {
  position: fixed;
  inset: var(--kessan-admin-offset) 0 auto;
  z-index: 1000;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--kessan-header-height);
  max-width: none;
  margin: 0;
  padding-left: 22px;
  background: #ffffff;
  overflow: hidden;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 10px 2px;
  text-decoration: none;
}

.site-header__brand-image,
.site-menu__brand-image {
  display: block;
  width: auto;
  max-width: min(70vw, 290px);
  height: 42px;
}

.site-header__actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  position: relative;
}

.site-header__line,
.site-header__menu-toggle {
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-header__line {
  width: 76px;
  background: linear-gradient(180deg, #17d95b 0%, #06c755 100%);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.site-header__line-icon {
  display: block;
  width: 58px;
  height: 44px;
  filter: drop-shadow(0 10px 24px rgba(255, 255, 255, 0.28));
}

.site-header__menu-toggle {
  width: 84px;
  cursor: pointer;
  background: linear-gradient(180deg, #ff914d 0%, #ff6300 100%);
  position: relative;
  overflow: hidden;
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header__menu-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.site-header__menu-lines span,
.site-menu__close::before,
.site-menu__close::after {
  display: block;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
  transition:
    transform 260ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 220ms ease,
    background 220ms ease;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.site-menu[hidden] {
  display: none;
}

.site-menu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.18), transparent 20%),
    rgba(17, 17, 17, 0.52);
  cursor: pointer;
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-menu__panel {
  position: absolute;
  top: calc(var(--kessan-admin-offset) + var(--kessan-header-height));
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(92vw, 420px);
  min-height: calc(100dvh - var(--kessan-admin-offset) - var(--kessan-header-height));
  padding: 22px 22px 28px;
  background: #ffffff;
  box-shadow: -24px 0 50px rgba(17, 17, 17, 0.18);
  border-radius: 0;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  border-top: 1px solid rgba(255, 99, 0, 0.14);
  transform: translateX(28px);
  opacity: 0;
  transition:
    transform 260ms ease,
    opacity 220ms ease;
}

.site-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}

.site-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  background: transparent;
  color: #222222;
  text-decoration: none;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.site-menu__link-label {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-menu__cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.site-menu__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
  position: relative;
  overflow: hidden;
}

.site-menu__cta--line {
  background: linear-gradient(90deg, #17d95b 0%, #06c755 100%);
}

.site-menu__cta--mail {
  background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
}

.site-menu__cta--tel {
  background: linear-gradient(90deg, #1f2a44 0%, #0f4792 100%);
}

.site-menu__cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-menu__cta-icon--line {
  width: 58px;
  height: 44px;
}

.site-menu__cta-icon--mail {
  width: 44px;
  height: 44px;
}

.site-menu__cta-icon--mail svg {
  display: block;
}

.site-menu__cta-icon--tel {
  width: 54px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.site-menu__cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-menu__cta-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #ffef76;
}

.site-menu__cta-main {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.15;
}

body.site-menu-open {
  overflow: hidden;
}

body.site-menu-open .site-menu__backdrop {
  opacity: 1;
}

body.site-menu-open .site-menu__panel {
  transform: translateX(0);
  opacity: 1;
}

.site-menu.active .site-menu__panel {
  box-shadow: -28px 0 52px rgba(17, 17, 17, 0.2);
}

.site-menu__link:hover {
  transform: translateX(-4px);
  color: #ff6300;
}

.site-header__line::before,
.site-header__menu-toggle::before,
.site-menu__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 46%);
  pointer-events: none;
}

.site-header__brand:hover,
.site-header__line:hover,
.site-header__menu-toggle:hover,
.site-menu__cta:hover {
  filter: brightness(1.02);
}

.site-header__menu-toggle.active {
  background: linear-gradient(180deg, #ff7b2f 0%, #f35a00 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.site-header__menu-toggle.active .site-header__menu-lines span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.site-header__menu-toggle.active .site-header__menu-lines span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.site-header__menu-toggle.active .site-header__menu-lines span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --kessan-admin-offset: 46px;
  }
}

@media (max-width: 640px) {
  :root {
    --kessan-header-height: 50px;
    --kessan-shell-padding: 6px;
  }

  .site-header__inner {
    padding-left: 10px;
  }

  .site-header__brand-image,
  .site-menu__brand-image {
    height: 22px;
    max-width: min(54vw, 168px);
  }

  .site-header__line {
    width: 44px;
  }

  .site-header__line-icon {
    width: 34px;
    height: 26px;
  }

  .site-header__menu-toggle {
    width: 52px;
  }

  .site-header__menu-lines {
    gap: 5px;
  }

  .site-header__menu-lines span {
    width: 24px;
    height: 3px;
  }

  .site-menu__panel {
    width: min(100vw, 360px);
    gap: 14px;
    padding: 10px 10px 14px;
    border-radius: 0;
    overflow-y: auto;
  }

  .site-menu__nav {
    margin-top: 0;
  }

  .site-menu__link {
    padding: 10px 2px;
  }

  .site-menu__link-label {
    font-size: 0.92rem;
  }

  .site-menu__cta-group {
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
  }

  .site-menu__cta {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .site-menu__cta-icon--line,
  .site-menu__cta-icon--tel {
    width: 38px;
    height: 30px;
  }

  .site-menu__cta-icon--mail {
    width: 32px;
    height: 32px;
  }

  .site-menu__cta-main {
    font-size: 0.82rem;
  }

  .site-menu__cta-badge {
    font-size: 0.64rem;
  }

  .site-menu__cta-icon--tel {
    font-size: 0.8rem;
    border-width: 1.5px;
  }

  .site-header__menu-toggle.active .site-header__menu-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header__menu-toggle.active .site-header__menu-lines span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.contact__form .wpcf7 {
  width: 100%;
}

.contact__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__form .wpcf7-form-control-wrap {
  display: block;
}

.contact__form .wpcf7-form-control {
  box-sizing: border-box;
}

.contact__form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form select,
.contact__form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 0.75rem;
  border: 1px solid #e1e1e1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #252d3e;
  background: #ffffff;
}

.contact__form textarea {
  min-height: 200px;
  padding: 0.75rem;
  resize: none;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder,
.contact__form select {
  color: #888888;
}

.contact__form .wpcf7-submit {
  width: 100%;
  min-height: 68px;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.contact__form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.contact__form .wpcf7-acceptance,
.contact__form .wpcf7-acceptance .wpcf7-list-item,
.contact__form .contact__agreement label {
  display: inline-flex;
  align-items: center;
}

.contact__form .contact__agreement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.contact__form .contact__agreement p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.contact__form .contact__agreement br {
  display: none;
}

.contact__form .contact__agreement .wpcf7-form-control-wrap {
  display: inline-flex;
  flex-shrink: 0;
}

.contact__form .contact__agreement label {
  margin: 0;
}

.contact__form .wpcf7-acceptance input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: #252d3e;
}

.contact__form .wpcf7-spinner {
  display: block;
  margin: 0.75rem auto 0;
}

.contact__form .wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #c32523;
}

.contact__form .wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}
