/*
 Theme Name: Sydney Child
 Template: sydney
*/

/* 基本設定とフォント */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: #1e293b; /* slate-800 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 省略：ボタンやカードなど、既存のカスタムスタイル --- */
.section-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #1e40af;
}
.section-subtitle {
    font-size: 1.125rem; /* text-lg */
    color: #475569; /* slate-600 */
    max-width: 60ch;
}
.cta-button-primary {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.cta-button-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.nav-link {
    position: relative;
    color: #334155; /* slate-700 */
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
}
.nav-link:hover {
    color: #1e40af;
}
.nav-link .nav-jp {
    font-size: 0.65rem;
    color: #64748b; /* slate-500 */
}
.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9; /* slate-100 */
}
.card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-5px);
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
#to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1e293b; /* slate-800 */
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 1000;
}
#to-top-btn:hover {
    background-color: #2563eb;
}
#to-top-btn.show {
    opacity: 1;
    visibility: visible;
}


/* --- [ここからが最終解決策] --- */

/* 1. 親テーマのレイアウト基盤を限定的にリセットし、サイト全体の横ずれを解消 */
.sydney-child-custom-header .site-content {
    display: block !important;
    width: 100% !important;
    float: none !important;
}

/* 2. ブロックエディタのコンテンツラッパー(.entry-content)をターゲットに、文字寄せを左に強制 */
main#primary .entry-content {
    text-align: left !important;
}

/* 3. トップページ以外のページ（会社概要など）にサイト共通の余白を設定 */
body:not(.home) main#primary .entry-content {
    padding: 3rem 1.5rem;
}
@media (min-width: 1024px) {
    body:not(.home) main#primary .entry-content {
        padding: 4rem 2rem;
    }
}

/* 4. トップページのみ、コンテンツラッパーの余白をゼロにする */
.home main#primary .entry-content {
    padding: 0 !important;
}

/* 5. トップページの各セクション自体に、共通の上下余白を再設定 */
/* これが「Latest Articles」などのセクションの余白を復活させます */
.home main#primary .entry-content > section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 1024px) {
    .home main#primary .entry-content > section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* 6. ヒーローセクション（最初のセクション）のコンテナにだけ、特別な左余白を設定 */
.home main#primary .entry-content > section:first-of-type > .container {
    /* 左側に70pxの余白を作成して位置をコントロール */
    padding-left: 70px;
    /* 右側にも適切な余白を確保 */
    padding-right: 1.5rem; 
}
@media (min-width: 1024px) {
    .home main#primary .entry-content > section:first-of-type > .container {
        padding-right: 2rem;
    }
}