/* ========================================
   Reset
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========================================
   Base
   ======================================== */
body {
    color: #1f1f1f;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
}

a {
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

h1,
h2,
h3 {
    color: #2a2a2a;
    font-weight: 480;
}

h1 {
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 4.1rem);
}

h2 {
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.56rem);
}

h3 {
    font-size: clamp(1.25rem, 1rem + 0.75vw, 1.6rem);
}

.nowrap {
    display: inline-block;
    font-style: normal;
}

/* ========================================
   Common
   ======================================== */
main > section + section {
    margin-top: 5rem;
}

.unit {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Section Title */
h2 span {
    align-items: center;
    color: #D4324A;
    display: flex;
    font-size: 1rem;
    font-weight: 900;
    gap: 0.5rem;
    line-height: 1;
    margin-bottom: 2.5em;
    text-transform: uppercase;
}

h2 span::before {
    background-color: #D4324A;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    content: "";
    display: inline-block;
    height: 1em;
    width: 1em;
}

/* Button */
.btn {
    align-items: center;
    background-color: #1f1f1f;
    border-radius: 5px;
    color: #fff;
    display: flex;
    flex: 1;
    line-height: 1;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    max-width: 320px;
    padding: 0.8rem;
    text-decoration: none;
    width: 100%;
}

.btn-arrow {
    background-color: #4d4d4d;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
    padding: 1em;
    text-decoration: none;
}

.btn-text {
    flex: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .btn {
        max-width: 100%;
    }
}

/* ========================================
   Header
   ======================================== */
header {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 1rem;
    z-index: 101;
}

.hamburger span {
    background-color: #333;
    display: block;
    height: 2px;
    transition: opacity 0.3s, transform 0.3s;
    width: 24px;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo a {
    display: block;
    padding: 1rem;
}

.logo img {
    max-height: 48px;
    width: auto;
}

.nav-menu {
    align-items: center;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #333;
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu .contact-btn {
    background-color: #D4324A;
    color: #fff;
    padding: 2rem 4rem;
}

.nav-menu .contact-btn:hover {
    opacity: 0.9;
}

.nav-menu .nav-contact-btn {
    display: none;
}

@media (max-width: 1200px) {
    .hamburger {
        display: flex;
    }

    .hero {
        margin: 1rem 1rem 0;
    }

    .nav-menu {
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        display: none;
        flex-direction: column;
        gap: 0;
        height: 100vh;
        justify-content: center;
        left: 0;
        padding: 2rem;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
    }

    .nav-menu::before {
        background-image: url('images/logo.png');
        background-repeat: no-repeat;
        background-size: contain;
        content: "";
        display: block;
        height: 48px;
        margin-bottom: 3rem;
        width: 150px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem;
    }

    .nav-menu li {
        text-align: center;
        width: 100%;
    }

    .nav-menu .contact-btn {
        display: none;
    }

    .nav-menu .nav-contact-btn {
        display: flex;
        margin-top: 1rem;
    }

    .nav-menu a.nav-contact-btn.btn {
        color: #fff;
    }
}

/* ========================================
   index: Hero
   ======================================== */
.hero {
    background-image: url('images/mv.png');
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 740px;
    justify-content: center;
    margin: 2.5rem 2.5rem 0;
    padding: clamp(2.5rem, 2rem + 2vw, 4.1rem);
}

.hero h1 {
    color: #fff;
    margin-top: 1.5em;
    text-align: center;
}

.hero h1 span {
    display: block;
    font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.25rem);
}

@media (max-width: 740px) {
    .hero {
        aspect-ratio: 3 / 4;
        height: auto;
        margin: 1rem 1rem 0;
    }
}

/* ========================================
   index: Business
   ======================================== */
.business-bkg {
    background-image: url('images/decobkg_r.png');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(1280px + 2.5rem);
}

.business-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    margin-top: 2.5rem;
}

.business-item {
    background-color: #D4324A;
    border-radius: 1.25rem;
    color: #fff;
    padding: 2rem;
}

.business-item > * + * {
    margin-top: 1rem;
}

.business-item a {
    display: inline-block;
}

.business-item h3 {
    color: #fff;
}

.business-item:first-child .btn-arrow {
    background-color: #D4324A;
}

.business-item:last-child {
    background-color: #4d4d4d;
}

.business-item .btn-arrow {
    background-color: #1f1f1f;
}

.business-main {
    aspect-ratio: 1 / 1;
    background-blend-mode: multiply;
    background-image: linear-gradient(#D4324A, #D4324A), url('images/business_01.png');
    background-position: center;
    background-size: cover;
    grid-row: 1 / 3;
}

@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .business-main {
        aspect-ratio: auto;
        grid-row: auto;
    }
}

/* ========================================
   index: Works
   ======================================== */
.works {
    background-color: #f2f2f7;
    padding-bottom: 5rem;
    padding-top: 5rem;
}

.works h2 {
    position: relative;
}

.works-bkg {
    background-image: url('images/decobkg_w.png');
    background-position: left top;
    background-repeat: no-repeat;
    background-size: min(192px, 100%) auto;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(1280px + 2.5rem);
}

.works-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.works-icon {
    flex-shrink: 0;
}

.works-icon img {
    height: auto;
    max-width: 120px;
}

.works-item {
    align-items: center;
    background-color: #fff;
    border-radius: 1.25rem;
    color: inherit;
    display: flex;
    flex: 1 1 calc(50% - 0.75rem);
    gap: 1rem;
    padding: 2rem;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .works-item {
        flex: 1 1 100%;
    }
}

/* ========================================
   index: Flow
   ======================================== */
.flow {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    max-width: 1920px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.flow-bkg {
    height: min(400px, calc(100vw * 400 / 1920));
    margin-top: 5rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.flow-bkg::after {
    background-color: #D4324A;
    content: "";
    height: 100%;
    left: 0;
    mix-blend-mode: multiply;
    position: absolute;
    top: 0;
    width: 100%;
}

.flow-bkg img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.flow-list {
    background-color: rgba(212, 50, 74, 0.1);
    border-radius: 1.25rem;
    display: flex;
    list-style: none;
}

.flow-list li {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem;
    position: relative;
}

.flow-list li h3,
.flow-list li span {
    color: #D4324A;
}

.flow-list li p:not(:last-of-type) {
    color: #D4324A;
}

.flow-list li span {
    font-weight: 900;
}

.flow-list li + li::before {
    background-color: #fff;
    clip-path: polygon(0 0, 70% 50%, 0 100%, 30% 100%, 100% 50%, 30% 0);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 1.5rem;
}

@media (max-width: 1024px) {
    .flow-list {
        flex-direction: column;
    }

    .flow-list li + li::before {
        clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 30%, 50% 100%, 0 30%);
        height: 3rem;
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
        width: 100%;
    }
}

/* ========================================
   index: News
   ======================================== */
.news {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    margin-top: 2.5rem;
}

.news h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news li a {
    align-items: flex-start;
    color: inherit;
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
}

.news li a > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    width: calc(70% - 0.75rem);
}

.news-body {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    line-clamp: 2;
    overflow: hidden;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-tags span {
    background-color: #D4324A;
    border-radius: 10px;
    color: #fff;
    padding: 0.25rem 1rem;
}

.news-thumb {
    aspect-ratio: 360 / 218;
    background-color: #f0f0f0;
    flex-shrink: 0;
    max-width: 360px;
    overflow: hidden;
    width: calc(30% - 0.75rem);
}

.news-thumb img {
    border-radius: 1.25rem;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 1024px) {
    .news li a {
        flex-direction: column;
    }

    .news li a > div:last-child {
        width: 100%;
    }

    .news-thumb {
        max-width: none;
        width: 100%;
    }
}

/* ========================================
   index: Contact
   ======================================== */
.contact {
    background-color: #D4324A;
    color: #fff;
    display: flex;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    padding: 7.5rem 2rem;
    text-align: center;
    width: 50%;
}

.contact-item h2 {
    color: #fff;
}

.contact-item:first-child {
    background-blend-mode: multiply;
    background-image: linear-gradient(#D4324A, #D4324A), url('images/contact_01.png');
    background-position: center;
    background-size: cover;
}

.contact-item .btn {
    margin-top: 0;
}

.tel-number {
    color: inherit;
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.56rem);
    pointer-events: none;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .contact {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
    }

    .tel-number {
        pointer-events: auto;
    }
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: #4d4d4d;
    color: #fff;
    padding-bottom: 5rem;
    padding-top: 5rem;
}

.copyright {
    margin-top: 5rem;
    text-align: center;
}

.footer {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.footer > * {
    width: 50%;
}

.footer > div > * + * {
    margin-top: 1rem;
}

.footer > div .logo {
    max-height: 48px;
    width: auto;
}

.footer ul {
    list-style: none;
    text-align: right;
}

.footer ul li + li {
    margin-top: 2rem;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
}

.footer ul li .btn {
    margin-right: 0;
}

@media (max-width: 1024px) {
    .footer {
        flex-direction: column;
    }

    .footer > * {
        width: 100%;
    }

    .footer ul {
        text-align: left;
    }
}

/* ========================================
   Subpage
   ======================================== */
.subpage {
    overflow-x: hidden;
}

.subpage h1 {
    color: #D4324A;
    font-size: 1rem;
    font-weight: 900;
    margin-top: 2.5rem;
    position: relative;
    text-align: right;
}

.subpage h1 + p {
    color: #2a2a2a;
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.56rem);
    font-weight: 480;
}

@media (max-width: 1024px) {
    .subpage h1 + p {
        font-size: clamp(1.25rem, 1rem + 0.75vw, 1.6rem);
    }
}

.subpage h1::after {
    background-color: #D4324A;
    content: "";
    height: 1px;
    left: calc(100% + 1rem);
    position: absolute;
    top: 50%;
    width: calc(50vw - 50% - 1rem);
}

.subpage main > section.unit > * + * {
    margin-top: 5rem;
}

.subpage main > section.unit > p + p {
    margin-top: 2.5rem;
}

.subpage main > section.unit > section > * + * {
    margin-top: 2.5rem;
}

.subpage main > section.unit a {
    margin-left: 0;
}

.subpage main > section.unit img {
    border-radius: 1.25rem;
}

.subpage main > section.unit ul {
    list-style: none;
}

.subpage main > section.unit ul:not([class]) li {
    position: relative;
}

.subpage main > section.unit ul:not([class]) li::before {
    content: '⚫︎';
    margin-right: 0.25em;
}

.subpage main > section.unit ul:not([class]) li + li {
    margin-top: 0.75rem;
}

.subpage .business-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}

.subpage .business-item {
    min-height: 296px;
}

.subpage .business-main {
    aspect-ratio: auto;
    grid-row: auto;
}

.subpage .column-unit {
    display: flex;
    gap: 2.5rem;
}

.subpage .column-unit > div > * + * {
    margin-top: 2.5rem;
}

.subpage .products-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.subpage .products-tags span {
    background-color: #4D4D4D;
    border-radius: 0.25rem;
    color: #fff;
    padding: 0.25rem 1rem;
}

@media (max-width: 1024px) {
    .subpage .business-grid {
        grid-template-columns: 1fr;
    }

    .subpage .column-unit {
        flex-direction: column;
    }
}

/* ========================================
   Subpage: Strength
   ======================================== */
.subpage.slug-strength .column-unit > div {
    flex: 1;
}

/* ========================================
   Subpage: Products
   ======================================== */
.subpage.slug-products .column-unit > div:first-child {
    width: calc(62.5% - 1.25rem);
}

.subpage.slug-products .column-unit > div:last-child {
    width: calc(37.5% - 1.25rem);
}

@media (max-width: 1024px) {
    .subpage.slug-products .column-unit > div:first-child,
    .subpage.slug-products .column-unit > div:last-child {
        width: 100%;
    }
}

/* ========================================
   Subpage: About Us
   ======================================== */
.subpage.slug-aboutus .column-unit {
    align-items: center;
}

.subpage.slug-aboutus .column-unit > div:first-child {
    width: calc(18.75% - 1.25rem);
}

.subpage.slug-aboutus .column-unit > div:last-child {
    width: calc(81.25% - 1.25rem);
}

.subpage.slug-aboutus .line-box {
    border: 1px solid #D4324A;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .subpage.slug-aboutus .column-unit > div:first-child,
    .subpage.slug-aboutus .column-unit > div:last-child {
        width: 100%;
    }

    .subpage.slug-aboutus .column-unit > div:first-child img {
        max-width: 120px;
    }
}

/* ========================================
   Subpage: Company
   ======================================== */
.subpage.slug-company h3 {
    color: #D4324A;
}

.subpage.slug-company .address {
    margin: 0 0 1rem 0;
}

.subpage.slug-company .map-container {
    aspect-ratio: 1104 / 480;
    width: 100%;
}

.subpage.slug-company .map-container iframe {
    border-radius: 1.25rem;
    height: 100%;
    width: 100%;
}

.subpage.slug-company .map-container img {
    border-radius: 0.75rem;
    display: block;
    height: auto;
    width: 100%;
}

.subpage.slug-company .profile-row {
    display: flex;
    padding: 1.5rem 1rem;
}

.subpage.slug-company .profile-row dd {
    flex-grow: 1;
    margin: 0;
}

.subpage.slug-company .profile-row dt {
    flex-shrink: 0;
    font-weight: bold;
    width: 9.375rem;
}

@media (max-width: 600px) {
    .subpage.slug-company .profile-row {
        flex-direction: column;
        padding: 1rem 0.5rem;
    }

    .subpage.slug-company .profile-row dt {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* ========================================
   Subpage: Contact (メールフォーム)
   ======================================== */
.subpage.slug-contact .fax-number,
.subpage.slug-contact .tel-number {
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.56rem);
}

.file-note {
    color: #333;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.form-group + .form-group {
    margin-top: 2.5rem;
}

.form-group > label {
    flex-shrink: 0;
    font-weight: bold;
    width: 12.5rem;
}

.form-input-area {
    flex-grow: 1;
}

.note {
    color: #666;
    display: block;
    font-size: 0.8125rem;
    font-weight: normal;
    margin-top: 0.25rem;
}

.required {
    background-color: #d9534f;
    border-radius: 0.25rem;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    vertical-align: middle;
}

.submit-button-wrapper {
    margin-top: 2.5rem;
}

.submit-button-wrapper .btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.submit-button-wrapper .btn:hover {
    opacity: 0.7;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-radio .wpcf7-list-item {
    display: block;
    margin: 0 0 0.75rem 0;
}

.wpcf7-radio input[type="radio"] {
    margin-right: 0.5rem;
}

input[type="email"],
input[type="file"],
input[type="tel"],
input[type="text"],
textarea {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
}

textarea {
    min-height: 12.5rem;
    resize: vertical;
}

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }

    .form-group > label {
        width: 100%;
    }
}

/* ========================================
   Subpage: Privacy Policy
   ======================================== */
.subpage.slug-privacy-policy h1 + p {
    font-size: clamp(1.25rem, 1rem + 0.75vw, 1.6rem);
}

/* ========================================
   Single Post
   ======================================== */
.single .news-thumb img {
    border-radius: 0;
}

.entry-content {
    margin-top: 2.5rem;
}

.entry-content h2 {
    margin-top: 2.5rem;
}

.entry-content h3 {
    margin-top: 2rem;
}

.entry-content p {
    margin-top: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.entry-content li + li {
    margin-top: 0.5rem;
}

.entry-content blockquote {
    border-left: 3px solid #D4324A;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
}

.entry-content table {
    border-collapse: collapse;
    margin-top: 1rem;
    width: 100%;
}

.entry-content th,
.entry-content td {
    border: 1px solid #ccc;
    padding: 0.75rem;
}

.entry-content th {
    background-color: #f2f2f7;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignnone {
    display: block;
    margin-top: 1rem;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.post-meta {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.post-meta > * {
    flex: 1;
}

.post-meta .news-tags {
    justify-content: flex-end;
}

.post-nav-disabled {
    color: #ccc;
}

.post-navigation {
    border-top: 1px solid #D4324A;
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
}

.post-navigation a {
    color: #333;
    text-decoration: none;
}

/* ========================================
   Pagination
   ======================================== */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.nav-links a,
.nav-links span {
    background-color: #D4324A;
    border-radius: 10px;
    color: #fff;
    display: inline-block;
    padding: 0.25rem 1rem;
    text-decoration: none;
}

.nav-links .current {
    background-color: #1f1f1f;
}

.nav-links a:hover {
    opacity: 0.7;
}

.pagination {
    margin-top: 2.5rem;
}
