/** * sanwa functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package sanwa */ if ( ! defined( '_S_VERSION' ) ) { // Replace the version number of the theme on each release. define( '_S_VERSION', '1.0.0' ); } /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function sanwa_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on sanwa, use a find and replace * to change 'sanwa' to the name of your theme in all the template files. */ load_theme_textdomain( 'sanwa', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'menu-1' => esc_html__( 'Primary', 'sanwa' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'sanwa_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); } add_action( 'after_setup_theme', 'sanwa_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function sanwa_content_width() { $GLOBALS['content_width'] = apply_filters( 'sanwa_content_width', 640 ); } add_action( 'after_setup_theme', 'sanwa_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function sanwa_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'sanwa' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'sanwa' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'sanwa_widgets_init' ); /** * Enqueue scripts and styles. */ function sanwa_scripts() { wp_enqueue_style( 'sanwa-style', get_stylesheet_uri(), array(), _S_VERSION ); wp_style_add_data( 'sanwa-style', 'rtl', 'replace' ); wp_enqueue_script( 'sanwa-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'sanwa_scripts' ); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ if ( defined( 'JETPACK__VERSION' ) ) { require get_template_directory() . '/inc/jetpack.php'; } function create_post_type() { register_post_type( 'achievements', array( 'label' => '施行実績', 'public' => true, 'has_archive' => true, 'show_in_rest' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', ), ) ); register_taxonomy( 'news-cat', 'news', array( 'label' => 'カテゴリー', 'hierarchical' => true, 'public' => true, 'show_in_rest' => true, ) ); register_taxonomy( 'news-tag', 'news', array( 'label' => 'タグ', 'hierarchical' => false, 'public' => true, 'show_in_rest' => true, 'update_count_callback' => '_update_post_term_count', ) ); } <!doctype html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel='dns-prefetch' href='//s.w.org' /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/sanwa-surveywork.co.jp\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.4.24"}}; /*! This file is auto-generated */ !function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r<o.length;r++)t.supports[o[r]]=function(e){if(!p||!p.fillText)return!1;switch(p.textBaseline="top",p.font="600 32px Arial",e){case"flag":return s([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])?!1:!s([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!s([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]);case"emoji":return!s([55357,56424,55356,57342,8205,55358,56605,8205,55357,56424,55356,57340],[55357,56424,55356,57342,8203,55358,56605,8203,55357,56424,55356,57340])}return!1}(o[r]),t.supports.everything=t.supports.everything&&t.supports[o[r]],"flag"!==o[r]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[o[r]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(n=t.source||{}).concatemoji?c(n.concatemoji):n.wpemoji&&n.twemoji&&(c(n.twemoji),c(n.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='wp-block-library-css' href='http://sanwa-surveywork.co.jp/wp-includes/css/dist/block-library/style.min.css?ver=5.4.24' type='text/css' media='all' /> <link rel='stylesheet' id='contact-form-7-css' href='http://sanwa-surveywork.co.jp/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.5.1' type='text/css' media='all' /> <link rel='stylesheet' id='jquery.lightbox.min.css-css' href='http://sanwa-surveywork.co.jp/wp-content/plugins/wp-jquery-lightbox/styles/lightbox.min.css?ver=1.4.6' type='text/css' media='all' /> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script> <link rel='https://api.w.org/' href='http://sanwa-surveywork.co.jp/wp-json/' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://sanwa-surveywork.co.jp/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://sanwa-surveywork.co.jp/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 5.4.24" /> <link rel="icon" href="http://sanwa-surveywork.co.jp/wp-content/uploads/2025/11/cropped-favicon-1-32x32.png" sizes="32x32" /> <link rel="icon" href="http://sanwa-surveywork.co.jp/wp-content/uploads/2025/11/cropped-favicon-1-192x192.png" sizes="192x192" /> <link rel="apple-touch-icon" href="http://sanwa-surveywork.co.jp/wp-content/uploads/2025/11/cropped-favicon-1-180x180.png" /> <meta name="msapplication-TileImage" content="http://sanwa-surveywork.co.jp/wp-content/uploads/2025/11/cropped-favicon-1-270x270.png" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;700&display=swap" rel="stylesheet"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/> <link href="http://sanwa-surveywork.co.jp/wp-content/themes/sanwa/css/style.css" type="text/css" rel="stylesheet"> <link rel="shortcut icon" href="http://sanwa-surveywork.co.jp/wp-content/themes/sanwa/favicon2.ico"> </head> <body class="l-wrapper"> <div class="c-head"> <h1><span>墨田区で墨出し一筋45年<br>スーパーゼネコン直取引の信頼と実績</span><span>業務拡大につく採用強化中</span></h1> </div><nav class="c-nav"> <div class="c-nav__logo"><a href="/"><img src="http://sanwa-surveywork.co.jp/wp-content/themes/sanwa/img/logo.png"></a></div> <div class="c-nav__menu"> <ul class="List"> <li><a href="/">トップ</a></li> <li><a href="/company" >会社情報</a></li> <li><a href="/charm" >採用情報</a></li> <li><a href="/business" >事業内容</a></li> <li><a href="/achievements" >施行実績</a></li> </ul> <div class="Contact"><a href="/contact" "><i class="fa fa-envelope-o"></i>お問い合わせ</a></div> </div> <div class="c-nav__hbm" id="js-hbm"><i class="fa fa-bars" aria-hidden="true"></i></div> </nav> <div class="c-nav-spmenu" id="js-spmenu"> <div class="c-head"> <h1><span>墨田区で墨出し一筋45年<br>スーパーゼネコン直取引の信頼と実績</span><span>業務拡大につく採用強化中</span></h1> </div> <div class="c-nav-spmenu__hbm"><i class="fa fa-times" aria-hidden="true"></i></div> <ul class="List"> <li><a href="/">トップ</a></li> <li><a href="/company" >会社情報</a></li> <li><a href="/charm" >採用情報</a></li> <li><a href="/business" >事業内容</a></li> <li><a href="/achievements" >施行実績</a></li> </ul> <div class="Contact"><a href="/contact" "><i class="fa fa-envelope-o"></i>お問い合わせ</a></div></div> <main id="primary" class="site-main"> <section class="error-404 not-found"> <header class="page-header"> <h1 class="page-title">Oops! That page can’t be found.</h1> </header><!-- .page-header --> <div class="page-content"> <p>It looks like nothing was found at this location. Maybe try one of the links below or a search?</p> <form role="search" method="get" id="searchform" class="searchform" action="http://sanwa-surveywork.co.jp/"> <div> <label class="screen-reader-text" for="s">検索:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="検索" /> </div> </form> <div class="widget widget_recent_entries"> <h2 class="widgettitle">最近の投稿</h2> <ul> <li> <a href="http://sanwa-surveywork.co.jp/work-blog/676/">スタッフブログ開設!</a> </li> </ul> </div> <div class="widget widget_categories"> <h2 class="widget-title">Most Used Categories</h2> <ul> <li class="cat-item cat-item-3"><a href="http://sanwa-surveywork.co.jp/category/work-blog/">業務日記</a> (1) </li> </ul> </div><!-- .widget --> <div class="widget widget_archive"><h2 class="widgettitle">アーカイブ</h2><p>Try looking in the monthly archives. 🙂</p> <label class="screen-reader-text" for="archives-dropdown--1">アーカイブ</label> <select id="archives-dropdown--1" name="archive-dropdown"> <option value="">月を選択</option> <option value='http://sanwa-surveywork.co.jp/date/2017/02/'> 2017年2月 </option> </select> <script type="text/javascript"> /* <![CDATA[ */ (function() { var dropdown = document.getElementById( "archives-dropdown--1" ); function onSelectChange() { if ( dropdown.options[ dropdown.selectedIndex ].value !== '' ) { document.location.href = this.options[ this.selectedIndex ].value; } } dropdown.onchange = onSelectChange; })(); /* ]]> */ </script> </div> </div><!-- .page-content --> </section><!-- .error-404 --> </main><!-- #main --> <footer class="c-footer"> <div class="c-footer__inner"> <div class="c-footer__info"> <p>三和測量株式会社</p> <p>〒130-0026<br>東京都墨田区両国2-3-6<br>桜井ビル201</p> </div> <div class="c-footer__menu"> <ul> <li><a href="/"><i class="fa fa-caret-right"></i> トップ</a></li> <li><a href="/company"><i class="fa fa-caret-right"></i> 会社情報</a></li> <li><a href="/message"><i class="fa fa-caret-right"></i> 代表挨拶</a></li> </ul> <ul> <li> <a href=""><i class="fa fa-caret-right"></i> 採用情報</a> <ul> <li><a href="/carm">- 三和測量の魅力</a></li> <li><a href="/voice">- 社員の声</a></li> <li><a href="/requirements">- 募集要項</a></li> </ul> </li> </ul> <ul> <li><a href="/business"><i class="fa fa-caret-right"></i> 事業内容</a></li> <li><a href=""><i class="fa fa-caret-right"></i> 施行実績</a></li> </ul> </div> </div> <p class="c-footer__copy">Copyright(C) 三和測量株式会社 All Right Reserved.</p> </footer> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20'></script> <script type='text/javascript'> /* <![CDATA[ */ var _wpcf7 = {"loaderUrl":"http:\/\/sanwa-surveywork.co.jp\/wp-content\/plugins\/contact-form-7\/images\/ajax-loader.gif","recaptcha":{"messages":{"empty":"\u3042\u306a\u305f\u304c\u30ed\u30dc\u30c3\u30c8\u3067\u306f\u306a\u3044\u3053\u3068\u3092\u8a3c\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}},"sending":"\u9001\u4fe1\u4e2d ..."}; /* ]]> */ </script> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.5.1'></script> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-content/plugins/wp-jquery-lightbox/jquery.touchwipe.min.js?ver=1.4.6'></script> <script type='text/javascript'> /* <![CDATA[ */ var JQLBSettings = {"showTitle":"1","showCaption":"1","showNumbers":"1","fitToScreen":"0","resizeSpeed":"400","showDownload":"0","navbarOnTop":"0","marginSize":"0","slideshowSpeed":"4000","prevLinkTitle":"\u524d\u306e\u753b\u50cf","nextLinkTitle":"\u6b21\u306e\u753b\u50cf","closeTitle":"\u30ae\u30e3\u30e9\u30ea\u30fc\u3092\u9589\u3058\u308b","image":"\u753b\u50cf ","of":"\u306e","download":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","pause":"(\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u505c\u6b62\u3059\u308b)","play":"(\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u518d\u751f\u3059\u308b)"}; /* ]]> */ </script> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-content/plugins/wp-jquery-lightbox/jquery.lightbox.min.js?ver=1.4.6'></script> <script type='text/javascript' src='http://sanwa-surveywork.co.jp/wp-includes/js/wp-embed.min.js?ver=5.4.24'></script> <script src="//code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script> <script> $(function () { $('#js-hbm').on('click', function () { $('#js-spmenu').fadeToggle(300); }); $('#js-spmenu').on('click', function () { $(this).fadeToggle(300); }); const mySwiper = new Swiper('.swiper', { loop: true, pagination: { el: '.swiper-pagination', }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); let tabs = $(".c-business__tab li"); $(".c-business__tab li").on("click", function() { $(".c-business__tab li").removeClass("is-active"); $(this).addClass("is-active"); const index = tabs.index(this); $(".c-business__content div").removeClass("is-show").eq(index).addClass("is-show"); }); }); </script> </body> </html>