/* =========================================
   Common CSS - Header, Footer, CTA, Breadcrumb
   ========================================= */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #152a45;
  --color-accent: #D6141C;
  --color-accent-hover: #B90C13;
  --color-bg-light: #f8fafc;
  --color-text: #212529;
  --color-text-light: #718096;
  --color-white: #ffffff;
  --color-highlight: #FEFE18;
  --color-blue: #0550B5;
  --color-green:#28A88B;
  --color-green02:#2B4850;
  --color-navy: #123D83;
  --color-cta-body-bg: #E5E9F3;
  --color-footer-bg: #0C1E23;
  --color-faq-bg: #F6F6F6;
  --color-section-accent: #F7F7F1;
  --color-section-label: #D1EFE8;
  --color-border-muted: #D4DFEB;
  --color-placeholder-bg: #E9E9E9;
  --color-nayami-text: #2B4850;
  --color-nayami-item-bg: #E2F5F0;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-gray-300: #d1d5db;
  --color-muted: #64748b;
  --color-cta-item: #20408a;
  --color-reason-label: #D1EFE8;
  --color-error: #ef4444;
  --font-family: 'Noto Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1100px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

/* --- Base overrides --- */
body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
}

/* --- CTA Button --- */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, box-shadow 0.2s;
  width: 280px;
  height: 56px;
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35);
}
.cta-btn__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scaleX(0.9) scaleY(1.5);
  transform-origin: center;
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}
@media (max-width: 768px) {
  .cta-btn__arrow {
    right: 10px;
  }
}
.cta-btn--large {
  padding: 18px 40px;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.header--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}
.header__logo {
  margin: 0;
  font-size: 0;
}
.header__logo a {
  display: block;
}
.header__logo img {
  height: 66px;
  width: 380px;
}
.header__cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header {
    height: 60px;
  }
  .header__inner {
    padding: 0 16px;
  }
  .header__logo img {
    width: 150px;
    height: 38px;
  }
  .header__cta {
    width: 183px;
    height: 36px;
    font-size: 15px;
    white-space: nowrap;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-footer-bg);
  padding: 40px 20px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer__logo {
  margin-bottom: 16px;
}
.footer__logo-img {
  height: 40px;
  width: auto;
}
.footer__company {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}
.footer__address {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  font-style: normal;
}

@media (min-width: 769px) {
  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .footer {
    padding: 32px 16px;
  }
  .footer__address {
    font-size: 14px;
  }
}

/* --- CTA Banner (shared by home.php & single.php) --- */
.cases-cta {
  position: relative;
  margin-top: 32px;
  margin-bottom: 24px;
  background-color: var(--color-green);
  background-image: url('../images/22880389.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 30px;
  overflow: hidden;
}
.cases-cta__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}
.cases-cta__inner {
  position: relative;
  z-index: 1;
  padding: 24px 20px 28px;
}
.cases-cta__top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0 10px;
}
.cases-cta__figure {
  flex-shrink: 0;
}
.cases-cta__man {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.95;
}
.cases-cta__headline {
  /*flex: 1;*/
  padding: 12px 16px;
}
.cases-cta__headline-line1,
.cases-cta__headline-line2 {
  margin: 15px 0 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
}
.cases-cta__headline-line2 {
  margin-top: 2px;
}
.cases-cta__middle {
  margin-bottom: 20px;
}
.cases-cta__middle.hero__bottom {
  margin-top: 0;
}
.cases-cta__middle.hero__bottom .cta-btn--large {
  position: relative;
  overflow: hidden;
}
.cases-cta__middle.hero__bottom .cta-btn--large::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: cta-shine 3s infinite;
}
.cases-cta__benefits {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  width: 282px;
  height: 94px;
  padding: 15px;
  margin: 0 auto;
}
.cases-cta__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cases-cta__item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-green02);
  line-height: 1.7;
}
.cases-cta__item:last-child {
  margin-bottom: 0;
}
.cases-cta__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background: var(--color-green02);
  border-radius: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* hero__bottom / hero__limited used inside CTA banner */
.hero__bottom {
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: -15px;
}
.hero__limited {
  position: relative;
  display: inline-block;
  margin: 0 0 -8px;
  background: var(--color-white);
  border-radius: 5px;
  box-shadow: var(--shadow-md);
  font-size: 16px;
  z-index: 1;
  width: 232px;
  height: 29px;
}
.hero__limited::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: var(--color-white) transparent transparent transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.06));
}
.hero__limited-accent {
  color: var(--color-accent);
  font-weight: 700;
}
.hero__limited-text {
  color: var(--color-primary);
  font-weight: 500;
}
.hero__cta {
  display: inline-flex;
}
.hero__bottom .cta-btn--large {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 44px;
  width: 100%;
  max-width: 350px;
  height: 62px;
  font-size: 24px;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(255,100,0,0.35);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.hero__bottom .cta-btn--large::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: cta-shine 3s infinite;
}
.hero__bottom .cta-btn--large:hover {
  box-shadow: 0 8px 24px rgba(255,100,0,0.4);
  transform: translateY(-1px);
}
.hero__bottom .cta-btn__arrow {
  font-size: 24px;
  right: 24px;
}

@keyframes cta-shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@media (min-width: 769px) {
  .cases-cta {
    max-width: 560px;
    margin: 40px auto;
  }
  .cases-cta__inner {
    padding: 24px 103px 28px;
  }
  .cases-cta__headline-line1,
  .cases-cta__headline-line2 {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .cases-cta {
    max-width: none;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    margin-top: 50px;
    margin-bottom: 0;
    border-radius: 0;
  }
  .cases-cta__inner {
    padding: 20px 16px 24px;
  }
  .hero__bottom .cta-btn--large {
    max-width: 300px;
    height: 52px;
    font-size: 20px;
    padding: 14px 32px;
  }
  .hero__bottom .cta-btn__arrow {
    font-size: 20px;
    right: 18px;
  }
  .hero__limited {
    width: 200px;
    height: 26px;
    font-size: 14px;
  }
  .cases-cta__benefits {
    width: 100%;
    max-width: 282px;
    height: auto;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 70px 0;
  font-size: 14px;
  color: var(--color-text);
}
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item a {
  color: var(--color-text);
  text-decoration: none;
}
.breadcrumb__item a:hover {
  text-decoration: underline;
}
.breadcrumb__separator {
  display: inline-flex;
  align-items: center;
}
.breadcrumb__separator svg {
  width: 4px;
  height: 7px;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 13px 0;
    font-size: 12px;
  }
}

/* --- Section Labels (shared) --- */
.section-label {
  font-family: 'Noto Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-section-label);
  margin: 0 0 4px;
  text-align: center;
}
.section-heading {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 24px;
  text-align: center;
}

/* --- Arkhe overrides --- */
.l-content {
  padding-top: 0;
}
.l-content__body{
  margin-top: 0;
}
.l-content__body.l-container {
  max-width: 1080px;
  padding: 0;
}
@media (max-width: 768px) {
  .l-content__body.l-container {
    padding: 0 16px;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .l-content {
    padding-bottom: 0;
  }
}

