html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif+JP:wght@300;400;600;700&display=swap');

:root {
    --bg-ivory: #fdfbf7;
    /* More paper-like ivory */
    --accent-gold: #d4ae3d;
    --accent-deep: #4a3420;
    --accent-primary: #D6B22C;
    --accent-sub: #FAE7A3;
    --accent-faq: #FDF4D6;
    --ink: #2b1d12;
    --ink-soft: #634d3a;
    --line: #e8ded0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--ink);
    background: var(--bg-ivory);
    line-height: 1.6;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    opacity: 0.7;
}

.container {
    width: min(1760px, 92vw);
    margin: 0 auto;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .sp-br-none {
        display: none;
    }

    .pc-br {
        display: none;
    }

    .sp-br {
        display: block;
    }
}

/* Br utility */
.sp-br {
    display: none;
}

/* Header */
.site-header {
    position: absolute;
    /* Not sticky initially, based on screenshot */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 30px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 280px;
    /* Adjusted to fit the full logo.svg */
    height: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.primary-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    font-size: 16px;
    letter-spacing: 0.08em;
    font-weight: 300;
    font-family: var(--font-sans);
}

.cta-button {
    background: var(--accent-sub);
    border-radius: 999px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: var(--font-sans);
    border: 1px solid var(--accent-primary);
}

/* Hamburger Toggle */
.hamburger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #4D3A3E;
    /* Specified color */
    transition: all 0.3s ease;
}

/* Open State */
.hamburger-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-ivory);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    /* 0.8s -> 1s for the slide */
}

.mobile-menu[aria-hidden="false"] {
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-list li {
    margin: 30px 0;
}

.mobile-nav-list a {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-sans);
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Staggered Fade-in when open */
.mobile-menu[aria-hidden="false"] .mobile-nav-list li:nth-child(1) a {
    transition-delay: 0.6s;
}

.mobile-menu[aria-hidden="false"] .mobile-nav-list li:nth-child(2) a {
    transition-delay: 0.75s;
}

.mobile-menu[aria-hidden="false"] .mobile-nav-list li:nth-child(3) a {
    transition-delay: 0.9s;
}

.mobile-menu[aria-hidden="false"] .mobile-nav-list li:nth-child(4) a {
    transition-delay: 1.05s;
}

.mobile-menu[aria-hidden="false"] .mobile-nav-list a {
    opacity: 1;
    transform: translateY(0);
}

.site-main {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Hero Sequence Animation Refined */
.hero-sequence {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background-color: var(--bg-ivory);
    overflow: hidden;
}

.hero-step {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Persistent Scrolling Background */
.hero-bg-scrolling {
    position: absolute;
    width: 200%;
    height: 100%;
    display: flex;
    animation: bg-scroll 30s linear infinite;
    opacity: 0.15;
    z-index: 0;
}

.bg-scroll-img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

@keyframes bg-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Step Transitions */
.step-1 {
    animation: hero-step-1 2s forwards;
}

.step-2 {
    animation: hero-step-2 8s 2s forwards;
}

.step-3 {
    animation: hero-step-3 1s 10s forwards;
    pointer-events: auto;
}

@keyframes hero-step-1 {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes hero-step-2 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes hero-step-3 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Step 2: Onigiri & Sequential Labels */
.hero-onigiri-center {
    width: 1235px !important;
    max-width: 95vw;
    z-index: 1;
}

.hero-onigiri-img {
    width: 100%;
    height: auto;
}

.hero-copy-wrap {
    position: absolute;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-copy-line {
    opacity: 0;
    transform: translateY(20px);
}

.hero-copy-line span {
    display: inline-block;
    padding: 8px 30px;
    color: #fff;
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 700;
    font-family: var(--font-serif);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.line-1 span,
.line-3 span {
    background-color: #A37D3C;
}

.line-2 span {
    background-color: #D6B22C;
}

.step-2 .line-1 {
    animation: fade-up 0.8s 2.5s forwards;
}

.step-2 .line-2 {
    animation: fade-up 0.8s 3.5s forwards;
}

.step-2 .line-3 {
    animation: fade-up 0.8s 4.5s forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 3: Final State (Logo & Original Asset Placement) */
.hero-logo-final {
    width: clamp(280px, 50vw, 664px);
}

/* Bird & Onigiri Mapping to Original Layout */
.hero-decor-bird {
    position: absolute;
    top: clamp(60px, 15vh, 140px);
    right: clamp(10%, 19vw, 15%);
    width: clamp(100px, 14vw, 200px);
    animation: bird-float 4s ease-in-out infinite;
    z-index: 10;
}

.hero-onigiri-small {
    position: absolute;
    bottom: clamp(40px, 10vh, 80px);
    right: clamp(20px, 4vw, 10%);
    width: clamp(380px, 52vw, 570px);
    z-index: 10;
}

.hero-onigiri-img-small {
    width: 100%;
    height: auto;
}

@keyframes bird-float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }
}

/* Notice Bar */
.hero-notice-bar {
    position: relative;
    width: 100%;
    height: 150px;
    /* Specified height from design */
    background: #d4ae3d;
    display: flex;
    padding: 40px 0;
    z-index: 5;
}

.notice-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-decor-rice {
    position: absolute;
    top: clamp(-200px, -12vw, -100px);
    left: clamp(-180px, -8vw, -50px);
    width: clamp(150px, 15vw, 280px);
    z-index: 20;
    pointer-events: none;
}

.hero-decor-rice img {
    width: 100%;
    height: auto;
}

.notice-content-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Alignment changed to start */
    gap: 40px;
    width: 746px;
    /* Fixed width from design */
    max-width: 90vw;
    color: #fff;
    /* Text color changed to white */
}

.notice-label {
    font-weight: 700;
    flex-shrink: 0;
}

.notice-list {
    flex-grow: 1;
}

.notice-item {
    display: flex;
    gap: 15px;
    line-height: 1.8;
}

/* Concept Section */
.concept {
    position: relative;
    padding: 200px 0;
    min-height: 800px;
    background: url('../img/top_concept_bg.png') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.concept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
}

.concept-inner {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    /* Align text to the right side like in screenshot */
    padding-right: 30%;
}

.concept-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    /* Horizontal flow for vertical lines from right to left */
    gap: 0px;
    /* align-items: flex-start; */
}

.vertical-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 2;
    letter-spacing: 0.1em;
}

.concept-text-main {
    font-size: 32px;
    font-weight: 700;
    width: 96px;
    position: relative;
}

.concept-icon {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 60px;
    z-index: 5;
}

.concept-icon img {
    width: 100%;
    height: auto;
}

.concept-text-body {
    font-size: 18px;
    font-weight: 400;
    width: 288px;
}

.concept-decor-rice {
    position: absolute;
    top: 200px;
    right: -40px;
    width: 60px;
    opacity: 0.8;
}

.concept-bg-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.3;
}

.concept-bg-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.concept-bg-text {
    position: absolute;
    z-index: 3;
}

.decor-yurai {
    top: 30px;
    left: clamp(20px, 12vw, 180px);
    width: clamp(150px, 30vw, 400px);
}

@media (max-width: 768px) {
    .concept {
        padding: 100px 20px 20px;
        background-position: 75% 0px;
    }

    .concept-inner {
        padding-right: 0;
        justify-content: center;
    }

    .concept-content {
        gap: 20px;
        flex-direction: column;
        align-items: flex-end;
        padding: 0 40px;
    }

    .concept-text-main {
        font-size: 24px;
        line-height: 1.4;
    }

    .concept-text-body {
        font-size: 15px;
        line-height: 1.7;
        margin-top: 20px;
        margin-right: -20px;
        /* stagger body text slightly down */
    }

    .decor-yurai {
        top: 0;
        left: 0;
        width: clamp(120px, 35vw, 200px);
    }

    .concept-icon {
        width: 45px;
        top: -50px;
        right: -10px;
    }
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-date {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-right {
        gap: 20px;
    }

    .hero-onigiri-visual {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px 0;
    }

    .brand-logo {
        width: 213px !important;
        /* Force 213px as requested */
    }

    .header-right {
        display: flex;
        gap: 20px;
    }

    .hamburger-toggle {
        display: flex;
    }

    .hero {
        min-height: 600px;
    }

    .hero-logo-main {
        width: 336px !important;
    }

    .hero-logo-main img {
        width: 100%;
        height: auto;
    }

    .hero-decor-bird {
        /* width: 126px !important; */
        top: clamp(60px, 15vh, 140px);
        top: clamp(80px, 15vh, 140px);
        right: clamp(0%, 20vw, 0%);
        width: clamp(126px, 14vw, 200px);
    }

    .hero-decor-bird img {
        width: 100%;
        height: auto;
    }

    .hero-onigiri-visual {
        width: 350px !important;
    }

    .hero-onigiri-visual img {
        width: 100%;
        height: auto;
    }

    .hero-decor-rice {
        top: clamp(-130px, -36vw, 0px);
        left: 30px;
        width: clamp(140px, 30vw, 260px);
    }

    .hero-decor-rice img {
        width: 100%;
        height: auto;
    }

    /* SP Hero Sequence Refinements */
    .hero-onigiri-center {
        width: 120vw !important;
        max-width: 545px;
        /* Allow overflow */
    }

    .hero-onigiri-center img {
        width: 120vw;
        height: auto;
    }

    .hero-copy-line span {
        font-size: 28.7px !important;
        padding: 5px 20px;
    }

    .hero-decor-bird {
        top: 80px;
        right: 0%;
        width: 126px;
    }

    .hero-onigiri-small {
        bottom: 130px;
        right: 0%;
        width: 350px;
    }

    .hero-logo-final {
        width: clamp(240px, 85vw, 338px) !important;
        max-width: 90vw;
    }

    .hero-logo-final img {
        width: 100%;
        height: auto;
    }

    .hero-notice-bar {
        height: auto;
        padding: 30px 0;
    }

    .notice-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-content-wrap {
        width: 100% !important;
        display: block !important;
    }

    .notice-list {
        padding-left: 5vw;
        font-size: 16px;
    }

    .notice-label {
        font-size: 16px;
        padding-left: 25vw;
    }

}

/* Thoughts & Commitment Wrapper */
.thoughts-commitment-wrapper {
    position: relative;
    /* 子要素の絶対配置の基準にする */
    background-image: url('../img/bg_thought-commitment.png');
    background-size: cover;
    background-position: center;
    /* 装飾のハミ出しを許可するため overflow を解除 */
    z-index: 2;
}

/* Thoughts Section */
.thoughts {
    position: relative;
    padding: 160px 0;
    color: #4D3A3E;
}

.thoughts-inner {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding-right: 0;
    /* Let flex centering handle it */
}

.thoughts-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 0px;
    /* Reduced gap between title and body */
    align-items: flex-start;
}

.thoughts-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thoughts-diamond {
    position: absolute;
    top: -50px;
    right: 50px;
    width: 50px;
    z-index: 5;
}

.thoughts-diamond img {
    width: 100%;
}

.thoughts-title {
    font-size: 32px;
    font-weight: 700;
}

.thoughts-body {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    /* Consistent rhythmic gap between paragraphs */
}

.thoughts-body p {
    font-size: 18px;
    line-height: 2;
    /* Slightly tighter line height for more solid text line appearance */
}

/* Decorative Background Elements */
.thoughts-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.thoughts-bg-text {
    position: absolute;
    z-index: 1;
}

.decor-omoi {
    top: -160px;
    right: clamp(20px, 8vw, 150px);
    width: clamp(200px, 35vw, 460px);
}

.decor-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.decor-line img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decor-onigiri-1 {
    position: absolute;
    top: clamp(120px, 15vw, 120px);
    left: max(18vw, calc((100% - 1760px) / 2));
    width: clamp(120px, 12vw, 185px);
    z-index: 5;
}

.thoughts-bg-decor img {
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .thoughts-inner {
        padding-right: 0;
    }

    .thoughts-content {
        gap: 0;
    }

    .thoughts-body {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .thoughts {
        padding: 80px 20px 120px;
        /* added bottom padding to clear the decor image */
    }

    .thoughts-inner {
        padding: 0 10px;
    }

    .thoughts-content {
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 15px;
        position: relative;
    }

    .thoughts-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .thoughts-title br {
        display: none;
    }

    .thoughts-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }

    .thoughts-body p {
        font-size: 16px;
        line-height: 2;
        margin: 0;
    }

    /* Stagger effect: shift down vertically */
    .thoughts-body p:nth-child(1) {
        margin-top: 20px;
        margin-right: 0;
    }

    .thoughts-body p:nth-child(2) {
        margin-top: 0;
    }

    .decor-omoi {
        top: -60px;
        right: 5px;
        width: clamp(100px, 38vw, 160px);
    }

    .decor-onigiri-1 {
        width: 108px;
        left: 10px;
        top: auto;
        bottom: 20px;
        /* Moved down to avoid overlapping text */
    }

    .thoughts-diamond {
        top: -40px;
        right: 15px;
    }
}

/* Commitment Section */
.commitment {
    position: relative;
    padding: 15% 0;
    color: #4D3A3E;
}

.commitment-inner {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.commitment-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    align-items: flex-start;
}

.commitment-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.commitment-icon {
    position: absolute;
    top: -40px;
    right: 35px;
    width: 70px;
    z-index: 5;
}

.commitment-icon img {
    width: 100%;
}

.commitment-title {
    font-size: 32px;
    font-weight: 700;
}

.commitment-body {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
}

.commitment-lead {
    font-size: 20px;
    line-height: 1.8;
    margin: 0;
}

.commitment-main-text {
    font-size: 18px;
    line-height: 2;
}

/* Decorative Background Elements for Commitment */
.commitment-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.commitment-bg-text {
    position: absolute;
    z-index: 1;
}

.decor-kodawari {
    top: -240px;
    left: clamp(10px, 6vw, 120px);
    width: clamp(428px, 40vw, 428px);
}

.decor-splash {
    position: absolute;
    top: 50%;
    /* ラッパーの中間に配置 */
    left: 50%;
    transform: translate(20%, -70%);
    /* 中央寄せをベースに微調整可能 */
    width: clamp(500px, 60vw, 560px);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.decor-onigiri-group {
    position: absolute;
    bottom: clamp(50px, 2vw, 40px);
    right: clamp(20px, 12vw, 25%);
    width: clamp(280px, 30vw, 550px);
    z-index: 5;
}

.commitment-bg-decor img {
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .commitment-content {
        gap: 30px;
    }

    .commitment-body {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .commitment {
        padding: 80px 20px;
    }

    .commitment-content {
        gap: 30px;
        flex-direction: column;
        align-items: flex-end;
    }

    .commitment-body {
        flex-direction: row-reverse;
        gap: 0px;
        margin-right: -40px;
    }

    .commitment-title {
        font-size: 24px;
    }

    .commitment-lead {
        font-size: 15px;
    }

    .commitment-main-text {
        font-size: 15px;
    }

    .commitment-icon {
        top: -40px;
        right: 17px;
    }

    .decor-kodawari {
        width: clamp(200px, 48vw, 280px);
        top: -20px;
        left: -35px;
    }

    .decor-splash {
        display: none;
    }

    .decor-onigiri-group {
        width: 140px;
        bottom: 20px;
        right: 10px;
    }
}

/* Example & Client Wrapper */
.example-client-wrapper {
    position: relative;
    background-image: url('../img/bg_example-client.png');
    background-size: cover;
    background-position: center;
}

/* Example Section */
.example {
    position: relative;
    padding: 180px 0;
    color: #4D3A3E;
}

.example-inner {
    position: relative;
    z-index: 10;
}

.example-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 968px;
    margin: 0 auto;
}

.example-icon {
    flex-shrink: 0;
    width: 160px;
}

.example-icon img {
    width: 100%;
    height: auto;
}

.example-text {
    flex-grow: 1;
}

.example-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
}

.example-body {
    font-size: 18px;
    line-height: 1.8;
}

.example-body p {
    margin-bottom: 1em;
}

.example-body p:last-child {
    margin-bottom: 0;
}

/* Decorative Background Elements for Example */
.example-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.example-bg-text {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.decor-kamakura {
    width: 100%;
}

.decor-rice-grains {
    position: absolute;
    top: clamp(40px, 4vw, 150px);
    left: clamp(50%, 70vw, 70%);
    /* 指定の数値を論理的な順序で適用 */
    width: clamp(295px, 15vw, 550px);
    opacity: 0.9;
    z-index: 5;
}

.example-bg-decor img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .example {
        padding: 80px 20px;
    }

    .example-content {
        flex-direction: column;
        gap: 30px;
    }

    .example-icon {
        width: 100%;
        text-align: center;
    }


    .example-icon img {
        width: 120px;
    }

    .example-title {
        font-size: 24px;
    }

    .example-title br {
        display: none;
    }

    .example-body {
        font-size: 15px;
        text-align: left;
    }

    .decor-rice-grains {
        display: none;
    }
}

/* Example Gallery Section */
.example-gallery {
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: infinity-loop 40s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes infinity-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-title {
    font-size: 16px;
    font-weight: 700;
    color: #4D3A3E;
    text-align: center;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 280px;
    }

    .gallery-track {
        animation-duration: 25s;
        gap: 15px;
    }

    .gallery-title {
        font-size: 14px;
    }
}

/* Client Section */
.client {
    position: relative;
    padding: 120px 0;
    color: #4D3A3E;
}

.client-inner {
    position: relative;
    z-index: 10;
}

.client-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 968px;
    margin: 0 auto 60px;
}

.client-icon {
    flex-shrink: 0;
    width: 160px;
}

.client-icon img {
    width: 100%;
    height: auto;
}

.client-text {
    flex-grow: 1;
}

.client-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
}

.client-title br {
    display: none;
}

.client-body {
    font-size: 18px;
    line-height: 1.8;
}

.client-body p {
    margin-bottom: 1.5em;
}

.client-body p:last-child {
    margin-bottom: 0;
}

/* Decorative Background Elements for Client */
.client-bg-text {
    position: absolute;
    z-index: 1;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.decor-kaimaiten {
    width: 100%;
}

/* Grid for Client List */
.client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    max-width: 760px;
    margin: 0 auto;
}

.client-grid-item {
    position: relative;
    padding-left: 24px;
}

.client-grid-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 14px;
    height: 14px;
    background-image: url('../img/icon_origiri_list.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.client-name {
    font-size: 18px;
    font-weight: 700;
    display: block;
    line-height: 1.4;
}

.client-subtext {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 5px;
    color: #4D3A3E;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .client {
        padding: 80px 20px;
    }

    .client-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 40px;
        text-align: left;
    }

    .client-icon {
        width: 120px;
        margin: 0 auto;
    }

    .client-title {
        font-size: 24px;
    }

    .client-title br {
        display: block;
    }

    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .client-name {
        font-size: 16px;
    }

    .client-body {
        font-size: 15px;
    }

    .client-grid {
        text-align: left;
    }
}

/* Kind, FAQ & CTA Wrapper */
.kind-faq-cta-wrapper {
    background-image: url('../img/bg_kind-faq-cta.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Kinds Section */
.kinds {
    position: relative;
    padding: clamp(100px, 15vw, 200px) 0;
    color: #4D3A3E;
    text-align: center;
}

.kinds-inner {
    position: relative;
    z-index: 10;
}

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

.kinds-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}

.kinds-title img.title-icon {
    width: 177px;
}

.kinds-header-text {
    width: 44.02vw;
    max-width: 634px;
    margin: 0 auto;
}

.kinds-subtitle {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.kinds-description {
    font-size: 15px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Ingredient Badges List - Now a single image */
.kinds-grid {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.kinds-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Remove unused kind-badge styles */
.kind-badge {
    display: none;
}

/* Decorative Background Elements for Kinds */
.kinds-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    padding: 100px 0;
}

.kinds-bg-text {
    position: absolute;
    z-index: 1;
    bottom: -120px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.decor-onigiri {
    width: 100%;
}

.decor-onigiri-bottom {
    position: absolute;
    bottom: 50px;
    right: 15%;
    width: 180px;
    z-index: 2;
}

.decor-splash-right {
    position: absolute;
    top: 50px;
    right: 0%;
    width: clamp(200px, 25%, 450px);
    z-index: 1;
}

.kinds-bg-decor img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .kinds {
        padding: 80px 20px;
    }

    .kinds::before {
        font-size: 80px;
    }

    .kinds-title {
        font-size: 40px;
        flex-direction: column;
        gap: 20px;
    }

    .kinds-title img.title-icon {
        width: 114px;
    }

    .kinds-grid {
        gap: 15px 10px;
    }

    .kind-badge {
        width: 80px;
        height: 75px;
    }

    .kind-badge span {
        font-size: 11px;
    }

    .decor-onigiri-bottom {
        display: none;
    }

    .kinds-header {
        margin-bottom: 30px;
    }

    .kinds-header-text {
        width: 90%;
        max-width: 100%;
    }

    .kinds-subtitle {
        font-size: 20px;
        text-align: left;
    }

    .kinds-description {
        font-size: 14px;
        text-align: left;
    }

    .decor-splash-right {
        width: 120px;
    }
}

/* FAQ Section */
.faq {
    position: relative;
    padding: 120px 0;
    color: #4D3A3E;
}

.faq-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.decor-splash-left {
    position: absolute;
    top: 20%;
    left: -5%;
    width: clamp(200px, 30%, 480px);
    z-index: 1;
}

.faq-bg-decor img {
    width: 100%;
    height: auto;
}

.faq-inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 80px;
}

.faq-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 60px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.faq-title img.title-icon {
    width: 177px;
    height: auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "Noto Sans JP", sans-serif;
}

.faq-group-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.faq-group-title::before {
    content: "◆";
    font-size: 0.8em;
}

.faq-item {}

.faq-question {
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 40px 15px 30px;
    position: relative;
    user-select: none;
    text-align: left;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: "＋";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #4D3A3E;
    /* 指定の色に変更 */
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Open state for question icon */
.faq-item[open] .faq-question::before {
    transform: translateY(-50%) rotate(45deg);
    /* 45度回転して「×」に見せる */
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-in-out;
    background-color: #FDF4D6;
    /* Light ivory background */
    overflow: hidden;
    text-align: left;
    transition: 0.3s ease-in-out;
    margin-left: 30px;
}

.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
    margin-bottom: 15px;
}

.faq-answer-inner {
    min-height: 0;
    visibility: hidden;
    opacity: 0;
    /* フェードインの初期状態 */
    transition: opacity 0.4s ease, visibility 0.4s;
}

.faq-item[open] .faq-answer-inner {
    visibility: visible;
    opacity: 1;
    /* フェードイン完了 */
}

.faq-answer-inner p {
    padding: 20px 30px;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq {
        padding: 80px 20px;
    }

    .faq-title {
        font-size: 40px;
        gap: 20px;
        flex-direction: column;
    }

    .faq-title img.title-icon {
        width: 114px;
    }

    .faq-group-title {
        font-size: 16px;
    }

    .faq-question {
        font-size: 14px;
        padding-left: 25px;
    }

    .faq-answer {
        font-size: 14px;
        padding: 15px 20px;
    }

    .faq-header {
        margin-bottom: 40px;
    }

    .faq-list {
        gap: 40px;
    }
}

/* CTA Section Refinement */
.cta {
    padding: 100px 0 60px;
    position: relative;
    z-index: 10;
}

.cta-inner {
    background-color: #FAE7A3;
    border-radius: 0 0 50px 0;
    padding: 80px 100px 80px 160px;
    width: calc(100% - max(4vw, (100% - 1760px) / 2));
    margin-left: 0;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    width: 62.5vw;
    /* 900px / 1440px = 62.5vw */
    max-width: 900px;
    margin: 0 auto;
}

.cta-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.05em;
}

.cta-subtitle {
    font-size: 20px;
    font-family: var(--font-en);
    color: var(--text-color);
    opacity: 1;
}

.cta-right {
    flex: 1;
}

.cta-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.cta-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.cta-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s;
}

.cta-info-item:hover {
    opacity: 0.7;
}

.cta-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.cta-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-info-text .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cta-info-text .value.tel-value {
    font-size: 24px;
}


.cta-info-text .note {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

/* Site Footer Refinement */
.site-footer {
    padding: 100px 0 60px;
    background-image: url('../img/bg_footer.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    margin-top: -100px;
    /* Overlap with CTA */
    z-index: 1;
}

/* Curve at the top */
.site-footer::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url('../img/bg_footer.png');
    background-size: cover;
    background-position: top center;
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
    z-index: -1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

.footer-left {
    max-width: 400px;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo {
    width: 200px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
}

.footer-address {
    font-size: 13px;
    margin-top: 10px;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .cta-inner {
        padding: 40px 30px;
        border-radius: 0 0 50px 0;
    }

    .cta-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        align-items: start;
    }

    .cta-info {
        flex-direction: column;
        gap: 20px;
        align-items: start
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        margin-top: 20px;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        padding-left: 0;
    }

    .footer-nav a {
        font-size: 14px;
    }

    .cta {
        padding: 60px 0 40px;
    }

    .cta-inner {
        width: 100%;
    }

    .cta-left {
        min-width: unset;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .cta-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .cta-info-text .value {
        font-size: 16px;
    }

    .footer-logo {
        width: 160px;
        margin: 0 auto;
    }

    .site-footer {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .footer-branding {
        align-items: center;
    }

    .footer-tagline {
        font-size: 13px;
    }

    .footer-address {
        font-size: 12px;
        text-align: center;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Fade Up */
.rev-up {
    transform: translateY(40px);
}

/* Fade Left (for vertical text) */
.rev-left {
    transform: translateX(40px);
}

/* Base Fade */
.rev-fade {
    transform: none;
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered Delay */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Hero Specific Animations */
.hero-logo-main.reveal {
    transform: scale(0.9) translateY(20px);
    transition: all 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo-main.reveal.active {
    transform: scale(1) translateY(0);
}

.hero-onigiri-visual.reveal {
    transform: translateX(60px);
    transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-onigiri-visual.reveal.active {
    transform: translateX(0);
}

.hero-decor-bird.reveal {
    opacity: 0;
    transform: translate(-30px, 30px) rotate(-15deg);
    transition: all 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-decor-bird.reveal.active {
    opacity: 1;
    transform: translate(0, 0) rotate(-5deg);
}

.hero-decor-rice.reveal {
    transform: translate(-40px, -40px);
    transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-decor-rice.reveal.active {
    transform: translate(0, 0);
}

/* ==========================================================================
   Page Company styles (page-company.php)
   ========================================================================== */

.page-company {
    position: relative;
    padding-top: 140px;
    /* Space for the absolute header so it sits over the background */
    padding-bottom: 250px;
    background: url(../img/bg_company.png) repeat center top;
    /* changed repeat-y to repeat to cover fully if needed, though repeat-y is fine if it's wide enough */
    /* Space for decor rice */
}

/* Adjust padding for mobile header and swap to high-res background */
@media (max-width: 768px) {
    .page-company {
        padding-top: 90px;
        background-image: url(../img/bg_company@2x.png);
        background-size: 100%;
    }
}

/* Company Hero Section */
.company-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* remove fixed height as the image itself will define the height if needed, 
       or keep a flexible height depending on how company_hero.png is sized */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* bg_company.png is now used here. We remove grayscale and let it display naturally */
.company-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.company-hero-inner {
    position: relative;
    z-index: 5;
    width: 100%;
}

.company-logo {
    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.company-logo img {
    /* company_hero.png is now the logo/main image. Make it span full width */
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Company Decor Elements */
.company-content-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 100px;
}

.company-decor-bird {
    position: absolute;
    top: 15vh;
    right: 5vw;
    width: clamp(100px, 15vw, 150px);
    z-index: 5;
    opacity: 0.8;
}

.company-decor-bird img {
    width: 100%;
    height: auto;
}

.company-decor-cloud {
    position: absolute;
    top: 30vh;
    left: 0;
    width: clamp(200px, 30vw, 350px);
    z-index: 5;
    opacity: 0.5;
    mix-blend-mode: multiply;
}

.company-decor-cloud img {
    width: 100%;
    height: auto;
}

.company-decor-rice {
    position: absolute;
    bottom: 50px;
    right: 5vw;
    width: clamp(180px, 30vw, 280px);
    z-index: 5;
}

.company-decor-rice img {
    width: 100%;
    height: auto;
}

/* Company Containers & Layout */
.company-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.company-section {
    margin-bottom: 150px;
}

/* Common Section Headers */
.section-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
}

.section-icon-half.sunburst {
    width: 160px;
    margin-bottom: -15px;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    /* Crop bottom half */
}

.company-section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Company Table */
.company-table-wrap {
    width: 100%;
    margin-top: 40px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    letter-spacing: 0.05em;
    position: relative;
}

.company-table tr {
    border-top: 1px solid var(--ink);
}

.company-table tr:last-child {
    border-bottom: 1px solid var(--ink);
}

.company-table th,
.company-table td {
    padding: 24px 10px;
    text-align: left;
    vertical-align: middle;
    position: relative;
}

/* 
   We apply the ovals to th/td on Desktop, 
   because 'position: relative' on 'tr' is ignored in standard CSS table layout.
*/
.company-table th::before,
.company-table td::after,
.company-table tr:last-child th::after,
.company-table tr:last-child td::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--ink);
    border-radius: 50%;
    /* Create a slight vertical oval */
    transform: scale(0.8, 1.2);
    z-index: 5;
    pointer-events: none;
}

/* Top Left Oval (Every Row) */
.company-table th::before {
    top: -3px;
    left: -3px;
}

/* Top Right Oval (Every Row) */
.company-table td::after {
    top: -3px;
    right: -3px;
}

/* Bottom Left Oval (Last Row) */
.company-table tr:last-child th::after {
    bottom: -3px;
    left: -3px;
}

/* Bottom Right Oval (Last Row) */
.company-table tr:last-child td::before {
    bottom: -3px;
    right: -3px;
}

.company-table th {
    width: 25%;
    font-weight: 700;
}

/* Contact Section & Form */
.contact-lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-form-wrap {
    padding: 60px 8%;
    /* Subtle shadow if needed, but styling references flat */
}

.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-family: var(--font-sans);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.row {
    flex-direction: row;
    align-items: center;
}

.form-label {
    font-weight: 700;
    font-size: 15px;
}

.form-group.row .form-label {
    width: 180px;
    flex-shrink: 0;
}

.form-control {
    width: 100%;
    background-color: #F8F8F8;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--ink);
    box-sizing: border-box;
}

.form-control:focus {
    outline: 2px solid #E5C365;
}

.textarea {
    resize: vertical;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
}

.radio-group .wpcf7-list-item {
    margin: 0;
}

.radio-group .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #fff;
    margin: 0 10px 0 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked {
    border-color: var(--ink);
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--ink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Checkbox */
.form-privacy {
    text-align: center;
    margin-top: 10px;
}

.wpcf7-acceptance .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.wpcf7-acceptance input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin-right: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.wpcf7-acceptance input[type="checkbox"]:checked~.wpcf7-list-item-label .custom-checkbox {
    border-color: var(--ink);
    background-color: transparent;
}

.wpcf7-acceptance input[type="checkbox"]:checked~.wpcf7-list-item-label .custom-checkbox::after {
    content: '✓';
    color: var(--ink);
    font-size: 14px;
    font-weight: bold;
}

/* Submit Button Container */
.text-center {
    text-align: center;
    width: 100%;
}

.form-submit {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Submit Button */
.btn-submit {
    background-color: #4A3E46;
    /* Matching dark plum/brown color */
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 15px 80px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: var(--font-sans);
    margin-top: 20px;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .form-group.row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group.row .form-label {
        width: 100%;
        margin-bottom: 5px;
    }

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

    .company-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px 0;
    }

    .company-table th {
        padding: 0 0 10px 0;
        border: none;
    }

    .company-table td {
        padding: 0;
    }

    /* Mobile overrides for Border Ovals */
    .company-table th::before,
    .company-table td::after,
    .company-table tr:last-child th::after,
    .company-table tr:last-child td::before {
        display: none;
    }

    .company-table tr {
        position: relative;
    }

    .company-table tr::before,
    .company-table tr::after,
    .company-table::before,
    .company-table::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 6px;
        background: var(--ink);
        border-radius: 50%;
        transform: scale(0.8, 1.2);
        z-index: 5;
        pointer-events: none;
        display: block;
    }

    .company-table tr::before {
        top: -3px;
        left: -3px;
    }

    .company-table tr::after {
        top: -3px;
        right: -3px;
    }

    .company-table::before {
        top: auto;
        bottom: -3px;
        left: -3px;
    }

    .company-table::after {
        top: auto;
        bottom: -3px;
        right: -3px;
    }


    .contact-form-wrap {
        padding: 40px 5%;
    }
}