@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ==========================================================================
   株式会社ヒ・チ・ク WordPress 統合CSS (All-in-One)
   ==========================================================================
   このファイルの内容を全てコピーして、WordPress管理画面の
   「外観」>「カスタマイズ」>「追加CSS」に貼り付けてください。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 共通設定 (wp-common.css)
   -------------------------------------------------------------------------- */
:root {
    --main-navy: #002d5a;
    --accent-gold: #c5a059;
    --menu-bg: #0b162a;
    --text-dark: #222;
    --text-gray: #555;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --border-line: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
    color: var(--text-dark);
    line-height: 2.0;
    overflow-x: hidden;
    background-color: #fff;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    z-index: 2000;
    background: #ffffff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    transition: 0.5s;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-navy);
    letter-spacing: 0.1em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: auto;
}

.menu-trigger {
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 2100;
}

.menu-trigger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--main-navy);
    transition: 0.4s;
}

.menu-trigger span:nth-child(1) {
    top: 0;
}

.menu-trigger span:nth-child(2) {
    top: 9px;
}

.menu-trigger span:nth-child(3) {
    bottom: 0;
}

.active .menu-trigger span {
    background: var(--white);
}

.active .menu-trigger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.active .menu-trigger span:nth-child(2) {
    opacity: 0;
}

.active .menu-trigger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

#overlay.show {
    opacity: 1;
    visibility: visible;
}

#side-menu {
    position: fixed;
    top: 0;
    right: -85%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--menu-bg);
    z-index: 1500;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

#side-menu.open {
    right: 0;
}

.menu-category {
    margin-bottom: 40px;
}

.menu-category h4 {
    color: var(--accent-gold);
    font-size: 12px;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.menu-category ul {
    list-style: none;
    margin-bottom: 40px;
}

.menu-category a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: 0.3s;
    font-size: 15px;
}

.menu-category a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

.section {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 28px;
    color: var(--main-navy);
    display: inline-block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 15px;
}

.page-hero {
    height: 30vh;
    margin-top: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #002d5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-hero h2 {
    font-size: 36px;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 20px;
    letter-spacing: 0.4em;
    color: var(--accent-gold);
    font-weight: bold;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent-gold);
}

.case-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    font-family: sans-serif;
}

.slide.active {
    opacity: 1;
}

.slide-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover .slide-indicators {
    opacity: 1;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s;
}

.slide-dot.active {
    background: var(--accent-gold);
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-navy);
    margin-bottom: 15px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.btn-gold {
    display: inline-block;
    background: var(--main-navy);
    color: #fff;
    padding: 20px 80px;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.1em;
    transition: 0.3s;
    border: 1px solid var(--main-navy);
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    background: #fff;
    color: var(--main-navy);
}

.btn-gold::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gold);
    transition: 0.3s;
}

.btn-gold:hover::after {
    width: 100%;
}

footer {
    background: #111;
    color: #888;
    padding: 50px 0;
    text-align: center;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.form-container {
    max-width: 750px;
    margin: 40px auto;
    padding: 40px 5%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    text-align: center;
    margin-bottom: 40px;
}

.form-title h2 {
    font-size: 24px;
    color: var(--main-navy);
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-line);
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    background: var(--main-navy);
    color: #fff;
    padding: 18px 80px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .page-hero h2 {
        font-size: 24px;
    }

    .section {
        padding: 60px 5%;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* --------------------------------------------------------------------------
   2. トップページ固有 (wp-page-index.css)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnime 18s infinite;
}

.slide-item:nth-child(1) {
    animation-delay: 0s;
}

.slide-item:nth-child(2) {
    animation-delay: 6s;
}

.slide-item:nth-child(3) {
    animation-delay: 12s;
}

@keyframes slideAnime {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    45% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 90, 0.4);
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    color: #fff;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-tag {
    display: block;
    color: var(--white);
    font-size: 24px;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUpSlow 1.5s ease-out forwards 0.5s;
}

.hero-title {
    font-size: 48px;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUpSlow 1.5s ease-out forwards 1.5s;
}

.hero-sub {
    font-size: 18px;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeUpSlow 1.5s ease-out forwards 2.5s;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.2em;
    animation: arrowMove 2s infinite;
    text-align: center;
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: #fff;
    margin: 10px auto 0;
}

@keyframes arrowMove {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0.5;
    }
}

/* --- 事例画像（製作事例ページ用） --- */
.case-img {
    width: 100%;
    height: 220px;
    background: #eee;
    background-size: cover;
    background-position: center;
}

/* --- 工事履歴（施工事例ページ用） --- */
.history-section {
    background-color: var(--bg-light);
    padding: 100px 10%;
}

.history-tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    justify-content: center;
}

.history-tab {
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.history-tab:hover {
    color: var(--main-navy);
}

.history-tab.active {
    color: var(--main-navy);
}

.history-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
}

.history-content {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.history-content.active {
    display: block;
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 600px;
}

.history-table th,
.history-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 15px;
}

.history-table th {
    background: var(--main-navy);
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background-color: #fafafa;
}

.mission-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.mission-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gold);
}

.mission-lead {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-navy);
    margin-bottom: 40px;
}

#company-detail {
    background: var(--bg-light);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.company-table th,
.company-table td {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-line);
    text-align: left;
}

.company-table th {
    width: 30%;
    background: #f4f4f4;
    color: var(--main-navy);
    font-weight: bold;
}

.history-list {
    position: relative;
    border-left: 2px solid var(--accent-gold);
    margin-left: 20px;
    padding-left: 30px;
}

.history-item {
    margin-bottom: 30px;
    position: relative;
}

.history-item::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--main-navy);
    border-radius: 50%;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.client-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    font-size: 13px;
    text-align: center;
}

.coop-box {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--main-navy);
    color: #fff;
    padding: 40px;
    margin-top: 60px;
}

/* --------------------------------------------------------------------------
   3. 施工事例固有 (wp-page-works.css)
   -------------------------------------------------------------------------- */
.history-section {
    background-color: var(--bg-light);
    padding: 100px 10%;
}

.history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    justify-content: center;
}

.history-tab {
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.history-tab.active {
    color: var(--main-navy);
}

.history-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
}

.history-content {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.history-content.active {
    display: block;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 600px;
}

.history-table th,
.history-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 15px;
}

.history-table th {
    background: var(--main-navy);
    color: #fff;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. 製作事例固有 (wp-page-processing.css)
   -------------------------------------------------------------------------- */
.intro-box {
    max-width: 1100px;
    margin: 0 auto 120px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-img {
    flex: 1;
    box-shadow: 20px 20px 0 var(--bg-light);
}

.intro-text h3 {
    font-size: 26px;
    color: var(--main-navy);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 10px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 100px;
}

.equipment-item {
    background: #fff;
    padding: 20px 25px;
    border-left: 5px solid var(--accent-gold);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    color: var(--main-navy);
    font-weight: 600;
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   5. 採用情報固有 (wp-page-recruit.css)
   -------------------------------------------------------------------------- */
.recruit-hero {
    height: 30vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #002d5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.message-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.message-card {
    background: #fff;
    padding: 40px;
    border-top: 4px solid var(--main-navy);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.recruit-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
}

.recruit-table th {
    width: 30%;
    background: var(--main-navy);
    color: #fff;
}

/* --------------------------------------------------------------------------
   6. 協力会社募集固有 (wp-page-partner.css)
   -------------------------------------------------------------------------- */
.feature-box {
    max-width: 1000px;
    margin: 0 auto 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--main-navy);
}

.feature-text {
    padding: 50px;
    flex: 1;
}

.feature-num {
    font-size: 60px;
    color: #eee;
    font-weight: bold;
    margin-bottom: 20px;
}

.feature-text li::before {
    content: "✔";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    top: 0;
}

.partner-cta {
    background: var(--bg-light);
    text-align: center;
    padding: 80px 10%;
}

/* --- 追加アニメーション --- */
@keyframes fadeUpSlow {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowMove {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0.5;
    }
}