/*
Theme Name: プラスパワーホールディングス
Theme URI: https://example.com/
Author: プラスパワーホールディングス
Description: プラスパワーホールディングス
Version: 1.0
License: GNU General Public License v2 or later
*/

:root {
    --primary-color: #d9333f; /* 松竹らしい赤色をアクセントに */
    --text-color: #333;
    --bg-gray: #f9f9f9;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 14px;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: var(--bg-gray);
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    font-size: 3rem;
    letter-spacing: 0.5em;
    font-weight: bold;
}

/* Content Blocks (Event, Kadoza, Recruitment) */
.info-blocks {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    background: #fff;
}

.info-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    margin-top: 15px;
}

.btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Topics */
.topics-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.topics-list {
    list-style: none;
    padding: 0;
}

.topics-list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.topics-date {
    font-size: 14px;
    color: #888;
    width: 120px;
}

.topics-cat {
    background: #eee;
    font-size: 12px;
    padding: 2px 8px;
    margin-right: 15px;
    border-radius: 3px;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.site-footer a {
    color: #ccc;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
/* --- 404ページのデザイン --- */
.error-404-area {
    text-align: center; /* 真ん中に寄せる */
    padding: 100px 20px; /* 上下の余白 */
    min-height: 50vh; /* 画面の半分くらいの高さを確保 */
}

.error-title {
    font-size: 100px; /* 404の文字を巨大にする */
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    color: #ccc; /* 薄いグレー */
    margin: 0;
    line-height: 1;
}

.error-sub {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.error-text {
    font-size: 16px;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* トップに戻るボタン */
.btn-home {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-home:hover {
    background: #cc0000; /* ホバー時に赤くする */
}
/* --- 404ページのデザイン（中央寄せ修正版） --- */
.error-404-area {
    width: 90%;            /* 画面幅の90%を使う（スマホ対策） */
    max-width: 800px;      /* ただし広がりすぎないようにする */
    margin-left: auto;     /* 左側の余白を自動調整 */
    margin-right: auto;    /* 右側の余白を自動調整 */
    
    text-align: center;    /* 文字を真ん中に */
    padding: 150px 20px;   /* 上下の余白（ヘッダー被り対策含む） */
    min-height: 50vh;
}

/* ついでにタイトルなども整える */
.error-title {
    font-size: 80px;       /* 少し調整 */
    font-family: 'Oswald', sans-serif;
    color: #ccc;
    margin: 0 auto 10px;   /* タイトル自体の周りの余白 */
}
/* --- フワッと表示させるアニメーション --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px); /* 少し下から */
    transition: all 0.8s ease;   /* 0.8秒かけて */
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);    /* 元の位置へ */
}
/* --- トップへ戻るボタン --- */
.page-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%; /* 丸くする */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    opacity: 0.8;
    z-index: 100;
    transition: all 0.3s;
}
.page-top-btn:hover {
    background: #cc0000; /* 赤くする */
    opacity: 1;
}
/* スムーズにスクロールさせる魔法 */
html {
    scroll-behavior: smooth;
}
@media screen and (max-width: 768px) {
  .top-button {
    display: none; /* ここを確認 */
  }
}
.左に寄っているクラス名 {
    margin-left: auto;
    margin-right: auto;
}
.その親要素のクラス名 {
    display: flex;          /* すでにあるはず */
    justify-content: center; /* 子要素を中央に配置 */
}
.左に寄っているクラス名 {
    text-align: center;
}
.そのクラス名 {
    float: none !important;   /* floatを強制解除 */
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.そのクラス名 {
    background-color: red; /* 一時的に赤くする */
}
.そのクラス名 {
    display: block !important;
    width: fit-content !important; /* または 100% ではなく具体的なpx */
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}
/* 固定ページの本文を読みやすくする */
.page-content-area {
    max-width: 800px;       /* 1. 横幅を最大800pxに制限する（これ以上広がらない） */
    margin: 0 auto;         /* 2. 左右の余白を自動にして「中央寄せ」にする */
    padding: 0 20px;        /* 3. スマホで見た時に端っこがくっつかないよう隙間をあける */
    
    /* 以下はお好みで（文字の読みやすさ調整） */
    line-height: 1.8;       /* 行間を少し広げる */
    color: #333;            /* 文字色を真っ黒ではなく濃いグレーに */
}
}
/* ▼▼▼ 新しいセクションのデザイン ▼▼▼ */
.my-section {
  padding: 80px 20px;
  background-color: #f4f4f4; /* 背景を薄いグレーに */
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* セクションのタイトル */
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}
.section-title span {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 5px;
}

/* 2カラム（横並び）の枠 */
.two-column {
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 40px; /* 画像と文字の隙間 */
  background: #fff;
  padding: 40px;
  border-radius: 10px;
}

/* 画像エリア */
.col-img {
  flex: 1; /* 幅の比率 */
}
.col-img img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* 文章エリア */
.col-text {
  flex: 1;
}
.col-text h3 {
  margin-top: 0;
  font-size: 22px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  display: inline-block;
}

/* ボタンのデザイン */
.my-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
}
.my-btn:hover {
  background: #555;
  opacity: 0.8;
}

/* スマホ対応（縦並びにする） */
@media screen and (max-width: 768px) {
  .two-column {
    flex-direction: column; /* 縦並び */
    padding: 20px;
  }