/*
Theme Name: Yagi Aluminum
Author: Antigravity
Version: 1.0
Description: Simple & Cool WordPress Theme for Yagi Aluminum
*/

/* ============================================
   Root Variables
============================================ */

:root {
    --content-max-width: 1200px;
    --container-padding: 2rem;

    --section-padding-pc: 120px;
    --section-padding-sp: 80px;

    --header-height: 80px;

    /* Palette - Simple & Cool (Monochrome + Silver/Blue Accent) */
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-black: #111111;
    --color-white: #ffffff;
    --color-bg-body: #ffffff;
    --color-bg-light: #f9f9f9;
    --color-accent: #0056b3;
    /* Deep Blue for trust */
    --color-border: #e0e0e0;

    /* Fonts */
    --font-en: 'Montserrat', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    /* Easings */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ============================================
   Base
============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    width: 100%;
    font-family: var(--font-jp);
    line-height: 1.8;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.05em;
}

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

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* ============================================
   Typography
============================================ */

.en-title {
    font-family: var(--font-en);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
    position: relative;
}

/* .section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.2em;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-black));
} */

.text-center .section-subtitle::before {
    display: none;
}

.text-center .section-subtitle {
    padding-left: 0;
}

/* ============================================
   Layout Utilities
============================================ */

.section {
    padding-block: var(--section-padding-pc);
}

.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.scroll-offset {
    scroll-margin-top: var(--header-height);
}

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

/* ============================================
   Header
============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header__inner {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.header__nav-list {
    display: flex;
    gap: 3rem;
}

.header__nav-list a {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-white);
    position: relative;
    transition: color 0.3s ease;
}

.header__nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s var(--ease-out), background-color 0.3s ease;
}

.header__nav-list a:hover::after {
    width: 100%;
}

.header.is-scrolled .header__nav-list a {
    color: var(--color-black);
}

.header.is-scrolled .header__nav-list a::after {
    background-color: var(--color-black);
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    width: 24px;
    height: 18px;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    transition: all 0.3s ease;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 8px;
}

.header__hamburger span:nth-child(3) {
    top: 16px;
}

.header.is-scrolled .header__hamburger span {
    background-color: var(--color-black);
}

/* ハンバーガーメニューが開いた時のバツ型 */
.header__hamburger.is-active span {
    background-color: var(--color-black);
}

.header__hamburger.is-active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

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

.header__hamburger.is-active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* 下層ページのヘッダー（ホーム以外は常に白背景） */
body:not(.home) .header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

body:not(.home) .header__nav-list a {
    color: var(--color-black);
}

body:not(.home) .header__nav-list a::after {
    background-color: var(--color-black);
}

body:not(.home) .header__hamburger span {
    background-color: var(--color-black);
}

/* トップページ非スクロール時：ロゴを白く表示 */
.home .header:not(.is-scrolled) .header__logo-img {
    filter: brightness(0) invert(1);
}

/* ============================================
   Hero
============================================ */

.hero {
    position: relative;
    height: 95vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* Darken slightly for text readability */
}

/* Hero Slideshow */
.hero__slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: brightness()
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
    z-index: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    padding-inline: 2rem;
    z-index: 1;
}

.hero__title-en {
    font-family: var(--font-en);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__title-jp {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

/* ============================================
   About Us (Company)
============================================ */

.about {
    background-color: var(--color-white);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.6;
}

.about__text p {
    margin-bottom: 2rem;
    color: var(--color-text-light);
    line-height: 2;
}

.btn-simple {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-black);
    color: var(--color-black);
    font-family: var(--font-jp);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    transition: left 0.3s var(--ease-out);
    z-index: -1;
}

.btn-simple:hover::before {
    left: 0;
}

.btn-simple:hover {
    color: var(--color-white);
}

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

.btn-simple--white:hover {
    color: var(--color-white);
    border-color: var(--color-accent);
}

.about__image {
    position: relative;
}

.about__image::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    z-index: -1;
}

.about__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Strength
============================================ */

.strength {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.strength::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.strength__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.strength__item {
    background: var(--color-white);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.strength__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-black));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.strength__item:hover::before {
    transform: scaleX(1);
}

.strength__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.strength__icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-en);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), var(--color-black));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strength__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.strength__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
    text-align: left;
}

/* ============================================
   Services
============================================ */

.services {
    background-color: var(--color-white);
    position: relative;
}

.service__list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service__item:nth-child(even) {
    direction: rtl;
    /* Flip layout */
}

.service__item:nth-child(even) .service__content {
    direction: ltr;
    /* Reset text direction */
}

.service__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.service__content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service__content p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ============================================
   Works
============================================ */

.works {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.works__item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.works__item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.works__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.works__item:hover img {
    transform: scale(1.15);
}

.works__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.8), rgba(17, 17, 17, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.works__item:hover .works__overlay {
    opacity: 1;
}

/* ============================================
   News / Blog
============================================ */

.news {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

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

.news-item {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
}

.news-item:hover {
    background-color: #e9ecef;
    transform: translateX(10px);
}

.news-date {
    color: var(--color-text-light);
    font-family: var(--font-en);
    font-size: 0.9rem;
}

.news-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 600;
}

.news-title {
    font-weight: 500;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* ============================================
   Contact
============================================ */

.contact {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-black) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact__inner .section-subtitle,
.contact__inner .section-title,
.contact__text {
    color: var(--color-white);
}

.contact__inner .section-title {
    font-size: 2.8rem;
}

.contact__inner .section-subtitle::before {
    background: var(--color-white);
}

.contact__text {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-contact {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-accent);
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--font-en);
}

.btn-contact:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.contact .btn-simple::before {
    background-color: var(--color-white);
}

.contact .btn-simple:hover {
    color: var(--color-accent);
}

/* ============================================
   Footer
============================================ */

.footer {
    background-color: var(--color-black);
    color: #888;
    padding: 4rem 0;
    font-size: 0.9rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer__info h2 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer__copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
}

/* ============================================
   Blog / News
============================================ */

/* Latest News (Home) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.3s var(--ease-out);
}

.news-item:hover {
    opacity: 0.7;
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--color-text-light);
    min-width: 100px;
}

.news-category {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    background-color: var(--color-bg-light);
    border-radius: 20px;
    color: var(--color-text-light);
    white-space: nowrap;
}

.news-title {
    font-weight: 500;
    flex: 1;
}

/* Blog Archive (blog.html) */
.blog-header {
    background-color: var(--color-bg-light);
    padding: 8rem 0 4rem;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s var(--ease-out);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--color-bg-light);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.blog-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.page-number.current,
.page-number:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* Single Post (single.html) */
.post-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-family: var(--font-en);
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
    border-left: 4px solid var(--color-black);
    padding-left: 1rem;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content img {
    margin: 3rem 0;
    border-radius: 4px;
}

.post-navigation {
    max-width: 800px;
    margin: 6rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-areas:
        "prev next"
        "center center";
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.nav-previous {
    grid-area: prev;
}

.nav-next {
    grid-area: next;
    text-align: right;
}

.post-navigation .btn-simple {
    grid-area: center;
    text-align: center;
    justify-self: center;
}

/* ============================================
   Utilities & Animations
============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 {
    transition-delay: 0.15s;
}

.fade-delay-2 {
    transition-delay: 0.3s;
}

.fade-delay-3 {
    transition-delay: 0.45s;
}

.fade-delay-4 {
    transition-delay: 0.6s;
}

.fade-delay-5 {
    transition-delay: 0.75s;
}

/* ============================================
   Media Queries
============================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding-pc: 80px;
    }

    .about__inner,
    .service__item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service__item:nth-child(even) {
        direction: ltr;
    }

    .service__image img {
        height: 300px;
    }
}

@media (max-width: 900px) {
    .header__logo img {
        height: 50px;
    }

    .header__nav-list {
        gap: 2rem;
    }

    .header__nav-list a {
        font-size: 0.85rem;
    }

    .header__nav-cta {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding-block: var(--section-padding-sp);
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--color-white);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease-out);
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .header__nav.is-open {
        transform: translateX(0);
    }

    .header__nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .header__nav-list li {
        width: 100%;
    }

    .header__nav-list a {
        font-size: 1.2rem;
        color: var(--color-black) !important;
        display: block;
        padding: 1rem 0;
        text-align: left;
    }

    .header__nav-list a:hover {
        opacity: 0.7;
    }

    .header__nav-list a::after {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }
}

/* ============================================
   Page Layout (Sidebar)
============================================ */

.page-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

.main-content {
    width: 100%;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar__widget {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: 4px;
}

.sidebar__title {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-black);
}

.sidebar__list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.sidebar__list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

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

/* Media Queries for Sidebar */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ============================================
   reCAPTCHA
============================================ */

.grecaptcha-badge {
    visibility: hidden;
}

.page-template-page-contact .grecaptcha-badge {
    visibility: visible;
}

/* ============================================
   Loading Screen
============================================ */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ============================================
   Service Grid (3 Columns)
============================================ */

/* Main Service Grid - 3 columns */
.service-main__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.8rem;
    margin-bottom: 5rem;
    align-items: start;
}

.service-main__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: visible;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-main__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-main__card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}

.service-main__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-main__card:hover .service-main__card-image img {
    transform: scale(1.1);
}

.service-main__card-content {
    padding: 1.5rem;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-main__card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
}

.service-main__card-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-main__card-content .btn-simple {
    display: block;
    width: fit-content;
    margin-top: auto;
    margin-inline: auto;
}

.service-main__card:hover .service-detail-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* Service Accordion */
.service-accordion-toggle {
    cursor: pointer;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    width: fit-content;
}

.service-accordion-toggle:hover {
    background: var(--color-black);
    transform: translateY(-2px);
}

.service-accordion-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.service-accordion-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.service-accordion-toggle[aria-expanded="true"] {
    margin-bottom: 1rem;
}

.service-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.service-accordion-content.is-open {
    max-height: 1000px;
}

.service-accordion-inner {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.service-accordion-inner p {
    margin-bottom: 1rem;
}

.service-accordion-inner p:last-child {
    margin-bottom: 0;
}

/* Sub Service Grid - 2 columns */
.service__grid {
    display: grid;
    gap: 2.8rem;
    justify-content: center;
}

.service__grid:has(.service__card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.service__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service__card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.service__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service__card:hover .service__card-image img {
    transform: scale(1.1);
}

.service__card-content {
    padding: 1.3rem;
    background-color: #bdbdbd;
}

.service__card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
}

.service__card-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ============================================
   Footer Enhancements
============================================ */

.footer {
    background-color: var(--color-black);
    color: #888;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
}

.footer__logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    text-align: right;
}

.footer__company-name {
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer__address,
.footer__hours,
.footer__contact {
    font-size: 1rem;
    line-height: 1.6;
}

.footer__copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* ============================================
   Responsive Updates
============================================ */

@media (max-width: 768px) {

    /* Service Main Grid - スマホでは1列 */
    .service-main__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .service-main__card-content h3 {
        font-size: 1.2rem;
    }

    .service-accordion-toggle {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    /* Service Sub Grid - スマホでは1列 */
    .service__grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 100%;
    }

    /* おうちメンテナンスグリッド - スマホでは1列 */
    .section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 金沢屋メニュー価格表 - スマホでは1列 */
    .section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .strength__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .works__grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        align-items: center;
    }

    .footer__info {
        flex-direction: column;
        gap: 2rem;
    }

    .footer__details {
        align-items: flex-start;
        text-align: left;
    }

    /* コンテナのパディング調整 */
    .container {
        padding: 0 1rem;
    }

    /* セクションのパディング調整 */
    .section {
        padding: 3rem 0;
    }

    /* ヘッダー調整 */
    .header__logo img {
        height: 45px;
    }

    /* ヒーローセクション */
    .hero__content h1 {
        font-size: 1.2rem;
    }

    .hero__content p {
        font-size: 1rem;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 1.5rem;
    }

    /* ボタンサイズ調整 */
    .btn,
    .btn-simple {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* ニュース一覧 */
    .news-item {
        flex-direction: column;
    }

    .news-item__date {
        margin-bottom: 0.5rem;
    }

    /* テーブル調整 */
    .company-table th,
    .company-table td {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .company-table th {
        width: 30%;
    }

    /* サービスページの製品グリッド - 外まわりと内窓 */
    section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* サービスページのヘッダー調整 */
    section[style*="padding-top: calc(var(--header-height)"] h1 {
        font-size: 1.6rem !important;
    }

    section[style*="padding-top: calc(var(--header-height)"] p {
        font-size: 0.9rem !important;
    }

    /* 画像の高さ調整 */
    section div[style*="height: 400px"] img {
        height: 250px !important;
    }

    /* パディング調整 */
    section div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    section div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }

    .contact__inner .section-title {
        font-size: 1.8rem;
    }
}

/* ============================================
   Subpage Layout
============================================ */

.page-header {
    margin-top: var(--header-height);
    background-color: var(--color-bg-light);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Company Profile
============================================ */

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.company-table th {
    width: 30%;
    background-color: var(--color-bg-light);
    font-weight: 700;
}

@media (max-width: 768px) {

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }

    .company-table td {
        padding-top: 0;
    }
}

/* ============================================
   Footer Links
============================================ */

.footer__links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer__links a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .footer__links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

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

/* ============================================
   Modal (金沢屋メニュー)
============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.modal-close:hover {
    color: var(--color-black);
}

/* 金沢屋メニュー専用スタイル */
.kanazawaya-menu .menu-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
}

.kanazawaya-menu .menu-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.kanazawaya-menu .menu-subtitle {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.menu-category {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.menu-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.menu-category-header .menu-note {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.8rem 1rem;
    background-color: var(--color-white);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item.highlight {
    border-left: 3px solid var(--color-accent);
}

.menu-item.special {
    background-color: #fff8e1;
    border-left: 3px solid #ffa726;
}

.item-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-en);
}

.item-price .tax {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-left: 0.3rem;
}

.menu-footer {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--color-accent);
}

.menu-notes {
    margin-bottom: 1.5rem;
}

.menu-notes p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.menu-notes p strong {
    color: var(--color-accent);
    font-weight: 700;
}

.menu-size-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.menu-size-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        max-width: 95%;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kanazawaya-menu .menu-title {
        font-size: 1.5rem;
    }

    .menu-category {
        padding: 1.5rem;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .item-price {
        font-size: 1rem;
    }
}

.btn-simple.kanazawaya-menu-btn {
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--color-black);
}

/* ============================================
   Products Section
============================================ */

.products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.products__item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: block;
    text-decoration: none;
}

.products__item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.products__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.products__item:hover img {
    transform: scale(1.1);
}

.products__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.85), rgba(17, 17, 17, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    padding: 2rem;
    text-align: center;
}

.products__item:hover .products__overlay {
    opacity: 1;
}

.products__overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.products__overlay p {
    font-size: 1rem;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    color: var(--color-white);
}

@media (max-width: 768px) {
    .products__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   Service Detail Slideshow
============================================ */

.service-slideshow {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-slideshow__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-slideshow__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.service-slideshow__slide.active {
    opacity: 1;
    z-index: 1;
}

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

/* Slideshow Controls */
.service-slideshow__prev,
.service-slideshow__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.service-slideshow__prev:hover,
.service-slideshow__next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.service-slideshow__prev {
    left: 1rem;
}

.service-slideshow__next {
    right: 1rem;
}

/* Slideshow Indicators */
.service-slideshow__indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.service-slideshow__indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.service-slideshow__indicator.active {
    background-color: var(--color-white);
}

@media (max-width: 768px) {
    .service-slideshow {
        height: 250px;
    }

    .service-slideshow__prev,
    .service-slideshow__next {
        padding: 0.7rem;
        font-size: 1rem;
    }

    .service-slideshow__prev {
        left: 0.5rem;
    }

    .service-slideshow__next {
        right: 0.5rem;
    }

}

/* ============================================
   Service Detail Page
============================================ */

.service-page-section {
    padding-top: calc(var(--header-height) + 3rem);
}

.service-detail-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.service-detail-text {
    flex: 1;
    order: 2;
}

.service-detail-image {
    flex: 0 0 45%;
    order: 1;
}

.service-detail__en-title {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.service-detail__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.service-detail__desc {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-light);
}

.service-section {
    margin-bottom: 5rem;
}

.service-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
}

.service-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-item-card {
    padding: 2rem;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    border: 2px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-item-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-item-card__icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-right: 1rem;
    flex-shrink: 0;
}

.service-item-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.service-item-card__desc {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.service-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-black) 100%);
    padding: 4rem 0;
}

.service-cta__title {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-cta__text {
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

.catalog-section {
    margin-bottom: 5rem;
}

.catalog-section__img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-detail-header {
        flex-direction: column;
        gap: 2rem;
    }

    .service-detail-text {
        order: 1;
    }

    .service-detail-image {
        order: 2;
        flex: 1 1 auto;
        width: 100%;
        min-height: 250px;
    }

    .service-item-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .service-detail__title {
        font-size: 1.5rem;
    }

    .service-cta__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   PC時のフォントサイズ拡大
============================================ */

@media (min-width: 769px) {
    .footer__company-name {
        font-size: 1.7rem;
    }

    .footer__address,
    .footer__hours,
    .footer__contact {
        font-size: 1.15rem;
    }
}

/* ============================================
   Section Heading Utility
============================================ */

.section-heading {
    margin-bottom: 4rem;
}

.section-heading--sm {
    margin-bottom: 3rem;
}

/* ============================================
   Contact Section Extras
============================================ */

.contact__tel-wrap {
    margin-top: 2rem;
}

.news__more {
    margin-top: 3rem;
}

/* ============================================
   Price List Section
============================================ */

.price-section {
    background-color: var(--color-bg-light);
    padding: 5rem 0;
}

.price-list-container {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.price-category__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

.price-category__subtitle {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table tr {
    border-bottom: 1px solid var(--color-border);
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 0.8rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
    vertical-align: top;
}

.price-tax {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.price-subnote {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
    font-weight: 400;
}

.price-note {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    line-height: 1.6;
}

.price-size-box {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.price-size-box__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
}

.price-size-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-size-list {
    flex: 1;
    min-width: 250px;
}

.price-size-label {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.price-size-items {
    display: grid;
    gap: 1rem;
}

.price-size-item {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0.5rem;
    background-color: var(--color-white);
    border-radius: 4px;
    font-size: 0.7rem;
}

.price-size-item span:last-child {
    font-weight: 600;
}

.price-inquiry {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }

    .price-list-container {
        padding: 2rem 1.5rem;
    }
}