/*
Theme Name: 株式会社アクト コーポレートサイト
Description: 佐賀県の警備会社「株式会社アクト」のWordPressテーマ
Version: 1.0.0
Author: Claude Code
*/

/* ==========================================================================
   フォントの定義
   ========================================================================== */

/* Google Fonts を使用 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* カスタムフォントのフォールバック定義 */
:root {
    --font-ud-kakugo: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    --font-hirakaku-w6: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    --font-hirakaku-w3: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* ==========================================================================
   WordPress デフォルトスタイルの調整
   ========================================================================== */

/* WordPress標準のスタイルをリセット */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 90%;
    color: #666;
    text-align: center;
    padding: 5px 0;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.gallery {
    margin: 0 -5px;
}

.gallery-item {
    display: inline-block;
    vertical-align: top;
    margin: 0 5px 10px;
}

/* ==========================================================================
   カスタムスタイル（元のデザインを踏襲）
   ========================================================================== */

/* ページ全体の基本設定 */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダーのカスタマイズ */
#header {
    position: relative;
    min-height: 160px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* ナビゲーションメニューのスタイル */
.nav.nav-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav.nav-bar li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav.nav-bar li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav.nav-bar li:hover a,
.nav.nav-bar li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* サブメニューのスタイル */
.nav.nav-bar li.sub-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav.nav-bar li.sub-menu:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav.nav-bar li.sub-menu ul li {
    border-bottom: 1px solid #eee;
}

.nav.nav-bar li.sub-menu ul li:last-child {
    border-bottom: none;
}

.nav.nav-bar li.sub-menu ul li a {
    color: #333;
    padding: 10px 15px;
    font-size: 13px;
}

.nav.nav-bar li.sub-menu ul li:hover a {
    background-color: #f0f0f0;
    color: #1e3c72;
}

/* パンくずナビのスタイル */
.breadcrumb {
    font-size: 12px;
    color: #666;
    padding: 10px 0;
}

.breadcrumb a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: bold;
}

/* ページタイトル・投稿タイトルのスタイル */
.page-title,
.post-title {
    font-family: "UDKakugo_LargePr6-B", "Hiragino Kaku Gothic Pro", sans-serif;
    color: rgb(51, 0, 204);
    margin: 0 0 30px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #ccc;
    line-height: 1.4;
}

.page-title {
    font-size: 200%;
}

.post-title {
    font-size: 180%;
}

/* 投稿メタ情報のスタイル */
.post-meta {
    margin-bottom: 20px;
    font-size: 90%;
    color: #666;
}

.post-meta .post-date,
.post-meta .post-categories {
    margin-right: 20px;
}

.post-meta i {
    margin-right: 5px;
}

.t-icon-new {
    background: #ef1821;
    color: #fff;
    font-size: 70%;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    font-style: normal;
    font-weight: bold;
}

/* コンテンツエリアのスタイル */
.page-content,
.post-content {
    margin-bottom: 30px;
}

.page-body-content,
.post-body-content {
    line-height: 1.7;
    font-size: 15px;
}

.page-body-content h2,
.post-body-content h2 {
    font-size: 150%;
    font-weight: bold;
    margin: 40px 0 20px 0;
    padding: 10px 0;
    border-bottom: 2px solid #1e3c72;
    color: #1e3c72;
}

.page-body-content h3,
.post-body-content h3 {
    font-size: 130%;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #333;
}

.page-body-content h4,
.post-body-content h4 {
    font-size: 115%;
    font-weight: bold;
    margin: 25px 0 10px 0;
    color: #333;
}

.page-body-content p,
.post-body-content p {
    margin-bottom: 15px;
}

.page-body-content ul,
.post-body-content ul,
.page-body-content ol,
.post-body-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.page-body-content li,
.post-body-content li {
    margin-bottom: 5px;
}

/* アイキャッチ画像のスタイル */
.featured-image {
    text-align: center;
    margin-bottom: 30px;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}

/* 子ページリストのスタイル */
.child-pages-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.child-pages-section h2 {
    font-family: "FP-HiraKakuProN-W6", "Hiragino Kaku Gothic Pro", sans-serif;
    font-size: 150%;
    color: rgb(51, 51, 153);
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.child-page-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 5px;
}

.child-page-item h3 {
    margin: 0 0 10px 0;
    font-size: 110%;
}

.child-page-item h3 a {
    color: rgb(51, 0, 204);
    text-decoration: none;
}

.child-page-item h3 a:hover {
    text-decoration: underline;
}

.child-page-item p {
    margin: 0;
    font-size: 90%;
    color: #666;
}

/* タグのスタイル */
.post-tags {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.post-tags h3 {
    font-size: 100%;
    margin-bottom: 10px;
    color: #666;
}

/* 投稿ナビゲーションのスタイル */
.post-navigation {
    margin-bottom: 30px;
}

.post-navigation > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.post-navigation > div > div {
    width: calc(50% - 7.5px);
}

.post-navigation a {
    display: block;
    padding: 15px;
    background: #f0f0f0;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #e0e0e0;
}

.post-navigation small {
    color: #666;
    font-size: 80%;
}

/* ボタンのスタイル */
.btn {
    display: inline-block;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgb(239, 24, 33);
    color: #fff;
}

.btn-primary:hover {
    background: rgba(239, 24, 33, 0.8);
    color: #fff;
}

.back-to-news {
    text-align: center;
    margin-top: 30px;
}

.back-to-news a {
    display: inline-block;
    padding: 12px 30px;
    background: rgb(239, 24, 33);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-to-news a:hover {
    background: rgba(239, 24, 33, 0.8);
}

/* フォームのスタイル */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group .required {
    color: #ef1821;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30, 60, 114, 0.3);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* 通知メッセージのスタイル */
.notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* TOPに戻るボタンのスタイル */
#totop-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(30, 60, 114, 0.8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0.7;
}

#totop-btn:hover {
    opacity: 1;
    background: rgba(30, 60, 114, 1);
}

#totop-btn .icon-text {
    font-size: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

#totop-btn::before {
    content: "▲";
    font-size: 16px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav.nav-bar {
        flex-direction: column;
    }
    
    .nav.nav-bar li a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .post-navigation > div {
        flex-direction: column;
    }
    
    .post-navigation > div > div {
        width: 100%;
    }
    
    .center-area {
        width: 95% !important;
        max-width: 100%;
    }
    
    .page-title,
    .post-title {
        font-size: 150%;
    }
    
    #totop-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 印刷用スタイル */
@media print {
    #header,
    #totop-btn,
    .post-navigation,
    .back-to-news {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .page-title,
    .post-title {
        color: #000;
        border-bottom-color: #000;
    }
}

/* ==========================================================================
   代表取締役メッセージセクションのスタイル
   ========================================================================== */

/* MESSAGEセクション全般 */
#section40 {
    min-height: 450px;
}

#section40 .section-area {
    min-height: 450px;
}

/* MESSAGEセクションの背景画像エリア */
#section40 .section-area:first-child {
    background-image: url('./images/bg-message.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* MESSAGEテキストエリア */
#section40 .section-area:last-child {
    display: flex;
    align-items: center;
    padding: 40px 30px;
}

/* フォントの強制適用 */
span[style*="font-family: UDKakugo_LargePr6-B"] {
    font-family: var(--font-ud-kakugo) !important;
    font-weight: 700 !important;
}

span[style*="font-family: FP-HiraKakuProN-W6"] {
    font-family: var(--font-hirakaku-w6) !important;
    font-weight: 600 !important;
}

span[style*="font-family: FP-HiraKakuProN-W3"] {
    font-family: var(--font-hirakaku-w3) !important;
    font-weight: 300 !important;
}

/* 代表取締役メッセージセクション */
#section_39_47-area-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.message-president-section {
    padding: 80px 0;
    position: relative;
}

.message-president-title {
    font-family: 'UDKakugo_LargePr6-B', 'Hiragino Kaku Gothic Pro', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.message-president-content {
    font-family: 'FP-HiraKakuProN-W6', 'Hiragino Kaku Gothic Pro', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.message-president-signature {
    font-family: 'FP-HiraKakuProN-W3', 'Hiragino Kaku Gothic Pro', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #333;
    text-align: right;
    margin-top: 40px;
    padding-right: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .message-president-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .message-president-content {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .message-president-signature {
        font-size: 16px;
        padding-right: 20px;
        margin-top: 30px;
    }
    
    #section40 .section-area:last-child {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   スライダー制御とアニメーション（act-saga.co.jp準拠）
   ========================================================================== */

/* 基本スライド構造 */
.slide {
    display: none;
}

.slide.active {
    display: block;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 回転アニメーション */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* ホバーエフェクト */
.hover-transform {
    transition: all 0.3s ease;
}

.hover-transform:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: all 0.5s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* スライダー用追加エフェクト */
.slider-fade-effect {
    animation: sliderFadeIn 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes sliderFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slider-slide-effect {
    animation: sliderSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes sliderSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Camera.js 拡張スタイル */
.camera_wrap .camera_paginationThumbs {
    transition: all 0.4s ease;
}

.camera_wrap .camera_paginationThumbs img {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.camera_wrap .camera_paginationThumbs img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.camera_wrap .camera_target {
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* キャプション用アニメーション強化 */
.camera_caption {
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.camera_caption.fadeIn {
    animation: captionFadeIn 1s ease-out;
}

@keyframes captionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* タッチデバイス用のスワイプインジケーター */
.swipe-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.swipe-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.swipe-indicator .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* レスポンシブホバー効果の制御 */
@media (hover: hover) and (pointer: fine) {
    .hover-transform:hover {
        transform: translateY(-12px);
    }
    
    .hover-scale:hover {
        transform: scale(1.08);
    }
}

@media (hover: none) {
    .hover-transform,
    .hover-scale {
        transform: none !important;
    }
}