/*
Theme Name: Adagio
Theme URI: https://example.com/adagio
Author: Adagio
Author URI: https://example.com
Description: 広告業「Adagio」のためのカスタムWordPressテーマ。モダンでクリエイティブなデザイン。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adagio
*/

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #1a1a2e;
    --color-accent: #ff6b35;
    --color-accent-hover: #e55a2b;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #dee2e6;
    --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

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

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background-color: rgba(26, 26, 46, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

.site-logo a:hover {
    color: var(--color-accent);
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Desktop Navigation */
.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 5px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero-content h1 .accent {
    color: var(--color-accent);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* ============================================
   Section Common
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.section-header p {
    font-size: 1rem;
    color: var(--color-text-light);
}

.section-header .section-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 20px auto 0;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bg-dark .section-header h2 {
    color: var(--color-white);
}

.bg-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--color-white);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: #111122;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.85rem;
    max-width: 300px;
}

.footer-nav h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

.footer-legal {
    margin-top: 15px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-legal .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Page Template
   ============================================ */
.page-header {
    background-color: var(--color-primary);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-white);
    font-weight: 700;
}

.page-content {
    padding: 80px 0;
}

.page-content .container {
    max-width: 800px;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.contact-form label .required {
    color: var(--color-accent);
    margin-left: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color var(--transition);
    background-color: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* Contact Form 7 Compatibility */
.wpcf7-form .form-group {
    margin-bottom: 25px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color var(--transition);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 18px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--color-accent-hover);
}

/* ============================================
   Terms & Privacy Pages
   ============================================ */
.terms-content,
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section,
.privacy-section {
    margin-bottom: 40px;
}

.terms-section h2,
.privacy-section h2 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.terms-section p,
.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.9;
}

.terms-section ul,
.privacy-section ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 15px;
}

.terms-section li,
.privacy-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.terms-footer,
.privacy-footer {
    text-align: right;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

/* ============================================
   WordPress Core Styles
   ============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 5px 0;
}

.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;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .hamburger {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-primary);
        padding: 100px 40px 40px;
        transition: right var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .footer-inner {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

}

/* Mobile menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
