/*
Theme Name: TenAnts CLEANING SERVICES Theme
Author: Digital Promotion Support Melbourne
Version: 2.1.0 (modern nav update)
*/

/* ==============================
   0) Base / Reset
============================== */
html, body { height: auto; overflow: auto; }
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #f8f8f8;
  color: #333;
  line-height: 1.6;
  font-family: 'Optima','Gill Sans','Futura','Segoe UI','Arial','Noto Sans','Hiragino Kaku Gothic ProN','Meiryo',sans-serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1,h2,h3 { margin: 0 0 .4em; color: #333; }
a { color: inherit; text-decoration: none; }

/* nav 共通のリセット */
.main-nav { display: block; }
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav li { margin: 0; }
.main-nav a { display: inline-block; }

/* ==============================
   1) 非トップ共通ヘッダー（Services / About / Contact）
============================== */
.main-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: #fff; color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  padding: 14px 0;
}
.main-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.main-header .logo { display: flex; align-items: center; }
.main-header .logo-image { max-height: 56px; width: auto; display: block; object-fit: contain; }

/* PCは横並び */
.main-header .main-nav ul {
  display: flex; flex-direction: row; align-items: center; gap: 20px;
}
.main-header .main-nav a {
  font-weight: 700; font-size: 1.05rem; color: #333; transition: color .25s ease;
}
.main-header .main-nav a:hover { color: #666; }

/* 固定ヘッダー分の余白 */
body:not(.homepage) main { padding-top: 110px; }

/* ==============================
   2) トップページ（index.php）
============================== */
body.homepage { color: #fff; overflow-x: hidden; }

body.homepage::before {
  content: '';
  position: fixed; inset: 0;
  background: url('https://tenantscleaningservices.com.au/wp-content/uploads/2025/08/head-scaled.jpeg') center/cover no-repeat;
  z-index: -1;
}

.index-header {
  position: relative; width: 100%; height: 42vh;
  display: grid; place-items: center;
  background: transparent; color: #fff; box-shadow: none; z-index: 10;
}
.index-header .container {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 20px;
}
.index-header .logo { grid-column: 2; justify-self: center; }
.index-header .logo-image { max-height: 100px; width: auto; object-fit: contain; }
.index-header .main-nav { grid-column: 3; justify-self: end; }
.index-header .main-nav ul {
  display: flex; flex-direction: row; align-items: center; gap: 22px;
}
.index-header .main-nav a {
  color: #fff; font-weight: 700; font-size: 1.15rem; transition: opacity .25s ease;
}
.index-header .main-nav a:hover { opacity: .75; }

.hero-index {
  position: relative; min-height: 58vh;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center; color: #fff;
}
.hero-index::before { content:''; position:absolute; inset:0; background: transparent; z-index: 0; }
.hero-content { position: relative; z-index: 1; margin-top: 8vh; max-width: 1000px; padding: 0 20px; }
.hero-sub-title {
  font-family: 'Optima','Segoe UI','Arial','Meiryo',sans-serif;
  font-size: 1.6em; font-weight: bold; font-style: italic; line-height: 1.5; color: #fff;
}

/* ==============================
   3) タイトル帯（非トップ）
============================== */
.page-header-title {
  background: #fff; text-align: center; padding: 80px 0 40px;
}
.page-header-title h1 {
  font-size: 2.4rem; font-weight: 700; color: #111; margin: 0;
}

/* ==============================
   4) Services
============================== */
:root {
  --svc-img-w: 520px;
  --svc-img-h: 320px;
  --svc-gap:   32px;
  --svc-text-w: 560px;
}
.service-details-section {
  background: #fff; padding: 80px 20px;
}
.service-detail-item {
  display: grid;
  grid-template-columns: var(--svc-img-w) var(--svc-gap) minmax(0, var(--svc-text-w));
  grid-template-areas: "img . text";
  align-items: start;
  max-width: calc(var(--svc-img-w) + var(--svc-gap) + var(--svc-text-w));
  margin: 0 auto 56px;
}
.service-image   { grid-area: img; width: var(--svc-img-w); }
.service-image img {
  width: 100%; height: var(--svc-img-h); object-fit: cover;
  border-radius: 8px; display: block; box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.service-content  { grid-area: text; max-width: var(--svc-text-w); width: 100%; padding-top: 4px; }
.service-content h2 {
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif;
  font-size: 1.4rem; font-weight: 700; line-height: 1.25; color: #222; margin: 0 0 10px;
}
.service-content p {
  font-family: 'Optima','Segoe UI','Arial',sans-serif;
  font-size: 1rem; line-height: 1.7; color: #555; margin: 0;
}
.service-content p + p { margin-top: 10px; }

@media (max-width: 1100px) {
  :root { --svc-img-w: 440px; --svc-img-h: 280px; --svc-gap: 28px; --svc-text-w: 520px; }
  .service-detail-item { margin-bottom: 48px; }
}
@media (max-width: 768px) {
  :root { --svc-img-w: 100%; --svc-img-h: 220px; --svc-gap: 20px; --svc-text-w: 680px; }
  .service-detail-item {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "text";
    max-width: 680px; row-gap: 14px; margin: 0 auto 40px;
  }
  .service-image { width: 100%; }
  .service-content { padding-top: 0; text-align: left; }
}

/* ==============================
   5) Contact (clean modern card, single-column markup対応)
============================== */

/* ページ全体のベース。下層ページなので背景は淡いグレーにしてカードを浮かせる */
.contact-page {
  background: #f7f7f8;
  color: #333;
}

/* --- タイトル帯（上部の白いエリア） --- */
.contact-page .contact-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 64px 0 32px;
  margin: 0;
}

.contact-page .contact-header h1 {
  text-align: center;
  color: #111;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

/* ← フォーム説明文（Please enter details. *）と同じ 0.95rem に統一 */
.contact-page .contact-header .contact-sub {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- 下のフォームセクション（グレー背景の上に白カード） --- */
.contact-page .contact-form-section {
  background: #f7f7f8;
  /* PCでは余白たっぷりで高級感、スマホではちょい圧縮 */
  padding: 48px 16px 80px;
}

/* コンテナをちょい広め＋中央寄せ */
.contact-page .contact-form-section .container {
  max-width: 720px;
  margin: 0 auto;
}

/* 白カード本体 */
.contact-page .contact-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 48px rgba(0,0,0,.06);
}

/* Contact Form 7 の中のラベル・フィールドのタイポ揃え */
.contact-page label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: #222;
  font-size: .95rem;
  line-height: 1.4;
}

.contact-page .form-group { margin-bottom: 16px; }
.contact-page .form-group.full-width { margin-bottom: 20px; }

/* 入力欄 */
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page select,
.contact-page textarea {
  width: 100%;
  background: #fff;
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02) inset;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-page textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

.contact-page .required {
  color: #b42318;
  font-weight: 700;
}

/* ボタン（送信） */
.contact-page .btn-primary,
.contact-page input[type="submit"] {
  appearance: none;
  border: none;

  display: inline-block;
  width: 100%;

  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 10px;
  padding: 16px 18px;

  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: .02em;
  cursor: pointer;

  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.contact-page .btn-primary:hover,
.contact-page input[type="submit"]:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,.22);
}

.contact-page .btn-primary:active,
.contact-page input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* ボタン上などのちょい説明文を落ち着いた感じで */
.contact-page .form-message-top {
  text-align: left;
  margin: 0 0 20px;
  font-size: .95rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .contact-page .contact-header {
    padding: 48px 0 24px;
  }

  .contact-page .contact-header h1 {
    font-size: 1.9rem;
    margin-bottom: 10px;
  }

  .contact-page .contact-form-section {
    padding: 36px 16px 64px;
  }

  .contact-page .contact-card {
    padding: 24px 22px;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0,0,0,.06);
  }
}

.contact-page .contact-message {
  text-align: center;
  font-weight: 700;
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #111;
}

.contact-page .page-header-title h1 {
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ← ここも 0.95rem / 500 に揃えて衝突を防止 */
.contact-page .contact-sub {
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #333;
  font-size: 0.95rem;
}
/* ==============================
   6) About
============================== */
.about-content-section {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}
.about-content-section .container { max-width: 800px; width: 90%; text-align: left; }
.about-text-block { margin-bottom: 40px; }
.about-text-block h2 { text-align: center; font-size: 1.8rem; margin-bottom: 20px; }
.about-text-block p,
.about-list li { font-size: 1.1rem; line-height: 1.8; color: #333; }
.about-list { list-style: disc; margin-left: 40px; }

/* ==============================
   About list alignment (PC center / mobile left)
============================== */

/* PCでは中央寄せ */
.about-list {
  text-align: center;
  display: inline-block;
  list-style-position: inside;
  padding-left: 0;
}

/* スマホでは左寄せ */
@media (max-width: 768px) {
  .about-list {
    text-align: left;
    display: block;
    margin-left: 1.2em;
    list-style-position: outside;
  }
}
/* ==============================
   7) Footer (single link clean)
============================== */
.main-footer {
  padding: 30px 0;
  background: #222;
  color: #ccc;
  text-align: center;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;               /* ← 単一リンクなので間隔不要 */
  margin-top: 6px;      /* ← 文章とリンクの間に少しだけ余白 */
}

.footer-links a {
  color: #ccc;
  transition: color .3s ease;
  padding: 0 4px;       /* ← クリックしやすさ用の最小余白 */
}

.footer-links a:hover {
  color: #fff;
}

/* ==============================
   8) Mobile Nav / Hamburger (final clean version)
============================== */

.menu-toggle { display: none; }

@media (max-width: 768px) {

  /* ベースのハンバーガーボタン（背景なし、線だけ） */
  .menu-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent; /* 背景なし */
    box-shadow: none;        /* 影なし */
    border-radius: 0;        /* 角丸なし */

    padding: 0;
    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    transition: all .25s ease;
    position: relative;
    z-index: 1001;
  }

  /* 3本線 */
  .menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    transition: all .25s ease;
  }

  /* ▼ index-header（トップ）では白いラインを重ねる */
  .index-header .menu-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  .index-header .menu-toggle span {
    background-color: #fff;
  }

  /* ▼ main-header（下層ページ）では黒いライン */
  .main-header .menu-toggle span {
    background-color: #000;
  }

  /* クリック後の×アニメーションは共通 */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* スライドメニュー */
  .main-header .main-nav,
  .index-header .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    width: 78vw;
    max-width: 320px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 999;
    padding: 88px 24px 24px;
  }

  /* 下層ページ用（白パネル） */
  .main-header .main-nav {
    background: #fff;
    box-shadow: -12px 0 24px rgba(0,0,0,.08);
  }

  /* トップ用（黒パネル） */
  .index-header .main-nav {
    background: rgba(0,0,0,.92);
  }

  .main-header .main-nav.active,
  .index-header .main-nav.active {
    transform: translateX(0);
  }

  .main-header .main-nav ul,
  .index-header .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* 下層ページの文字は黒 */
  .main-header .main-nav a {
    color: #111;
    font-size: 1.1rem;
    font-weight: 600;
  }

  /* トップの文字は白 */
  .index-header .main-nav a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
  }

  /* メニュー展開中は背景のスクロールを止める */
  body.nav-open {
    overflow: hidden;
  }
}



/* ==============================
   Instagram（Font Awesome 方式・全デバイスでアイコンのみ）
============================== */
.menu-item-instagram { 
  margin-left: 12px;
}

/* 共通設定 */
.menu-item-instagram > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
  transition: opacity .25s ease, color .25s ease;
  font-size: 0 !important;        /* ← 全デバイスでテキスト非表示 */
  letter-spacing: 0 !important;
}

/* 万一テーマがspanや.menu-textを挿入する場合にも対応 */
.menu-item-instagram > a span,
.menu-item-instagram > a .menu-text {
  display: none !important;
}

/* Font Awesome ブランドアイコンを :before で表示 */
.menu-item-instagram > a::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  content: "\f16d";  /* Instagram glyph */
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  font-size: 18px; /* PCサイズ */
}

/* トップページ＝白 / 下層ページ＝黒 */
.index-header .menu-item-instagram > a,
.index-header .menu-item-instagram > a::before { color: #fff; }

.main-header  .menu-item-instagram > a,
.main-header  .menu-item-instagram > a::before { color: #111; }

/* スマホではアイコンを少しだけ大きく */
@media (max-width: 768px) {
  .menu-item-instagram > a::before {
    font-size: 20px;
  }
  /* メニュー行間は他項目と揃える */
  .main-header .main-nav ul,
  .index-header .main-nav ul {
    gap: 18px;
  }
}

/* Contact subtitle をフォーム案内文と同サイズへ */
.contact-page .contact-header p.contact-sub{
  font-size: 0.95rem !important;  /* Please enter details.* と同等 */
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: #333 !important;
  letter-spacing: .3px !important;
  text-align: center !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif !important;
}

/* Submit ボタンの書体も合わせる */
.contact-page input[type="submit"]{
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
}

.contact-page .contact-message{
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
  letter-spacing: .3px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Optima','Gill Sans','Segoe UI','Arial',sans-serif;
}