/*
Theme Name: PHP Tool Market
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: PHPスクリプト販売専用の本格派マーケットテーマ（Swell風ヘッダー版）
Version: 1.1
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: #F4F4F5;
    color: #111827;
    line-height: 1.7;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* ヘッダー（Swellっぽい白ベースのフローティングヘッダー） */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 24px;
}

.site-logo a {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.logo-main {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-main span {
    color: #2563EB;
}

.logo-sub {
    font-size: 11px;
    color: #6B7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.main-nav a {
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: #374151;
}

.main-nav a:hover {
    border-bottom-color: #2563EB;
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.header-link {
    color: #4B5563;
}

.header-link:hover {
    color: #111827;
}

.header-cta {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #2563EB;
    color: #FFFFFF;
    background: #2563EB;
    font-weight: 600;
    font-size: 13px;
}

.header-cta:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

/* ヒーロー */

.hero {
    padding: 72px 0 40px;
    background: radial-gradient(circle at top left, #1D4ED8, #020617);
    color: #E5E7EB;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,1.3fr);
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A5B4FC;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    color: #38BDF8;
}

.hero-text {
    font-size: 14px;
    max-width: 440px;
    color: #E5E7EB;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: #F97316;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #4B5563;
    font-size: 14px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 12px;
    color: #9CA3AF;
}

/* プロダクトカード */

.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 13px;
    color: #6B7280;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* サムネ画像（高さ調整版） */
.tool-card-thumb img {
    width: 100%;
    height: 60%;       /* ← 高さをここで調整（例: 180px に） */
    object-fit: cover;   /* アスペクト比を保ったままトリミング */
    border-radius: 14px;
    display: block;
}

.tool-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card-badge {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #4F46E5;
    display: inline-block;
}

.tool-card-title {
    font-size: 16px;
    font-weight: 600;
}

.tool-card-meta {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-card-price {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.tool-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
}

/* シングルページ */

.single-hero {
    padding: 36px 0 24px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.breadcrumb {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 10px;
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0,2.2fr) minmax(0,1.1fr);
    gap: 24px;
    padding: 32px 0 48px;
}

.single-main h2 {
    margin-top: 24px;
    font-size: 18px;
}

.single-sidebar {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.single-price {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.single-meta {
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 12px;
}

.single-meta div {
    margin-bottom: 4px;
}

.single-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* フッター */

.site-footer {
    padding: 28px 0;
    font-size: 12px;
    color: #6B7280;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
}

/* レスポンシブ */

@media (max-width: 900px) {
    .site-header-inner {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hero-grid,
    .single-layout {
        grid-template-columns: 1fr;
    }
    .site-header-inner {
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* --- お試しボタン（Swell風＋光沢＋アニメ付き） --- */
.btn-trial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* 光沢のハイライトアニメーション */
.btn-trial::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0.0) 100%
    );
    transform: skewX(-20deg);
}

/* hover時の動き */
.btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
}

.btn-trial:hover::before {
    animation: shine 1s forwards;
}

/* 光が横切るアニメーション */
@keyframes shine {
    from { left: -75%; }
    to   { left: 125%; }
}

/* ========== Footer ========== */

.site-footer {
  background: #111;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 60px;
  font-size: 14px;
  text-align: center; /* ← 全体センター寄せ */
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center; /* ← カラム自体を中央寄せ */
}

/* フッターの各カラム */
.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
  text-align: center; /* ← 文字も中央寄せ */
}

/* CTA ボタン（中央寄せ維持） */
.footer-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f5c542;
  color: #111;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}

