/*
Theme Name: FMOVE News Child
Template: fmove-news-parent
Author: FMOVE
Description: FMOVE News Parent の子テーマ。CSS/テンプレの上書き用。
Version: 1.0.0
Text Domain: fmove-news-child
*/

/* ここに上書きCSSを追加 */

/* =========================
   Header Layout Fix (Match LP)
   ========================= */

/* Header Container */
.site-header {
  position: fixed !important; /* LPと同じfixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 40px !important; /* LPと同じパディング */
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: none !important; /* LPにはボーダーがない */
}

/* Remove WordPress theme container constraints inside header */
.site-header .container,
.site-header .header-inner {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important; /* LPはgap指定なし、justify-contentのみ */
}

/* Adjust Content Padding because header is fixed */
body {
  padding-top: 80px; /* ヘッダーの高さ分確保（LPの .page-visual margin-top: 80px 相当） */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px !important; /* LPのスマホ時パディング */
  }
  body {
    padding-top: 70px; /* スマホ時の高さ調整 */
  }
}

/* 全体のフォント統一（LPと合わせる: Inter + 明朝） */
body {
  font-family: 'Inter', "Yu Mincho", "YuMincho", serif !important;
  color: #111;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

/* 見出し・英語部分（Oswald） */
/* Mobile Menu Overlay Links は LP でも Oswald */
h1, h2, h3, .item-date, .pill, .mobile-menu-overlay a {
  font-family: 'Oswald', sans-serif !important;
}

/* メニューのフォントサイズ・太さをLPに合わせる */
/* LPのDesktop Menu (.header-nav) は Inter (body継承) */
.nav {
  font-family: 'Inter', "Yu Mincho", "YuMincho", serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important; /* LPは 0.1em */
  gap: 32px !important;
}
.nav a {
  padding: 8px 0 !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* Mobile Menu Trigger も LP は Inter (body継承) */
.menu-trigger {
  font-family: 'Inter', "Yu Mincho", "YuMincho", serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
}
.menu-trigger {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
}

/* スマホレイアウト崩れ補正 */
@media (max-width: 768px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .site-header {
    padding: 0 24px !important;
  }
  .header-inner {
    padding: 20px 0 !important;
    width: 100%;
  }
  /* ロゴとMENUの高さズレ補正 */
  .brand {
    display: flex;
    align-items: center;
    height: 24px;
  }
  .brand-logo {
    height: 20px !important; /* スマホで少し小さくしてバランス取る */
    width: auto;
  }
  .menu-trigger {
    display: flex !important;
    align-items: center;
    height: 24px;
    line-height: 1;
    margin-top: 2px; /* 微調整 */
  }
}

/* =========================
   Contact Form 7 (FMOVE)
   ========================= */
.contact-intro{
  max-width: 800px;
  margin: 0 0 24px;
  text-align: left;
}
.contact-intro p{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.9;
  color: #222;
  font-style: normal;
  font-weight: 400;
}
.contact-intro .contact-note{
  font-size: 14px;
  color:#222;
  font-style: normal;
  font-weight: 400;
}
.contact-intro a{
  text-decoration: underline;
}

.wpcf7{
  max-width: 800px;
  margin: 0;
}
.wpcf7 form{
  margin-top: 18px;
}
.wpcf7 form p{
  margin: 0 0 22px;
}
.wpcf7 label{
  display:block;
  font-size:13px;
  color:#666;
  letter-spacing:.06em;
  margin-bottom: 8px;
}
.wpcf7 .wpcf7-form-control{
  width:100%;
}

/* 既存テーマ側の .article .content の影響を受けにくくする */
.article .content.contact-intro{
  margin: 0 0 24px !important;
  padding: 0 !important;
}
.article .content .wpcf7{
  max-width: 800px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea{
  width:100%;
  border:1px solid #e5e5e5;
  border-radius: 6px;
  padding: 14px 14px;
  font-size: 16px;
  line-height: 1.6;
  font-family: 'Inter', "Yu Mincho", "YuMincho", serif;
  outline: none;
  background:#fff;
  color:#111;
}
.wpcf7 select{
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%),
                    linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 15px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.wpcf7 textarea{
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  border-color:#111;
}

/* Submit */
.wpcf7 input[type="submit"]{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width: 100%;
  border: 1px solid #111;
  border-radius: 999px;
  background:#111;
  color:#fff;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
}
.wpcf7 input[type="submit"]:hover{
  opacity:.9;
}
.wpcf7 input[type="submit"]:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* Acceptance + messages */
.wpcf7 .wpcf7-acceptance{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 12px;
  color:#666;
  line-height:1.6;
}
.wpcf7 .wpcf7-acceptance a{
  text-decoration: underline;
}
.wpcf7 .wpcf7-not-valid-tip{
  margin-top: 8px;
  font-size: 12px;
}
.wpcf7 .wpcf7-response-output{
  margin: 18px 0 0;
  padding: 14px 14px;
  border-radius: 8px;
  font-size: 13px;
}
