/*
Theme Name: EggPlanet
Theme URI: https://devutuber.live
Author: EggPlanet Inc.
Author URI: https://devutuber.live
Description: EggPlanet株式会社のコーポレートサイト用1ページ完結テーマ。文言・会社概要・事業内容カード・連絡先は「外観 → カスタマイズ」から編集できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eggplanet
*/

/* ===== カラー・基本設定 ===== */
:root {
  --ep-bg: #ffffff;
  --ep-bg-alt: #f0faf6;
  --ep-text: #1c1e26;
  --ep-muted: #5b5f70;
  --ep-primary: #10b981;
  --ep-primary-dark: #0e9f74;
  --ep-accent: #f97316;
  --ep-link: #f97316;
  --ep-border: #e6e8f0;
  --ep-card-shadow: 0 8px 24px rgba(28, 30, 38, 0.08);
  --ep-radius: 16px;
  --ep-maxw: 1080px;
  --ep-header-h: 68px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  color: var(--ep-text);
  background: var(--ep-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ep-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.ep-container {
  width: 100%;
  max-width: var(--ep-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.ep-section { padding: 96px 0; }
.ep-section--alt { background: var(--ep-bg-alt); }

.ep-section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.ep-section__lead {
  text-align: center;
  color: var(--ep-muted);
  margin: 0 auto 56px;
  max-width: 640px;
}

/* ===== ヘッダー ===== */
.ep-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ep-border);
}
.ep-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--ep-header-h);
}
.ep-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ep-text); }
/* ロゴはヘッダー高さに追従（上下に余白を確保）。 */
.ep-brand img,
.ep-brand .custom-logo {
  max-height: calc(var(--ep-header-h) - 22px);
  width: auto;
  display: block;
}
.ep-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ep-nav a { color: var(--ep-text); font-size: 0.95rem; font-weight: 500; }
.ep-nav a:hover { color: var(--ep-primary); text-decoration: none; }
.ep-nav-toggle { display: none; }

/* ===== ヒーロー ===== */
.ep-hero {
  padding: 120px 0 100px;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(107, 78, 240, 0.12), transparent 60%);
  text-align: center;
}
.ep-hero__catch {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
  background: linear-gradient(120deg, var(--ep-primary), var(--ep-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ep-hero__sub { font-size: 1.1rem; color: var(--ep-muted); max-width: 620px; margin: 0 auto 36px; }
.ep-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--ep-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.ep-btn:hover { background: var(--ep-primary-dark); text-decoration: none; transform: translateY(-2px); }

/* ===== About ===== */
.ep-about { max-width: 760px; margin: 0 auto; text-align: center; }
.ep-about__body { font-size: 1.05rem; color: var(--ep-muted); }
.ep-message {
  margin-top: 40px;
  padding: 28px;
  background: var(--ep-bg);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  text-align: left;
}
.ep-message__name { text-align: right; font-weight: 600; margin-top: 12px; }

/* ===== 事業内容カード ===== */
.ep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ep-card {
  position: relative;
  background: var(--ep-bg);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 32px 28px;
  box-shadow: var(--ep-card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ep-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(28, 30, 38, 0.12); }
.ep-card__icon { font-size: 2rem; margin-bottom: 14px; }
.ep-card__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; }
.ep-card__desc { color: var(--ep-muted); font-size: 0.95rem; margin: 0; }
.ep-card__link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.9rem; }
.ep-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ep-accent);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ===== 会社概要テーブル ===== */
.ep-profile { max-width: 760px; margin: 0 auto; }
.ep-profile table { width: 100%; border-collapse: collapse; }
.ep-profile th, .ep-profile td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--ep-border);
  vertical-align: top;
}
.ep-profile th { width: 30%; font-weight: 600; color: var(--ep-text); white-space: nowrap; }
.ep-profile td { color: var(--ep-muted); }

/* ===== お問い合わせ ===== */
.ep-contact { text-align: center; max-width: 620px; margin: 0 auto; }
.ep-contact__mail { font-size: 1.25rem; font-weight: 700; margin: 8px 0 28px; }
.ep-social { display: flex; gap: 20px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.ep-social a { font-weight: 600; }

/* ===== フッター ===== */
.ep-footer { background: var(--ep-text); color: #c7c9d6; padding: 40px 0; text-align: center; font-size: 0.9rem; }
.ep-footer a { color: #c7c9d6; }
.ep-footer__links { margin-bottom: 12px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .ep-section { padding: 64px 0; }
  .ep-nav { display: none; }
  .ep-nav.is-open {
    display: block;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ep-border);
  }
  .ep-nav.is-open ul { flex-direction: column; gap: 0; padding: 8px 24px; }
  .ep-nav.is-open li { padding: 12px 0; border-bottom: 1px solid var(--ep-border); }
  .ep-nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .ep-nav-toggle span { width: 24px; height: 2px; background: var(--ep-text); display: block; }
  .ep-profile th { width: 38%; }
}
