/* --- BASIC --- */
:root {
    --accent-color: #FDB813; /* YELLOW OF BEE */
    --primary-color: #333333; /* BASIC TEXT COLOR */
    --secondary-color: #555555;
    --white: #ffffff;
    --bg-light: #f7f7f7;
    --border-color: #dddddd;
    --font-family-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --container-width: 1100px;
    --container-width-narrow: 800px;
}

body {
    font-family: var(--font-family-base);
    color: var(--primary-color);
    line-height: 1.8;
    background-color: var(--white);
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

.container.narrow {
    max-width: var(--container-width-narrow);
}

.section {
    padding: 80px 0;
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    letter-spacing: 0.1em;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.header-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.header-logo img {
    height: 40px;
    margin-right: 10px;
}

.header-logo span {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav li {
    margin-left: 30px;
}

.header-nav a {
    font-weight: 500;
}

.header-nav .btn-contact {
    font-size: 14px;
    padding: 8px 20px;
}

.burger-btn {
    display: none;
}

/* --- MAIN --- */
main {
    padding-top: 40px; /* HEADER HEIGHT */
}

/* ヒーロー (index.html) */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* HERO IMAGE PASS */
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-inner {
    position: relative;
    z-index: 1;
}
.hero-subtitle {
    font-size: 18px;
}
.hero-title {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.4;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-text {
    font-size: 16px;
}

/* CARD (index.html) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.card {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card h3 {
    font-size: 20px;
    margin: 20px 0 10px;
}
.card p {
    padding: 0 20px;
    font-size: 15px;
    color: var(--secondary-color);
}

/* WORKS (index.html, works.html) */
.work-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}
.work-item:hover img {
    transform: scale(1.05);
}
.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 40px 20px 20px;
    box-sizing: border-box;
}
.work-caption h4 {
    margin: 0 0 5px;
    font-size: 18px;
}
.work-caption p {
    margin: 0;
    font-size: 14px;
}
.work-caption p span {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 2px 8px;
    margin-right: 5px;
}
.work-page-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.work-hero {
    text-align: center;
}

/* UNDERPAGE */
.page-header {
    background-color: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
}
.page-header h1 {
    font-size: 36px;
    margin: 0;
}
.page-header p {
    margin: 5px 0 0;
    color: var(--secondary-color);
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* (about.html) */
.section-title-left {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color);
}
.profile-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}
.profile-text {
    flex: 1;
}
.profile-text h3 {
    font-size: 22px;
}
.profile-img {
    flex-shrink: 0;
    width: 250px;
}
.profile-img img {
    border-radius: 8px;
}
.sign {
    text-align: right;
    font-weight: bold;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table th, .info-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}
.info-table th {
    background-color: var(--bg-light);
    width: 30%;
    font-weight: bold;
}
.map-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*  (services.html) */
.service-category {
    margin-bottom: 40px;
}
.category-title {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.service-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.service-list li {
    background-color: var(--bg-light);
    padding: 10px 20px;
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
}

.post-hero img { display:block; width:100%; height:auto; border-radius:12px; }
.entry-meta { margin:0 0 12px; color:#666; font-size:.95rem; }
.post-nav { display:flex; justify-content:space-between; gap:16px; margin:32px 0; }

.news-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap:24px; }
.news-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.06); transition:transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.1); }
.news-card-link { display:block; color:inherit; text-decoration:none; height:100%; }
.news-thumb img { display:block; width:100%; height:220px; object-fit:cover; }
.news-thumb--placeholder { height:220px; background:linear-gradient(180deg,#f2f2f2,#e9e9e9); }
.news-body { padding:16px 18px 20px; }
.news-date { font-size:.9rem; color:#666; }
.news-title { font-size:1.125rem; margin:.25rem 0 .5rem; line-height:1.4; }
.news-cat { display:inline-block; font-size:.8rem; background:#f3f3f3; border-radius:999px; padding:2px 10px; margin-bottom:.5rem; }
.news-excerpt { color:#444; }
.pagination { display:flex; justify-content:center; gap:8px; margin:32px 0; }
.pagination a, .pagination span { padding:8px 12px; border:1px solid #ddd; border-radius:8px; }
.pagination .current { background:#222; color:#fff; border-color:#222; }

/*  (contact.html) */
.contact-info-box {
    background-color: var(--bg-light);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}
.tel-label {
    margin: 0;
    font-size: 16px;
}
.tel-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
}
.reception-time {
    margin: 0;
    color: var(--secondary-color);
}
.form-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-group .required {
    background-color: #c00;
    color: var(--white);
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(253, 184, 19, 0.5);
}

/* お問い合わせページ */
.contact-info-box {
  background: #f8f8f8;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  margin: 32px 0;
}
.tel-label { font-weight: bold; margin-bottom: 4px; }
.tel-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #e89a00;
  margin: 8px 0;
}
.reception-time { font-size: 0.9rem; color: #666; }

/* CF7 フォーム共通 */
.contact-form-wrap form {
  margin-top: 24px;
}
.contact-form-wrap p {
  margin-bottom: 16px;
}
.contact-form-wrap label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
}
.contact-form-wrap textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  border-color: #e89a00;
  outline: none;
  box-shadow: 0 0 0 2px rgba(232,154,0,0.2);
}
.contact-form-wrap input[type="submit"] {
  background: #e89a00;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.contact-form-wrap input[type="submit"]:hover {
  background: #cc8500;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--primary-color);
    color: #f0f0f0;
    padding-top: 60px;
}
.footer a {
    color: #f0f0f0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.footer-logo img {
    height: 40px;
    margin-right: 10px;
}
.footer-logo span {
    font-size: 20px;
    font-weight: bold;
}
.footer-info p, .footer-info address {
    margin: 5px 0;
    font-style: normal;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.copyright {
    background-color: #222222;
    padding: 20px 0;
    text-align: center;
}
.copyright p {
    margin: 0;
    font-size: 14px;
}

/* --- responsive --- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .header-inner {
        padding: 0 20px;
    }
    .header-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .header-nav.active {
        transform: translateX(0);
    }
    .header-nav ul {
        flex-direction: column;
    }
    .header-nav li {
        margin: 0 0 30px 0;
    }
    .header-nav a {
        font-size: 20px;
    }
    .burger-btn {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .burger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        position: absolute;
        left: 0;
        transition: all 0.4s;
        border-radius: 2px;
    }
    .burger-btn span:nth-child(1) {
        top: 0;
    }
    .burger-btn span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .burger-btn span:nth-child(3) {
        bottom: 0;
    }
    .burger-btn.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
    body.no-scroll {
        overflow: hidden;
    }
    .hero-title {
        font-size: 32px;
    }
    .profile-flex {
        flex-direction: column;
    }
    .profile-img {
        width: 100%;
        max-width: 250px;
    }
    .info-table th, .info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .info-table th {
        border-bottom: none;
    }
    .info-table td {
        border-top: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-links ul {
        margin-top: 30px;
    }
}