/*
Theme Name: Plus Movement Theme
Theme URI: https://plus-movement.co.jp/
Author: Gemini CLI
Author URI: https://gemini.google.com/
Description: A corporate site theme for Plus Movement LLC, designed as a "trust anchor" for their "AI Mirai Designer (AIMD)" service. Based on the design concept "The Anchor," it features a dark, minimalist, and luxurious design to express stability and professionalism.
Version: 1.0
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
License: UNLICENSED
License URI:
Text Domain: plus-movement-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, block-styles, full-site-editing, responsive-layout, theme-options, translation-ready, accessibility-ready

This theme and all its assets are the exclusive property of Plus Movement LLC.
Unauthorized reproduction, distribution, or use is strictly prohibited.
*/

/* --- 1. Basic Reset & Typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #F0F0F0;
  background-color: #121212;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.052rem;
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #F0F0F0;
    text-decoration: none !important; /* !important を追加 */
    font-weight: 700;
}

a:hover {
    color: #ea3800;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* --- 2. Common Components --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-main {
    padding-top: 3rem; /* 投稿記事や固定ページ用 */
    padding-bottom: 3rem; /* 投稿記事や固定ページ用 */
}

.section-title {
    margin-bottom: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-header .entry-title {
    margin-bottom: 0;
}

.page-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid #333333;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.button,
.wp-block-button__link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #ea3800;
    color: #F0F0F0;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.button:hover,
.wp-block-button__link:hover {
    opacity: 0.85;
    color: #F0F0F0;
}

.button.button-secondary,
.wp-block-button__link.button-secondary {
    background-color: #6b7280;
}

.button.button-outline,
.wp-block-button__link.button-outline {
    background-color: transparent;
    border: 1px solid #F0F0F0;
}

/* --- 3. Header & Footer --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333333;
}

.site-header .main-navigation {
    position: relative;
}

.site-header .site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

.site-header .site-branding .site-title a {
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
}

.site-header .main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.site-header .main-navigation li a {
    text-decoration: none;
    font-weight: 700;
}

.site-header .main-navigation li a:hover {
    color: #ea3800;
}

.site-header .main-navigation .menu-toggle {
    display: none;
}

@media (max-width: 600px) {
    .site-header .main-navigation .menu-toggle {
        display: block;
    }
    .site-header .main-navigation ul {
        display: none;
    }
}

.site-footer .footer-aimd-banner {
    background-color: #0a0a0a;
    padding: 3rem 2rem;
    text-align: center;
}

.site-footer .footer-aimd-banner p {
    margin-bottom: 1.5rem;
}

.site-footer .site-info {
    padding: 2rem;
    text-align: center;
    color: #A0A0A0;
    border-top: 1px solid #333333;
}

.site-footer .site-info .footer-navigation {
    margin-bottom: 1.5rem;
}

.site-footer .site-info .footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.site-footer .site-info .footer-navigation li a {
    text-decoration: none;
    font-weight: 400;
    color: #A0A0A0;
}

.site-footer .site-info .footer-navigation li a:hover {
    color: #F0F0F0;
}

/* --- 4. Front Page Specific Styles --- */
.front-page-hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-bg.webp'); /* キービジュアル */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.front-page-hero .container {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6); /* 濃いドロップシャドウ */
}

.front-page-hero .hero-catchphrase {
    margin-bottom: 1.5rem;
}

.front-page-hero .hero-subheading {
    font-size: 1.25rem;
    color: #fff; /* 白いテキスト */
    max-width: 60ch;
    margin: 0 auto 2rem;
}

.front-page-trust-summary {
    padding: 4rem 0;
    background-color: #161616;
    text-align: center;
}

.front-page-trust-summary .trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.front-page-authority-feed {
    padding: 4rem 0;
    text-align: center;
}

.front-page-authority-feed .latest-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列固定 */
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.post-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.post-card .card-link {
    text-decoration: none !important;
    display: block;
}

.post-card .card-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card .card-content {
    padding: 1.5rem;
}

.post-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.post-card .card-title a {
    text-decoration: none;
}

.post-card .card-meta {
    color: #A0A0A0;
    font-size: 0.8rem;
}

.front-page-about-cta {
    padding: 4rem 0;
    background-color: #161616;
    text-align: center;
}

/* --- 5. Single Post Specific Styles --- */
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Page About Specific Styles --- */
.page-about .about-section {
    padding: 3rem 0;
    border-bottom: 1px solid #333333;
}

.page-about .about-section:last-child {
    border-bottom: none;
}

.page-about .overview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.page-about .overview-table th, 
.page-about .overview-table td {
    padding: 1rem;
    border-bottom: 1px solid #333333;
    text-align: left;
}

.page-about .overview-table th {
    width: 30%;
    font-weight: 700;
}

.page-about .history-timeline {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.page-about .history-timeline .timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #333333;
}

.page-about .history-timeline .timeline-item .history-year {
    font-weight: 700;
    flex-basis: 150px;
}

.page-about .clients-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-about .clients-list .client-item {
    background-color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #333333;
}

.page-about .clients-list .client-item.is-public-sector {
    border-color: #ea3800;
    font-weight: 700;
}

/* トップページのみmainタグ内のarticleの上下marginを0にする */
.home .site-main article,
.front-page .site-main article {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .site-header .main-navigation {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .site-header .main-navigation ul#primary-menu.toggled { /* toggled クラスが適用されたら表示 */
        display: flex !important; /* !important を追加 */
        position: absolute; /* メニューを重ねて表示 */
        top: calc(100% + 0.5rem); /* ヘッダーの下に配置 */
        left: 0;
        right: 0;
        background-color: #121212; /* 背景色 */
        flex-direction: column; /* 縦並び */
        padding: 1rem 0;
        border-top: 1px solid #333333;
        z-index: 20;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .site-header .main-navigation ul.toggled li {
        text-align: center;
        padding: 0.5rem 0;
    }
}

/* 投稿記事・固定記事内の見出し装飾 */
.entry-content h2 {
    font-size: 2.2rem; /* 少し小さく */
    border-bottom: 2px solid #ea3800; /* 下線 */
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #F0F0F0; /* 明示的に色を指定 */
}

.entry-content h3 {
    font-size: 1.8rem; /* 少し小さく */
    border-left: 4px solid #ea3800; /* 左ボーダー */
    padding-left: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #F0F0F0; /* 明示的に色を指定 */
}

.entry-content h4 {
    font-size: 1.4rem; /* 少し小さく */
    color: #F0F0F0; /* 明示的に色を指定 */
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700; /* デフォルトと同じだが念のため */
}

/* 投稿記事文中のリンクにアンダーラインを適用 */
.entry-content a {
    text-decoration: underline !important;
}

/* ブログカードのタイトルリンクのアンダーラインをなくす（詳細度を上げて強制） */
.front-page-authority-feed .latest-articles .post-card .card-title a {
    text-decoration: none !important;
}

/* トップページのみmainタグのpaddingを0にする */
.home .site-main,
.front-page .site-main {
    padding-top: 0;
    padding-bottom: 0;
}
