/*
Theme Name: Tonichi Material
Theme URI: https://tonichi-material.com/
Description: 通用型ビジネステーマ - 色・画像・テキスト・ロゴすべてカスタマイズ可能
Author: Tonichi Material
Version: 1.0.0
Text Domain: tonichi
*/

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

:root {
    --color-primary: #ffb716;
    --color-dark: #000000;
    --color-dark-blue: #081726;
    --color-light-bg: #eaf6fa;
    --color-white: #ffffff;
    --color-text: #7a7a7a;
    --color-heading: #5b5b5b;
    --color-footer-text: #cccccc;
    --font-body: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-heading: 'Raleway', 'Noto Sans JP', sans-serif;
    --container-width: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

/* ========== Header ========== */
.site-header {
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.site-logo a {
    display: flex;
    align-items: center;
}

/* ========== Navigation ========== */
.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #0d2137 50%, var(--color-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* ========== Service Cards ========== */
.services-section {
    padding: 80px 20px;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px 20px;
    text-align: center;
}

.service-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.service-card-content a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

.service-card-content a:hover {
    filter: brightness(0.85);
}

/* ========== Pricing Section (from WP page) ========== */
.pricing-section {
    padding: 80px 20px;
    background-color: var(--color-light-bg);
}

.pricing-page-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.pricing-page-content h1,
.pricing-page-content h2,
.pricing-page-content h3 {
    text-align: center;
    margin-bottom: 15px;
}

.pricing-page-content p {
    text-align: center;
    margin-bottom: 10px;
}

.pricing-page-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.pricing-page-content table th {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.pricing-page-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.pricing-page-content table tr:last-child td {
    border-bottom: none;
}

.pricing-page-content table tr:hover td {
    background-color: #f9f9f9;
}

.pricing-page-content .wp-block-columns {
    gap: 30px;
}

.pricing-page-content figure.wp-block-table {
    margin: 0 0 30px;
}

/* ========== Access Section ========== */
.access-section {
    padding: 80px 20px;
    background-color: var(--color-white);
}

.access-section .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--color-heading);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: var(--container-width);
    margin: 0 auto;
    align-items: start;
}

.access-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access-image img {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.access-map iframe {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.access-info h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--color-heading);
}

.access-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 15px;
}

.access-info-item .label {
    font-weight: 600;
    min-width: 100px;
    color: var(--color-heading);
}

.access-info-item .value {
    color: var(--color-text);
}

.access-info-item .value a {
    color: var(--color-primary);
}

.access-info-item .value a:hover {
    filter: brightness(0.85);
}

/* ========== Contact Form ========== */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-heading);
    font-size: 14px;
}

.contact-form .required {
    color: #cc0000;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 183, 22, 0.15);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.contact-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 15px;
}

.contact-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-footer-text);
    padding: 50px 20px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-widget h4 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widget p,
.footer-widget li {
    font-size: 14px;
    line-height: 2;
    color: var(--color-footer-text);
}

.footer-widget a {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    background-color: var(--color-dark);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--color-footer-text);
    margin: 0 -20px;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    filter: brightness(0.9);
}

/* ========== Admin Bar Fix ========== */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ========== Pricing Table Responsive ========== */
.pricing-page-content .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== Submit Button Fix ========== */
.contact-form button[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
}

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

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

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

    .pricing-page-content table {
        display: block;
        overflow-x: auto;
    }

    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========== Print ========== */
@media print {
    .site-header,
    .back-to-top,
    .menu-toggle,
    .contact-form button {
        display: none !important;
    }

    .hero-section {
        background: #333 !important;
        padding: 30px 20px;
    }

    body {
        color: #000;
    }
}
