/* スマホはみ出し防止の基本設定 */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.contents-inner,
.contents-container {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
}
body {
  font-family: "Roboto", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  font-size: 16px;
  background-color: #fffdf9;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding-top: 0;
  color: #1e1c1c;
  line-height: 1.5;
}
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* スマホ用メディアクエリをmax-width:736pxに統一 */
@media (max-width: 736px) {
  .header {
    height: 48px;
    min-height: 48px;
  }
  .header-inner {
    min-height: 48px;
    height: 48px;
    padding: 0 4vw;
  }
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 4vw;
  }
  .footer-brand {
    align-items: flex-start;
    margin-left: 0;
    margin-top: 24px;
  }
  .footer-content {
    margin-bottom: 16px;
  }
  .footer-copy {
    text-align: left;
    padding-top: 16px;
    margin-top: 8px;
  }
  .main-title,
  .news-main-title {
    font-size: 1.5rem;
  }
  .sub-title,
  .news-sub-title {
    font-size: 0.9rem;
  }
  .contents-inner {
    padding-left: 8px;
    padding-right: 8px;
  }
  /* 必要に応じて他のスマホ用スタイルもここに追加 */
}

/* ヘッダー */
.header {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0px 2px 6px rgba(83, 47, 10, 0.15);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  min-height: 60px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
}
.logo-area {
  height: 100%;
  display: flex;
  align-items: center;
}
.logo-area .logo {
  height: 40px;
  display: block;
}
.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2em;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ec9f34;
  border-radius: 2px;
}

.slide-menu {
  display: none;
}

@media (max-width: 736px) {
  .header-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .slide-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -80vw;
    width: 50vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2em 1.5em;
    flex-direction: column;
    gap: 2em;
  }
  .slide-menu.open {
    display: block;
    right: 0;
  }
  .slide-menu a {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0.5em 0;
  }
  .logo-area .logo {
    padding: 4px;
  }
}
@media (max-width: 736px) {
  .slide-menu {
    background: #ec9f34;
    color: #fff;
  }
}
.header-nav a {
  color: #1e1c1c;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.2s;
}
.header-nav a:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  background: #ec9f34;
  padding: 80px 0 40px;
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) {
  .footer-content {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
  }
}
.footer-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 60px;
}
.footer-brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 0;
  margin-left: 0;
  margin-top: 0;
  margin-right: 60px;
}
.footer-logo {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-company {
  font-size: 0.8rem;
  font-weight: 700;
}
.footer-navs {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  gap: 0px;
  margin-bottom: 48px;
}
.footer-navcol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 120px;
  max-width: 140px;
}
.footer-nav-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-nav-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-content a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.3s;
}
.footer-nav-content a:hover {
  opacity: 0.7;
}
.footer-copy {
  text-align: center;
  font-size: 14px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 32px;
  width: 100%;
  align-self: center;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .header {
    height: 56px;
    min-height: 56px;
  }
  .header-inner {
    min-height: 56px;
    height: 56px;
    padding: 0 4vw;
  }
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 4vw;
  }
  .footer-brand {
    align-items: flex-start;
    margin-left: 0;
    margin-top: 32px;
  }
  .footer-content {
    margin-bottom: 24px;
  }
  .footer-copy {
    text-align: left;
    padding-top: 24px;
    margin-top: 16px;
    font-size: 10px;
  }
}

@media (max-width: 736px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 32px;
    padding-top: 52px;
    margin-bottom: 0;
  }
}

@media (max-width: 736px) {
  .footer-navs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin-bottom: 32px;
  }
  .footer-navcol {
    text-align: center;
    width: 80%;
    max-width: 80%;
  }
}

@media (max-width: 736px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 4vw;
  }
  .footer-brand {
    align-items: center !important;
    margin-left: 0;
    margin-right: 0;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-content {
    margin-bottom: 16px;
  }
  .footer-copy {
    text-align: left;
    padding-top: 16px;
    margin-top: 8px;
  }
  .footer-nav-title {
    cursor: pointer;
    position: relative;
    padding: 12px 0;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .footer-nav-title::after {
    content: "+";
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    font-weight: 400;
    color: #fff;
    transition: content 0.2s;
  }
  .footer-navcol.active .footer-nav-title::after {
    content: "−";
  }
  .footer-nav-content {
    display: none;
    padding: 8px 0 16px 0;
    text-align: center;
    background: none;
    flex-direction: column;
    align-items: center;
  }
  .footer-navcol.active .footer-nav-content {
    display: flex;
  }
  .footer-nav-content a {
    display: block;
    width: 100%;
    margin: 6px 0;
    text-align: center;
  }
}

.section-header {
  position: relative;
  z-index: 1;
  text-align: left;
  width: auto;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
.main-title,
.news-main-title {
  color: #6a5647;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  line-height: 1.2;
}
.sub-title,
.news-sub-title {
  color: #6a5647;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 2em;
  line-height: 1.4;
}
.contents-inner {
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 736px) {
  .main-title,
  .news-main-title {
    font-size: 1.6rem;
  }
  .sub-title,
  .news-sub-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .contents-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 600px) {
  .contents-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Sub Pages Common */
main {
  background-color: #fffdf9;
  padding-top: 80px; /* header height */
  padding-bottom: 80px;
}

.page-hero {
  padding: 60px 0;
}

@media (max-width: 900px) {
  main {
    padding-top: 56px;
  }
  .page-hero {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  main {
    padding-top: 48px;
  }
  .page-hero {
    padding: 30px 0;
  }
}

/* ボタンスタイル */
.btn-main,
.btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(79, 52, 14, 0.15);
}
.btn-main {
  background: linear-gradient(93.99deg, #ffc26e 5.12%, #f4930b 82.33%);
  color: #fff;
}
.btn-sub {
  background: #fff;
  color: #f4930b;
  border: 2px solid #f4930b;
}
.btn-main:hover,
.btn-sub:hover {
  background: linear-gradient(93.99deg, #ffcc85 5.12%, #fba429 82.33%);
  color: #fff;
  box-shadow: 3px 3px 8px rgba(79, 52, 14, 0.2);
}
@media (max-width: 900px) {
  .btn-main,
  .btn-sub {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    margin-top: 20px;
  }
}
@media (max-width: 600px) {
  .btn-main,
  .btn-sub {
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
  }
}

/* Page Links (moved from philosophy.css) */
.page-links {
  background: #fffdf9;
  padding: 80px 0;
}
.company-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;
}
.company-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(106, 86, 71, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  text-decoration: none;
  color: #6a5647;
  font-weight: 500;
  transition: box-shadow 0.2s, transform 0.2s;
  height: auto;
  min-height: 40px;
}
.company-card:hover {
  box-shadow: 0 8px 32px rgba(244, 147, 11, 0.15);
  transform: translateY(-2px) scale(1.02);
}
.company-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6a5647;
  margin: 0;
  flex: 1;
  letter-spacing: 0;
}
.company-card-arrow {
  margin-left: 16px;
  display: flex;
  align-items: center;
}
.company-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(142.96deg, #f4d19f 10.79%, #f4930b 87.78%);
  box-shadow: 0 4px 16px rgba(244, 147, 11, 0.12);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.company-arrow-btn:hover {
  box-shadow: 0 8px 32px rgba(244, 147, 11, 0.18);
  transform: translateY(-2px) scale(1.05);
}
.company-arrow-icon {
  color: #fff;
  font-size: 0.6rem;
  font-weight: bold;
  line-height: 1;
  display: block;
}
.company-arrow-icon img {
  width: 1.5em;
  height: 1.5em;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .company-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-hero,
  .philosophy-section,
  .page-links {
    padding: 40px 0;
  }
}

/* プライバシーページ用 */
.privacy-section {
  margin-bottom: 64px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.privacy-section:last-of-type {
  margin-bottom: 0;
}
.privacy-section h2 {
  font-size: 2rem;
  color: #6a5647;
  font-weight: 700;
}
.privacy-section h3 {
  font-size: 1.2rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #1e1c1c;
  font-weight: 700;
}
.privacy-section p {
  margin-bottom: 1em;
  color: #1e1c1c;
}
.privacy-section ol,
.privacy-section ul {
  padding-left: 2em;
  margin-bottom: 1em;
}
.privacy-section li {
  margin-bottom: 0.5em;
}
.link-container {
  padding: 1em;
}
.link-container .link-ttitle {
  font-weight: 700;
}
.link-container .link-text {
  font-size: 0.8em;
}
@media (max-width: 600px) {
  .privacy-section {
    padding: 16px 0;
    margin-bottom: 32px;
  }
  .privacy-section h2 {
    font-size: 1.3rem;
  }
}

/* Scroll Fade-in Animation 共通 */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.fade-in-on-scroll.is-visible,
.fade-in-on-scroll.fade-in {
  opacity: 1;
  transform: none;
}

/* 共通ボタンデザイン */
.btn-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(244, 147, 11, 0.1);
  transition: background 0.2s;
  padding: 2px;
}
.btn-arrow-icon {
  width: 14px;
  height: 14px;
  display: block;
  font-weight: 400;
}
.btn-main.contact-btn {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 20px 70px;
  background: linear-gradient(142.96deg, #f4d19f 10.79%, #f4930b 87.78%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* post */
.news-main-title {
  margin: 0;
}

.post-list li {
  list-style: none;
  padding: 35px 0;
  border-bottom: 1px solid #d8d2c4;
}
.post-list li .post-meta {
  display: flex;
  gap: 1em; /* 日付とカテゴリの間隔 */
  flex-wrap: wrap; /* 画面が狭い時は折り返す */
  align-items: center; /* 縦位置揃え（オプション） */
}
.post-list li .post-date {
  font-size: 0.9em;
  color: #888;
}
.post-list li .post-categories {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.post-list li .post-title {
  padding: 10px 0;
}
.post-list li .post-title a {
  color: #1e1c1c;
}
.post-list li .post-link {
  display: block;
  text-decoration: none;
}
.post-list li .post-link:hover {
  background: #f9f9f9;
}

#post-header h1,
#post-header h3,
#post-header h3,
#post-header p {
  color: #1e1c1c;
}
#post-header .post-date p {
  font-size: 0.8em;
  color: #757575;
}
#post-content {
  padding-bottom: 100px;
  padding-top: 30px;
}
.post-cat p .post-category {
  display: inline-block;
  font-size: 10px;
  line-height: 1.2em;
  background: #999999;
  color: #ffffff;
  padding: 2px;
}
.post-cat p .cat-uncategorized,
.news-meta span.cat-uncategorized {
  background: #999999;
}
.post-cat p .cat-information,
.news-meta span.cat-information {
  background: #ec9924;
}

/* 404 */
.error-404 {
  text-align: center;
  margin: 50px 0;
}
.error-404 h1 {
  color: #e7c493;
  font-family: "Dlfl";
  font-style: normal;
  font-weight: 700;
  font-size: 3em;
}
.error-404 h1 span {
  font-size: 5em;
  display: block;
  /* orange_gradation */
  background: linear-gradient(142.96deg, #f4d19f 10.79%, #f4930b 87.78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.error-404 p {
  font-weight: 700;
  margin-top: 20px;
}
@media (max-width: 736px) {
  .error-404 h1 span {
    font-size: 3.2em;
  }
}
/* Contact Form Section Styles */
.contact-form-section {
  background: none;
  padding: 0 0 100px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.contents-container {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px rgba(106, 86, 71, 0.08);
  width: 90vw;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contents-container .contents-inner {
  width: 70%;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

.contact-form {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 56px 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 736px) {
  .contents-container {
    width: 100%;
    max-width: 100vw;
    border-radius: 16px;
    padding: 0;
  }
  .contents-container .contents-inner {
    width: 90%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .contact-form {
    padding: 32px 0 24px 0;
  }
}

.form-group {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 700;
  color: #1e1c1c;
  margin-bottom: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.form-group .required {
  background: #d44f65;
  color: #fff;
  font-size: 0.7em;
  font-weight: 400;
  border-radius: 0;
  padding: 1px 10px;
  margin-left: 10px;
  letter-spacing: 0.05em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: #f8f8f8;
  border: 1px solid #e5e2db;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 1.05rem;
  color: #333;
  margin-top: 2px;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border 0.2s;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #f4930b;
  outline: none;
}
.form-privacy {
  margin-bottom: 32px;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}
.form-privacy label {
  font-weight: 700;
  color: #333;
  margin-bottom: 0;
  font-size: 1.05rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  gap: 12px;
}
.privacy-label-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 1.05rem;
}
.form-privacy label a {
  font-weight: 400;
  color: #f4930b;
  text-decoration: underline;
  font-size: 0.98em;
  margin-left: 0;
  display: block;
}
.wpcf7-list-item {
  margin: 0;
}
.form-privacy input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  margin-right: 0;
  accent-color: #f4930b;
}
.form-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 5em;
}
.btn-main.send-btn {
  width: 250px;
  font-size: 1rem;
  font-weight: 400;
  padding: 16px 0;
  border-radius: 0.8em;
  background: linear-gradient(93.99deg, #ffc26e 5.12%, #f4930b 82.33%);
  color: #fff;
  border: none;
  display: block;
  margin: 0 auto;
}
.btn-main.send-btn:hover {
  background: linear-gradient(93.99deg, #ffc26e 5.12%, #f4930b 82.33%);
  opacity: 0.8;
  color: #fff;
}
.btn-main.send-btn:disabled {
  background: #f0d9b9;
  color: #ddbb8e;
  box-shadow: none;
}

@media (max-width: 736px) {
  .form-group label {
    font-size: 0.9rem;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
    padding: 10px 5px;
    font-size: 1rem;
  }
  .contact-form-section {
    padding: 24px 0 40px 0;
  }
  .contact-form {
    padding: 16px 2vw 16px 2vw;
    border-radius: 16px;
  }
  .btn-main.contact-btn {
    width: 90%;
    min-width: 0;
    font-size: 1rem;
    padding: 28px 0;
  }
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 800;
  transition: opacity 0.3s;
  opacity: 0;
}
.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 736px) {
  .menu-overlay {
    z-index: 800;
  }
  .slide-menu {
    z-index: 900;
  }
}

@media (max-width: 736px) {
  .company-card-title {
    font-size: 0.7rem;
  }
  .page-links .company-cards .company-card {
    border-radius: 0.8em;
    box-shadow: 0 0px 8px rgb(92 72 57 / 6%);
  }
  .page-links .company-cards .company-arrow-btn {
    width: 26px;
    height: 26px;
  }
  .page-links .company-cards .company-arrow-icon img {
    width: 1em;
    height: 1em;
  }
}

@media (max-width: 736px) {
  .slide-menu a {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 1.5em;
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 2px solid #f3ab48;
    padding-bottom: 0.5em;
  }
}
