/*
Theme Name: Anken
Description: Single static page → WordPress (classic theme)
Version: 1.0.1
Text Domain: anken
*/
/* =======================================
   共通設定
======================================= */
html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #000;
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
  }
  
  .container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  
  /* =======================================
      ヘッダー
   ======================================= */
  .header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1024px;
    margin: 0 auto;
  }
  
  .logo img {
    height: 40px;
  }
  
  /* ハンバーガーボタン */
  .nav-toggle {
    position: relative;
    width: 40px;
    /* クリック領域 */
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
  }
  
  /* 線の共通スタイル */
  .nav-toggle span {
    position: absolute;
    left: 50%;
    width: 28px;
    /* 線の長さ */
    height: 2px;
    /* 線の太さ */
    background: #222;
    border-radius: 2px;
    /* 端を丸くして滲み防止 */
    transform-origin: center;
    /* 回転の基準を中央に */
    transition: transform .22s ease, opacity .2s ease, top .22s ease;
    translate: -50% 0;
    /* left:50% とセットで中央揃え */
  }
  
  /* 三本線の位置（閉じている時） */
  .nav-toggle span:nth-child(1) {
    top: 12px;
  }
  
  .nav-toggle span:nth-child(2) {
    top: 19px;
  }
  
  .nav-toggle span:nth-child(3) {
    top: 26px;
  }
  
  /* 開いた時は中央でクロスに寄せる（×） */
  .nav-toggle.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }
  
  /* ナビメニュー */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: #fff;
    transition: 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav ul {
    list-style: none;
    margin: 80px 0 0;
    padding: 0;
    text-align: left;
  }
  
  .nav li {
    border-bottom: 1px solid #ddd;
  }
  
  .nav a {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
  }
  
  /* =======================================
     ファーストビュー
  ======================================= */
  .hero {
    position: relative;
    background: url("assets/images/hero.jpg") top center / cover no-repeat;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    overflow: hidden;
  }
  
  /* 彩度0（白黒）画像レイヤー */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/themes/anken/assets/images/hero.jpg") top center / cover no-repeat;
    filter: grayscale(100%);
    z-index: 1;
  }
  
  /* 赤トーン乗算レイヤー */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #e50112;
    /* Figma指定赤 */
    mix-blend-mode: multiply;
    opacity: 1;
    /* Figmaの乗算トーン相当 */
    z-index: 2;
  }
  
  /* コンテンツ本体 */
  .hero-content {
    display: block !important;
    /* ← flexの継承を完全解除 */
    position: relative;
    z-index: 3;
    max-width: 720px;
    padding: 0 16px;
  }
  
  /* タイトル */
  .hero-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.3;
    /* 行間を詰める */
    color: #fff;
    margin-bottom: 1.8rem;
    letter-spacing: 0.05em;
  }
  
  .hero-title span {
    display: block;
    /* 各行を分けて扱う */
  }
  
  /* リード文 */
  .hero-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    white-space: normal;
    word-break: keep-all;
    text-wrap: wrap;
  }
  
  /* CTAボタン */
  .btn-cta {
    display: inline-block;
    background: #fff;
    color: #e50112;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  .btn-cta:hover {
    background: #e50112;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  }
  
  /* 下部スクロール誘導アイコン */
  .scroll-down {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 12px;
    box-sizing: border-box;
    z-index: 3;
  }
  
  .scroll-down::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 2px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 1.2s infinite;
  }
  
  @keyframes scroll {
    0% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  
    100% {
      opacity: 0;
      transform: translate(-50%, 10px);
    }
  }
  
  /* PC表示調整 */
  @media (min-width: 768px) {
    .hero-title {
      font-size: 2.2rem;
    }
  
    .hero-text {
      font-size: 1.1rem;
    }
  
    .btn-cta {
      font-size: 1.1rem;
      padding: 16px 48px;
    }
  }
  
  /* =======================================
      サービス紹介
   ======================================= */
  .service {
    position: relative;
    background: url("/wp-content/themes/anken/assets/images/bg_service.jpg") center / cover no-repeat;
    color: #fff;
    padding: 1.875rem 0;
    /* 30px 上下 */
    overflow: hidden;
  }
  
  /* 白黒化レイヤー */
  .service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/themes/anken/assets/images/bg_service.jpg") center / cover no-repeat;
    filter: grayscale(100%);
    z-index: 1;
  }
  
  /* 黒トーン乗算（最終トーン） */
  .service::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #000;
    mix-blend-mode: multiply;
    opacity: 0.7;
    /* ← 確定 */
    z-index: 2;
  }
  
  /* コンテンツ内側 */
  .service .section-inner {
    position: relative;
    z-index: 3;
    max-width: 45rem;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* 見出し（h2） */
  .section-title {
    font-size: 2rem;
    /* 32px */
    font-weight: 800;
    margin-bottom: 0.75rem;
    /* 12px */
    text-align: left;
  }
  
  /* リード文 */
  .section-lead {
    font-size: 1rem;
    /* 16px */
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 2.5rem;
    /* 40px */
    text-align: left;
  }
  
  /* 各サービス項目 */
  .service-item {
    margin-bottom: 3rem;
    /* 48px */
  }
  
  .service-item:last-child {
    margin-bottom: 0;
  }
  
  /* サービス項目タイトル */
  .service-item-title {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 700;
    margin-bottom: 0.25rem;
    /* 4px */
  }
  
  /* サービス説明 */
  .service-item-text {
    font-size: 1rem;
    /* 16px */
    color: #ccc;
    margin-top: 0.25rem;
    /* 4px */
    margin-bottom: 0.75rem;
    /* 12px */
  }
  
  /* 画像 */
  .service-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }
  
  /* =======================================
      施工実績（Swiper）
   ======================================= */
  .works {
    position: relative;
    background: url("/wp-content/themes/anken/assets/images/bg_works.jpg") center / cover no-repeat;
    color: #fff;
    padding: 1.875rem 0;
    /* 30px */
    overflow: hidden;
  }
  
  /* 白黒化（grayscale） */
  .works::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/themes/anken/assets/images/bg_works.jpg") center / cover no-repeat;
    filter: grayscale(100%);
    z-index: 1;
  }
  
  /* 赤トーン乗算 */
  .works::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #e50112;
    mix-blend-mode: multiply;
    opacity: 1;
    z-index: 2;
  }
  
  /* コンテンツ本体 */
  .works .section-inner {
    position: relative;
    z-index: 3;
    max-width: 45rem;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* セクションタイトル */
  .works .section-title {
    font-size: 2rem;
    /* 32px */
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: left;
  }
  
  /* スライダー全体 */
  .works-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    /* 20px */
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
  }
  
  /* 各スライド */
  .works-item {
    flex: 0 0 85%;
    /* 1枚表示＋少し次が見える */
    background: #fff;
    color: #000;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    scroll-snap-align: start;
  }
  
  /* 画像 */
  .works-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }
  
  /* テキスト部分 */
  .works-body {
    padding: 1rem;
  }
  
  .works-title {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .works-text {
    font-size: 1rem;
    /* 16px */
    line-height: 1.6;
    color: #333;
  }
  
  /* ナビボタン（右矢印） */
  .works-prev,
  .works-next {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    width: 3rem;
    /* 48px */
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    color: #e50112;
    font-size: 2rem;
    /* ←変更済み */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* ホバー時（色反転） */
  .works-prev:hover,
  .works-next:hover {
    background: #e50112;
    color: #fff;
  }
  
  /* 位置（SP用） */
  .works-prev {
    left: 0.75rem;
    /* 12px → 少し外へ出す */
  }
  
  .works-next {
    right: 0.75rem;
  }
  
  .works-prev::after {
    content: "‹";
  }
  
  .works-next::after {
    content: "›";
  }
  
  /* =======================================
      会社概要
   ======================================= */
  .company {
    background: #f5f5f5;
    color: #000;
    padding: 30px 0;
  }
  
  .company-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .company .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  /* 定義リスト（SP） */
  .company-info {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .company-info dt {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #e50112;
  }
  
  .company-info dd {
    margin: 0 0 0.8rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid #e50112;
  }
  
  /* タブレット〜PC */
  @media (min-width: 768px) {
    .company-info {
      grid-template-columns: 160px 1fr;
      column-gap: 1rem;
    }
  
    .company-info dt {
      text-align: right;
      padding-right: 1rem;
      color: #000;
    }
  
    .company-info dd {
      border-left: none;
      padding-left: 0;
    }
  }
  
  /* =======================================
      お問い合わせ
   ======================================= */
  .contact {
    background: #ffffff;
    color: #000;
    padding: 30px 0;
  }
  
  .contact-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .contact .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .contact .section-lead {
    color: #000000;
  }
  
  /* Contact Form 7 基本デザイン調整 */
  .contact-section form {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-section label {
    display: block;
    margin-bottom: .5em;
    font-weight: 600;
  }
  
  /* CF7 レイアウト最低限 */
  .c-form {
    max-width: 640px;
    margin: 0 auto;
  }
  
  .c-form__title {
    margin: 0 0 1rem;
    font-size: clamp(18px, 2.5vw, 22px);
  }
  
  .c-form__row {
    margin-bottom: 1rem;
  }
  
  .c-form__row label {
    display: block;
    font-weight: 700;
    margin-bottom: .4rem;
  }
  
  .c-form__req {
    color: #d00;
    font-weight: 700;
    font-size: .9em;
  }
  
  .c-form input[type="text"],
  .c-form input[type="email"],
  .c-form input[type="tel"],
  .c-form textarea {
    width: 90%;
    padding: .75rem .9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
  }
  
  .c-form textarea {
    min-height: 160px;
    resize: vertical;
  }
  
  .c-form__actions {
    margin-top: 1.25rem;
  }
  
  /* CF7のエラーメッセージ整形 */
  .wpcf7-not-valid-tip {
    color: #d00;
    font-size: .9em;
    margin-top: .4rem;
  }
  
  .wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
  }
  
  .wpcf7 form.invalid .wpcf7-response-output {
    border-color: #d63638;
  }
  
  
  /* =======================================
      フッター
   ======================================= */
  .footer {
    background: #000;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
  }
  
  .footer-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .footer-logo {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  .footer-address,
  .footer-tel {
    font-size: 0.9rem;
    opacity: 0.9;
  }
  
  .footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 10px;
  }
  
  
  /* =======================================
      メディアクエリ（タブレット/PC）
   ======================================= */
  @media (min-width: 376px) {
  
    .container {
      max-width: 1024px;
      margin: 0 auto;
      padding: 0 24px;
    }
  
    /* サービス：2カラム×2 + 1 */
    .service-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
    }
  
    .service-item {
      flex: 1 1 calc(50% - 24px);
      box-sizing: border-box;
    }
  
    /* 会社概要：2カラム */
    .company-info dl {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 8px 16px;
    }
  
    /* Swiperボタン白色補強 */
    .swiper-button-prev,
    .swiper-button-next {
      color: #fff;
    }
  }
  
  /* =======================================
     求人情報（Recruit） ※新規追加
  ======================================= */
  .recruit {
    position: relative;
    /* ▼ ここに背景画像のパスを指定してください */
    background: url("/wp-content/uploads/2025/11/bg_recruit-scaled.jpg") center / cover no-repeat;
    color: #fff; /* 全体の文字色を白に */
    padding: 60px 0;
    overflow: hidden;
  }
  
  /* --- 背景画像の加工処理（Serviceと同じ） --- */
  /* 1. 画像を白黒にするレイヤー */
  .recruit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/uploads/2025/11/bg_recruit-scaled.jpg") center / cover no-repeat;
    filter: grayscale(100%);
    z-index: 1;
  }
  
  /* 2. 黒いフィルターを乗せるレイヤー（文字を読みやすくする） */
  .recruit::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #000;
    mix-blend-mode: multiply;
    opacity: 0.7; /* 暗さの調整 */
    z-index: 2;
  }
  /* -------------------------------------- */
  
  
  /* コンテンツを背景より手前に表示 */
  .recruit .section-inner {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .recruit .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: left;
    color: #fff; /* 背景が暗いので白文字 */
  }
  
  .recruit .section-lead {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #ddd; /* 少しグレーにして階調をつける */
  }
  
  /* 求人票カード（ここは白背景のまま読みやすく） */
  .recruit-card {
    position: relative;
    z-index: 3; /* 背景レイヤーより上に */
    border: none;
    border-radius: 8px;
    padding: 24px;
    background: #fff; /* カード自体は白 */
    color: #333;      /* カードの中の文字は黒 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* 影を濃くして浮遊感を出す */
  }
  
  /* 職種タイトル */
  .job-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 6px solid #e50112;
    line-height: 1.4;
    color: #333;
  }
  
  /* 募集要項リスト */
  .recruit-list {
    margin-bottom: 2rem;
  }
  
  .list-row {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
  }
  
  .list-row:first-child {
    border-top: 1px solid #eee;
  }
  
  .recruit-list dt {
    font-weight: 700;
    color: #e50112;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .recruit-list dd {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  .recruit-list .note {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-top: 0.3rem;
  }
  
  /* --- 電話・応募エリア --- */
  .recruit-contact-area {
    margin-top: 40px;
    text-align: center;
    border-top: 1px dashed #ddd;
    padding-top: 30px;
  }
  
  .contact-note {
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
  }
  
  .tel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .btn-tel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 8px;
    padding: 15px 30px;
    transition: opacity 0.3s;
    min-width: 260px;
    box-sizing: border-box;
  }
  
  .btn-tel:hover {
    opacity: 0.8;
  }
  
  .tel-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    font-weight: normal;
  }
  
  .tel-number {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
  }
  
  /* 担当直通 */
  .primary-tel {
    background-color: #e50112;
    color: #fff;
    box-shadow: 0 4px 10px rgba(229, 1, 18, 0.3);
  }
  
  /* 会社代表 */
  .sub-tel {
    background-color: #333;
    color: #fff;
  }
  
  /* ボタン調整 */
  .recruit-btn-wrapper {
    text-align: center;
  }
  
  .recruit .btn-cta {
    background: #e50112;
    color: #fff;
    border: 2px solid #e50112;
  }
  
  .recruit .btn-cta:hover {
    background: #fff;
    color: #e50112;
  }
  
  /* --- PC・タブレット対応 (768px以上) --- */
  @media (min-width: 768px) {
    .recruit-card {
      padding: 40px;
    }
  
    .list-row {
      display: flex;
      align-items: center;
      padding: 0;
    }
  
    .recruit-list dt {
      width: 25%;
      background: #f9f9f9;
      color: #333;
      margin-bottom: 0;
      padding: 20px;
      height: 100%;
      display: flex;
      align-items: center;
    }
  
    .recruit-list dd {
      width: 75%;
      padding: 20px;
    }
  
    .tel-buttons {
      flex-direction: row;
    }
  
    .btn-tel {
      width: auto;
    }
  }
  
  /* --- スマホ調整 (768px以下) --- */
  @media screen and (max-width: 768px) {
    .tel-buttons {
      flex-direction: column;
      gap: 15px;
    }
  
    .btn-tel {
      width: 100%;
    }
  }