/* Recruit Page Styles */

.recruit-hero {
  position: relative;
  height: 400px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  margin: calc(var(--header-height) + 100px) auto;
}

.recruit-hero::before {
  content: '';
  position: absolute;
  top: 25%;
  width: 50%;
  height: 60%;
  background: var(--color-primary);
  z-index: 1;
}

.recruit-hero-content {
  z-index: 2;
  color: var(--color-white);
  width: 50%;
  position: absolute;
  bottom: 20%;
  left: 5%;
}

.recruit-hero-content p:first-child {
  font-size: 1.0rem;
}

.recruit-hero-content p:last-child {
  font-size: 2.5rem;
}

.recruit-hero-bg {
  position: absolute;
  top: -5%;
  right: 0;
  width: 60%;
  height: 100%;
  background: url('../images/recruit/recruit_1.jpg') center/cover no-repeat;
}

.recruit-hero::after {
  content: '';
  position: absolute;
  top: -12%;
  right: 0;
  width: 28%;
  height: 18%;
  background-color: var(--color-primary);
  z-index: 2;
  pointer-events: none;
}

/* Recruit Section Styles */
.recruit-section {
  margin: 0 auto;
  padding: 0 20px;
}

.tabs {
  border-top: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
}

.tab-menu {
  display: flex;
  justify-content: center;
  margin: 0 240px;
}

.tab-menu .tab {
  flex: 1;
  background: transparent;
  border-left: 1px solid var(--color-text-muted);
  border-right: 1px solid var(--color-text-muted);
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-menu .tab:hover {
  transform: scale(1.01);
}

.tab-menu .tab.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  position: relative;
}

.tab-menu .tab.active::after {
  content: "▼\A▼\A▼";
  position: absolute;
  bottom: -140px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1.2;
  white-space: pre;
  text-align: center;
}

.tab-content-outline {
  margin: 0 120px;
  border-left: 2px solid var(--color-text-muted);
  border-right: 2px solid var(--color-text-muted);
}

.content-section {
  padding: 175px 70px;
  display: none;
}

.content-section.active {
  display: block;
}

.info-box {
  overflow: hidden;
}

.row {
  display: flex;
  border-top: 1px solid var(--color-text-muted);
}

.row:last-child {
  border-bottom: 1px solid var(--color-text-muted);
}

.label {
  width: 20%;
  background: var(--color-primary);
  color: white;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.label.highlight {
  background: var(--color-primary);
}

.value {
  width: 80%;
  box-sizing: border-box;
  line-height: 1.6;
}

.value p, .value ul {
  padding: 46px;
}

.sub-label {
  display: flex;
  align-items: center;
  background: var(--color-pink-light);
  padding: 0px 30px;
  margin-right: 0;
  color: var(--color-primary);
  min-width: 240px;
  flex-shrink: 0;
  text-align: center;
}

.sub-row {
  border-bottom: 2px dotted var(--color-text-muted);
  display: flex;
}

.sub-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sub-content {
  flex: 1;
  line-height: 1.6;
  padding: 46px;
}

.preferred-list {
  margin: 0;
  padding-left: 20px;
}

.preferred-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.application-steps {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--color-light-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .recruit-hero {
    height: 350px;
    margin: calc(var(--header-height) + 50px) auto 0;
  }
  
  .recruit-hero-content p:first-child {
    font-size: 0.9rem;
  }
  
  .recruit-hero-content p:last-child {
    font-size: 2.2rem;
  }
  
  .recruit-section {
    padding: 0 20px;
  }
  
  .tab-menu {
    margin: 0 100px;
  }
  
  .tab-menu .tab {
    height: 100px;
    font-size: 14px;
  }
  
  .tab-content-outline {
    margin: 0 60px;
  }
  
  .content-section {
    padding: 120px 40px;
  }
  
  .tab-menu .tab.active::after {
    bottom: -100px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .recruit-hero {
    height: 250px;
    margin: calc(var(--header-height) + 20px) auto 0;
  }
  
  .recruit-hero::before {
    width: 55%;
    top: 28%;
    height: 50%;
  }
  
  .recruit-hero-bg {
    width: 70%;
    top: -3%;
  }
  
  .recruit-hero::after {
    display: none;
  }
  
  .recruit-hero-content {
    width: 55%;
    left: 3%;
    bottom: 18%;
  }
  
  .recruit-hero-content p:first-child {
    font-size: 0.8rem;
  }
  
  .recruit-hero-content p:last-child {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .recruit-section {
    padding: 0 20px;
  }
  
  .tab-menu {
    margin: 0 20px;
  }
  
  .tab-menu .tab {
    height: 70px;
    font-size: 13px;
    padding: 12px 8px;
    line-height: 1.3;
  }
  
  .tab-content-outline {
    margin: 0 20px;
  }
  
  .content-section {
    padding: 60px 25px;
  }
  
  .tab-menu .tab.active::after {
    bottom: -70px;
    font-size: 18px;
  }
  
  .label {
    padding: 14px;
    font-size: 14px;
  }
  
  .value p, .value ul {
    padding: 25px;
    font-size: 14px;
  }
  
  .sub-label {
    padding: 10px 16px;
    min-width: 160px;
    font-size: 13px;
  }
  
  .sub-content {
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .sub-row {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .recruit-hero {
    height: 200px;
    margin: calc(var(--header-height) + 10px) auto 0;
    overflow: hidden;
  }
  
  .recruit-hero::before {
    width: 60%;
    top: 25%;
    height: 55%;
  }
  
  .recruit-hero-bg {
    width: 75%;
    top: -3%;
  }
  
  .recruit-hero::after {
    display: none;
  }
  
  .recruit-hero-content {
    width: 60%;
    left: 3%;
    bottom: 20%;
  }
  
  .recruit-hero-content p:first-child {
    font-size: 0.75rem;
    margin-bottom: 5px;
  }
  
  .recruit-hero-content p:last-child {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  
  .recruit-section {
    padding: 0 15px;
  }
  
  .tabs {
    border-top: 1px solid var(--color-text-muted);
    border-bottom: 1px solid var(--color-text-muted);
    margin-bottom: 20px;
  }
  
  .tab-menu {
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  
  .tab-menu .tab {
    flex: 1 1 calc(50% - 1px);
    height: 60px;
    font-size: 11px;
    padding: 8px 4px;
    border: 1px solid var(--color-text-muted);
    border-right: none;
    border-bottom: none;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .tab-menu .tab:nth-child(2n) {
    border-right: 1px solid var(--color-text-muted);
  }
  
  .tab-menu .tab:nth-child(3),
  .tab-menu .tab:nth-child(4) {
    border-bottom: 1px solid var(--color-text-muted);
  }
  
  .tab-menu .tab.active::after {
    display: none;
  }
  
  .tab-content-outline {
    margin: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--color-text-muted);
  }
  
  .content-section {
    padding: 30px 0;
  }
  
  .info-box {
    padding: 0;
  }
  
  .row {
    flex-direction: column;
    margin-bottom: 25px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px var(--color-black-transparent-08);
    background: var(--color-white);
  }
  
  .row:last-child {
    border-bottom: none;
  }
  
  .label, .value {
    width: 100%;
    border: none;
  }
  
  .label {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    justify-content: flex-start;
    margin-bottom: 0;
    background: var(--color-primary);
    color: var(--color-white);
    position: relative;
  }
  
  .label::before {
    content: "■";
    font-size: 12px;
    margin-right: 8px;
    opacity: 0.8;
  }
  
  .value {
    background: var(--color-white);
    margin-bottom: 0;
  }
  
  .value p, .value ul {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
  }
  
  .sub-row {
    flex-direction: column;
    margin: 8px 16px;
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 1px 4px var(--color-black-transparent-05);
  }
  
  .sub-row:first-child {
    margin-top: 16px;
  }
  
  .sub-row:last-child {
    margin-bottom: 16px;
  }
  
  .sub-label {
    padding: 12px 16px;
    min-width: auto;
    margin-right: 0;
    font-size: 13px;
    background: var(--color-blue-light);
    border-bottom: 1px solid var(--color-gray-border);
    color: var(--color-text);
    text-align: left;
    justify-content: flex-start;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .sub-label::before {
    content: "▶";
    font-size: 10px;
    margin-right: 8px;
    color: var(--color-primary);
    opacity: 0.7;
  }
  
  .sub-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--color-white);
    display: block;
    align-items: flex-start;
  }
  
  .preferred-list {
    padding-left: 18px;
    margin: 0;
  }
  
  .preferred-list li {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
  }
  
  .application-steps {
    padding-left: 18px;
    font-size: 13px;
    margin-top: 8px;
  }
}

/* 超小画面対応 */
@media (max-width: 360px) {
  .recruit-hero {
    height: 180px;
    margin: calc(var(--header-height) + 5px) auto 0;
  }
  
  .recruit-hero-content p:first-child {
    font-size: 0.7rem;
  }
  
  .recruit-hero-content p:last-child {
    font-size: 1.3rem;
  }
  
  .recruit-section {
    padding: 0 10px;
  }
  
  .tab-menu .tab {
    height: 55px;
    font-size: 10px;
    padding: 6px 3px;
    line-height: 1.1;
  }
  
  .content-section {
    padding: 25px 0;
  }
  
  .row {
    margin-bottom: 20px;
    border-radius: 10px;
  }
  
  .label {
    padding: 16px 18px;
    font-size: 14px;
  }
  
  .label::before {
    font-size: 10px;
    margin-right: 6px;
  }
  
  .value p, .value ul {
    padding: 16px;
    font-size: 13px;
  }
  
  .sub-row {
    margin: 6px 12px;
  }
  
  .sub-label {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .sub-label::before {
    font-size: 9px;
    margin-right: 6px;
  }
  
  .sub-content {
    padding: 14px;
    font-size: 12px;
  }
  
  .preferred-list {
    padding-left: 15px;
  }
  
  .preferred-list li {
    font-size: 12px;
  }
  
  .application-steps {
    padding-left: 15px;
    font-size: 12px;
  }
}
