:root {
  --text-main: #2f2f37;
  --sub-color:#0d4365;

  --primary: #0d4365;
  --primary-hover: #0f537e;
  --accent: #d97706;

  --bg-gry: #edebe8; 
}

body{
    padding-top:85px;
    font-family: 'Noto Sans JP';
}



/********
Q&A
*********/
.faq-section {
  background-color: #f8f9fa;
  padding: 80px 20px;
}

.faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}

.faq-item {
  background-color:var(--bg-gry); 
  border-radius: 4px;
  overflow: hidden;
  height: fit-content;
  transition: background-color 0.3s ease;
}

.faq-item[open] {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222222;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; 
  user-select: none;
}


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

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 10px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: #555555;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}


.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::before {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
  font-size: 0.9rem;
  color: #444444;
  line-height: 1.8;
  padding: 0 20px;
  transition: padding 0.4s ease;
}

.faq-item[open] .faq-answer-content {
  padding: 0 20px 20px 20px;
}

.faq-bottom {
  text-align: center;
  margin-top: 50px;
}

.faq-bottom-text {
  font-size: 0.95rem;
  color: #333333;
  margin-bottom: 20px;
}

.faq-btn {
  display: inline-block;
  background-color:var(--primary); 
  color: #ffffff;
  padding: 14px 60px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-btn:hover {
  background-color:var(--primary-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .faq-section {
    padding: 50px 15px;
  }

  .faq-btn {
    width: 80%;
    padding: 14px 0;
  }
}

/* ==========================================
   works-section
========================================== */
.works-section {
  background-color:var(--bg-gry);
  padding: 80px 20px;
  color: var(--text-main);
}

.works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.works-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color:var(--text-main);
  margin-bottom: 50px;
  letter-spacing: 0.1em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.works-card {
  display: flex;
  flex-direction: column;
}

.works-img {
  width: 100%;
  aspect-ratio: 16 / 10; 
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #222222;
}

.works-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.works-card:hover .works-img img {
  transform: scale(1.05);
}

.works-body {
  flex: 1;
}

.works-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color:var(--text-main);
  margin: 0;
}

@media screen and (max-width: 960px) {
  .works-section {
    padding: 60px 20px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .works-title {
    font-size: 1.6rem;
    margin-bottom: 35px;
  }
}

@media screen and (max-width: 480px) {
  .works-desc {
    font-size: 0.8125rem; 
  }
}