/*
Theme Name: Denso Recruitment
Theme URI: https://example.com/denso-recruitment
Author: Your Name
Author URI: https://example.com
Description: UTエイム株式会社の期間従業員採用情報サイト用テーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: denso-recruitment
*/

:root {
  --utaim-green: #8cc63f;
  --utaim-black: #1a1a1a;
  --utaim-gray: #f5f5f5;
  --utaim-dark: #333333;
  --denso-red: #e6232a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--utaim-dark);
  background-color: #ffffff;
  font-family: "Noto Sans JP", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* 共通クラス */
.btn-primary {
  background-color: var(--utaim-green);
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-denso {
  background-color: var(--denso-red);
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.btn-denso:hover {
  background-color: #c61e24;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--utaim-dark);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .section-container {
    padding: 4rem 1rem;
  }
}

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

.bg-white {
  background-color: white;
}

.bg-gray {
  background-color: var(--utaim-gray);
}

.hidden {
  display: none;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--utaim-green);
  margin: 0;
}

@media (min-width: 768px) {
  .site-title {
    font-size: 1.25rem;
  }
}

.site-description {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--utaim-dark);
}

@media (min-width: 768px) {
  .site-description {
    font-size: 1rem;
  }
}

.main-navigation {
  display: none;
}

@media (min-width: 768px) {
  .main-navigation {
    display: block;
  }
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.main-navigation a {
  color: var(--utaim-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.main-navigation a:hover {
  color: var(--utaim-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  display: block;
  color: var(--utaim-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--utaim-green);
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  background-color: var(--utaim-dark);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 26, 26, 0.3), rgba(26, 26, 26, 0.2));
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 1rem;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: white;
  margin-bottom: 2rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-cta {
  background-color: var(--denso-red);
  color: white;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  font-weight: bold;
  box-shadow: 0 4px 14px rgba(230, 35, 42, 0.4);
  text-decoration: none;
  transition: background-color 0.3s;
  margin-bottom: 2.5rem;
  display: inline-block;
  width: 100%;
  max-width: 20rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-cta {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    width: auto;
  }
}

.hero-cta:hover {
  background-color: #c61e24;
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 20rem;
}

@media (min-width: 768px) {
  .hero-links {
    flex-direction: row;
    max-width: none;
  }
}

.hero-link-white {
  background-color: white;
  color: var(--denso-red);
  border: 2px solid var(--denso-red);
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
}

.hero-link-white:hover {
  background-color: #fff8f8;
}

.hero-link-red {
  background-color: var(--denso-red);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
}

.hero-link-red:hover {
  background-color: #c61e24;
}

/* 待遇・特徴セクション */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.benefit-card {
  background-color: var(--utaim-gray);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: box-shadow 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.benefit-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.benefit-icon {
  margin-bottom: 1rem;
  color: var(--utaim-green);
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.benefit-description {
  margin-bottom: 0.5rem;
}

.benefit-toggle {
  color: var(--utaim-green);
  margin-top: 0.5rem;
}

.benefit-details {
  margin-top: 1rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s;
}

.benefit-details.is-open {
  max-height: 24rem;
}

.benefit-details ul {
  text-align: left;
  padding-left: 1rem;
  margin: 0;
  list-style-type: disc;
}

.benefit-details li {
  margin-bottom: 0.5rem;
}

/* 職場環境セクション */
.work-environment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .work-environment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work-environment-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.work-environment-image {
  position: relative;
  height: 20rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .work-environment-image {
    height: 24rem;
  }
}

.work-environment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 生活環境セクション */
.life-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .life-support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.life-support-image {
  position: relative;
  height: 20rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  order: 2;
}

@media (min-width: 768px) {
  .life-support-image {
    height: 24rem;
    order: 1;
  }
}

.life-support-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.life-support-content {
  order: 1;
}

@media (min-width: 768px) {
  .life-support-content {
    order: 2;
  }
}

.life-support-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* 先輩の声セクション */
.voices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .voices-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.voice-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.voice-quote {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  color: var(--utaim-green);
  opacity: 0.2;
}

.voice-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.voice-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--utaim-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.voice-initial {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--utaim-green);
}

.voice-name {
  font-weight: bold;
}

.voice-meta {
  font-size: 0.875rem;
  color: #666;
}

.voice-period {
  font-size: 0.875rem;
  color: var(--utaim-green);
}

.voice-comment {
  font-size: 0.875rem;
}

/* よくあるご質問セクション */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  text-align: left;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--utaim-green);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s;
}

.faq-answer.is-open {
  max-height: 24rem;
}

.faq-answer-content {
  padding-bottom: 1rem;
  color: #666;
}

/* フッター */
.site-footer {
  background-color: white;
  color: var(--utaim-black);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-branding {
  margin-bottom: 1rem;
  text-align: center;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--utaim-green);
  white-space: normal;
}

.footer-tagline {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.footer-links {
  border-top: 1px solid #e5e5e5;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--utaim-dark);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.875rem;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .hero-links {
    flex-direction: column;
  }

  .hero-link-white,
  .hero-link-red {
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
