@charset "UTF-8";

/* --------------------------------------------------------------
   Media query - Responsive
   1200px : PC small
   992px  : Tablet + Mobile
   576px  : Mobile
   -------------------------------------------------------------- */

/* ======================================================================
   1200px - PC small
   ====================================================================== */
@media screen and (max-width: 1200px) {

    /* ==================== COMMON STRUCTURE ==================== */

    /* footer contact ---------------------------------------------------------- */
    .index_contact,
    .contact_content {
        min-height: 250px;
    }
    .contact_content h3 {
        margin-bottom: 22px;
        font-size: 25px;
    }
    .contact_content a {
        width: 270px;
        min-height: 56px;
        padding: 10px 20px;
        font-size: 15px;
    }

    /* footer ---------------------------------------------------------- */
    #footer,
    #footer_box {
        min-height: 270px;
    }
    #footer_box {
        padding: 45px 24px 28px;
    }

    /* ==================== COMPONENTS ==================== */

    /* sample strip (index / products) ---------------------------------------------------------- */
    .sample_text strong {
        font-size: 12px;
    }

    /* ==================== PAGE : INDEX ==================== */

    /* main visual ---------------------------------------------------------- */
    .hero_copy h2 {
        font-size: 45px;
    }
    .main_visual_box::before {
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    }
    .hero_copy h2 strong {
        font-size: 52px;
    }

    /* menu banner ---------------------------------------------------------- */
    .menu_grid {
        gap: 24px;
    }
}


/* ======================================================================
   992px - Tablet + Mobile
   ====================================================================== */
@media screen and (max-width: 992px) {

    /* ==================== VARIABLES ==================== */
    :root {
        --container-gutter: 30px;
        --font-size-xxl: 180%;
        --font-size-xl: 160%;
        --font-size-l: 140%;
        --font-size-m: 120%;
    }

    /* ==================== COMMON STRUCTURE ==================== */

    /* header ---------------------------------------------------------- */
    #htop,
    #header .top_bar {
        min-height: 28px;
        height: auto;
    }
    #header h1 {
        max-width: 100%;
        font-size: 8px;
    }
    .top_links,
    #h_right .pc {
        display: none;
    }
    #h_box {
        display: flex;
        height: 68px;
        align-items: center;
        justify-content: space-between;
    }
    .logo_text {
        grid-template-columns: 7px auto;
        column-gap: 11px;
    }
    .logo_mark {
        width: 7px;
        height: 42px;
    }
    .logo_name {
        font-size: clamp(14px, 3.2vw, 19px);
    }
    .logo_en {
        margin-top: 5px;
        font-size: 7px;
    }
    #h_right .sp {
        display: flex;
        align-items: center;
        gap: 9px;
    }
    #h_right .sp ul {
        display: flex;
    }
    #h_right .sp ul li{ margin-left: 2px;}
    #h_right .sp li a,
    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--navy);
        background: var(--yellow);
    }
 

    .menu-toggle {
        flex-direction: column;
        gap: 5px;
    }
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--navy);
    }
    .menu-toggle.open {
        visibility: hidden;
    }
    body.menu_open {
        overflow: hidden;
    }

    /* global navigation ---------------------------------------------------------- */
    #mainNav .box_full {
        width: 100%;
    }
    #mainNavPanel {
        position: fixed;
        z-index: 1000;
        top: 0;
        right: 0;
        width: min(360px, 86vw);
        height: 100vh;
        padding: 62px 24px 30px;
        overflow-y: auto;
        background: var(--navy);
        border: 0;
        transform: translateX(100%);
        transition: transform .25s ease;
    }
    #mainNavPanel.open {
        transform: translateX(0);
    }
    .panel_close {
        position: absolute;
        top: 12px;
        right: 12px;
        display: flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--navy);
        background: #fff;
        font-size: 22px;
        line-height: 1;
    }
    #mainNav ul {
        display: block;
        border: 0;
    }
    #mainNav li {
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }
    #mainNav li::after {
        display: none;
    }
    #mainNav li a {
        justify-content: flex-start;
        height: auto;
        min-height: 52px;
        padding: 14px 8px;
        font-size: 14px;
    }
    .need_top{ padding-top: 10%;}
    /* ==================== COMPONENTS ==================== */

    /* margin style ---------------------------------------------------------- */
    .section {
        margin-bottom: 10%;
    }
    .container {
        margin-bottom: 8%;
    }
    .case {
        margin-bottom: 6%;
    }
    .pack {
        margin-bottom: 4%;
    }
    .item {
        margin-bottom: 2%;
    }

    /* switch pc sp ---------------------------------------------------------- */
    .sp {
        display: block;
    }
    .pc {
        display: none;
    }
    /* title style ---------------------------------------------------------- */
    .title_main {
        padding-top: 60px;
    }
    .title_main::before {
        height: 50px;
    }

    /* button ---------------------------------------------------------- */
    .btn_demo_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* card ---------------------------------------------------------- */
    .card_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* hero overlay / news card grid ---------------------------------------------------------- */
    .hero_overlay_copy {
        max-width: 100%;
        padding: 24px;
    }
    .news_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* sample strip (index / products) ---------------------------------------------------------- */
    .sample_area {
        height: auto;
        padding: 20px 0;
    }
    .sample_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* ==================== PAGE : INDEX ==================== */

    /* main visual ---------------------------------------------------------- */
    .main_visual_box {
        height: 320px;
        background-position: 48% center;
        
    }
    .main_visual_box::before {
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
        width: 75%;
    }
    .hero_copy {
        padding: 44px 30px;
    }
    .hero_copy h2 {
        font-size: 31px;
    }
    .hero_copy h2 strong {
        font-size: 36px;
    }
    .hero_points li {
        font-size: 80%;
        background-size: 16px;
        padding-left: 25px;

    }

    /* topics ---------------------------------------------------------- */
    .topics_area {
        
    }
    .topics_area > .container {
        height: auto;
        padding: 42px 38px;
    }

    /* movie ---------------------------------------------------------- */
    .movie_area {
        
    }
    .movie_box {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* menu banner ---------------------------------------------------------- */
    .menu_area {
        
    }
    .menu_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* ==================== PAGE : SUB PAGES ==================== */

    /* sub hero / section ---------------------------------------------------------- */
    .page_sub .sub_hero {
        padding: 48px 0;
    }
    .page_sub .sub_section {
        padding: 58px 0;
    }

    /* image + text split ---------------------------------------------------------- */
    .page_sub .content_split,
    .page_sub .content_split.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .page_sub .content_split.reverse img {
        order: 2;
    }

    /* products ---------------------------------------------------------- */
    .page_products .sample_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
    .page_products .data_split,
    .page_products .material_grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .page_products .figure_grid.col4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* recruit ---------------------------------------------------------- */
    .page_recruit .staff_head,
    .page_recruit .staff_head.reverse,
    .page_recruit .qa_list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .page_recruit .staff_head.reverse .staff_main {
        order: 0;
    }

    /* company ---------------------------------------------------------- */
    .page_company .learn_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* sitemap ---------------------------------------------------------- */
    .page_sitemap .sitemap_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ======================================================================
   576px - Mobile
   ====================================================================== */
@media screen and (max-width: 576px) {

    /* ==================== VARIABLES ==================== */
    :root {
        --container-gutter: 24px;
    }

    /* ==================== COMMON STRUCTURE ==================== */

    /* header ---------------------------------------------------------- */
    .logo_name,
    .logo_en {
        max-width: calc(100vw - 145px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .logo_name {
        font-size: 13px;
    }
    .logo_en {
        letter-spacing: .22em;
    }
    #h_right .sp li a,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    /* footer contact ---------------------------------------------------------- */
    .contact_content h3 {
        font-size: 22px;
    }
    .contact_content a {
        width: 250px;
    }

    /* footer ---------------------------------------------------------- */

    #footer_box {
        padding-top: 40px;
    }
    #footer .footer_logo .logo_name {
        font-size: 100%;
    }
    #footer .address {
        font-size: 70%;
    }
    #footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
        margin-bottom: 28px;
    }
    #footer li {
        margin: 0;
    }

    /* ==================== COMPONENTS ==================== */

    /* image + text layout ---------------------------------------------------------- */
    .pic_l,
    .pic_r {
        flex-direction: column;
        align-items: stretch;
    }
    .container .msg,
    .container .img {
        flex: 0 0 100%;
    }
    .container .img {
        margin-bottom: 4%;
    }
    .img_stack {
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        gap: 8px;
    }
    .img_top .img {
        margin-bottom: 4%;
    }
    .img_top .msg {
        margin-bottom: 0;
    }

    /* column list ---------------------------------------------------------- */
    .collum3,
    .collum4 {
        gap: 3.5%;
    }
    .collum3 li,
    .collum4 li {
        width: calc(50% - 1.75%);
        margin-bottom: 3.5%;
    }

    /* table ---------------------------------------------------------- */
    .tb_style th,
    .tb_style td {
        padding: 10px 12px;
    }
    .tb_cell th,
    .tb_cell td {
        display: block;
        width: 100% !important;
    }

    /* button ---------------------------------------------------------- */
    .btn_sty,
    .btn_style2,
    .btn_style3 {
        width: 100%;
    }
    .btn_style3 {
        justify-content: space-between;
    }
    .btn_demo_grid {
        grid-template-columns: 1fr;
    }

    /* card / news card grid ---------------------------------------------------------- */
    .card_grid,
    .news_grid {
        grid-template-columns: 1fr;
    }

    /* accordion menu ---------------------------------------------------------- */
    .menu_list ul a {
        width: 82%;
    }
    .menu_list .trigger {
        width: 15%;
    }

    /* hilight ---------------------------------------------------------- */
    .hilight {
        padding: 20px;
    }

    /* pagetop ---------------------------------------------------------- */
    #scTop {
        right: 16px;
        bottom: 16px;
        width: 50px;
        min-width: 50px;
        height: 50px;
        padding: 0;
    }
    #scTop::after {
        content: none;
    }

    /* sample strip (index / products) ---------------------------------------------------------- */
    .sample_list {
        gap: 10px;
    }
    .sample_card {
        height: 64px;
        grid-template-columns: 52px 1fr 16px;
    }
    .sample_img {
        height: 62px;
    }
    .sample_text {
        padding: 0 8px;
    }
    .sample_text small {
        letter-spacing: .15em;
    }
    .sample_text strong {
        font-size: 11px;
    }
    .sample_arrow {
        font-size: 20px;
    }

    /* ==================== PAGE : INDEX ==================== */

    /* main visual ---------------------------------------------------------- */
    .main_visual_box {
        height: 280px;
        background-position: 43% center;
    }
    .main_visual_box::before {        
        width: 85%;
    }
    .hero_copy {
        padding: 34px 24px;
    }
    .hero_copy h2 {
        margin-bottom: 26px;
        font-size: 27px;
    }
    .hero_copy h2 strong {
        font-size: 31px;
    }
    .hero_points li {
        padding-left: 25px;
        font-size: 12px;
        line-height: 1.45;
    }
    .hero_points li::before {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    /* menu banner ---------------------------------------------------------- */
    .menu_grid {
        gap: 12px;
    }

    /* topics ---------------------------------------------------------- */
   
    .topics_area > .container {
        padding: 30px 20px;
    }
    .topics_head h3 {
        font-size: 21px;
    }
    .news_box li {
        padding-left: 24px;
        font-size: 12px;
    }
    .news_box a,
    .news_box a:visited {
        padding-left: 0;
    }
    .news_box li span {
        display: block;
        width: auto;
        margin-bottom: 5px;
        margin-left: 0;
    }



    /* ==================== PAGE : SUB PAGES ==================== */

    /* sub hero / section ---------------------------------------------------------- */
    .page_sub .sub_hero h2 {
        font-size: 28px;
    }
    .page_sub .sub_section {
        padding: 45px 0;
    }
    .page_sub .sub_title {
        font-size: 23px;
    }

    /* products ---------------------------------------------------------- */
    .page_products .sample_grid {
        gap: 16px 10px;
    }
    .page_products .spec_table {
        font-size: 11px;
    }
    .page_products .spec_table th,
    .page_products .spec_table td {
        padding: 6px 8px;
    }
    .page_products .spec_table th {
        width: 64px;
    }
    .page_products .figure_grid.col2 {
        grid-template-columns: 1fr;
    }
    .page_products .about_box,
    .page_products .material_box {
        padding: 22px 20px;
    }

    /* recruit ---------------------------------------------------------- */
    .page_recruit .profile_list {
        padding-top: 44px;
    }
    .page_recruit .profile_list::before {
        top: 16px;
        left: 20px;
    }
    .page_recruit .collum3 {
        gap: 2%;
    }
    .page_recruit .collum3 li {
        width: calc(33.333% - 1.334%);
    }
    .page_recruit .req_table th {
        white-space: normal;
    }

    /* company ---------------------------------------------------------- */
    .page_company .philosophy_cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .page_company .learn_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .page_company .history_list::before {
        left: 6px;
    }
    .page_company .history_item {
        grid-template-columns: 1fr;
        padding-left: 28px;
    }
    .page_company .history_item dt {
        padding-right: 0;
        text-align: left;
    }
    .page_company .history_item dd {
        padding-left: 0;
    }
    .page_company .history_item dd::before {
        top: -1.35em;
        left: -28px;
    }

    /* sitemap ---------------------------------------------------------- */
    .page_sitemap .sitemap_list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .page_sitemap .sitemap_list a {
        min-height: 80px;
    }

}


/* ======================================================================
   Accessibility - reduced motion (not a screen-size breakpoint)
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
