/* ============================================
   Lilac Hakuhodo Hybrid Theme - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --hakuhodo-red: #e60012;
    --hakuhodo-black: #000000;
    --hakuhodo-gray-dark: #333333;
    --hakuhodo-gray-medium: #707070;
    --hakuhodo-gray-light: #f5f5f5;
    --hakuhodo-gray-border: #e0e0e0;
    --hakuhodo-white: #ffffff;
}

/* ============================================
   Reset
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hakuhodo-black);
    background-color: var(--hakuhodo-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

h2 {
    font-size: 36px;
    border-bottom: 3px solid var(--hakuhodo-black);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

h3 {
    font-size: 24px;
    border-left: 4px solid var(--hakuhodo-red);
    padding-left: 16px;
    margin-bottom: 16px;
}

p {
    margin-bottom: 24px;
    color: var(--hakuhodo-gray-medium);
    line-height: 1.8;
}

a {
    color: var(--hakuhodo-black);
    text-decoration: none;
    transition: color 250ms ease-out;
}

a:hover {
    color: var(--hakuhodo-red);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--hakuhodo-white);
    border-bottom: 1px solid var(--hakuhodo-gray-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 80px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--hakuhodo-black);
    transition: color 250ms ease-out;
}

.site-title:hover {
    color: var(--hakuhodo-red);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.primary-nav {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.primary-nav > li {
    position: relative;
}

.primary-nav > li > a {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hakuhodo-black);
    transition: all 250ms ease-out;
    white-space: nowrap;
}

.primary-nav > li > a:hover {
    color: var(--hakuhodo-red);
}

.primary-nav > li.current-menu-item > a {
    color: var(--hakuhodo-red);
    border-bottom: 2px solid var(--hakuhodo-red);
}

/* Dropdown Menu */
.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--hakuhodo-white);
    border: 1px solid var(--hakuhodo-gray-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    animation: slideDown 250ms ease-out;
}

.primary-nav li:hover > .sub-menu {
    display: block;
}

.primary-nav .sub-menu li {
    list-style: none;
}

.primary-nav .sub-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--hakuhodo-gray-medium);
    border-bottom: 1px solid var(--hakuhodo-gray-border);
    transition: all 250ms ease-out;
}

.primary-nav .sub-menu li a:hover {
    background-color: var(--hakuhodo-gray-light);
    color: var(--hakuhodo-red);
    padding-left: 32px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--hakuhodo-black);
    transition: all 250ms ease-out;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--hakuhodo-white);
        border-bottom: 1px solid var(--hakuhodo-gray-border);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .header-nav.active {
        display: flex;
    }

    .primary-nav {
        flex-direction: column;
        width: 100%;
    }

    .primary-nav > li > a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--hakuhodo-gray-border);
    }
}

/* ============================================
   Main Content
   ============================================ */
.site-main {
    padding-top: 80px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    margin-bottom: 32px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--hakuhodo-gray-medium);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    margin-right: 8px;
    color: var(--hakuhodo-gray-medium);
}

.breadcrumbs a {
    color: var(--hakuhodo-black);
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: var(--hakuhodo-red);
}

/* ============================================
   Page Hero
   ============================================ */
.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--hakuhodo-gray-light);
    background: linear-gradient(to bottom right, #f0f0f0, #e0e0e0);
}

.page-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 48px 24px 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.page-label {
    display: inline-block;
    background-color: var(--hakuhodo-black);
    color: var(--hakuhodo-white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.page-title-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.page-title-accent-wrapper {
    display: flex;
    align-items: flex-start;
    padding-top: 16px;
}

.page-title-accent {
    width: 8px;
    height: 8px;
    background-color: var(--hakuhodo-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.page-title-wrapper h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--hakuhodo-gray-medium);
    letter-spacing: 0.1em;
    font-weight: 300;
    margin-bottom: 0;
}

/* ============================================
   Page Content
   ============================================ */
.page-content {
    background-color: var(--hakuhodo-white);
    padding: 80px 24px;
}

.page-container {
    max-width: 1280px;
    margin: 0 auto;
}

.page-content article {
    max-width: 768px;
}

.page-content h2 {
    margin-top: 48px;
    margin-bottom: 24px;
}

.page-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.page-content table th {
    background-color: var(--hakuhodo-gray-light);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--hakuhodo-gray-border);
}

.page-content table td {
    padding: 16px;
    border-bottom: 1px solid var(--hakuhodo-gray-border);
}

.page-content table tr:nth-child(even) {
    background-color: var(--hakuhodo-gray-light);
}

.page-content blockquote {
    border-left: 4px solid var(--hakuhodo-red);
    padding: 24px;
    margin-left: 0;
    margin-bottom: 24px;
    background-color: var(--hakuhodo-gray-light);
    font-style: italic;
    color: var(--hakuhodo-gray-medium);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: linear-gradient(to bottom right, #f5f5f5, #e8e8e8);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 80px;
    width: 384px;
    height: 384px;
    background-color: var(--hakuhodo-red);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 40px;
    width: 256px;
    height: 256px;
    background-color: var(--hakuhodo-red);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    max-width: 512px;
}

.hero-content h2 {
    font-size: 60px;
    border: none;
    padding: 0;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-accent {
    color: var(--hakuhodo-red);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    background-color: var(--hakuhodo-white);
    padding: 64px 24px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--hakuhodo-black);
}

.section-header h2 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 36px;
}

.section-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--hakuhodo-black);
    transition: color 250ms ease-out;
}

.section-link:hover {
    color: var(--hakuhodo-red);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hakuhodo-gray-border);
    transition: color 250ms ease-out;
}

.news-item:hover {
    color: var(--hakuhodo-red);
}

.news-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--hakuhodo-gray-medium);
    min-width: fit-content;
}

.news-item h3 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.news-item a {
    color: inherit;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background-color: var(--hakuhodo-gray-light);
    padding: 64px 24px;
}

.services-section h2 {
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--hakuhodo-white);
    padding: 32px;
    border-radius: 0;
    transition: box-shadow 250ms ease-out;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 192px;
    background-color: var(--hakuhodo-gray-border);
    margin-bottom: 24px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    border-left: 4px solid var(--hakuhodo-red);
    padding-left: 16px;
    margin-bottom: 16px;
    font-size: 20px;
}

.service-card p {
    font-size: 14px;
    margin-bottom: 24px;
}

.service-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--hakuhodo-black);
    border-bottom: 1px solid var(--hakuhodo-black);
    padding-bottom: 4px;
    transition: all 250ms ease-out;
}

.service-link:hover {
    color: var(--hakuhodo-red);
    border-bottom-color: var(--hakuhodo-red);
}

/* ============================================
   Navigation Cards
   ============================================ */
.nav-cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: var(--hakuhodo-white);
    text-align: center;
    transition: opacity 250ms ease-out;
    cursor: pointer;
    text-decoration: none;
}

.nav-card:hover {
    opacity: 0.9;
}

.nav-card:hover h3 {
    color: var(--hakuhodo-white);
}

.nav-card-en {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.nav-card h3 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 28px;
    color: var(--hakuhodo-white);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--hakuhodo-white);
    border-top: 1px solid var(--hakuhodo-gray-border);
}

.footer-upper {
    padding: 48px 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hakuhodo-gray-border);
    border-left: none;
    padding-left: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 12px;
    color: var(--hakuhodo-gray-medium);
    transition: color 250ms ease-out;
}

.footer-section a:hover {
    color: var(--hakuhodo-red);
}

.footer-nav {
    border-top: 1px solid var(--hakuhodo-gray-border);
    padding-top: 32px;
    margin-bottom: 32px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-nav a {
    font-size: 12px;
    font-weight: 700;
    color: var(--hakuhodo-black);
    transition: color 250ms ease-out;
}

.footer-nav a:hover {
    color: var(--hakuhodo-red);
}

.footer-lower {
    background-color: var(--hakuhodo-gray-light);
    padding: 32px 24px;
    text-align: center;
}

.footer-lower p {
    font-size: 12px;
    color: var(--hakuhodo-gray-medium);
    margin-bottom: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 250ms ease-out;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--hakuhodo-red);
    color: var(--hakuhodo-white);
}

.btn-primary:hover {
    background-color: #cc0010;
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    color: var(--hakuhodo-black);
    border: 1px solid var(--hakuhodo-black);
}

.btn-secondary:hover {
    background-color: var(--hakuhodo-black);
    color: var(--hakuhodo-white);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 32px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--hakuhodo-black);
}

label .required {
    color: var(--hakuhodo-red);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    border: 1px solid var(--hakuhodo-gray-border);
    border-radius: 0;
    background-color: var(--hakuhodo-white);
    color: var(--hakuhodo-black);
    transition: border-color 250ms ease-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--hakuhodo-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    .page-hero-content {
        padding: 32px 16px 32px;
    }

    .page-content {
        padding: 48px 16px;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-hero-content {
        padding: 32px 16px 32px;
    }

    .page-title-block {
        flex-direction: column;
    }

    .page-title-wrapper h1 {
        font-size: 28px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav ul {
        gap: 8px;
    }
}
