/*
Theme Name: エージェントキューブ適職診断
Theme URI: https://agentcube-inc.com
Author: Agent Cube Inc.
Author URI: https://agentcube-inc.com
Description: エージェントキューブ適職診断ランディングページ用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agentcube-tekisyoku
*/

/* WordPress Admin Bar Fix */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar body {
    padding-top: 106px;
  }
}

/* ========================================
   CSS Variables & Base Styles
======================================== */
:root {
  --color-primary: #0f5cb6;
  --color-secondary: #fab732;
  --color-background: #e9f6ff;
  --color-white: #ffffff;
  --color-text-dark: #4d4d4d;
  --color-text-light: #ffffff;
  --color-pink: #ef7689;
  --color-green: #4cb35c;
  --color-gold: #debd44;
  --font-main: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-accent1: 'Yusei Magic', sans-serif;
  --font-accent2: 'Mochiy Pop P One', sans-serif;
  --font-hiragino: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-avenir: 'Avenir', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 60px;
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
}

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

.br-pc {
  display: inline;
}

.br-sp {
  display: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ========================================
   Common Components
======================================== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 33px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.14);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.14);
}

.btn-link {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 2px;
}

/* Section Title */
.section-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 60px;
}

.section-title-wrapper.center {
  margin-bottom: 40px;
}

.section-title-bg {
  font-family: var(--font-hiragino);
  font-weight: 700;
  font-size: 66px;
  color: var(--color-white);
  line-height: 1;
}

.section-title-bg.flow-bg {
  color: #e9f6ff;
}

.section-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 42px;
  color: var(--color-primary);
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
  margin: 0;
}

.section-title.bordered {
  position: relative;
  transform: none;
  font-size: 30px;
  border: none;
  border-bottom: 2px solid var(--color-primary);
  padding: 5px 20px;
  border-radius: 0;
}

/* ========================================
   Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: rgba(233, 246, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  box-sizing: border-box;
}

.logo img {
  width: 130px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 38px;
}

.main-nav a {
  font-family: var(--font-hiragino);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-btn {
  padding: 7px 18px;
  font-size: 13px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  padding: 20px 20px 30px;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1000;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-hiragino);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
  padding: 10px 0;
  border-bottom: 1px solid #e9f6ff;
}

.mobile-nav .btn {
  margin-top: 10px;
  width: 100%;
}

/* ========================================
   Hero Section
======================================== */

.hero-section {
  padding-top: 40px;
  padding-bottom: 0;
  background-color: var(--color-background);
  text-align: center;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.hero-content-wrapper {
  overflow: visible;
}

.hero-box {
  position: relative;
  background-color: transparent;
  border-radius: 20px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-illustrations {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-man {
  position: absolute;
  width: 230px;
  height: 273px;
  left: 1px;
  top: 80px;
}

.hero-man img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-lady {
  position: absolute;
  width: 184px;
  height: 220px;
  right: 34px;
  top: 127px;
}

.hero-lady img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-text-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-speechballoon {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 173px;
  height: 53px;
}

.hero-speechballoon img {
  width: 100%;
  height: 100%;
}

.hero-speechballoon span {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-accent1);
  font-size: 22px;
  color: var(--color-primary);
  white-space: nowrap;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.hero-main-title-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-main-title-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-highlight-box {
  border: 2px solid #fee400;
  padding: 2px 10px;
  font-size: 27px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: rgba(254, 228, 0, 0.1);
}

.hero-title-blocks {
  display: flex;
  margin-top: 10px;
}

.hero-title-block {
  width: 109px;
  height: 109px;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-accent2);
  font-size: 74px;
  color: var(--color-primary);
  padding-bottom: 7px;
}

.hero-title-block.color-pink {
  color: var(--color-pink);
}

.hero-title-block.color-green {
  color: var(--color-green);
}

.hero-topvisual {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-cta-wrapper {
  background-color: var(--color-primary);
  padding: 25px 20px 30px;
  margin-top: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  z-index: 2;
  width: 100vw;
  box-sizing: border-box;
  border-radius: 0;
  overflow: visible;
}

.cta-bubble-bg {
  position: absolute;
  right: 0;
  bottom: -13vw;
  width: 23vw;
  max-width: 348px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.hero-cta-text {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
}

.hero-cta-btn {
  font-size: 22px;
  gap: 11px;
  padding: 15px 40px;
  position: relative;
  z-index: 2;
}

.hero-cta-btn img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  position: relative;
  top: 2px;
}

/* ========================================
   Intro Section
======================================== */
.intro-section {
  padding: 60px 20px;
}

.intro-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-heading {
  background-color: #a9d7ff;
  color: var(--color-primary);
  font-size: 21px;
  font-weight: 700;
  padding: 5px 26px 7px;
  border-radius: 999px;
  margin: 0 0 27px 0;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  justify-content: center;
}

.intro-man-illustration {
  position: relative;
  width: 128px;
  height: 163px;
  flex-shrink: 0;
  margin-right: 20px;
  z-index: 1;
}

.intro-man-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-speech-bubble {
  position: relative;
  width: 531px;
  max-width: 75%;
}

.bubble-bg {
  width: 100%;
  height: auto;
  position: relative;
  top: 15px;
}

.bubble-decoration {
  position: absolute;
  top: -5px;
  right: -35px;
  width: 69px;
  transform: rotate(10deg);
}

.bubble-text {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 85%;
  margin: 0;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.bubble-text .highlight {
  color: var(--color-pink);
}

/* ========================================
   Achievements Section
======================================== */
.achievements-section {
  padding: 60px 20px;
  position: relative;
  overflow: visible;
}

.achievements-bubble-bg {
  position: absolute;
  left: calc(50% - 400px - 12.5vw);
  top: 50%;
  transform: translateY(-50%);
  width: 25vw;
  max-width: 350px;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.achievements-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 3px solid var(--color-gold);
  border-radius: 20px;
  padding: 60px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.crown-icon {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 71px;
}

.achievements-title {
  color: var(--color-gold);
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  margin: 0;
}

.stats-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.main-stat {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.main-stat .number {
  font-family: var(--font-avenir);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-primary);
  background: linear-gradient(transparent 75%, #fee400 75%);
  display: inline-block;
  line-height: 1;
}

.main-stat .unit {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-description {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stat-description .line-deco {
  align-self: center;
}

.stat-description p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.5;
}

.stat-description .highlight {
  color: var(--color-pink);
}

.line-deco {
  width: 28px;
  height: 43px;
  border-left: 1px solid var(--color-primary);
  transform: rotate(-57deg);
  flex-shrink: 0;
}

.line-deco.right {
  transform: rotate(-123deg);
}

.pie-chart-group {
  position: relative;
  width: 236px;
  height: 155px;
}

.pie-chart {
  width: 100%;
  height: 100%;
  position: relative;
}

.pie-chart > img {
  width: 100%;
  height: 100%;
}

/* .pie-chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-primary);
} */

/* .pie-chart-text p {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 5px 0;
} */

/* .pie-chart-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
} */

/* .pie-chart-number .number-main {
  font-family: var(--font-avenir);
  font-weight: 900;
  font-size: 74px;
  line-height: 1;
} */

.pie-chart-number .number-percent {
  font-family: var(--font-avenir);
  font-weight: 900;
  font-size: 39px;
  line-height: 1;
}

.sparkle {
  position: absolute;
}

.sparkle img {
  width: 100%;
  height: 100%;
}

.sparkle-1 {
  width: 36px;
  height: 43px;
  top: 19px;
  right: -15px;
}

.sparkle-2 {
  width: 33px;
  height: 33px;
  bottom: -14px;
  left: -17px;
}

.awards-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.award-item {
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 0;
}

.award-item img {
  width: 100%;
  max-width: 600px;
}

.award-item > span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold);
}

.award-year {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.award-year .year-number {
  font-family: var(--font-avenir);
  font-weight: 900;
  font-size: 41px;
  color: var(--color-gold);
  letter-spacing: 0;
  margin-left: -15px;
}

.award-year .year-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
}


/* ========================================
   Features Section
======================================== */
.features-section {
  position: relative;
  padding: 60px 20px 200px;
  overflow: visible;
}

.features-bg {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(360deg);
  width: 1100px;
  height: 1200px;
  z-index: -1;
}

.features-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.features-section .section-title-wrapper {
  margin-bottom: 100px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 35px;
}

.feature-item.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.feature-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  padding: 8px 12px;
  display: inline-block;
  width: fit-content;
  box-shadow: 4px 4px 0px 0px rgba(15, 92, 182, 0.22);
}

.feature-title.pink {
  background-color: #fdebee;
  color: var(--color-pink);
}

.feature-title.green {
  background-color: #e5f4e8;
  color: var(--color-green);
}

.feature-title.yellow {
  background-color: #fef5e2;
  color: var(--color-secondary);
}

.feature-description {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   Flow Section
======================================== */
.flow-section {
  background-color: transparent;
  padding: 100px 20px 60px;
  position: relative;
  overflow: visible;
}

.flow-bg-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  z-index: -1;
  pointer-events: none;
}

.flow-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  margin-top: 105px;
}

.step-card {
  background-color: #e9f6ff;
  border-radius: 10px;
  padding: 50px 15px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.step-number-circle {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 105px;
  background-color: #a9d7ff;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 0px 0px rgba(15, 92, 182, 0.22);
}

.step-label {
  font-family: var(--font-hiragino);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.step-number {
  font-family: var(--font-hiragino);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.step-icon-container {
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-icon-container img {
  max-width: 100%;
  max-height: 100%;
}

.step-description {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.5;
  margin: 15px 0 0 0;
}

.down-arrow {
  margin: 50px 0;
  width: 68px;
}

.flow-cta-box {
  background-color: #fef5e2;
  border-radius: 20px;
  box-shadow: 6px 6px 0px 0px rgba(15, 92, 182, 0.22);
  padding: 20px 40px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 41px;
}

.flow-cta-title {
  background-color: #fde0a7;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  padding: 8px 25px 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  transform: translateY(-40px);
}

.flow-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: -20px;
}

.flow-cta-image {
  width: 208px;
  height: 150px;
  flex-shrink: 0;
}

.flow-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.flow-cta-text p {
  border: none;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 2;
  margin: 0;
  background-color: transparent;
}

.underline-yellow {
  background: linear-gradient(transparent 85%, #fee400 85%);
}

.flow-cta-btn {
  padding: 8px 25px 10px;
  border-radius: 999px;
  font-size: 16px;
  gap: 7px;
}

.flow-cta-btn img {
  width: 19px;
  height: 19px;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.flow-main-cta {
  font-size: 22px;
  padding: 15px 40px;
}

.flow-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  width: 100%;
  margin: 20px auto;
  text-align: center;
}

.btn-text-underline {
  display: inline-block;
  background: none;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.btn-text-underline:hover {
  opacity: 0.7;
}

/* ========================================
   Benefits Section
======================================== */
.benefits-section {
  padding: 100px 20px;
  overflow: visible;
  position: relative;
}

.benefits-bubble-left {
  position: absolute;
  left: 0;
  bottom: -145px;
  width: 25vw;
  max-width: 350px;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.benefits-bubble-right {
  position: absolute;
  right: 0;
  bottom: -250px;
  width: 25vw;
  max-width: 350px;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.benefits-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.benefits-content-box {
  background-color: var(--color-white);
  border-radius: 20px;
  box-shadow: 6px 6px 0px 0px rgba(15, 92, 182, 0.22);
  display: flex;
  justify-content: center;
  padding: 23px 30px;
  gap: 20px;
}

.benefit-column {
  flex: 1;
  padding: 32px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.benefit-column:not(:last-child) {
  border-right: 3px solid #a9d7ff;
}

.benefit-column h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  margin: 0;
}

.benefit-column h3 .highlight {
  color: var(--color-pink);
}

.benefit-column p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
  margin: 0;
}

.benefit-deco-left {
  position: absolute;
  width: 148px;
  height: 198px;
  left: -84px;
  top: 18px;
  z-index: 1;
}

.benefit-deco-left img {
  width: 100%;
  height: 100%;
}

.benefit-deco-right {
  position: absolute;
  width: 201px;
  height: 199px;
  right: -80px;
  bottom: -71px;
  z-index: 1;
}

.benefit-deco-right img {
  width: 100%;
  height: 100%;
}

/* ========================================
   Personality Types Section
======================================== */
.types-section {
  background-color: var(--color-white);
  padding: 105px 20px;
  border-radius: 89px 89px 0 0;
}

.types-container {
  max-width: 950px;
  margin: 0 auto;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 230px));
  grid-auto-rows: 1fr;
  gap: 15px;
  margin-top: 80px;
  justify-items: center;
  justify-content: center;
}

.type-card {
  background-color: var(--color-white);
  border: 3px solid;
  border-radius: 20px;
  padding: 25px 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
}

.type-card.color-blue {
  border-color: #a9d7ff;
  box-shadow: 5px 5px 0px 0px #a9d7ff;
}

.type-card.color-blue .type-code {
  color: #0f5cb6;
}

.type-card.color-blue .type-name {
  background-color: #e9f6ff;
  color: #0f5cb6;
}

.type-card.color-green {
  border-color: #b2deb9;
  box-shadow: 5px 5px 0px 0px #b2deb9;
}

.type-card.color-green .type-code {
  color: #00a319;
}

.type-card.color-green .type-name {
  background-color: #e5f4e8;
  color: #00a319;
}

.type-card.color-yellow {
  border-color: #fde0a7;
  box-shadow: 5px 5px 0px 0px #fde0a7;
}

.type-card.color-yellow .type-code {
  color: #f79400;
}

.type-card.color-yellow .type-name {
  background-color: #fef5e2;
  color: #f79400;
}

.type-card.color-pink {
  border-color: #f8c4cc;
  box-shadow: 5px 5px 0px 0px #f8c4cc;
}

.type-card.color-pink .type-code {
  color: #ef5870;
}

.type-card.color-pink .type-name {
  background-color: #fdebee;
  color: #ef5870;
}

.type-icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.type-icon img {
  max-width: 100%;
  max-height: 100%;
}

.type-code {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.type-name {
  font-size: 15px;
  font-weight: 700;
  padding: 4px 10px 6px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 5px;
  line-height: 1.3;
}

.type-description {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-section {
  background-color: var(--color-background);
  padding: 80px 20px;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 0 40px 0;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 57px;
}

.testimonial-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  justify-content: center;
}

.testimonial-item.reverse {
  flex-direction: row;
}

.testimonial-card {
  background-image: url('images/speechbubble-voice.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border-radius: 0;
  padding: 20px 30px 20px 90px;
  box-shadow: none;
  border: none;
  width: 500px;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.testimonial-item.reverse .testimonial-card {
  background-image: url('images/speechbubble-voice.png');
  padding: 20px 30px 20px 90px;
  transform: scaleX(-1);
}

.testimonial-item.reverse .testimonial-card .testimonial-content {
  transform: scaleX(-1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 119px;
  height: 119px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-age {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-job {
  font-size: 13px;
  color: var(--color-text-dark);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.testimonial-highlight-wrap {
  margin: 0;
}

.testimonial-highlight {
  font-size: 16px;
  font-weight: 700;
  color: #EF7689;
  background: linear-gradient(transparent 80%, #fee400 80%);
  line-height: 1.8;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.testimonial-text {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--color-text-dark);
}

/* ========================================
   FAQ Section
======================================== */
.faq-section {
  background-color: var(--color-white);
  padding: 60px 20px 86px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 40px;
}

.faq-item {
  background-color: #e9f6ff;
  border: 2px solid #a9d7ff;
  border-radius: 12px;
  box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.06);
  padding: 20px 27px;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  list-style: none;
  width: 100%;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.q-icon {
  font-family: var(--font-hiragino);
  font-weight: 700;
  font-size: 23px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.faq-question > span:nth-of-type(2) {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  flex-grow: 1;
}

.faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon.plus {
  display: none;
}

.faq-item:not([open]) .faq-icon.minus {
  display: none;
}

.faq-answer {
  padding: 17px 0 0 38px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.faq-answer p {
  margin: 0;
}

.faq-cta-section {
  background-color: #E9F6FF;
  padding: 30px 20px 40px;
}

.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.faq-cta .btn-primary {
  font-size: 22px;
  padding: 15px 40px;
}

.faq-cta a.entory {
  color: var(--color-primary);
  font-family: "Hiragino Sans";
  font-size: 17px;
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
  text-decoration: none;
}

/* ========================================
   Footer
======================================== */
.site-footer-main {
  background-color: var(--color-primary);
  padding: 38px 20px;
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo img {
  width: 130px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-nav a {
  font-family: var(--font-hiragino);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-white);
}

/* ========================================
   Responsive Styles
======================================== */

/* Benefits decorations - prevent overflow */
@media (max-width: 1200px) {
  .benefit-deco-left {
    width: 120px;
    height: 160px;
    left: 0;
  }

  .benefit-deco-right {
    width: 160px;
    height: 159px;
    right: 0;
  }
}

/* Slightly below desktop width */
@media (max-width: 1100px) {
  .hero-box {
    margin: 0 auto;
  }

  .hero-man,
  .hero-lady {
    top: auto;
    bottom: -20px;
  }

  .header-container {
    max-width: 1100px;
    width: 100%;
    padding: 15px 20px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .site-header,
  .header-container {
    width: 100%;
  }

  .hero-content-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-cta-wrapper {
    margin-top: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
    width: 100vw;
  }

  .intro-container,
  .achievements-container,
  .features-container,
  .flow-container,
  .benefits-container,
  .benefits-content-box,
  .types-container,
  .testimonials-container,
  .faq-container,
  .footer-container,
  .flow-section,
  .benefits-section,
  .types-section,
  .testimonials-section,
  .faq-section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .main-nav,
  .header-btn {
    display: none;
  }

  .achievements-bubble-bg,
  .benefits-bubble-left {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-man {
    width: 180px;
    height: 213px;
    left: -20px;
  }

  .hero-lady {
    width: 144px;
    height: 180px;
    right: -10px;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .type-card {
    aspect-ratio: auto;
    max-width: none;
    justify-content: flex-start;
    height: 100%;
  }

  .benefit-deco-left {
    width: 120px;
    height: 160px;
    left: -40px;
  }

  .benefit-deco-right {
    width: 160px;
    height: 159px;
    right: -40px;
  }
}

@media (max-width: 960px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 22px;
  }
}

@media (max-width: 768px) {
  /* Section Titles */
  .section-title-bg {
    font-size: 48px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-title.bordered {
    font-size: 22px;
    padding: 4px 15px;
  }

  /* Hero */
  .hero-box {
    flex-direction: column;
    min-height: auto;
    margin: 0 auto;
  }

  .hero-illustrations {
    display: none;
  }

  .hero-speechballoon {
    top: -75px;
  }

  .hero-speechballoon span {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-main-title-group {
    flex-direction: column;
    gap: 8px;
  }

  .hero-highlight-box {
    font-size: 22px;
  }

  .hero-title-blocks {
    transform: scale(0.75);
    margin-top: 5px;
  }

  .hero-cta-text {
    font-size: 15px;
  }

  .hero-cta-btn {
    font-size: 18px;
    padding: 12px 25px;
  }

  /* Intro */
  .intro-heading {
    font-size: 16px;
    text-align: center;
  }

  .intro-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intro-man-illustration {
    order: 2;
    margin-right: 0;
  }

  .intro-speech-bubble {
    order: 1;
    max-width: 100%;
  }

  .bubble-text {
    font-size: 14px;
    width: 90%;
    left: 50%;
  }

  .bubble-decoration {
    width: 50px;
    right: -10px;
    top: -10px;
  }

  /* Achievements */
  .achievements-container {
    padding: 50px 20px;
  }

  .achievements-title {
    font-size: 16px;
  }

  .main-stat .number {
    font-size: 28px;
  }

  .stat-description {
    flex-direction: column;
    gap: 5px;
  }

  .stat-description p {
    font-size: 13px;
  }

  .line-deco {
    display: none;
  }

  .award-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 5px 10px;
    width: fit-content;
    border-bottom: none;
  }

  .award-item img {
    width: 100%;
    max-width: 100%;
  }

  .award-item > span {
    font-size: 11px;
    white-space: normal;
  }

  .award-year .year-number {
    font-size: 24px;
    margin-left: -5px;
  }

  .award-year .year-text {
    font-size: 12px;
  }

  /* Features */
  .features-section {
    padding: 60px 20px;
  }

  .features-bg {
    display: none;
  }

  .br-pc {
    display: none;
  }

  .br-sp {
    display: inline;
  }

  .flow-bg-image {
    display: none;
  }

  .feature-item,
  .feature-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-text {
    align-items: center;
  }

  .feature-image {
    width: 180px;
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-description {
    font-size: 15px;
  }

  /* Flow */
  .flow-section {
    padding: 60px 20px;
    background-color: var(--color-white);
  }

  .step-card {
    background-color: #e9f6ff;
  }

  .flow-cta-box {
    padding: 20px 20px 30px;
  }

  .flow-cta-title {
    font-size: 14px;
    padding: 6px 15px 8px;
    text-align: center;
  }

  .flow-cta-content {
    flex-direction: column;
    gap: 20px;
  }

  .flow-cta-text p {
    font-size: 14px;
  }

  .flow-main-cta {
    font-size: 18px;
    padding: 12px 30px;
  }

   .flow-main-cta2 {
    font-size: 18px;
    padding: 12px 30px;
    background-color: #00a319;
  }

  /* Benefits */
  .benefits-section {
    padding: 60px 20px;
  }

  .benefits-content-box {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .benefit-column {
    padding: 25px 15px;
  }

  .benefit-column:not(:last-child) {
    border-right: none;
    border-bottom: 3px solid #a9d7ff;
  }

  .benefit-column h3 {
    font-size: 20px;
  }

  .benefit-deco-left,
  .benefit-deco-right {
    display: none;
  }

  /* Types */
  .types-section {
    padding: 60px 20px;
    border-radius: 50px 50px 0 0;
  }

  .types-grid {
    grid-template-columns: repeat(2, minmax(0, 230px));
    gap: 15px;
    justify-content: center;
  }

  .type-card {
    padding: 20px 12px 15px;
    margin: 0 auto;
    width: 100%;
  }

  .type-code {
    font-size: 18px;
  }

  .type-name {
    font-size: 13px;
  }

  .type-description {
    font-size: 12px;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 60px 20px;
  }

  .testimonial-card {
    padding: 20px 20px 20px 70px;
    width: 100%;
    box-sizing: border-box;
  }

  .testimonial-item.reverse .testimonial-card {
    padding: 20px 20px 20px 70px;
  }

  .testimonial-highlight {
    font-size: 16px;
  }

  .testimonial-text {
    font-size: 14px;
  }

  /* FAQ */
  .faq-section {
    padding: 40px 20px 60px;
  }

  .faq-item {
    padding: 15px 20px;
  }

  .faq-question > span:nth-of-type(2) {
    font-size: 15px;
  }

  .faq-answer {
    padding-left: 30px;
    font-size: 14px;
  }

  .faq-cta .btn-primary {
    font-size: 18px;
    padding: 12px 30px;
  }

a.entory {
  color: var(--color-primary);
  font-family: "Hiragino Sans";
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
  text-decoration: none;
}

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-nav {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .types-section {
    padding-bottom: 80px;
  }

  .types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 80px auto 0;
  }

  .type-card {
    aspect-ratio: auto;
    padding: 25px 15px;
  }

  .hero-title-blocks {
    transform: scale(0.6);
  }

  .hero-speechballoon {
    top: -35px;
  }

  .hero-speechballoon img {
    width: 140px;
    height: auto;
  }

  /* Testimonials - アイコン→ボックスの縦並び */
  .testimonials-list {
    gap: 40px;
  }

  .testimonial-item,
  .testimonial-item.reverse {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-avatar {
    width: 80px;
    height: 80px;
    order: 1;
  }

  .testimonial-card {
    order: 2;
    width: 100%;
    min-height: auto;
    background-image: none;
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 3px 3px 0px 0px rgba(15, 92, 182, 0.22);
  }

  .testimonial-item.reverse .testimonial-card {
    transform: none;
    background-image: none;
    background-color: var(--color-white);
    padding: 20px;
  }

  .testimonial-item.reverse .testimonial-card .testimonial-content {
    transform: none;
  }

  .testimonial-highlight {
    font-size: 14px;
  }

  .testimonial-text {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 70px;
  }

  /* Hero topvisual - 拡大 */
  .hero-section {
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-topvisual {
    transform: scale(1.15);
    transform-origin: center top;
    margin-left: 2px;
    margin-right: 2px;
  }

  .hero-box {
    margin-bottom: 0;
  }

  .hero-cta-wrapper {
    margin-top: 25px;
  }

  .hero-cta-text {
    font-size: 13px;
  }

  /* Intro bubble - テキスト位置調整 */
  .bubble-text {
    font-size: 12px;
    top: 55%;
  }

  .hero-content-wrapper,
  .hero-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-cta-wrapper {
    width: 100vw;
    max-width: none;
    margin-left: -15px;
    margin-right: -15px;
  }

}

/* Animation for FAQ */
.faq-item {
  transition: all 0.3s ease;
}

.faq-answer {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.type-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
}

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0px 0px rgba(15, 92, 182, 0.2);
}

.step-card {
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

/* Print Styles */
@media print {
  .site-header,
  .hero-cta-wrapper,
  .faq-cta,
  .mobile-nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  body {
    background-color: white;
  }

  section {
    page-break-inside: avoid;
  }
}

/* WordPress Theme Override - PC Navigation Fix */
@media (min-width: 1025px) {
  .main-nav {
    display: flex !important;
    gap: 38px;
  }
  .header-btn {
    display: inline-flex !important;
    padding: 7px 18px;
    font-size: 13px;
  }
  .mobile-nav-toggle {
    display: none !important;
  }
}

/* ========================================
   Page Content Styles (for pages other than front page)
======================================== */
.page-content {
  padding: 60px 20px 80px;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-primary);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

.page-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.page-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border, #e6e6e6);
}

.page-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 30px 0 15px;
}

.page-body p {
  margin: 0 0 20px;
}

.page-body ul,
.page-body ol {
  margin: 0 0 20px;
  padding-left: 25px;
}

.page-body li {
  margin-bottom: 10px;
}

.page-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-body a:hover {
  opacity: 0.7;
}

.page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.page-body th,
.page-body td {
  padding: 12px 15px;
  border: 1px solid var(--color-border, #e6e6e6);
  text-align: left;
}

.page-body th {
  background-color: var(--color-background);
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .page-content {
    padding: 40px 15px 60px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-body h2 {
    font-size: 20px;
  }

  .page-body h3 {
    font-size: 18px;
  }
}
