@charset "UTF-8";
/*
Theme Name: Hirayama
Author: Antigravity
Description: WordPress theme for Hirayama
Version: 1.0
*/

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

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
section,
article,
aside,
hgroup,
header,
footer,
nav,
dialog,
figure,
menu,
video,
audio,
mark,
time,
canvas,
details {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

article,
aside,
canvas,
details,
figcaption,
figure,
header,
footer,
hgroup,
menu,
nav,
section,
summary {
    display: block;
}

ol,
ul {
    list-style: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* =========================================================================
   Typography & Global
   ========================================================================= */
html,
body {
    width: 100%;
    color: #efefef;
    background: #2a2b2b;
    font-size: 13px;
    line-height: 2.53;
    letter-spacing: 0.01em;
    font-feature-settings: "palt";
    font-family: a-otf-ryumin-pr6n, serif;
    font-weight: 300;
}

@font-face {
    font-family: 'HelveticaNeue';
    src: url('fonts/Helvetica-Neue-UltraLight.ttf') format('truetype');
    /* Adjust path if needed or rely on system/webfont */
}

.jp {
    font-family: a-otf-ryumin-pr6n, serif;
}

.en {
    font-family: 'HelveticaNeue', sans-serif;
}

h2,
h3,
h4,
.btn-lang,
header .content-en {
    font-family: 'HelveticaNeue', a-otf-ryumin-pr6n, serif;
    font-weight: normal;
}

/* Utility Classes */
.sp {
    display: none !important;
}

.pc {
    display: block !important;
}

@media screen and (max-width: 768px) {
    .sp {
        display: block !important;
    }

    .pc {
        display: none !important;
    }
}

.clm-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* =========================================================================
   Header
   ========================================================================= */
header {
    text-align: center;
    line-height: 1;
    padding-top: 0px;
    position: relative;
    z-index: 2;
}

@media screen and (min-width: 769px) {
    header h1 img {
        width: 120px;
    }
}

/* Front Page: Transparent Header Overlay */
.home header,
.front-page header {
    /*     position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    /*     background: #191A1A; */
    background: transparent;
    z-index: 100;
}

.nav-wrap {
    padding: 27px 25px;
    margin-top: 40px;
    border-top: #aaa 1px solid;
    border-bottom: #aaa 1px solid;
    position: relative;
}

.nav-wrap .btn-lang {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    letter-spacing: .1em;
    z-index: 2;
}

.nav-wrap .gnav li {
    display: inline-block;
    margin: 0 30px;
    letter-spacing: .1em;
    transition: opacity .7s ease;
}

.nav-wrap .gnav li:hover {
    opacity: .5;
}

.nav-wrap .snav {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-wrap .snav li {
    display: inline-block;
    margin-left: 13px;
    vertical-align: middle;
}

.snav svg {
    fill: #fff;
    vertical-align: middle;
}

/* Hamburger Menu (Open Menu) */
.open-menu-btn-wrap {
    display: block;
    position: fixed;
    z-index: 99999;
    width: 50px;
    height: 50px;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.menu-open .open-menu-btn-wrap {
    z-index: 1;
    /* Hide behind open menu */
}

.open-menu-btn {
    width: 100%;
    height: 100%;
    position: relative;
}

.open-menu-btn .toggle {
    display: block;
    background: #FFF;
    width: 26px;
    /* Slightly smaller width */
    height: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all .4s;
}

.open-menu-btn .toggle:nth-child(1) {
    top: 15px;
    /* Moved down from 0 */
}

.open-menu-btn .toggle:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.open-menu-btn .toggle:nth-child(3) {
    bottom: 15px;
    /* Moved up from 0 */
}

.open-menu-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, .7);
    top: 0;
    right: 0;
    opacity: 0;
    transition: .4s;
    z-index: 9998;
    pointer-events: none;
}

.open-menu-wrap {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    transition: .4s;
    opacity: 0;
    z-index: 9998;
    background: #2a2b2b;
    /* Solid background */
    pointer-events: none;
    overflow-y: scroll;
}

.menu-open .open-menu-bg,
.menu-open .open-menu-wrap {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    /* Reduced size */
    height: 50px;
    /* Reduced size */
    z-index: 99999;
    /* Max */
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.menu-open .close-menu-btn-wrap {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn .toggle {
    display: block;
    background: #FFF;
    width: 35px;
    /* Smaller X */
    height: 1px;
    position: absolute;
    left: 50%;
    transform-origin: center;
}

.close-menu-btn .toggle:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu-btn .toggle:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.open-menu-nav {
    padding: 25vw 5%;
}

.open-menu-nav ul li {
    font-size: 26px;
    /* Further increased */
    margin-bottom: 35px;
    text-align: left;
    letter-spacing: 0.1em;
}

.open-menu-nav ul li a {
    display: block;
}

.open-menu-nav .snav {
    display: flex;
    /* Horizontal */
    gap: 30px;
    margin-top: 40px;
}

.open-menu-nav .snav li {
    margin-bottom: 0px;
}

.open-menu-nav ul li font {
    display: block;
    /* Ensure English subtext is on new line */
}

.open-menu-nav ul li .content-en {
    font-size: 14px;
    /* Slightly larger */
    opacity: 0.7;
}

/* =========================================================================
   Front Page (Slider)
   ========================================================================= */
.top-icatch-area {
    width: 100vw;
    /*     height: 100vh; */
    height: calc(100vh - 250px);
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

.top-icatch-area::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /*     background: rgba(0, 0, 0, 0.4); */
    z-index: 5;
    pointer-events: none;
}

.top-slider,
.slider {
    width: 100vw;
    height: 100vh;
    padding-top: 0;
    /* Resetting specific padding if not needed, or adjust */
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: 'object-fit: cover;';
    /* IE polyfill if needed */
}

.top-icatch-area .copy-wrap {
    /*     position: absolute;
    top: 460px;
    left: 50%;
    transform: translate(-50%, -50%); */
    text-align: center;
    /*     max-width: 90%; */
    /*     width: 100%; */
    margin: 0 auto;
    z-index: 10;
}

.top-icatch-area .copy-wrap h2 {
    font-size: 40px;
    line-height: 1.6;
    letter-spacing: .1em;
    margin-bottom: 20px;
}

.top-icatch-area .copy-wrap .text-wrap {
    max-width: 800px;
    padding: 20px 55px;
    margin: 0 auto;
    border-top: #aaa 1px solid;
    border-bottom: #aaa 1px solid;
    background: rgba(42, 43, 43, 0.7);
    /* Improved readability */
}

.hero-message p {
    font-size: 16px;
    text-align: left;
    line-height: 38px;
}

/* =========================================================================
   Page Common
   ========================================================================= */
.page-contents-wrap {
    padding-top: 125px;
    background: #2a2b2b;
    position: relative;
    z-index: 5;
    min-height: 100vh;
}

.page-contents-wrap h2 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: .1em;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 150px;
    text-align: center;
}

.page-template-page-concept .page-contents-wrap {
    width: 100vw;
    /* height: 100vh; */
    /*     height: calc(100vh - 270px); */
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 20px;
    padding-top: 50px;
    box-sizing: border-box;
}

.page-template-page-concept .page-contents-wrap h2 {
    margin-bottom: 20px;
}

.page-template-page-concept .page-contents-wrap .concept-read-area {
    padding-bottom: 0;
}

.page-template-page-concept .page-contents-wrap .concept-read-area .inner {
    max-width: 1250px;
}

.page-contents-wrap h3.title {
    text-align: center;
    font-size: 40px;
    line-height: 1;
    letter-spacing: .1em;
    padding-bottom: 35px;
    margin-bottom: 70px;
    border-bottom: #aaa 1px solid;
    display: block;
    width: 90%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.page-contents-wrap h3.title span {
    display: block;
    font-size: 17px;
    margin-bottom: 23px;
    font-family: a-otf-ryumin-pr6n, serif;
    font-weight: 300;
}

/* =========================================================================
   Concept Page
   ========================================================================= */
.concept-read-area {
    text-align: center;
    padding: 10px 0 100px;
}

.concept-read-area .inner {
    /* width: 90%; */
    max-width: 1100px;
    margin: 0 auto;
}

.concept-read-area .title-wrap {
    line-height: 1;
    margin-bottom: 50px;
    position: relative;
    display: block;
}

.concept-read-area .title-wrap h2 {
    font-size: 61px;
    letter-spacing: .1em;
    max-width: 50%;
    padding-top: 140px;
    text-align: left;
}

.concept-read-area .title-wrap .thumb-area {
    max-width: 710px;
    margin: 0 auto;
    position: relative;
}

.concept-read-area .title-wrap .thumb-area .copy {
    font-size: 38px;
    letter-spacing: .1em;
    position: relative;
    /* Changed from absolute */
    margin-bottom: 30px;
    display: block;
    text-align: left;
    /* Changed from right */
}

.concept-read-area .text-wrap {
    /*     max-width: 600px; */
    width: fit-content;
    margin: 0 auto;
    text-align: left;
    line-height: 4em;
}

/* =========================================================================
   Company Page
   ========================================================================= */
.company-contents-wrap .icatch-wrap {
    margin-bottom: 100px;
    text-align: center;
}

.company-contents-wrap .detail-wrap {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #aaa;
}

.company-contents-wrap .detail-wrap table th,
.company-contents-wrap .detail-wrap table td {
    padding: 24px 0;
    border-bottom: 1px solid #595959;
    text-align: left;
    vertical-align: top;
}

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

.company-contents-wrap .map-wrap {
    width: 100%;
    height: 500px;
    margin-top: 100px;
    background: #ddd;
}

.message-wrap2 {
    width: 90%;
    max-width: 1500px;
    margin: 150px auto;
    text-align: center;
}

.message-wrap2 .text-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.message-wrap2 .profile-area {
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
}

.message-wrap2 .profile-area img {
    /*     width: 200px; */
    max-width: 300px;
    max-height: 200px;
    height: auto;
    margin-right: 40px;
    margin-bottom: 20px;
}

.message-wrap2 .profile-area .name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.message-wrap2 .profile-area .profile-info {
    flex: 1;
    min-width: 300px;
}

/* =========================================================================
   Blog List (Archive/Home)
   ========================================================================= */
.post-contents-wrap {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto 150px;
}

.post-clm3-contents-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-clm3-contents-wrap .post {
    width: 31%;
    margin-bottom: 80px;
}

.thumb-wrap {
    margin-bottom: 20px;
    overflow: hidden;
}

.thumb-wrap img {
    transition: transform 0.5s ease;
}

.thumb-wrap:hover img {
    transform: scale(1.05);
}

.post .date {
    opacity: 0.6;
    font-size: 14px;
    margin-bottom: 10px;
}

.post h4 {
    font-size: 16px;
    line-height: 1.6;
}

.no-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 18px;
    letter-spacing: 0.2em;
    font-weight: 300;
}

.post-nav {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.post-nav .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #fff;
    margin: 0 5px;
}

.post-nav .page-numbers.current {
    background: #fff;
    color: #2a2b2b;
}

/* =========================================================================
   Single Post
   ========================================================================= */
.post-single-wrap {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 150px;
}

.post-single-wrap .icatch-wrap {
    margin-bottom: 60px;
}

.post-single-wrap h4.content-jp {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-template-page-concept .page-contents-wrap .content-jp {
    /* 	text-align:center; */
    font-size: 16px;
}

.post-single-wrap .date {
    text-align: center;
    opacity: 0.6;
    margin-bottom: 60px;
}

.post-single-wrap .text-wrap {
    line-height: 2;
    font-size: 15px;
}

.post-single-wrap .text-wrap p {
    margin-bottom: 2em;
}

.post-single-wrap .text-wrap h2 {
    font-size: 22px;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
    margin: 40px 0 20px;
}

.post-single-wrap .text-wrap h3 {
    font-size: 18px;
    margin: 30px 0 15px;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
    text-align: center;
    margin: 100px 0 100px;
}

footer .copyright {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.8;
}

/* =========================================================================
   Responsive
   ========================================================================= */
/* Front Page Sections */
.front-page-contents {
    margin-top: 0;
    padding-top: 0;
    background: #2a2b2b;
    position: relative;
    z-index: 5;
}

.top-section {
    padding: 100px 0;
}

.top-section h3.title {
    margin-bottom: 50px;
}

.btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.view-more {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.view-more:hover {
    background: #fff;
    color: #2a2b2b;
}

/* Concept Section (Front) */
.concept-section .inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.concept-section .text-area {
    width: 45%;
}

.concept-section .image-area {
    width: 50%;
}

.concept-section .title.text-left {
    text-align: left;
    margin-left: 0;
    width: 100%;
}

.concept-section p {
    margin-bottom: 40px;
    line-height: 2;
}

/* Company Section (Front) */
.company-section {
    text-align: center;
    background: #333;
    /* Slightly different bg to separate */
}

.company-section p {
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {

    /* Header */
    header {
        padding-top: 20px;
    }

    header h1 img {
        width: auto;
        height: 100px;
        /* Reduced to balance with hamburger menu */
    }

    .nav-wrap {
        display: none;
    }

    /* Use Hamburger */

    /* Front Page */
    /* Center logo and catchcopy together on mobile */
    .home header,
    .front-page header {
        /*         position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); */
        width: 100%;
        padding-top: 15%;
        /*         margin-top: -190px; */
        height: 200px;
    }

    .hero-message p {
        font-size: 15px;
        line-height: 35px;
    }

    .home header h1 img,
    .front-page header h1 img {
        height: 100px;
    }

    .slider img {
        height: 100vh;
        object-fit: cover;
    }

    .top-icatch-area {
        height: calc(100vh - 200px);
        padding: 20px 0;
        margin-top: 0;
    }

    .top-icatch-area .copy-wrap {
        margin-top: 0px;
        padding: 0 15px;
    }

    .top-icatch-area .copy-wrap h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .top-icatch-area .copy-wrap .text-wrap {
        padding: 20px;
        font-size: 12px;
    }

    /* Common */
    .page-contents-wrap {
        padding-top: 80px;
    }

    .page-contents-wrap h2 {
        font-size: 28px;
        margin-bottom: 60px;
    }

    .page-contents-wrap h3.title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    /* Concept */
    .concept-read-area .title-wrap {
        flex-direction: column;
    }

    .concept-read-area .title-wrap h2 {
        max-width: 100%;
        font-size: 32px;
        padding-top: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .concept-read-area .title-wrap .thumb-area {
        width: 100%;
    }

    .concept-read-area .title-wrap .thumb-area .copy {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 20px;
        font-size: 20px;
    }

    .concept-read-area .text-wrap {
        line-height: 3.3em;
    }

    /* Company */
    .company-contents-wrap .detail-wrap {
        border: 1px solid #aaa;
        padding: 5%;
        width: 100%;
        margin-bottom: 50px;
    }

    .company-contents-wrap .detail-wrap table th,
    .company-contents-wrap .detail-wrap table td {
        display: table-cell;
        /* Revert block for horizontal layout */
        border-bottom: 1px solid #595959;
        font-size: 11px;
        line-height: 1.8;
        padding: 15px 0;
    }

    .company-contents-wrap .detail-wrap table tr:last-child th,
    .company-contents-wrap .detail-wrap table tr:last-child td {
        border-bottom: none;
    }

    .company-contents-wrap .detail-wrap table th {
        width: 30%;
        padding-right: 10px;
    }

    .company-contents-wrap .detail-wrap table td {
        width: 70%;
    }

    .message-wrap2 .profile-area img {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0 0 20px;
    }

    /* Blog */
    .post-clm3-contents-wrap .post {
        width: 100%;
    }

    /* Single */
    .post-single-wrap {
        width: 90%;
    }

    .front-page-contents {
        margin-top: 0;
        padding-top: 0;
    }

    .concept-section .inner {
        flex-direction: column-reverse;
        /* Image top on mobile */
    }

    .concept-section .text-area,
    .concept-section .image-area {
        width: 100%;
    }

    .concept-section .image-area {
        margin-bottom: 40px;
    }

    .concept-section .title.text-left {
        text-align: center;
        width: 90%;
        margin: 0 auto 40px;
    }

    .concept-section p {
        text-align: center;
    }

    .concept-section .text-area {
        text-align: center;
    }

    .page-template-page-concept .page-contents-wrap .content-jp {
        font-size: 16px;
    }
}

/* =========================================================================
   Additional Styles for Logo and Hero Section
   ========================================================================= */
.logo-text {
    display: block;
    font-size: 28px;
    letter-spacing: 0.1em;
    margin-top: 5px;
    color: #fff;
    font-family: a-otf-ryumin-pr6n, serif;
}

.fv-right-top {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 20;
    width: 130px;
    text-align: center;
}

.fv-right-top img {
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.cert-text {
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.05em;
    font-family: a-otf-ryumin-pr6n, serif;
    text-align: right;
}

@media screen and (max-width: 768px) {
    .logo-text {
        font-size: 20px;
    }

    .fv-right-top {
        top: 20px;
        right: 20px;
        width: 100px;
    }

    .cert-text {
        font-size: 8px;
    }
}

/* =========================================================================
   Contact Page
   ========================================================================= */
.page-contact-wrapper .contact-contents-wrap {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 150px;
    background: #fff;
    padding: 60px;
    color: #333;
}

.page-contact-wrapper .contact-intro-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

/* Contact Form 7 Styles specifically scoped */
.page-contact-wrapper .wpcf7-form .form-group {
    margin-bottom: 25px;
}

.page-contact-wrapper .wpcf7-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.page-contact-wrapper .wpcf7-form input[type="text"],
.page-contact-wrapper .wpcf7-form input[type="email"],
.page-contact-wrapper .wpcf7-form input[type="tel"],
.page-contact-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.page-contact-wrapper .wpcf7-form textarea {
    height: 200px;
}

.page-contact-wrapper .wpcf7-form .submit-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.page-contact-wrapper .wpcf7-form input[type="submit"] {
    background: #2a2b2b;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.1em;
}

.page-contact-wrapper .wpcf7-form input[type="submit"]:hover {
    opacity: 0.8;
}
.grecaptcha-badge{
	z-index:99;
}

@media screen and (max-width: 768px) {
    .page-contact-wrapper .contact-contents-wrap {
        padding: 30px 15px;
    }
}