/* ============== RESET / BASE ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Arkhe親テーマの --ark-letter_spacing (.025em) を無効化 */
:root {
  --ark-letter_spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
  letter-spacing: 0;
}

body {
  font-family: "YakuHanJP", "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #002d50;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

:root {
  --blue: #047;
  --blue-deep: #002d50;
  --orange: #e88121;
  --bg-grey: #f2f5f8;
  --bg-pale: #f4f6f9;
  --text-grey: #6b7280;
  --text-grey-dark: #4b5563;
  --text-grey-mid: #9ca3af;
}

/* ============== LAYOUT ============== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.container.narrow {
  max-width: 880px;
}

/* ============== TOP STRIP & HEADER ============== */
.top-strip {
  background: var(--orange);
  height: 4px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
}

.site-header {
  position: fixed;
  top: 30px;
  left: 50px;
  right: 50px;
  z-index: 150;
  background: #fff;
  height: 72px;
  border-radius: 11px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  height: 72px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 36px;
  margin-left: auto;
  margin-right: 35px;
}

.nav a {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  letter-spacing: 0.35px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--orange);
}

/* ===== PC ナビ ドロップダウン（サービス / ブログ） ===== */
.nav-item {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-trigger::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 60;
}

/* ホバー判定が途切れないように、トリガーとドロップダウンの隙間を埋める */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown a {
  display: block;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.3px;
  padding: 11px 14px;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown a:hover {
  background: var(--bg-pale);
  color: var(--orange);
}

/* ===== モバイル サブメニュー（アコーディオン） ===== */
.mobile-submenu {
  display: flex;
  flex-direction: column;
}

.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.35px;
  text-align: left;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  cursor: pointer;
}

.mobile-submenu-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.mobile-submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.mobile-submenu-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-submenu.is-open .mobile-submenu-panel {
  max-height: 360px;
}

.mobile-submenu-panel a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  letter-spacing: 0.3px;
  padding: 13px 4px 13px 22px;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s ease;
}

.mobile-submenu-panel a:hover {
  color: var(--orange);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--orange);
  color: #fff;
  height: 50px;
  padding: 0 24px;
  border-radius: 8px;
}

.cta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.cta-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
}

/* ============== HAMBURGER / MOBILE MENU ============== */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.menu-open .nav-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s ease;
}

.menu-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-close span {
  position: absolute;
  top: 19px;
  left: 7px;
  width: 26px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-links a {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.35px;
  padding: 16px 4px;
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}

.mobile-menu-links a:hover {
  color: var(--orange);
}

.mobile-bottom-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 145;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.12);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  height: 50px;
  padding: 0 14px;
  border-radius: 8px;
}

.arrow-circle {
  width: 16.8px;
  height: 16.8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arrow-circle.blue {
  background: var(--blue);
}

.arrow-circle.orange {
  background: var(--orange);
}

.arrow-circle.small {
  width: 14px;
  height: 14px;
}

.arrow-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============== EYEBROW & TITLE ============== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow.center {
  justify-content: center;
  width: 100%;
}

.eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--orange);
}

.eyebrow-light .eyebrow-text {
  color: var(--orange);
}

.section-title {
  font-family: "YakuHanJP", "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin-top: 16px;
}

.section-title.center {
  text-align: center;
}

.section-title.light {
  color: #fff;
}

.section-title em {
  color: var(--orange);
  font-style: normal;
}

.section-title .dark-blue {
  color: var(--blue-deep);
}

.section-lead {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--text-grey);
  line-height: 26px;
}

.section-lead.center {
  text-align: center;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 7px;
  justify-content: space-between;
  min-width: 184px;
}

.btn-white {
  background: #fff;
  color: var(--orange);
  padding: 12px 24px;
  border-radius: 7px;
  justify-content: space-between;
  min-width: 184px;
  font-weight: 700;
}

.btn-outline-orange-pill {
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 14px 30px;
  border-radius: 9999px;
  font-weight: 700;
}

.btn-outline-blue {
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 8px 20px;
  border-radius: 7px;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
}

.btn-outline-blue-pill {
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 14px 34px;
  border-radius: 9999px;
  font-weight: 700;
}

.btn-orange-pill {
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
}

.arrow-pill {
  display: inline-flex;
  align-items: center;
}

.arrow-text {
  display: inline-flex;
}

/* ============== FOOTER ============== */
.site-footer {
  background: #1f2939;
  color: #9ca3af;
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 100px;
}

.footer-grid {
  display: grid;
  /* ブランド列を広く取り、右側の3カラムをまとめて右寄せする。
     1fr は実質 minmax(auto, 1fr) で最小幅が中身に依存し、狭い画面であふれる（段落ち）ため、
     minmax(0, ...) を使って各カラムが中身より小さく縮めるようにする。 */
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 49px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 14px;
}

.footer-mission {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-info {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.footer-info p {
  margin-bottom: 6px;
}

.footer-heading {
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  margin-bottom: 20px;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9ca3af;
  padding: 6px 0;
}

.bullet {
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

.footer-contact-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.copyright {
  font-size: 12px;
  color: #4b5563;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  color: #4b5563;
}

/* スマホ時のみ表示する改行 */
.sp-br {
  display: none;
}

/* .footer-col の右寄せは .footer-grid のカラム比率で行うため padding-left は不要 */

/* ============== RESPONSIVE (common) ============== */
@media (max-width: 1200px) {
  .container {
    padding: 0 32px;
  }

  .site-header {
    left: 20px;
    right: 20px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .sp-br {
    display: inline;
  }

  .footer-inner {
    padding: 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
    border-bottom: none;
  }

  .footer-mission,
  .footer-contact-text {
    max-width: 420px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }

  .footer-legal {
    order: -1;
    gap: 16px;
  }

  .copyright {
    order: 1;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .mobile-bottom-cta {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

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

/* ============== 新デザインページ共通レイアウト上書き ==============
 * Arkhe親テーマの .l-content__body には margin: 3rem auto が掛かっており、
 * ホームページ (.home.page) だけ 0 に上書きされている。
 * 新デザインの他ページ (pmvv / company 等) でも上下マージンを 0 にする。 */
body.home .l-content__body,
body.page-pmvv .l-content__body,
body.page-company .l-content__body,
body.page-contact .l-content__body,
body.page-thanks .l-content__body,
body.page-rpo .l-content__body,
body.page-coddy .l-content__body,
body.is-echoes-blog .l-content__body {
  margin: 0 auto;
}

/* page-rpo: Arkhe親テーマの .l-container (max-width / 左右padding) を解除して
   フルブリード描画を許可する。pmvv / company と同じパターン。
   Arkhe / プラグインが優先される場合に備えて !important を付与している。 */
body.page-rpo {
  overflow-x: hidden;
}

body.page-template-page-rpo .l-container,
body.page-template-page-rpo .l-content,
body.page-template-page-rpo .l-content__body {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* page-coddy: rpo と同様に Arkhe親テーマの .l-container 制約を解除してフルブリード描画する。 */
body.page-coddy {
  overflow-x: hidden;
}

body.page-coddy .l-container,
body.page-coddy .l-content,
body.page-coddy .l-content__body {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* ============== CONTACT BANNER ==============
 * footer-new.php に含まれており全ページに表示されるため、
 * common.css に置いてスコープなしで適用する。 */
.contact-banner {
  background: var(--orange);
  position: relative;
  overflow: hidden;
}

.contact-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 210px;
}

.contact-banner-title {
  font-family: "YakuHanJP", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.contact-banner-actions {
  display: flex;
  gap: 30px;
}

@media (max-width: 900px) {
  .contact-banner-inner {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .contact-banner-title {
    font-size: 23px;
  }

  .contact-banner-actions {
    flex-direction: column;
  }
}