@charset "UTF-8";

/*
Theme Name: FREX
Author: 国分茉由子
Description: 株式会社FREXのコーポレートサイト
Version: 1.00
*/

:root {
  /* 色管理用の変数 */
  --black-color: #000000;
  --white-color: #fff;
  --gray-color: #aaa;
  --primary-color: #004aad;
  --accent-color: #88c8d6;
  --font-color: #0f1b4e;
  --bg-color:#f2ffff;
}

:root {
  /* コンテンツ幅管理用の変数 */
  --content-width-lg: 1088px;
}

:root {
  /* z-index管理用の変数 */
  --z-index-back: -1;
  --z-index-default: 1;
  --z-index-header: 100;
  --z-index-menu: 150;
  --z-index-modal: 200;
}

/* ---------- base ---------- */

body {
  color: var(--black-color);
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

* {
  box-sizing: border-box;
}

img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ---------- utility ---------- */

@media screen and (min-width: 375px) {
  .u_sm-dn {
    display: none;
  }
}

@media screen and (min-width: 1080px) {
  .u_lg-dn {
    display: none;
  }
}

/* ---------- layout ---------- */

.l_container-sm,
.l_container,
.l_container-lg {
  /* width: 100%; */
  padding: 0 16px;
  margin: 0 auto;
}

.l_container-sm {
  max-width: calc(var(--content-width-sm) + 32px);
}

.l_container {
  max-width: calc(var(--content-width) + 32px);
}

.l_container-lg {
  max-width: calc(var(--content-width-lg) + 32px);
}

.l_contents {
  padding: 80px 0;
}

/* ===== Header ===== */
.l_header {
  height: 88px;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255,255,255,0.8);
  z-index: var(--z-index-header);
}

@media screen and (min-width: 1080px) {
  .l_header {
    padding: 0 60px;
  }
}

.l_header-logo img {
  display: block;
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 100%;
}

.l_header-logo_link {
  height: 100%;
  display: flex;
  align-items: center;
}

.l_header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white-color);
  z-index: var(--z-index-header);
}

@media screen and (min-width: 1080px) {
  .l_header-nav {
    position: static;
    background: transparent;
    width: auto;
    height: auto;
    opacity: 1;
    pointer-events: inherit;
  }
}

.l_header-nav_list {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (min-width: 1080px) {
  .l_header-nav_list {
    display: flex;
    gap: 0 48px;
    position: static;
    transform: none;
  }
}

.l_header-nav_item {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

@media screen and (min-width: 1080px) {
  .l_header-nav_item {
    height: 100%;
    display: flex;
    align-items: center;
  }
}

.l_header-nav_item:not(:first-child) {
  margin-top: 40px;
}

@media screen and (min-width: 1080px) {
  .l_header-nav_item:not(:first-child) {
    margin-top: 0;
  }
}

.l_header-nav_link:hover {
  color: var(--primary-color); 
  font-weight: bold;
}

/* ===== Footer ===== */
.l_footer {
  background: var(--white-color);
}


.l_footer-contents{
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1080px){
  .l_footer-contents{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.l_footer_logo img {
  display: block;
  width: 240px;
}

@media screen and (min-width: 1080px){
  .l_footer_logo img {
    height: 100px;
  }
}

.l_footer_logo_link {
  height: 100%;
  display: flex;
  align-items: center;
}

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

@media screen and (min-width: 1080px) {
  .l_footer_list {
    flex-direction: row;
    gap: 40px;
  }
}

.l_footer_item {
  font-weight: bold;
}

.l_footer_item:not(:first-child) {
  margin-top: 40px;
}

@media screen and (min-width: 1080px) {
  .l_footer_item:not(:first-child) {
    margin-top: 0;
  }
}

.l_footer_link {
  height: 100%;
  display: flex;
  align-items: center;
}

.l_footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 32px 60px 0;
  flex-wrap: wrap;
  gap: 16px;
}

@media screen and (min-width: 1080px) {
  .l_footer-bottom {
    flex-direction: row;
  }
}

.l_footer-buttons {
  display: flex;
  gap: 16px;
}

.l_footer-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.l_footer-button-service{
  background-color: var(--gray-color);
}

.l_footer-button:hover {
  background-color: var(--font-color);
}

.l_footer-copyright {
  margin-top: 48px;
  text-align: center;
  position: relative;
}

.l_footer-copyright::before {
  content: "";
  display: block;
  width: calc(100% - 120px);
  height: 1px;
  background-color: var(--gray-color);
  margin: 0 auto 24px;
}

.l_footer-privacy {
  font-size: 12px;
  color: var(--black-color);
  text-align: left;
}

.l_footer-privacy a {
  color: var(--font-color);
  text-decoration: underline;
}

.l_footer-copyright_txt {
  font-size: 12px;
}

/* ---------- module ---------- */
.m_opening {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #d4d4d4, #f0f0f0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.m_opening-logo-wrapper {
  position: relative;
  width: 500px;
  height: 5000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.m_opening-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.m_btn.m_btn__mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  height: 64px;
  border-radius: 12px;
  background: rgba(170, 170, 170, 0.9);
  color: var(--white-color);
  font-size: 16px;
  font-weight: bold;
  padding: 0 72px 0 28px;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 26px rgba(16,32,64,0.18);
  transition: background-color .25s, color .12s, transform .12s, box-shadow .24s, border-color .2s;
  cursor: pointer;
}

/* 矢印アイコン */
.m_btn.m_btn__mail::after {
  content: "\2192";
  position: absolute;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #fff;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

/* ホバー時 */
.m_btn.m_btn__mail:hover,
.m_btn.m_btn__mail:focus {
  background-color: var(--font-color);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(12,22,44,0.26);
}

.m_section_title{
  text-align: center;
}

.m_section_title_main {
  position: relative;
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
}

@media screen and (min-width: 1080px) {
  .m_section_title_main {
    font-size: 28px;
  }
}

.m_section_title_main::after {
  content: "";
  display: block;
  width: 166px;
  height: 4px;
  background:var(--accent-color);
  margin: 6px auto 6px;
}

.m_section_title_sub{
  font-weight: bold;
  font-size: 16px;
  margin-top: 6px;
}

.m_section_title_color{
  color: var(--white-color);
}

.m_hamburger {
  width: 32px;
  height: 24px;
  position: relative;
  z-index: var(--z-index-menu);
  background-color: rgba(255, 255, 255,0.1);
}

@media screen and (min-width: 1080px) {
  .m_hamburger {
    display: none;
  }
}

.m_hamburger-bar {
  width: 100%;
  height: 2px;
  position: absolute;
  background: var(--black-color);
  left: 50%;
  transition: 0.3s;
}

.m_hamburger-bar:first-child {
  top: 0;
  transform: translate(-50%, 0);
}

.m_hamburger-bar:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.m_hamburger-bar:last-child {
  top: 100%;
  transform: translate(-50%, -100%);
}

.m_page-copy {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: bold;
  color: var(--white-color);
  letter-spacing: 0.02em;
  text-align: center;
}

@media screen and (min-width: 1080px) {
  .m_page-copy {
    left: 60px;
    transform: none;
    text-align: left;
    font-size: 64px;
  }
}

/* ---------- .top_kv ---------- */
.top_kv,
.philosophy,
.company,
.top-message {
  width: 100%;
  overflow-x: hidden;
}

.top_kv {
  position: relative;
  height: 100dvh;
  background: url('/wp-content/themes/株式会社FREX/img/bg_top.png') center center/cover no-repeat;
  overflow: hidden;
}

.top_kv-content {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

@media screen and (min-width: 1080px) {
  .top_kv-content {
    bottom: 80px;
  }
}

.top_kv-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

@media screen and (min-width: 1080px) {
  .top_kv-inner {
    width: 100%;
    margin: 0 60px;
    justify-content: space-between;
    flex-direction:row;
    align-items: flex-end;
    box-sizing: border-box;
    gap: 60px;
  }
}

.top_kv_box {
  max-width: 600px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.02em;
}

.top_kv_copy {
  color: var(--white-color); 
  font-size: 50px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 25px rgba(9,19,39,0.15);
  line-height: 1.00;
  margin: 0 0 40px 0;
}
@media screen and (min-width: 1080px) {
  .top_kv_copy {
    font-size: 80px;
    text-align: left;
  }
}

.top_kv_sub-copy {
  color: var(--white-color);
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(25,40,95,0.13);
}

@media screen and (min-width: 1080px) {
  .top_kv_sub-copy {
  font-size: 20px;
  text-align: left;
  margin-left: 4px;
  }
}

.top_kv_btn-wrapper {
  flex-shrink: 0;
}

/* ---------- .philosophy ---------- */
.philosophy{
  overflow: hidden;
}

.philosophy-inner{
  background: url('/wp-content/themes/株式会社FREX/img/bg_mvv.png') center center/cover no-repeat;
}

.philosophy-grid {
  margin: 50px 16px;
}

.philosophy-card {
  border-radius: 12px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 60px;
  overflow: hidden;
}

.philosophy-card-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.philosophy-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
}

.philosophy-card-header h2 {
    font-weight: bold;
    font-size: 20px;
}

.philosophy-card-body {
    padding: 25px;
}

.philosophy-card-body h3 {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

@media screen and (min-width: 1080px) {
  .philosophy-card-body h3 {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

.philosophy-card-body p {
  font-size: 12px;
}

@media screen and (min-width: 1080px) {
  .philosophy-card-body p {
      margin-bottom: 16px;
      font-size: 16px;
  }
}

.philosophy-card-value{
  display: block;
  display: flex;
  justify-content: center; 
  text-align: center;
}

.philosophy-icon-value img{ 
  width: 226px;
  height: auto;
}

.value-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.value-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.value-item h4{
  color: var(--black-color);
  font-weight: bold;
  font-size: 20px;
}

.value-item h5{
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

.value-item p{
  color: var(--black-color);
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.2;
}

@media (min-width: 1080px) {
  .value-grid {
    margin-top: 44px;
  }

  .value-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .value-row-3 {
    justify-content: space-between;
  }

  .value-row-2 {
    justify-content: center;
  }

  .value-item {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .value-row-2 .value-item {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* ---------- .company ---------- */
.company {
  height: 100vh;
  background: url('/wp-content/themes/株式会社FREX/img/bg_about.png') center center/cover no-repeat;
  overflow: hidden;

}

.company-grid{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 80px 16px 0;
  gap: 50px;
}

@media screen and (min-width: 1080px) {
  .company-grid{
    top:50%;
    justify-content: center;
    flex-direction: row;
    margin: 80px 0 0 0;
    gap: 50px;
  }
}

.company-item{
  width: 100%;
  padding: 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
}

@media screen and (min-width: 1080px) {
  .company-item{
    width: 480px;
    height: 330px;
    padding: 60px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
  }
}

.company-item h6{
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--font-color);
}

@media screen and (min-width: 1080px) {
  .company-item h6{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 28px;
    color: var(--font-color);
  }
}

.company-item p{
  font-size: 12px;
  line-height: 1.4;
}

@media screen and (min-width: 1080px) {
  .company-item p{
    font-size: 16px;
    line-height: 2.0;
  }
}

/* ---------- .top-message ---------- */
.top-message-body{
  margin: 35px 16px 0 16px;
}

.top-message-body h7{
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 30px;
}

.top-message-txt{
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.top-message-post{
  display: block;
  margin-top: 50px;
  text-align: right;
  font-weight: bold;
}

.top-message-name{
  display: block;
  text-align: right;
  font-weight: bold;
  font-size: 16px;
}

@media screen and (min-width: 1080px) {
  .top-message-body{
    margin: 35px 60px 0 60px;
  }
  
  .top-message-body h7{
    font-size: 28px;
  }

  .top-message-txt{
    font-size: 16px;
  }

  .top-message-name{
    font-size: 20px;
  }
}

/* ---------- .top-service ---------- */
.service{
  background: url('/wp-content/themes/株式会社FREX/img/bg_overview.png') center center/cover no-repeat;
  overflow: hidden;
}

.service-grid{
  margin: 50px 16px;
}

.service-card {
  border-radius: 12px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 60px;
  background-color: var(--white-color);
  overflow: hidden;
}

.service-card-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  height: 70px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-card-header h8 {
  font-size: 16px;
  font-weight: bold;
}

.service-card-body {
  display: block;
  padding: 30px;
}

.service-card-contents{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card-txt{
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}

.service-card-img{
  display: none;
}

@media screen and (min-width: 1080px) {
  .service-grid{
    margin: 50px 60px;
  }
  
  .service-card-header h8 {
    font-size: 24px;
    font-weight: bold;
  }

  .service-card-txt{
    font-size: 17px;
  }

  .service-card-body {
    padding: 25px;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .service-card-contents{
    display: flex;
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .service-card-img{
    display: block;
    width: 50%;
    height: auto;
  }

  .service-card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .service-card:nth-child(even) .service-card-body {
    flex-direction: row-reverse;
  }
}

/* ---------- .numbers ---------- */
.numbers-grid{
  margin: 60px 16px 0;
}

.numbers-item {
  text-align: left;
  margin-bottom: 30px;
  background-color: var(--white-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.numbers-item:last-child {
  margin-bottom: 0;
}

.numbers-item-header {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 10px;
    margin-bottom: 15px;
}
.numbers-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1d346c;;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.numbers-item-label {
    color: var(--black-color);
    font-weight: bold;
    font-size: 16px;
    text-align: left;
}

.numbers-item-body .large-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 5px;
}
.numbers-item-body .unit {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}
.numbers-item-footer {
    font-size: 12px;
    color: var(--black-color);
    line-height: 1.2;
}

@media screen and (min-width: 1080px) {
  .numbers-section {
      padding: 40px;
  }
  .numbers-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      margin: 60px 60px 0;
      align-items: stretch;
  }
  .numbers-item {
      flex: 0 0 calc((100% - 60px) / 3);
      margin-bottom: 0;
      display: flex;
      flex-direction: column;
  }
  .numbers-item-footer {
      margin-top: auto;
  }
}

/* ---------- FAQ ----------  */
.faq{
  background-color: var(--bg-color);
}

.faq-list {
  margin: 30px 16px;
}

.faq-item {
  border-bottom: 1px solid var(--accent-color);
}

.faq-question {
  padding: 20px 30px 30px 0;
  cursor: pointer;
  position: relative;
  font-size: 14px;
}

.faq-question::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url('/wp-content/themes/株式会社FREX/img/logo_faq.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 20px;
}

.faq-answer p {
  padding: 0 30px 20px 0;
  font-size: 14px;
}

@media screen and (min-width: 1080px) {
  .faq-list {
    margin: 44px 60px;
  }

  .faq-question {
    padding: 20px 0;
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 18px;
  }
}

/* ===== .alliance ===== */
.alliance{
  background: linear-gradient(90deg, var(--black-color), var(--primary-color));
}

.alliance-inner{
  margin: 0 16px;
}

.alliance-copy{
  margin-top: 80px;
  text-align: left;
  font-weight: bold;
  color: var(--white-color);
  font-size: 14px;
  line-height: 1.4;
}

.alliance-contents {
  margin-top: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.alliance-card {
  background-color: var(--white-color);
  color: var(--white-color);
  font-family: 'Noto Sans JP', sans-serif;
}

.alliance-header {
  padding-right:40px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  margin-bottom: 20px;
}

/* 三角形 */
.alliance-ribbon {
  position: relative;
  width: 0;
  height: 0;
  border-top: 100px solid var(--primary-color);     /* 高さ */
  border-right: 100px solid transparent;          /* 幅 */
}

/* 三角形の左上に数字 */
.alliance-ribbon span {
  position: absolute;
  top: -100px;
  left: 6px;
  font-size: 24px;
  font-weight: bold;
  color: var(--white-color);
}

/* タイトル */
.alliance-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--black-color);
}

.alliance-box {
  display: flex;
  align-items:start;
  gap: 10px;
  margin:0 20px;
}

.alliance-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

/* リード文 */
.alliance-lead {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 40px;
  margin-right: 40px;
  color: var(--black-color);
}

/* 説明文 */
.alliance-description {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  margin-left: 25px;
  margin-bottom: 15px;
  margin-right: 40px;
  color: var(--black-color);
}

/* ボタン群 */
.alliance-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-left: 25px;
  margin-bottom: 40px;
  margin-right: 40px;
  gap: 10px;
}

.alliance-buttons button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.alliance-buttons button:hover {
  background-color: var(--font-color);
  color: var(--white-color);
}


@media screen and (min-width: 1080px) {
  .alliance-inner{
    margin: 0 60px;
  }

  .alliance-copy{
    font-size: 18px;
    text-align: center;
  }

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

  .alliance-box {
    margin-left: 75px;
    margin-bottom: 20px;
  }

  .alliance-lead {
    font-size: 18px;
  }

  .alliance-description,
  .alliance-buttons {
    margin-left: 75px;
  }
}

/* ===== .contact ===== */
.contact {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: url('/wp-content/themes/株式会社FREX/img/bg_contact.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.contact_form-section {
  background-color: var(--bg-color);
}

.contact_form {
  margin: 80px 60px 0 60px;
}

.contact_form_list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.contact_form_list dt,
.contact_form_list dd {
  margin: 0;
}

.contact_form_heading {
  font-size: 14px;
  color: var(--black-color);
  margin-bottom: 1px;
  display: block;
}

.contact_form_optional {
  font-size: 12px;
  color: #666666;
  font-weight: 400;
}

.contact_form_detail {
  display: block;
}

.contact_form_input,
.contact_form_textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--white-color);
  color: var(--black-color);
}

.contact_form_input:focus,
.contact_form_textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact_form_textarea {
  min-height: 120px;
  resize: vertical;
}

.contact_form-privacy-text {
  font-size: 12px;
  color: var(--black-color);
  text-align: center;
  line-height: 1.8;
  margin-top: 32px;
  margin-bottom: 16px;
}

.contact_form-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.contact_form-checkbox {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  appearance: checkbox;
}

.contact_form-checkbox-label {
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  line-height: 1.5;
}

.contact_form_btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.contact_form_submit-btn {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact_form_submit-btn:hover {
  background-color: var(--font-color);
}

.contact_form_submit-btn:active {
  background-color: var(--black-color);
}

.thanks-container {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.thanks-container h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--font-color);
  font-weight: bold;
}

.thanks-container p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-back-home {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-back-home:hover {
  background-color: var(--font-color);
}

@media screen and (min-width: 1080px) {
  .contact {
    height: 500px;
  }

  .contact_form-checkbox-wrapper {
    margin-bottom: 40px;
  }

  .contact_form-checkbox {
    width: 20px;
    height: 20px;
  }

  .contact_form-checkbox-label {
    font-size: 16px;
  }

  .contact_form_submit-btn {
    padding: 16px 64px;
    font-size: 18px;
  }
}

/* ===== .privacy ===== */
.privacy {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: url('/wp-content/themes/株式会社FREX/img/bg_privacy.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media screen and (min-width: 1080px) {
  .privacy {
    height: 500px;
  }
}

.privacy-section{
  background-color: var(--bg-color);
}

.privacy-contents {
  margin: 80px 60px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== .business ===== */
.business{
  position: relative;
  width: 100%;
  height: 300px;
  background-image: url('/wp-content/themes/株式会社FREX/img/bg_ourbusiness.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media screen and (min-width: 1080px) {
  .business {
    height: 500px;
  }
}

.under-construction {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--bg-color);
}

.under-construction-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--font-color);
  line-height: 1.6;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 100px 20px;
  background-color: #f8f8f8;
}

.error-404 .error-title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.error-404 .error-message {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 10px;
}

.error-404 .error-sub-message {
  font-size: 1rem;
  color: #777;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ---------- js ---------- */
.js_body.is-active {
  overflow: hidden;
}

.js_opening.is-active {
  visibility: hidden;
}

.js_navigation {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

@media screen and (min-width: 1080px) {
  .js_navigation {
    pointer-events: auto;
    opacity: 1;
  }
}

.js_navigation.is-active {
  opacity: 1;
  pointer-events: inherit;
}

.js_hamburger.is-active .m_hamburger-bar:first-child {
  top: 50%;
  transform: translate(-50%, 0) rotate(45deg);
}

.js_hamburger.is-active .m_hamburger-bar:nth-child(2) {
  opacity: 0;
}

.js_hamburger.is-active .m_hamburger-bar:last-child {
  top: 50%;
  transform: translate(-50%, 0) rotate(-45deg);
}

.js_success-swiper {
  position: relative;
}

.js_faq_mark.is-open::before {
  opacity: 0;
}

.js_faq-a {
  height: 0;
  opacity: 0;
}

.js_h-slide_trigger {
  overflow: hidden;
} 

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