/* 全体レイアウト調整 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.8;
    background-color: #f9f9f5;
    color: #333;
}

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

a:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
}


.site-main {
  max-width: 100%;
}

nav ul li {
  font-family: 'Koh Santepheap', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  padding: 10px 12px; /* ←余白詰め気味に */
}

@media (max-width: 767px) {
    .sm-hide {
      display: none !important;
    }
}

@media (min-width: 768px) {
    .md-hide {
      display: none !important;
    }
}

.site-container {
  width: 100%;
  overflow: hidden;
  position: relative; /* ← 絶対配置の基準点になるため必要 */
}



/* ヘッダー */
#header {
    background-color: #EAEAEA;
    height: 87px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  #header {
    height: 54px;
  }
}

/* コンテナ */
#header .container {
    max-width: 1440px;
    width: 100%;
    padding: 0 32px;
}

@media (max-width: 767px) {
  #header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
}

/* ナビ全体を3カラムに */
.nav-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 767px) {
  .nav-split {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 54px;
    left: 0;
    display: block;
    opacity: 0;
    background-color: #EAEAEA;
    pointer-events: none;
    z-index: 10;
    transition: all .3s ease;
    padding-top: 30px;
  }
  .nav-split.active-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 各セクションを調整 */
.nav-left-wrapper {
  flex: 0.8;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  flex: 0.2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-right-wrapper {
  flex: 0.8;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px; /* ← lang-switcherとの間隔調整 */

}

@media (max-width: 767px) {
  .nav-left-wrapper,
  .nav-right-wrapper,
  .nav-left-wrapper .nav-left,
  .nav-right-wrapper .nav-right {
    display: block;
  }
}

@media (max-width: 767px) {
  .nav-left-wrapper li,
  .nav-right-wrapper li {
    text-align: center;
  }

  .nav-left-wrapper a,
  .nav-right-wrapper a {
    display: inline-block;
    padding: 10px 40px;
  }
}


/* ロゴ画像 */
.logo img {
    height: 45px;
    object-fit: contain;
    display: block;
}

/* メニュー */
.nav-left,
.nav-right {
    display: flex;
    list-style: none;
    gap: 24px;
    padding: 0;
    margin: 0;
}



.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 0; /* 念のためリセット */
  position: static; /* ← これ重要！absoluteをやめる */
}


.lang-switcher img {
  width: 20px;
  height: auto;
  cursor: pointer;
}

.lang-switcher ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.lang-switcher li {
  list-style: none;
}

.lang-switcher li img {
  width: 20px;
  height: auto;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .lang-switcher {
    display: flex;
    justify-content: center;  /* 横方向中央揃え */
    gap: 12px;                /* 国旗の間隔 */
    margin-top: 24px;         /* メニューとの余白 */
  }

  .lang-switcher img {
    width: 36px;              /* 適切なサイズに調整 */
    height: auto;
  }
}

/* スマホヘッダー */
.hamburger {
  position: absolute;
  right: 18px;
  width: 16px;
  height: 14px;
  border: none;
  background: transparent;
}

.hamburger.active-nav span {
  transition: all .3s ease;
}

.hamburger.active-nav span:nth-of-type(1) {
  transform: rotate(-45deg) translate(-4px, 5px);
}

.hamburger.active-nav span:nth-of-type(2) {
  opacity: 0;
}

.hamburger.active-nav span:nth-of-type(3) {
  transform: rotate(45deg) translate(-4px, -5px);
}

.hamburger:focus {
  outline: none;
  box-shadow: none;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #000;
}

.hamburger span:nth-of-type(1) {
  top: 0;
}

.hamburger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-of-type(3) {
  bottom: 0;
}

/* ここまでスマホヘッダー */

/* 共通リンクスタイル */
.nav-left a,
.nav-right a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-left a:hover,
.nav-right a:hover {
    opacity: 0.6;
}

/* ヒーローセクション */
.hero-image {
  position: relative;
  height: 480px;
  background-image: url('../assets/images/FV-BG.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center; /* 中央揃えに */
  padding: 0 20px;
}

@media (max-width: 767px) {
  .hero-image {
    height: 526px;
  }
}

.hero-content {
  max-width: 700px;
  text-align: left;
  color: #000;
  padding-top: 200px;
}

.hero-content h2 {
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .hero-content h2 {
    margin-bottom: 16px;
  }
}

.hero-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  color: #000;
}

@media (max-width: 767px) {
  .hero-content p {
    margin-bottom: 26px;
  }
}

@media (max-width: 767px) {
  .hero-content {
    padding-top: 194px;
  }
}


/* ボタン */
.btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

@media (max-width: 767px) {
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 255px;
    height: 54px;
    line-height: 1;
    padding: 18px 38px;
    margin: 0 auto;
  }
}

.btn:hover {
  background-color: #333;
}

/* About Us セクション */
.about-section {
  background-color: #fff;
  padding: 120px 20px 80px; /* 上をやや広めにしてメリハリ */
}

.about-section .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-section h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.05em; /* 見出しの字間をやや狭めに調整 */
  margin-bottom: 40px;
  color: #000;
}

@media (max-width: 767px) {
  .about-section {
    padding-top: 55px;
    padding-bottom: 81px;
  }
  .about-section h2 {
    font-size: 36px;
    margin-bottom: 34px;
  }
}

.about-section p {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  line-height: 1.9;
  color: #000;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .about-section p {
    font-size: 14px;
  }
}

/* mission セクション全体 */
.mission-section {
  background-color: #fff;
  padding: 0;
  display: flex;
  justify-content: center;
}

.mission-container {
  background-color: #F7F7EE;
  max-width: 960px;
  width: 100%;
  padding: 80px 80px;
  color: #000;
}

/* Mission 見出し＋サブタイトル */
.mission-header {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
}

.mission-title {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
  width: 200px; /* ⬅ 横幅を固定してサブタイトルの配置基準に */
}

.mission-subtitle-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center; /* ⬅ 横中央に配置 */
}

.mission-subtitle {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mission-container {
    padding: 59px 38px 52px
  }
  .mission-header {
    display: block;
    margin-bottom: 35px;
  }
  .mission-title {
    width: auto;
    text-align: center;
    font-size: 36px;
    margin-bottom: 0;
  }
}





/* 各 N ブロック（N1, N2, N3） */
.n-block {
  display: flex;
  align-items: flex-end; /* 下揃えに */
  gap: 48px;
  margin-bottom: 60px;
}

.n-block.reverse {
  flex-direction: row-reverse;
}

.n-left {
  display: flex;
  align-items: flex-end;
  min-width: 180px;
  flex-shrink: 0;
}

.n-symbol {
  font-size: 64px;
  font-weight: bold;
  line-height: 1;
  margin-right: 12px;
}

.n-symbol .num {
  font-size: 32px;
  vertical-align: baseline;
  margin-left: 4px;
  margin-right: 10px;
}

.n-labels {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1;
}

.n-labels .jp {
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.n-labels .en {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.1;
}

.n-text {
  font-size: 14px;
  line-height: 1.8;
  max-width: 600px;
  min-height: calc(1em * 1.8 * 3); /* 3行分の高さを確保 */
  display: flex;
  align-items: flex-end; /* 内容を下に寄せる */
}

.mission-summary {
  text-align: left;
  font-size: 14px;
    letter-spacing: 0.05em;
  line-height: 2;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  color: #222;
}

.mission-summary p {
  padding: 20px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  max-width: 680px;
  margin: 0 auto;
}




/* モバイル対応：縦並び＋リバース解除 */
@media (max-width: 767px) {
  .n-block {
    gap: 17px;
  }
  .n-block,
  .n-block.reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  .n-left {
    margin-bottom: 0;
  }

  .n-text {
    max-width: 100%;
  }
}


/* ここから納期の関係でsp主体二変更 */
/* business */
#business {
  padding: 51px 15px 57px;
  background: #fff;
}

#business .business-head {
  margin-bottom: 43px;
}

#business h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 43px;
}

#business .business-head-desc {
  font-size: 15px;
  width: 300px;
  margin: 0 auto;
}

.business-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 321px);
  gap: 37px;
  justify-content: center;
}

#business li {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 321px;
  height: 210px;
  margin: 0 auto;
  list-style: none;
}

#business li:nth-of-type(1) .business-card {
  background-image: url(../assets/images/business_1.png);
}

#business li:nth-of-type(2) .business-card {
  background-image: url(../assets/images/business_2.png);
}

#business li:nth-of-type(3) .business-card {
  background-image: url(../assets/images/business_3.png);
}

.business-list h3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 600;
}

.business-h3-inner {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #D9D9D9;
}

.business-list h3::before {
  position: absolute;
  top: 5px;
  right: 5px;
  content: '';
  width: 40px;
  height: 40px;
  background-color: #000;
}

.business-card {
  width: 300px;
  height: 191px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 37px 17px 57px 23px;
}

.business-card p {
  font-size: 12px;
  font-weight: 600;
}

.business-list-name {
  line-height: 1;
  text-align: center;
  margin-bottom: 26px;
}

.business-list-cont {
  letter-spacing: .1em;
}

@media (min-width: 768px) {
  #business {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .business-head {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 36px;
  }

  #business h2 {
    line-height: 1;
    font-size: 48px;
    margin-bottom: 0;
  }

  #business .business-head-desc {
    width: auto;
    font-size: 16px;
    margin: 0;
  }
}

/* products & company */
.products-company-container section {
  padding: 57px 48px 61px;
  background: #fff;
}

.products-company-container h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .products-company-container {
    max-width: 1440px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
  }
  
  .products-company-container section {
    padding: 80px 0 0;
  }

  .products-company-container h2 {
    font-size: 48px;
  }
}

/* products */
#products {
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding-bottom: 66px;
}

.products-desc {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

#products ul {
  margin-bottom: 28px;
}

#products li {
  width: 279px;
  list-style: none;
  font-size: 14px;
  border-bottom: 1px solid #000;
  margin-right: auto;
  margin-left: auto;
}

#products li:not(:last-of-type) {
  margin-bottom: 15px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 256px);
  justify-content: center;
  gap: 37px;
}

#products img {
  width: 256px;
}

@media (min-width: 768px) {
  #products {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding-bottom: 100px;
  }

  #products h2 {
    margin-bottom: 31px;
  }
  
  .products-desc {
    margin-bottom: 36px;
  }

  #products li {
    width: 239px;
    font-size: 12px;
  }

  #products ul {
    margin-bottom: 35px;
  }

  .product-gallery {
    grid-template-columns: repeat(auto-fit, 124px);
    gap: 37px;
  }
  
  #products img {
    width: 124px;
  }
}


/* company */
#company {
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  padding-bottom: 61px;
}

#company table {
  width: 100%;
  max-width: 347px;
  margin: 0 auto;
  border-collapse: collapse;
}

#company tr:not(:first-of-type) td,
#company tr:not(:first-of-type) th {
  padding-top: 19px;
}

#company td,
#company th {
  font-size: 14px;
  border-bottom: 1px solid #000;
  vertical-align: top;
}

#company th {
  text-align: left;
}

#company td {
  padding-left: 5px;
}

@media (min-width: 768px) {
  #company {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    border-left: none;
    padding-bottom: 100px;
  }

  .company h2 {
    margin-bottom: 54px;
  }

  #company td,
  #company th {
    font-size: 12px;
  }
}



/* contact */
#contact {
  background: #fff;
  padding: 42px 37px 19px;
}

#contact h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 36px;
}

.contact-desc {
  font-size: 16px;
  margin-bottom: 36px;
}

#contact form {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 70px;
}

.contact-li {
  list-style-type: none;
  margin-bottom: 16px;
}

.contact-li:last-of-type {
  text-align: center;
}

.contact-danger {
  color: #FF0404;
}

.contact-label {
  font-size: 16px;
  line-height: 1;
  display: block;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 0 5px;
}

#contact input:not([type=submit]),
#contact textarea {
  margin-top: 14px;
}

#contact input {
  height: 40px;
  border-radius: 0;
  border-color: rgba(0, 0, 0, .28);
  border-width: 1px;
}

#contact textarea {
  height: 200px;
  border-radius: 0;
  border-color: rgba(0, 0, 0, .28);
  border-width: 1px;
}

#contact input[type=submit] {
  width: 300px;
}

.contact-mail-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #221F20;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  width: 300px;
  height: 56px;
  margin: 0 auto;
}

.contact-mail-anchor img {
  width: 22px;
  height: auto;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #221F20;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  width: 300px;
  height: 56px;
  margin: 0 auto;
  border: none;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  padding: 0;
}

.contact-submit::before {
  content: "";
  display: inline-block;
  background-image: url('/wp-content/themes/plan-n-theme/assets/images/mail.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  flex-shrink: 0;
}

.required {
  color: red;
  margin-left: 0.25em;
  font-weight: bold;
}



@media (min-width: 768px) {
  #contact {
    padding: 65px 0 29px;
  }

  .contact-desc {
    text-align: center;
    margin-bottom: 43px;
  }

  .contact-mail-anchor {
    gap: 13px;
    font-size: 16px;
    width: 364px;
    height: 68px;
    margin: 0 auto;
  }
  
  .contact-mail-anchor img {
    width: 27px;
    height: auto;
  }
}

/* sns */
.sns-links {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  gap: 35px;
  padding-bottom: 21px;
}

.sns-links li {
  list-style-type: none;
}

.sns-links li:nth-of-type(1) {
  width: 31px;
  height: auto;
}
.sns-links li:nth-of-type(2) {
  width: 25px;
  height: auto;
}

.sns-links li:nth-of-type(3) {
  width: 25px;
  height: auto;
}

@media (min-width: 768px) {
  .sns-links {
    padding-bottom: 37px;
  }
}


/* footer */
footer {
  background-color: #2A2A2A;
  color: #fff;
  padding: 28px 0;
}

.footer-nav {
  margin-bottom: 20px;
}

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

.footer-li {
  list-style-type: none;
  padding: 0;
}

.footer-li:nth-of-type(1)::before {
  content: "|";
}

.footer-li:nth-of-type(1)::after {
  content: "|";
}

.footer-li:nth-of-type(3)::before {
  content: "|";
}

.footer-li:nth-of-type(3)::after {
  content: "|";
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  padding: 0 .5em;
}

.footer-tel {
  font-size: 12px;
  text-align: center;
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  font-size: 12px;
}




@media (min-width: 768px) {
  .footer-tel {
    font-size: 12px;
  }
  
  footer a {
    font-size: 12px;
    padding: 0 1.5em;
  }
}

/* 固定ページ */
.page-content {
  background-color: #fff;
  padding: 60px 80px;
  line-height: 1.8;
  font-size: 16px;
  box-sizing: border-box;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px; /* 角丸（お好みで） */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04); /* ほんのり影を付けて浮かせる */
}

/* タイトル */
.page-content h1,
.page-title {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 40px;
  line-height: 1.4;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

/* セクション見出し */
.page-content h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 2.5em 0 1em;
  line-height: 1.5;
}

/* 通常段落 */
.page-content p {
  margin-bottom: 1.5em;
}

/* リスト（ul/ol） */
.page-content ul,
.page-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.page-content li {
  list-style: disc;
  margin-bottom: 0.5em;
}

/* テーブルの整え（特商法などで使う場合） */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}

.page-content th,
.page-content td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}

.page-content th {
  background-color: #f5f5f5;
  font-weight: bold;
  white-space: nowrap;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .page-content {
    padding: 40px 20px;
    margin: 20px auto;
  }

  .page-content h1 {
    font-size: 24px;
  }

  .page-content h2 {
    font-size: 18px;
  }

  .page-content th,
  .page-content td {
    font-size: 14px;
    padding: 10px;
  }
}



