/*
Theme Name: Swell Child
Template: swell
Version:    1.1.0
*/

:root {
    --brand-gradient: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    --brand-gradient-start: #3AB099;
    --brand-gradient-mid: #4ED0E1;
    --brand-gradient-end: #3AADE3;
    /* SWELLの既存の:root変数はそのまま残すようにしてください */
}

/* Global Box Sizing */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Custom CSS */ 

.l-header__bar {
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3)!important;
}

/* Front Page Sections */
.p-frontPage__content {
	/* Add general spacing/layout for content area if needed */
}

.p-frontPage__sectionHeader {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 25px; /* Adjusted spacing */
}

.p-frontPage__sectionTitle {
	font-size: 18px; /* Adjusted font size */
	font-weight: bold;
	margin: 0;
}

.p-frontPage__sectionTitle .sub-title {
	font-size: 12px; /* Adjusted font size */
	font-weight: normal;
	margin-left: 12px;
	color: #444; /* Darker grey */
}

.p-frontPage__readMore {
	font-size: 13px;
	color: #777; /* Slightly lighter color */
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid #ddd; /* Lighter underline */
	padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}
.p-frontPage__readMore:hover {
	color: #000;
	border-bottom-color: #333;
}

/* HOT TOPICS Section - Slider Styles */
.p-frontPage__hotTopics {
	margin-bottom: 60px; /* Increased bottom margin */
}

.p-hotTopics__sliderContainer {
	position: relative;
}

/* Main Swiper */
.p-hotTopics__mainSwiper {
	width: 100%;
	margin-bottom: 10px; /* Further reduced space */
	/* overflow: visible; */ /* Allow shadow to overflow - REMOVED FOR TESTING */
    /* padding: 5px; */ /* Add padding to make space for shadow - REMOVED FOR TESTING */
    /* margin-left: -5px; */ /* Compensate for padding - REMOVED FOR TESTING */
    /* margin-right: -5px; */ /* Compensate for padding - REMOVED FOR TESTING */
}

.p-hotTopics__mainSwiper .swiper-slide {
    /* overflow: visible; */ /* Allow card shadow within slide to be visible - REMOVED FOR TESTING */
    /* margin-right: 0 !important; Add this line to override inline style */
}

/* Card Styles incl. Shadow - Applied to ARTICLE */
.p-hotTopics__item.-large {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Contain children */
    display: block;
}

/* Link is purely for layout and linking */
.p-hotTopics__item.-large .p-hotTopics__itemLink {
    display: flex;
    align-items: stretch;
    gap: 30px;
    text-decoration: none;
	color: inherit;
    /* Remove all visual styles from link */
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

/* Figure (Image container) as flex item */
.p-hotTopics__item.-large .p-hotTopics__thumbnail {
	margin-bottom: 0;
    flex: 0 0 52%;
    display: block;
    position: relative;
    /* Removed explicit radius here as parent article handles clipping */
    /* border-radius: 8px 0 0 8px; */
    /* Removed overflow here as parent article handles clipping */
    /* overflow: hidden; */
}

.p-hotTopics__item.-large .p-hotTopics__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content area - Relative positioning context */
.p-hotTopics__item.-large .p-hotTopics__content {
    padding: 25px 30px 25px 0; /* Increased bottom padding for absolute positioned element */
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative; /* Context for absolute positioning */
}

/* Meta Wrap for Label and Date */
.p-hotTopics__metaWrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px; /* Adjusted space */
    width: 100%; /* Ensure it takes full width */
}

/* Category Label */
.p-hotTopics__categoryLabel {
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0; /* Prevent shrinking */
	padding: 5px 10px;
    font-size: 12px;
	font-weight: 500;
	line-height: 1;
	border-radius: 4px;
	color: #fff;
	background-color: #555;
}

.p-hotTopics__item.-large .p-hotTopics__date {
    font-size: 12px; /* Smaller font size */
	color: #bbb; /* Lighter color */
    margin-bottom: 0;
    text-align: right; /* Align date text to the right */
    margin-left: auto; /* Ensure it stays pushed right */
}

.p-hotTopics__item.-large .p-hotTopics__title {
	font-size: 21px; /* Adjusted size */
	line-height: 1.55;
	font-weight: bold;
	margin: 0 0 15px 0;
	color: #222;
    text-align: left;
    transition: color 0.3s ease;
}

.p-hotTopics__itemLink.-is-card:hover .p-hotTopics__title {
    color: #3aade3;
}

/* Excerpt */
.p-hotTopics__excerpt {
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    margin-top: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px; /* Space below excerpt */
    height: auto; /* Allow natural height based on line clamp */
    min-height: calc(1.65em * 2); /* Set min-height based on line clamp */
}

/* Read More TEXT element style - Absolute position bottom right */
.p-hotTopics__readMoreText {
    display: inline-block;
    position: absolute; /* Position absolutely */
    bottom: 8px; /* Distance from bottom edge */
    right: 8px; /* Distance from right edge (respecting parent padding) */
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: none;
    cursor: pointer;
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 1.2em;
}

.p-hotTopics__readMoreText .arrow {
    position: absolute;
    right: 0px;
    bottom: 3px;
    font-weight: normal;
    display: inline-block;
    color: #3AB099; /* Start color of gradient */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Thumbnail Swiper */
.p-hotTopics__thumbSwiper {
	width: 100%;
	height: auto;
	padding: 5px 0; /* Remove horizontal padding */
    /* Add box-sizing if not inherited globally */
    box-sizing: border-box;
}

.p-hotTopics__thumbSwiper .swiper-slide {
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.3s ease, border-color 0.3s ease;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	/* Width calculation for 6 slides with 5px gap (Adjust gap value if needed) */
	width: calc((100% - (5 * 5px)) / 6);
    box-sizing: border-box; /* Ensure padding/border are included in width */
}

.p-hotTopics__thumbSwiper .swiper-slide-thumb-active {
	opacity: 1;
	/* Remove border styles from here */
	/* border-width: 4px; */
	/* border-style: solid; */
	/* border-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) 1; */
	/* border-radius: 4px; */
	/* overflow: hidden; */
}

/* Apply border to the inner figure */
.p-hotTopics__thumbSwiper .swiper-slide-thumb-active .p-hotTopics__thumbnail.-thumb {
	border-width: 3px; /* Adjust thickness if needed */
	border-style: solid;
	border-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) 1;
	border-radius: 4px; /* Match image radius */
	overflow: hidden; /* Clip potential overflow inside figure */
}

.p-hotTopics__item.-thumb {
	/* Styles for the content within a thumbnail slide */
	display: block;
}

.p-hotTopics__thumbnail.-thumb img {
	width: 100%;
	height: auto; /* Let WP image size dictate height */
    /* aspect-ratio: 16 / 10; Removed */
	object-fit: cover; /* Keep cover */
	display: block;
}

/* General Item Link Styles */
.p-hotTopics__item a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.p-hotTopics__item a:hover .p-hotTopics__title {
	color: #0056b3; /* Darker blue on hover */
}

/* General Link Transition */
a {
    transition: all 0.3s ease;
}

/* Remove old flex layout styles */
/*
.p-hotTopics__container {
	display: flex;
	gap: 20px;
}
.p-hotTopics__left {
	flex: 2;
}
.p-hotTopics__right {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.p-hotTopics__item.-small ... { ... }
*/ 

/* Responsive styles */
@media (max-width: 768px) {
    .p-hotTopics__item.-large {
        /* Styles remain the same */
    }
    .p-hotTopics__item.-large .p-hotTopics__itemLink {
        flex-direction: column;
        gap: 0;
        align-items: initial; /* Reset stretch alignment for column */
    }
    .p-hotTopics__item.-large .p-hotTopics__thumbnail {
        flex-basis: auto;
        width: 100%;
        height: 220px;
        /* No radius needed here because parent article clips */
    }
    .p-hotTopics__item.-large .p-hotTopics__content {
        padding: 20px 20px 50px 20px; /* Adjust mobile padding, ensure bottom space */
    }
    .p-hotTopics__readMoreText {
        bottom: 20px; /* Adjust bottom position for mobile */
        right: 20px; /* Adjust right position for mobile */
    }
    /* ... other responsive rules ... */
} 

/* Card is now the main clickable link */
.p-hotTopics__itemLink.-is-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    background-color: #fff;
    transition: background-color 0.3s ease;
    height: 100%;
    position: relative; /* Context for pseudo-element */
    z-index: 1;
    box-shadow: none; /* Shadow handled by ::after */
    overflow: hidden; /* Re-apply overflow to clip content */
}
.p-hotTopics__itemLink.-is-card:hover {
    background-color: #f8f8f8;
}

/* Floating Bottom Shadow using Pseudo-element */
.p-hotTopics__itemLink.-is-card::after {
    content: '';
    position: absolute;
    bottom: -18px; /* Position below the card */
    left: 15%;
    width: 70%;
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1; /* Behind the card link */
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.p-hotTopics__itemLink.-is-card:hover::after {
    opacity: 0.8;
    transform: translateY(4px) scale(1.03);
}

/* Article is Flex container - No overflow needed here */
.p-hotTopics__item.-large {
    display: flex;
    align-items: stretch;
    gap: 30px;
    height: 100%;
    position: relative;
    z-index: 2;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible; /* Let parent link handle clipping */
}

/* Figure */
.p-hotTopics__item.-large .p-hotTopics__thumbnail {
    flex: 0 0 52%;
    display: block;
    position: relative;
    /* No overflow/radius needed if parent link clips */
}

/* Title - Ensure no extra space */
.p-hotTopics__item.-large .p-hotTopics__title {
    font-size: 20px;
    line-height: 1.5;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #222;
    text-align: left;
    display: block;
}

/* Read More TEXT element style - Gradient Text */
.p-hotTopics__readMoreText {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: none;
    cursor: pointer;
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: absolute;
    bottom: 8px; /* Keep user's value */
    right: 5px;
    padding-right: 1.2em;
    transition: filter 0.3s ease; /* Add transition for filter */
}

.p-hotTopics__readMoreText .arrow {
    color: #3AB099;
    transition: transform 0.3s ease, color 0.3s ease;
}

.p-hotTopics__itemLink.-is-card:hover .p-hotTopics__readMoreText {
    filter: brightness(1.15); /* Slightly brighten text on hover */
}

.p-hotTopics__itemLink.-is-card:hover .p-hotTopics__readMoreText .arrow {
    transform: translateX(4px);
    color: #3AADE3;
}

/* Thumbnail Swiper Slide Width - Adjust for 6 columns */
.p-hotTopics__thumbSwiper .swiper-slide {
    /* ... existing styles ... */
    /* Width calculation for 6 slides with 5px gap (Adjust gap value if needed) */
    width: calc((100% - (5 * 5px)) / 6);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1023px) { /* Adjust breakpoint for 4 columns */
    .p-hotTopics__thumbSwiper .swiper-slide {
        width: calc((100% - (3 * 5px)) / 4); /* Width for 4 slides, 5px gap */
    }
}

@media (max-width: 767px) {
    /* Correct rule for HOT TOPICS item column layout */
    .p-hotTopics__item.-large {
        flex-direction: column;
        gap: 0; /* Adjust gap for column layout if needed */
    }

    /* REMOVE incorrect rule that targeted the link inside the item */
    /*
    .p-hotTopics__item.-large .p-hotTopics__itemLink {
        flex-direction: column;
        gap: 0;
        align-items: initial; 
    }
    */

    .p-hotTopics__item.-large .p-hotTopics__thumbnail {
        flex-basis: auto;
        width: 100%;
        height: 220px;
        /* No radius needed here because parent article clips */
    }
    .p-hotTopics__item.-large .p-hotTopics__content {
        padding: 20px 20px 50px 20px; /* Adjust mobile padding, ensure bottom space */
    }
    .p-hotTopics__readMoreText {
        bottom: 20px; /* Adjust bottom position for mobile */
        right: 20px; /* Adjust right position for mobile */
    }
    /* ... other mobile styles ... */

    /* --- HOT TOPICS Main Swiper (Force 1 column via CSS - Attempt 3) --- */
    /* Remove wrapper display block and slide float none */
    /*
    .p-hotTopics__mainSwiper .swiper-wrapper {
        display: block; 
    }
    */
    .p-hotTopics__mainSwiper .swiper-slide {
        /* width: 100% !important; */
        /* float: none !important; */ /* Removed */
        /* margin-right: 0 !important; Add this line to override inline style */
    }
    

    /* --- HOT TOPICS Thumb Swiper Slide Width --- */
    /* Restore */
    .p-hotTopics__thumbSwiper .swiper-slide {
        
        width: calc((100% - (3 * 10px)) / 3.5) !important;
    }
    

    /* --- ChatGPT Training CTA --- */
    .p-corpTraining__inner {
        flex-direction: column;
        padding: 30px 20px; /* Consistent padding */
        gap: 30px;
    }
    .p-corpTraining__content {
        text-align: center; /* Center title and button */
    }
    .p-corpTraining__title {
        font-size: 20px; /* Adjust size */
    }
    .p-corpTraining__list {
        text-align: left; /* Keep list items left aligned */
        margin-left: auto; /* Center the list block */
        margin-right: auto;
        max-width: 300px;
        margin-bottom: 25px; /* Add space below list */
    }
    .p-corpTraining__image {
        flex-basis: auto;
        width: 80%;
        max-width: 300px; /* Slightly smaller max width */
    }

    /* --- CATEGORIES (Main Content) - Increase Size --- */
    .p-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px; /* Slightly larger gap */
    }
    .p-categories__item {
        padding: 20px 10px; /* Adjust padding */
    }
    .p-categories__icon {
        width: 48px; /* Further increase icon size */
        height: 48px; /* Further increase icon size */
        margin-bottom: 12px;
    }
    .p-categories__name {
        font-size: 14px; /* Further increase text size */
    }
    .p-categories__tags a.tag-cloud-link {
        font-size: 12px !important; /* Make tags slightly smaller */
        padding: 4px 9px !important;
    }

    /* --- Sidebar Padding - Remove side padding --- */
    /* Restore */
    body.front-page .l-sidebar,
    body.home .l-sidebar {
        
        padding-left: 0 !important; 
        padding-right: 0 !important; 
        padding-top: 25px; 
        padding-bottom: 25px;
    }
    

    /* --- Footer List Alignment & Markers - Force Left Align --- */
    /* Restore */
    .p-footer__colTitle::after { 
        left: 50%;
        transform: translateX(-50%);
    }
    .p-footer__navList--cases {
        column-count: 1;
        text-align: left !important; 
    }
    .p-footer__siteNavList {
         columns: 1;
         text-align: left !important; 
         
         
         
     }

    .p-footer__navList li,
    .p-footer__siteNavList li {
         padding-left: 1.2em !important; 
         text-align: left !important; 
         position: relative;
    }
    .p-footer__navList--categories li, 
    .p-footer__navList--cases li { 
         text-align: left !important; 
         
         
         display: block; 
         width: auto;
    }

    .p-footer__navList li::before,
    .p-footer__siteNavList li::before {
         display: block !important; 
         position: absolute;
         left: 0;
         top: 0.35em; 
         
         font-size: 0.6em;
         background: linear-gradient(to right, #3AB099, #3AADE3);
         -webkit-background-clip: text;
         background-clip: text;
         color: transparent;
         content: '●';
         line-height: inherit;
    }

     
     

    

} /* End @media (max-width: 767px) */

/* ... Rest of styles */ 

/* NEWS/TREND Section */
.p-frontPage__newsTrend {
    margin-bottom: 60px; /* Adjust spacing */
}

.p-newsTrend__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-newsTrend__item {
    border-bottom: 1px solid #eee; /* Separator line */
}

.p-newsTrend__itemLink {
    display: flex;
    align-items: baseline;
    padding: 10px 0; /* Vertical padding */
    text-decoration: none;
    color: inherit;
}

.p-newsTrend__itemLink:hover .p-newsTrend__title {
    color: #3aade3; /* Example hover color */
}

.p-newsTrend__date {
    font-size: 14px;
    margin-right: 20px;
    flex-shrink: 0; 
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.p-newsTrend__title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s ease; /* Smooth hover transition */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* ... existing responsive rules ... */

    .p-newsTrend__itemLink {
        padding: 12px 0;
    }
    .p-newsTrend__date {
        font-size: 13px;
        margin-right: 15px;
    }
    .p-newsTrend__title {
        font-size: 15px;
    }
}

/* ... rest of styles ... */ 

/* CASES Section */
.p-frontPage__cases {
    margin-bottom: 60px;
    /* position: relative; Remove this */
}

/* New wrapper for tabs and arrows */
.p-cases__tabsWrapper {
    position: relative;
    margin-bottom: 30px; /* Keep bottom margin here */
}

.p-cases__tabsSwiperContainer {
    position: relative; /* Keep relative for inner elements */
    /* Remove margin-bottom, handled by wrapper */
    margin-bottom: 0;
    overflow: hidden; /* Add back overflow hidden for the tabs */
}

/* Tabs - Swiper Wrapper (UL) */
.p-cases__tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Swiper sets this, but good fallback */
    gap: 4px; /* Further reduced gap */
    /* Add right padding to ensure last item is fully visible */
    padding-right: 100px; /* Adjust value as needed */
}

/* Tabs - Swiper Slide (LI) */
.p-cases__tabItem {
    width: auto !important; /* Let content determine width */
    flex-shrink: 0;
}

.p-cases__tabItem a {
    display: inline-block;
    padding: 4px 12px; /* Smaller padding */
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(to right, #fff, #fff) padding-box,
                linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) border-box;
    color: #666;
    text-decoration: none;
    font-size: 12px; /* Keep smaller font */
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.p-cases__tabItem.-is-active a,
.p-cases__tabItem a:hover {
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    border-color: transparent;
    color: #fff;
}

/* Grid Layout */
.p-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Slightly reduced gap */
}

/* Grid Item & Card Design */
.p-cases__gridItem {
    background-color: #fff;
    border-radius: 8px; /* Consistent radius */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.p-cases__gridItem:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.p-cases__itemLink {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%; /* Ensure link fills item */
}

.p-cases__thumbnail {
    position: relative; /* Context for term label */
}
.p-cases__thumbnail img {
    width: 100%;
    height: 190px; /* Adjusted height */
    object-fit: cover;
    display: block;
}

.p-cases__itemContent {
    padding: 18px; /* Adjust padding */
}

.p-cases__title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Loading/Error Messages */
.p-cases__loading,
.p-cases__error,
.p-cases__noResults {
    grid-column: 1 / -1; /* Span all columns */
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 959px) { /* Tablet */
    .p-cases__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 767px) {
    .p-cases__tabs {
        gap: 6px;
    }
    .p-cases__tabItem a {
        font-size: 12px;
        padding: 5px 12px;
    }
    .p-cases__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .p-cases__thumbnail img {
        height: 210px;
    }
}

/* CASES Section - Tab Swiper Navigation */
.p-cases__tabNav {
    position: absolute;
    top: 50%; /* Position relative to .p-cases__tabsWrapper */
    transform: translateY(-50%);
    width: 24px; /* Keep size, adjust if needed */
    height: 24px; /* Keep size, adjust if needed */
    margin-top: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #333 !important; Remove color, handled by SVG */
    border-radius: 0;
    transition: opacity 0.3s ease; /* Update transition */
    background-image: none !important;
    background-color: transparent !important;
    opacity: 1; /* Default opacity */
}

/* Increase specificity to override Swiper defaults */
.swiper-button-prev.p-cases__tabNav svg,
.swiper-button-next.p-cases__tabNav svg {
    /* width: 10px; Slightly larger SVG size */
    height: 16px; /* Slightly larger SVG size */
    display: block;
    /* stroke: currentColor; Remove stroke, handled by SVG */
}

.p-cases__tabNav.-prev {
    display: none;
}

.p-cases__tabNav.-next {
    display: none;
}

/* Ensure no default icon font is displayed */
.p-cases__tabNav::after,
.p-cases__tabNav::before {
    content: none !important;
    display: none !important; /* Also hide the pseudo-element */
}

.p-cases__tabNav.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Hover effect */
.p-cases__tabNav:not(.swiper-button-disabled):hover {
     /* color: #007bff; Remove color hover */
     opacity: 0.7; /* Simple opacity hover effect */
}

/* Remove unnecessary overflow override */
/*
.l-mainContent__inner,
.l-mainContent {
    overflow: visible !important; 
}
*/ 

/* --- COLUMNS Section --- */
.p-frontPage__columns {
    margin-bottom: 60px;
}

.p-columns__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 25px; /* Row gap, Column gap */
}

.p-columns__item {
    /* Optional: Add background/border if needed */
    /* background-color: #f9f9f9; */
    /* border: 1px solid #eee; */
    /* border-radius: 6px; */
    overflow: hidden; /* If using border-radius */
}

.p-columns__itemLink {
    display: flex;
    gap: 18px; 
    text-decoration: none;
    color: inherit;
}

.p-columns__itemLink:hover .p-columns__title {
    color: #3aade3;
}

.p-columns__thumbnail {
    flex: 0 0 150px; /* Fixed width for thumbnail */
    margin: 0;
}

.p-columns__thumbnail img {
    width: 100%;
    /* height: 100px; Remove fixed height */
    aspect-ratio: 16 / 9; /* Set aspect ratio */
    height: auto; /* Allow height to adjust based on width and aspect ratio */
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.p-columns__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-columns__categoryLabel {
    /* Reuse or adapt styles from .p-hotTopics__categoryLabel */
    display: inline-block;
    align-self: flex-start; /* Align label to the left */
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    border-radius: 3px;
    color: #fff;
    background-color: #888; /* Default background if ACF fields not set */
}

.p-columns__title {
    font-size: 14px; /* Adjusted size */
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 8px 0;
    color: #333;
    transition: color 0.3s ease; /* Add transition */
}

/* Remove Excerpt styles */
/*
.p-columns__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
*/

/* Responsive adjustments for COLUMNS */
@media (max-width: 767px) {
    .p-columns__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }
    .p-columns__thumbnail {
       flex-basis: 120px; /* Adjust thumbnail size on mobile */
    }
    .p-columns__thumbnail img {
        height: 80px;
    }
    .p-columns__title {
        font-size: 15px;
    }
} 

/* --- CATEGORIES Section --- */
.p-frontPage__categories {
    margin-bottom: 60px;
}

.p-categories__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    gap: 8px;
    margin-bottom: 30px; /* Space before potential tags */
}

.p-categories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 8px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.p-categories__item:hover {
    background-color: #f8f8f8;
    border-color: #ddd;
    transform: translateY(-3px);
}

.p-categories__icon {
    margin-bottom: 12px;
    width: 64px; /* Adjust icon container size */
    height: 64px; /* Adjust icon container size */
}

.p-categories__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.p-categories__name {
    font-size: 16px; /* Adjusted size */
    line-height: 1.4;
    font-weight: bold; 
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* CATEGORIES Section - Tag Cloud */
.p-categories__tags {
    text-align: left;
}

/* Target tag links directly inside .p-categories__tags */
.p-categories__tags a.tag-cloud-link {
    display: inline-block !important;
    padding: 6px 14px !important; /* Adjust padding slightly for new font size */
    margin: 0 6px 10px 0 !important; /* Adjust bottom margin */
    border-radius: 4px !important;
    border: 1px solid transparent !important; /* Fallback border, transparent initially */
    /* Gradient Border using border-image */
    border-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) 1 !important;
    background-color: #fff !important; /* White background */
    /* Gradient Text */
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important; /* Make text transparent to show gradient */
    font-size: 14px !important; /* Set font size to 14px */
    font-weight: bold !important; /* Set font weight to bold */
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-image 0.2s ease;
    text-align: center !important;
    line-height: 1.6 !important; /* Adjust line-height for new font size */
}

.p-categories__tags a.tag-cloud-link:hover {
    /* Gradient Background on hover */
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) !important;
    background-clip: padding-box !important; /* Reset background-clip for background */
    color: #fff !important; /* White text on hover */
    border-color: transparent !important; /* Hide border by making it transparent */
    border-image: none !important; /* Remove border image on hover */
}

/* Styles for potential Tag Cloud */
.p-categories__subHeader {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Override default tag cloud container styling if necessary */
.tagcloud {
    /* Remove line-height override if not needed */
    /* line-height: normal; */
}

.tagcloud a {
    display: inline-block; /* Allow tags to sit side-by-side */
    padding: 5px 12px; /* Adjust padding */
    margin: 0 6px 8px 0; /* Add bottom margin for spacing */
    border-radius: 4px; /* Small border radius */
    border: 1px solid #a0d8ef; /* Light blue border like comp */
    background-color: #fff; /* White background */
    color: #337ab7; /* Blue text color like comp */
    font-size: 12px !important; /* Adjust font size */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: center; /* Center text within the tag */
    /* Remove border-bottom */
}

/* Remove last-child rule for border */
/*
.p-categories__tags .tagcloud a:last-child {
    border-bottom: none;
}
*/

.tagcloud a:hover {
    background-color: #eaf6fc; /* Light blue background on hover */
    border-color: #7ecdee; /* Slightly darker blue border on hover */
    color: #23527c; /* Darker blue text on hover */
}

/* Responsive adjustments for CATEGORIES */
@media (max-width: 959px) { /* Tablet */
    .p-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .p-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px; /* Slightly larger gap */
    }
    .p-categories__item {
        padding: 20px 10px; /* Adjust padding */
    }
    .p-categories__icon {
        width: 48px; /* Further increase icon size */
        height: 48px; /* Further increase icon size */
        margin-bottom: 12px;
    }
    .p-categories__name {
        font-size: 14px; /* Further increase text size */
    }
    .p-categories__tags a.tag-cloud-link {
        font-size: 12px !important; /* Make tags slightly smaller */
        padding: 4px 9px !important;
    }
} 

/* --- 法人向けChatGPT研修 Section --- */
.p-frontPage__corpTraining {
    margin-bottom: 60px;
}

.p-corpTraining__inner {
    display: flex;
    align-items: center;
    gap: 40px; /* Adjust gap between content and image */
    padding: 40px; /* Padding inside the border */
    border: 2px solid transparent; /* Transparent fallback border */
    border-radius: 8px;
    /* Gradient Border */
    border-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) 1;
    /* Gradient Background with 10% opacity */
    background: linear-gradient(to right, rgba(58, 176, 153, 0.1), rgba(78, 208, 225, 0.1), rgba(58, 173, 227, 0.1));
}

.p-corpTraining__content {
    flex: 1; /* Allow content to take available space */
    text-align: left;
}

.p-corpTraining__title {
    font-size: 24px; /* Adjust title size */
    font-weight: bold;
    margin: 0 0 20px 0;
    /* Gradient Text */
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Ensures gradient applies correctly */
}

.p-corpTraining__list {
    list-style: disc;
    margin: 0 0 20px 20px; /* Indent list */
    padding: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.p-corpTraining__text {
    font-size: 15px;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.7;
}

.p-corpTraining__button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px; /* Rounded button */
    /* Gradient Background */
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.3s ease;
}

.p-corpTraining__button:hover {
    opacity: 0.85;
}

.p-corpTraining__image {
    flex: 0 0 40%; /* Adjust image width percentage */
    margin: 0;
}

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

/* Responsive Adjustments for CTA */
@media (max-width: 767px) {
    .p-corpTraining__inner {
        flex-direction: column;
        padding: 30px 20px; /* Consistent padding */
        gap: 30px;
    }
    .p-corpTraining__content {
        text-align: center; /* Center title and button */
    }
    .p-corpTraining__title {
        font-size: 20px; /* Adjust size */
    }
    .p-corpTraining__list {
        text-align: left; /* Keep list items left aligned */
        margin-left: auto; /* Center the list block */
        margin-right: auto;
        max-width: 300px;
        margin-bottom: 25px; /* Add space below list */
    }
    .p-corpTraining__image {
        flex-basis: auto;
        width: 80%;
        max-width: 300px; /* Slightly smaller max width */
    }
} 

/* --- Header Navigation --- */
/* Style the main nav container if needed */
#gnav {
    margin-left: auto;
}

/* Style the main UL */
#gnav > ul.c-gnav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px; /* Increased spacing between main menu items */
    align-items: center; /* Align items vertically */
}

/* Style main menu items (Links) */
#gnav > ul.c-gnav > li.menu-item > a {
    /* display: flex; /* Remove flex */
    /* align-items: center; /* Remove align-items */
    display: inline-block; /* Ensure it behaves like inline-block */
    padding: 25px 0; 
    text-decoration: none;
    position: relative; 
    color: #333; 
    font-weight: bold !important; 
}

/* Disable ONLY SWELL's default link styling/after elements on non-parent items */
body #gnav > ul.c-gnav > li.menu-item:not(.menu-item-has-children) > a::after {
    display: none !important; 
    content: none !important;
}

/* Style the text span */
#gnav > ul.c-gnav > li.menu-item > a .ttl {
    font-size: 16px !important;
    color: inherit;
    transition: color 0.2s ease;
    display: inline-block;
    margin-right: 6px;
}

/* --- Dropdown Indicator Icon - Attempt 4 --- */
/* Maximum Specificity, Border Color/Width Method */
body #gnav > ul.c-gnav > li.menu-item.menu-item-has-children > a::after {
    content: '' !important;             /* Ensure content is empty */
    display: inline-block !important; /* Make it display */
    width: 0 !important;                /* Essential for border triangle */
    height: 0 !important;               /* Essential for border triangle */
    vertical-align: middle !important;  /* Align with text (adjust if needed) */
    border-style: solid !important;     /* Ensure border style is solid */
    border-width: 5px 4px 0 4px !important; /* top(5px), sides(4px), bottom(0) */
    border-color: #aaa transparent transparent transparent !important; /* Creates downward triangle */
    margin-left: 6px !important;        /* Space after text */
    background-color: transparent !important; /* Ensure no background interferes */
    transform: rotate(0deg) !important; /* Ensure default rotation */
    transform-origin: center center !important;
    opacity: 1 !important; /* Ensure visible */
    /* transition: none !important; /* Remove transition temporarily */
    position: static !important; /* Remove relative positioning test */
    top: auto !important;
}

/* Hover effect - Corrected styles */
body #gnav > ul.c-gnav > li.menu-item.menu-item-has-children > a:hover::after {
    border-color: #3AB099 transparent transparent transparent !important; /* Change top color */
    transform: rotate(180deg) !important;
    /* transition: transform 0.2s ease, border-color 0.2s ease; /* Add transition later */
}

/* Underline effect for hover/current - Applies to ALL top-level items */
#gnav > ul.c-gnav > li.menu-item > a::before {
    content: '';
    position: absolute;
    bottom: 10px; 
    left: 0;
    width: 100%;
    height: 2px; 
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: left;
}

/* Hover & Current State for Top Level Items - Text Gradient - Applies to ALL */
#gnav > ul.c-gnav > li.menu-item > a:hover .ttl,
#gnav > ul.c-gnav > li.current-menu-item > a .ttl,
#gnav > ul.c-gnav > li.current-menu-ancestor > a .ttl {
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important; 
}

/* Hover & Current State for Top Level Items - Underline Visibility - Applies to ALL */
#gnav > ul.c-gnav > li.menu-item > a:hover::before,
#gnav > ul.c-gnav > li.current-menu-item > a::before,
#gnav > ul.c-gnav > li.current-menu-ancestor > a::before {
    opacity: 1;
    transform: scaleX(1);
}

/* --- Sub Menu Base Styles --- */
#gnav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Slightly stronger shadow */
    border-radius: 0 0 8px 8px; /* Slightly larger radius */
    padding: 0; /* Remove base padding, apply per submenu type */
    overflow: hidden; /* Needed for border-radius */
    border: 1px solid #ddd; /* Add a subtle border */
    border-top: none; /* Remove top border added before */
    list-style: none;
    margin: 0;
    z-index: 100;
    min-width: 300px; /* Increased base min-width again */
}

/* Show sub menu on parent hover */
#gnav > ul.c-gnav > li.menu-item-has-children:hover > .sub-menu {
    /* display: block; */ /* Remove block, use flex/grid directly */
}

/* Sub Menu Item Styles (General - Less specific now) */
#gnav .sub-menu li.menu-item a {
    /* General reset/defaults if needed, specific styles below */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #444;
}

/* --- Category Sub Menu --- */
#gnav .sub-menu.-categories {
    display: flex !important; /* Override display */
    min-width: 680px; /* Adjust width as needed */
    padding: 0; /* Padding around the flex items */
    gap: 0; /* Gap between category items */
    justify-content: center;
    align-items: stretch; /* Ensure items have same height */
    background-color: #fff;
    border:none;
}

#gnav .sub-menu.-categories li.menu-item {
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    flex: 1; /* Allow items to grow */
    min-width: 130px; /* Prevent items from becoming too small */
}

#gnav .sub-menu.-categories li.menu-item a {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center;
    padding: 16px 8px; /* Padding inside each item */
    height: 100%;
    border-radius: 6px;
    gap: 4px;
}

#gnav .sub-menu.-categories li.menu-item a::before {
    display: none; 
}

#gnav .sub-menu.-categories li.menu-item a:hover {
    background-color: #f9f9f9;
    border-color: #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #444; /* Reset color for gradient */
}

#gnav .sub-menu.-categories li.menu-item a:hover .-catName {
    /* Keep gradient on hover */
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#gnav .sub-menu.-categories .-catIcon {
    width: 48px; /* Adjust icon size */
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

#gnav .sub-menu.-categories .-catName {
    flex-grow: 0; /* Don't allow name to grow */
    font-size: 13px; /* Adjust font size */
    font-weight: bold;
    line-height: 1.3;
    /* Gradient Text */
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Cases Sub Menu --- */
#gnav .sub-menu.-cases {
    display: grid !important; /* Ensure grid display */
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 15px; /* Reduced row gap */
    min-width: 680px; /* Wider cases dropdown */
    padding: 15px 20px; /* Adjust padding */
    background: linear-gradient(to bottom, #fff, #f9f9f9); /* Subtle gradient bg */
}

#gnav .sub-menu.-cases li.menu-item {
    margin: 0;
    padding: 0;
}

#gnav .sub-menu.-cases li.menu-item a {
    display: block; /* Change back to block */
    padding: 10px 15px 10px 20px; /* Adjust L/R padding slightly for line */
    white-space: normal;
    text-align: left;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
    position: relative;
    background: transparent;
    color: #444;
    transition: color 0.2s ease, background-color 0.2s ease; /* Add transitions back */
}
#gnav .sub-menu.-cases li.menu-item:last-child a {
    border-bottom: none;
}

/* Re-add vertical line on hover */
#gnav .sub-menu.-cases li.menu-item a::before {
    content: '';
    display: block; /* Make it visible */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #3AB099, #4ED0E1, #3AADE3);
    opacity: 0;
    transition: height 0.2s ease, opacity 0.2s ease;
}

/* Add gradient underline on hover */
#gnav .sub-menu.-cases li.menu-item a::after {
    content: '';
    position: absolute;
    left: 15px; /* Match padding-left */
    bottom: 5px; /* Position underline */
    width: calc(100% - 30px); /* Match padding L/R */
    height: 1px; /* Underline thickness */
    background: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: left;
}

#gnav .sub-menu.-cases li.menu-item a:hover {
    background-color: #f8f8f8; /* Subtle background hover */
    color: #333; /* Restore normal text color on hover */
    /* Remove text gradient styles */
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

#gnav .sub-menu.-cases li.menu-item a:hover::before {
    height: 70%; /* Show gradient line */
    opacity: 1;
}
#gnav .sub-menu.-cases li.menu-item a:hover::after {
    opacity: 1; /* Show gradient underline */
    transform: scaleX(1);
}

/* ... rest of styles ... */ 

/* ===============================================
 * Sidebar Styles (Based on design.jpg)
 * =============================================== */

/* Sidebar Container */
.l-sidebar {
    padding: 25px 20px; /* Adjust padding based on visual guess */
    /* background-color: #f9f9f9; /* Uncomment if a light grey background is needed */
}

/* Common Widget Styles */
.l-sidebar .p-sidebarWidget {
    margin-bottom: 45px; /* Increased spacing between widgets */
}

.l-sidebar .p-sidebarWidget:last-child {
    margin-bottom: 0;
}

/* Common Widget Title */
.l-sidebar .p-sidebarWidget .widget-title {
    font-size: 16px; /* Adjusted size */
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding: 0;
    border-bottom: none; /* Remove default border */
    position: relative;
    padding-left: 0; /* Remove previous padding */
    text-transform: uppercase; /* Main title uppercase */
}

/* Remove default ::before element */
.l-sidebar .p-sidebarWidget .widget-title::before {
    display: none;
}

/* Subtitle Style */
.l-sidebar .p-sidebarWidget .widget-title .sub-title {
    font-size: 12px;
    font-weight: normal;
    color: #888;
    margin-left: 8px;
    text-transform: none; /* Subtitle normal case */
}

/* --- Search Widget --- */
.p-sidebarWidget--search .search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.p-sidebarWidget--search .search-field {
    flex-grow: 1;
    border: none;
    padding: 9px 12px;
    font-size: 13px;
    min-width: 0;
}
.p-sidebarWidget--search .search-field:focus {
    outline: none;
    border-color: #3AADE3; /* Match theme color on focus */
    box-shadow: 0 0 0 2px rgba(58, 173, 227, 0.2);
}

.p-sidebarWidget--search .search-submit {
    border: none;
    background-color: #f0f0f0; /* Light grey button */
    color: #666;
    padding: 0 18px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
}
.p-sidebarWidget--search .search-submit:hover {
    background-color: #e0e0e0;
}


/* --- Categories Widget --- */
.p-sidebarWidget--categories .p-sidebarCategories__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-sidebarWidget--categories .p-sidebarCategories__item {
    margin-bottom: 2px; /* Small gap between items */
}

.p-sidebarWidget--categories .p-sidebarCategories__link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f8f8; /* Light grey background */
    color: #444;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p-sidebarWidget--categories .p-sidebarCategories__link:hover {
    background-color: #eee; /* Slightly darker grey on hover */
    color: #333;
}

.p-sidebarWidget--categories .p-sidebarCategories__icon {
    width: 24px; /* Adjust icon size */
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain;
}
.p-sidebarWidget--categories .p-sidebarCategories__icon.-placeholder {
    /* Style for placeholder if needed, e.g., background color */
    background-color: #ddd;
    border-radius: 3px;
}

.p-sidebarWidget--categories .p-sidebarCategories__name {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500; /* Semi-bold */
}

.p-sidebarWidget--categories .p-sidebarCategories__arrow {
    flex-shrink: 0;
    margin-left: 10px;
    width: 6px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 9L5 5L1 1' stroke='%23AAAAAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.2s ease;
}

.p-sidebarWidget--categories .p-sidebarCategories__link:hover .p-sidebarCategories__arrow {
    /* Change arrow color on hover using filter or different SVG */
    filter: brightness(0.8);
}


/* --- HOT TOPICS Widget --- */
.p-sidebarWidget--hotTopics .p-sidebarHotTopics__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-sidebarWidget--hotTopics .p-sidebarHotTopics__item {
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #eee; /* Thin solid separator */
}
.p-sidebarWidget--hotTopics .p-sidebarHotTopics__item:last-child {
    border-bottom: none;
}

.p-sidebarWidget--hotTopics .p-sidebarHotTopics__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.p-sidebarWidget--hotTopics .p-sidebarHotTopics__thumbnail {
    flex: 0 0 60px; /* Fixed thumbnail width */
    height: 60px; /* Fixed thumbnail height */
    margin: 0;
    border-radius: 4px; /* Rounded corners */
    overflow: hidden;
}

.p-sidebarWidget--hotTopics .p-sidebarHotTopics__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-sidebarWidget--hotTopics .p-sidebarHotTopics__thumbnail img.-placeholder {
     background-color: #eee;
}

.p-sidebarWidget--hotTopics .p-sidebarHotTopics__title {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500; /* Semi-bold */
    color: #444;
    transition: color 0.2s ease;
}

.p-sidebarWidget--hotTopics .p-sidebarHotTopics__link:hover .p-sidebarHotTopics__title {
    color: #3AADE3; /* Theme color on hover */
}


/* --- Keywords (Tag Cloud) Widget --- */
.p-sidebarWidget--keywords .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px; /* Row gap, Column gap */
    padding-top: 5px;
}

/* Apply gradient style similar to main content tags */
.p-sidebarWidget--keywords .tagcloud .tag-cloud-link {
    display: inline-block !important;
    padding: 5px 12px !important; /* Slightly adjust padding */
    margin: 0 !important;
    border-radius: 4px !important;
    border: 1px solid transparent !important;
    border-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) 1 !important;
    background-color: #fff !important;
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-size: 12px !important; /* Adjusted font size */
    font-weight: 600 !important; /* Normal weight for sidebar tags? Adjust if bold needed */
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-image 0.2s ease;
    text-align: center !important;
    line-height: 1.5 !important;
}

.p-sidebarWidget--keywords .tagcloud .tag-cloud-link:hover {
    background-image: linear-gradient(to right, #3AB099, #4ED0E1, #3AADE3) !important;
    background-clip: padding-box !important;
    color: #fff !important;
    border-color: transparent !important;
    border-image: none !important;
} 

/* ===============================================
 * Footer Styles (Based on design.jpg) - Updated v4
 * =============================================== */

.p-footer {
    background-color: #1A1A1A;
    color: #ccc;
    padding: 70px 0 0 0; /* Increased top padding slightly */
}

.p-footer__inner {
    margin-bottom: 50px; /* Increased space before copyright */
}

.p-footer__grid {
    display: grid;
    /* Update grid columns to equal width */
    grid-template-columns: 1fr 1fr 1fr; /* Equal width columns */
    gap: 40px 45px;
}

/* Logo Column Adjustments */
.p-footer__col--logo .custom-logo-link {
    display: inline-block;
    max-width: 180px; /* Slightly adjust max logo width */
    margin-bottom: 20px; /* Increased space below logo */
}
.p-footer__col--logo img.custom-logo {
    display: block;
    max-width: 100%;
    height: auto;
}
.p-footer__logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block; /* Ensure display block for margin */
    margin-bottom: 20px; /* Space below text logo */
}

/* === Apply list styling to ALL footer lists === */
.p-footer__siteNavList,
.p-footer__navList {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Style for list items in ALL footer lists */
.p-footer__siteNavList li,
.p-footer__navList li {
    margin-bottom: 12px;
    padding-left: 1.2em; /* Space for the bullet */
    position: relative; /* Context for the bullet */
}

/* Gradient Bullet Marker (●) - Adjust vertical alignment */
.p-footer__siteNavList li::before,
.p-footer__navList li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0.65em; /* Adjusted value to lower the bullet slightly */
    font-size: 0.6em;
    line-height: inherit;
    background: linear-gradient(to right, #3AB099, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Style for links in ALL footer lists */
.p-footer__siteNavList li a,
.p-footer__navList li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    position: relative; /* Context for hover underline */
    display: inline-block; /* Ensure underline spans correctly */
}

/* Gradient Underline Hover Effect */
.p-footer__siteNavList li a::after,
.p-footer__navList li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px; /* Position underline slightly below text */
    width: 100%;
    height: 1px; /* Underline thickness */
    background: linear-gradient(to right, #3AB099, #3AADE3);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

.p-footer__siteNavList li a:hover,
.p-footer__navList li a:hover {
    color: #fff; /* White text on hover */
}

.p-footer__siteNavList li a:hover::after,
.p-footer__navList li a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Footer Navigation Columns */
.p-footer__col--nav {
    padding-top: 5px; /* Align titles slightly better if logo is tall */
}

.p-footer__colTitle {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 25px 0; /* Increased space below title */
    padding-bottom: 12px; /* Space for the line */
    position: relative;
}
/* Restore and adjust gradient line */
.p-footer__colTitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px; /* Adjust line width */
    height: 2px;
    background: linear-gradient(to right, #3AB099, #3AADE3);
}

/* Specific style for Cases list (2 columns) - Ensure it overrides */
.p-footer__navList--cases {
    column-count: 2;
    column-gap: 25px;
}

.p-footer__navList--cases li {
    break-inside: avoid;
    page-break-inside: avoid;
    /* Ensure padding for bullet is applied */
    padding-left: 1.2em; 
    position: relative;
}

.p-footer__navList--cases li::before {
     /* Ensure bullet styles apply and match the general one */
     top: 0.35em; /* Match adjusted value */
     font-size: 0.6em;
}

/* Copyright Area */
.p-footer__copy {
    background-color: #000;
    padding: 20px 0; /* Increased padding */
    text-align: center;
}

.p-footer__copy p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* === Responsive Adjustments for Footer - Updated === */
@media (max-width: 959px) { /* Tablet */
    .p-footer__grid {
        /* Grid columns remain 1fr 1fr as before */
        grid-template-columns: 1fr 1fr;
        gap: 30px 35px;
    }
    .p-footer__col--logo {
         grid-column: 1 / -1;
         margin-bottom: 30px;
         text-align: center;
    }
    .p-footer__col--logo .custom-logo-link,
    .p-footer__logo-text {
        margin-left: auto;
        margin-right: auto;
    }
     .p-footer__siteNavList {
         columns: 2;
         column-gap: 20px;
         text-align: left;
         max-width: 400px;
         margin-left: auto;
         margin-right: auto;
     }
     .p-footer__siteNavList li {
          break-inside: avoid;
          padding-left: 1.2em; /* Ensure padding consistency */
     }
    .p-footer__navList--cases {
        column-count: 1;
    }
    .p-footer__col--nav {
         padding-top: 0;
    }
    .p-footer__colTitle::after {
         left: 0;
         transform: none;
    }
    /* Adjust list padding on tablet if needed */
    .p-footer__navList li,
    .p-footer__siteNavList li {
        padding-left: 1.2em; /* Reiterate for specificity */
    }
}

@media (max-width: 767px) {
    #sidebar {
        padding:0;
    }
    .p-footer {
        padding-top: 50px;
    }
    .p-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Remove text-align: center; from grid if it exists */
        /* text-align: center; */
    }
    .p-footer__col--logo {
        margin-bottom: 20px;
    }
    .p-footer__colTitle {
        text-align: center;
    }
    .p-footer__siteNavList,
    .p-footer__navList {
         columns: 1;
         text-align: left !important; /* Force left align */
         max-width: 300px; /* Adjust width */
         margin-left: auto;
         margin-right: auto;
     }
    .p-footer__colTitle::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .p-footer__navList--cases {
        column-count: 1;
        text-align: left !important; /* Force left align */
    }
    .p-footer__navList li,
    .p-footer__siteNavList li {
         padding-left: 1.2em !important; /* Force padding */
         text-align: left !important; /* Force left align */
         position: relative;
    }
    .p-footer__navList li::before,
    .p-footer__siteNavList li::before {
         display: block !important; /* Force display block */
         position: absolute;
         left: 0;
         top: 0.35em; /* Keep adjusted vertical position */
         font-size: 0.6em; /* Keep smaller bullet size */
         background: linear-gradient(to right, #3AB099, #3AADE3);
         -webkit-background-clip: text;
         background-clip: text;
         color: transparent;
         content: '●';
         line-height: inherit;
    }
     .p-footer__navList--cases li {
          display: block;
          width: auto;
          text-align: left !important; /* Force left align */
          margin-bottom: 10px;
     }
    /* Reset underline position for left alignment */
    .p-footer__navList li a::after,
    .p-footer__siteNavList li a::after {
        left: 0;
        transform: scaleX(0);
        transform-origin: left;
        width: 100%;
    }
    .p-footer__navList li a:hover::after,
    .p-footer__siteNavList li a:hover::after {
        transform: scaleX(1);
    }
} 

/* ===============================================
 * Drawer Menu Styles (SP)
 * =============================================== */
.p-spMenu__body {
    /* Add padding or other container styles if needed */
    padding: 20px;
}

.p-drawerMenu__content {
    /* Layout for the custom content area */
}

/* --- List Menu --- */
.p-drawerMenu__listNav {
    margin-bottom: 25px;
}

.p-drawerMenu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-drawerMenu__listItem {
    margin-bottom: 2px; /* Match category item gap */
    padding-left: 0; /* Reset padding */
    position: static; /* Reset position context */
    list-style: none; /* Ensure no default bullet */
}

/* Remove ::before from li directly */
.p-drawerMenu__listItem::before {
    content: none;
}

.p-drawerMenu__listItem a {
    /* Base styles exactly like category links */
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #444;
    text-decoration: none;
    font-size: 14px; /* Match category name font size */
    font-weight: 500; /* Match category name font weight */
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Bullet replacement using ::before */
.p-drawerMenu__listItem a::before {
    content: '●';
    display: flex; /* Use flex to center bullet */
    align-items: center;
    justify-content: center;
    width: 24px; /* Match icon width */
    height: 24px; /* Match icon height */
    margin-right: 12px; /* Match icon margin */
    flex-shrink: 0;
    font-size: 0.8em; /* Adjust bullet size */
    line-height: 1; /* Center bullet vertically */
    /* Gradient Bullet */
    background: linear-gradient(to right, #3AB099, #3AADE3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Arrow using ::after */
.p-drawerMenu__listItem a::after {
    content: '';
    display: block;
    flex-shrink: 0;
    margin-left: auto; /* Push to the right */
    width: 6px; /* Match arrow width */
    height: 10px; /* Match arrow height */
    /* Arrow SVG as background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 9L5 5L1 1' stroke='%23AAAAAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.2s ease;
}

.p-drawerMenu__listItem a:hover {
    /* Match category hover */
    background-color: #eee;
    color: #333;
}

/* Hover effect for arrow */
.p-drawerMenu__listItem a:hover::after {
     filter: brightness(0.8);
}

/* Ensure text grows */
/* Text inside 'a' will grow due to flex layout */

/* ... rest of drawer menu styles ... */

/* --- Search Form --- */
.p-drawerMenu__search {
    margin-bottom: 30px;
}

/* Adjust default search form styles if needed */
.p-drawerMenu__search .search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.p-drawerMenu__search .search-field {
    flex-grow: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    min-width: 0;
}
.p-drawerMenu__search .search-field:focus {
    outline: none;
    border-color: #3AADE3; /* Match theme color on focus */
    box-shadow: 0 0 0 2px rgba(58, 173, 227, 0.2);
}
.p-drawerMenu__search .search-submit {
    border: none;
    background-color: #f0f0f0; /* Light grey button */
    color: #666;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.p-drawerMenu__search .search-submit:hover {
    background-color: #e0e0e0;
}

/* --- Categories --- */
.p-drawerMenu__categories {
    margin-bottom: 30px;
}

.p-drawerMenu__widgetTitle {
    font-size: 14px; /* Title size */
    font-weight: bold;
    color: #555;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    /* Add other title styles if needed */
}

.p-drawerMenu__categoriesList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-drawerMenu__categoriesItem {
    margin-bottom: 2px; /* Small gap between items */
}

.p-drawerMenu__categoriesLink {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    /* background-color: #f8f8f8; /* Remove background from sidebar */
    color: #444;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p-drawerMenu__categoriesLink:hover {
    background-color: #eee; /* Add subtle hover background */
    color: #333;
}

.p-drawerMenu__categoriesIcon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain;
}
.p-drawerMenu__categoriesIcon.-placeholder {
    background-color: #ddd;
    border-radius: 3px;
}

.p-drawerMenu__categoriesName {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
}

.p-drawerMenu__categoriesArrow {
    flex-shrink: 0;
    margin-left: 10px;
    width: 6px;
    height: 10px;
    /* Arrow SVG as background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 9L5 5L1 1' stroke='%23AAAAAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.2s ease;
}

.p-drawerMenu__categoriesLink:hover .p-drawerMenu__categoriesArrow {
    filter: brightness(0.8);
}

/* --- Training CTA --- */
.p-drawerMenu__cta {
    margin-top: 20px; /* Space above button */
    text-align: center; /* Center the button */
}

/* Reuse existing button styles and force white text */
.p-drawerMenu__cta .p-corpTraining__button {
    color: #fff !important; /* Force white text color */
    /* Add specific overrides if needed, e.g., width */
    /* width: 100%; */
    /* box-sizing: border-box; */
} 

/* ... existing styles ... */


/* ===============================================
 * Adjustments for Medium Screens (960px - 1080px)
 * =============================================== */
@media (min-width: 960px) and (max-width: 1080px) {

    /* --- HOT TOPICS Main Section (Force 1 column) --- */
    /* Apply mobile flex direction */
    .p-hotTopics__item.-large {
        flex-direction: column;
        gap: 0;
    }
    .p-hotTopics__item.-large .p-hotTopics__thumbnail {
        flex-basis: auto;
        width: 100%;
        /* Adjust height if needed for this breakpoint */
        height: 300px; /* Example height, adjust as necessary */
    }
    .p-hotTopics__item.-large .p-hotTopics__content {
        padding: 20px 20px 50px 20px; /* Use mobile padding */
    }
    .p-hotTopics__readMoreText {
        bottom: 20px; /* Use mobile positioning */
        right: 20px;
    }
    /* Swiper slide width for main swiper - may need re-evaluation based on Swiper behavior */
    /* 
    .p-hotTopics__mainSwiper .swiper-slide {
        width: 100% !important; 
        margin-right: 0 !important;
    } 
    */

    /* --- CASES Grid (Force 1 column) --- */
    .p-cases__grid {
        grid-template-columns: 1fr;
        gap: 18px; /* Use tablet/mobile gap */
    }
    /* Adjust thumbnail height if needed */
    .p-cases__thumbnail img {
        height: 240px; /* Example height, adjust as necessary */
    }

    /* --- COLUMNS Grid (Force 1 column) --- */
    .p-columns__grid {
        grid-template-columns: 1fr;
        gap: 25px; /* Use mobile gap */
    }
    /* Adjust thumbnail flex-basis if needed */
    .p-columns__thumbnail {
       flex-basis: 150px; /* Example width, adjust */
    }

    /* --- CATEGORIES Grid (Force 2 columns) --- */
    .p-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px; /* Use mobile gap */
    }

}

/* --- 記事装飾 --- */

/* --- 大見出し (h2) --- */
.post_content h2, /* 修正 */
.wp-block-heading h2.is-style-default, /* Gutenbergのデフォルトh2スタイル */
.swell-block-heading .swell-block-heading__inner.--type-default h2 { /* SWELLのデフォルト見出しブロック h2 */
    background: var(--brand-gradient) !important; /* !important追加 */
    color: #fff !important; /* !important追加 */
    padding: 0.6em 1em !important; /* !important追加 */
    border-radius: 5px !important; /* !important追加 */
    margin-top: 2em !important; /* !important追加 */
    margin-bottom: 1em !important; /* !important追加 */
    line-height: 1.4 !important; /* !important追加 */
    border: none !important; /* 既存のボーダーをリセット */
}

/* --- 中見出し (h3) --- */
.post_content h3, /* 修正 */
.wp-block-heading h3.is-style-default,
.swell-block-heading .swell-block-heading__inner.--type-default h3 {
    position: relative !important;
    padding-bottom: 0.5em !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.8em !important;
    border-bottom: none !important; /* 既存の下線をリセット */
    background: none !important; /* 既存の背景をリセット */
    color: inherit !important; /* 文字色をリセット */
}

.post_content h3::after, /* 修正 */
.wp-block-heading h3.is-style-default::after,
.swell-block-heading .swell-block-heading__inner.--type-default h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: var(--brand-gradient) !important;
}

/* --- 小見出し (h4) --- */
.post_content h4, /* 修正 */
.wp-block-heading h4.is-style-default,
.swell-block-heading .swell-block-heading__inner.--type-default h4 {
    position: relative !important;
    padding-left: 1em !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.6em !important;
    border: none !important; /* 既存のボーダーをリセット */
    background: none !important; /* 既存の背景をリセット */
    color: inherit !important; /* 文字色をリセット */
}

.post_content h4::before, /* 修正 */
.wp-block-heading h4.is-style-default::before,
.swell-block-heading .swell-block-heading__inner.--type-default h4::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 5px !important;
    background: var(--brand-gradient) !important;
    border-radius: 2px !important;
}

/* --- 数字リスト (ol) --- */
.post_content ol, /* 修正 */
.wp-block-list ol {
    list-style: none !important;
    padding-left: 0 !important;
}

.post_content ol > li, /* 修正 */
.wp-block-list ol > li {
    position: relative !important;
    padding-left: 2.8em !important;
    margin-bottom: 0.8em !important;
    counter-increment: list-counter !important;
    background: none !important; /* リストアイテムの背景をリセット */
}

.post_content ol > li::before, /* 修正 */
.wp-block-list ol > li::before {
    content: counter(list-counter) !important;
    position: absolute !important;
    left: 0.5em !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--brand-gradient) !important;
    color: #fff !important;
    width: 1.8em !important;
    height: 1.8em !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 1.8em !important;
    font-weight: bold !important;
    font-size: 0.9em !important;
}

.post_content ol.p-toc__list li,
.wp-block-list ol.p-toc__list li {
	padding-left:0!important;
}
.post_content ol.p-toc__list li::before, /* 修正 */
.wp-block-list ol.p-toc__list li::before {
	display:none;
}

.entry-content ol,
.wp-block-list ol {
    list-style: none; /* デフォルトのマーカーを消す */
    padding-left: 0;
}

.entry-content ol > li,
.wp-block-list ol > li {
    position: relative;
    padding-left: 2.8em; /* マーカーとテキストのスペース確保 */
    margin-bottom: 0.8em;
    counter-increment: list-counter; /* カスタムカウンター */
}

.entry-content ol > li::before,
.wp-block-list ol > li::before {
    content: counter(list-counter); /* カウンターの数値を表示 */
    position: absolute;
    left: 0.5em; /* 左からの位置 */
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-gradient);
    color: #fff;
    width: 1.8em; /* マーカーの幅 */
    height: 1.8em; /* マーカーの高さ */
    border-radius: 50%; /* 円形にする */
    text-align: center;
    line-height: 1.8em; /* 上下中央揃え */
    font-weight: bold;
    font-size: 0.9em; /* 数字のサイズ調整 */
}
.wp-block-table td {
	border:1px solid #ededed;
}
ul.wp-block-list {
	list-style: circle;
	padding-left: 1.5em;
}
.wpcf7-form {
    width: 680px;
    margin: 0 auto;
    max-width:100%;
}
.wpcf7-form p {
    margin-bottom:1.5em;
}
.wpcf7-form input {
    margin-top:0.4em;
    width: 100%;
}
.wpcf7-form textarea {
    width: 100%;
}
.wpcf7-form input[type="submit"] {
    background: #333;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    border-radius: 40px;
    transition: all .2s;
}
.wpcf7-form input[type="submit"]:hover {
    background: #666;
}