/*
Theme Name: techno_test
Theme URI: none
Author: techno
Author URI: none
Description: none
Version: 1.0
*/

footer {
    position: relative;
    z-index: 1000;
}


/*reCAPTHAマーク設定*/
.grecaptcha-badge { visibility: hidden; }
p.recapcha-text { font-size: 11px; text-align: center;}

.reca {
	margin-bottom: 60px;
}

/* コンタクトフォームの調整 */
.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 18px;
	margin: auto;
}

label {
    display: block;
    text-align: left;
    font-size: 18px;
}

input, select, textarea  {
    width: 600px;
    height: 40px;
    border: 2px solid #bdbdbd;
    padding: 5px;
    box-sizing: border-box;
	background-color: white;
}

select{
	width: auto;
}

textarea {
	height: 100px;
}

.submit {
    display: flex;
    justify-content: center;
}

/* ※ */
.required {
	color: red;
}

::placeholder {
    color: #999;
    font-size: 14px;
}

/* チェックボックス */
.must {
    text-align: left; /* 全体を左揃え */
	font-size: 15px;
	margin: 30px;
	margin-top: 70px;
}

.consent-label {
    display: flex; /* チェックボックスとテキストを横並び */
    align-items: center; /* チェックボックスとテキストを中央揃え */
    gap: 5px; /* チェックボックスとテキストの間隔を調整 */
	font-size: 16px;
	margin: -26px;
}

.consent-box {
	height: 15px;
	width: 20px;
}

a {
    color: #1b5cb4;
    line-height: 30px;
    padding: 3px;
	text-decoration: none;
}

a:hover{
	color: #242020;
}

/* contct-pageのa */
.blue {
	color: #1b5cb4;
    line-height: 30px;
    padding: 3px;
	text-decoration: none;
}

/* 送信ボタン */
.wpcf7-submit {
    border-radius: 30px;
    background-color: #545454;
    color: white;
    font-size: 25px;
    padding: 8px 25px;
    cursor: pointer;
    font-family: "BIZ UDGothic", sans-serif;
    margin: 50px -20px;
    border: none;
	margin-left: 70px;
}

.wpcf7-submit:hover {
    background-color: #242020;
}

/* contact-pageのh2 */
.contact {
	margin: 50px;
	font-size: 60px;
}

/* 前ページ共通 */
html {
    background-color: #ededed;
    color: #595050;
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0px;
    font-family: "BIZ UDGothic", sans-serif;
}

h1,
h2 {
    font-family: "MS 明朝", serif;
}

h1 {
    font-size: 70px;
    letter-spacing: 25px;
}

h2 {
    font-size: 50px;
    margin: auto;
}

p {
    font-size: 20px;
    line-height: 40px;
}

.phrase {
    font-size: 30px;
    line-height: 50px;
}

a {
    color: #595050;
    text-decoration: none;
}

a:hover {
    color: #242020;
}

header,
section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 100px 50px 200px;
}

.footer-container {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    margin-bottom: 50px;
}

.overview {
    text-align: left;
}

table {
    line-height: 30px;
    margin-top: 15px;
    font-size: 18px;
}

#company th,
#company td {
    padding: 10px 0;
}

#company th {
    vertical-align: baseline;
    width: 20%;
    text-align: left;
}

#company td {
    white-space: nowrap;
    padding: 10px 30px;
}

/* footer */
.underline {
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}

hr {
    margin: 20px 50px;
}



/* PC・タブレットのアニメーション */
.fade-in-left {
    opacity: 1;
    transform: translateX(0);
	animation-name: animation;
    animation-duration: 2s;/*2秒かけてアニメーション*/
}

/* スマホ用（スライドなしでフェードイン） */
.fade-in-only {
    opacity: 1;
    transform: none;
}

@keyframes animation {
    0% { 
        clip-path: inset(0 100% 0 0);
         opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* トップページのボタンの指定 */
button {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #595050;
    border: none;
    border-radius: 30%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

/* トップページに戻るボタン */
.js-backToTop {
    position: fixed; /* sticky → fixed に変更 */
    bottom: 20px; /* 画面下から 20px の位置 */
    right: 20px;  /* left: 10px を削除し、right: 20px に変更 */
    width: 40px;
    height: 40px;
    background: #595050;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.js-backToTop:hover {
    background-color: #242020;
}

a.btn-border {
    border: 2px solid #595050;
    border-radius: 0;
    padding: 10px;
}

a.btn-border:hover {
    background-color: #595050;
    color: white;
}

/* クラス付与時の指定 */
.is-active {
    opacity: 1;
    visibility: visible;
}

/* トップへ戻るアイコン */
.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
        font-size: 18px;
    display: inline-block; /* アイコンが表示されるように調整 */
    vertical-align: text-top; /* テキストと揃える */
}

/* ========================== */
/* ナビゲーションの基本スタイル */
/* ========================== */
nav {
    background-color: #6f6c6c;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex; /* PC用 */
}

nav ul li {
    list-style: none;
    display: inline-block;
    padding: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: #e7da66;
}

/* ========================== */
/* ハンバーガーメニュー (768px以下) */
/* ========================== */
.hamburger {
    display: none; /* PC時は非表示 */
}

@media only screen and (max-width: 768px) {
    /* ハンバーガーメニュー表示 */
    .hamburger {
        display: block;
        position: fixed;
        top: 10px;
        right: 35px;
        width: 32px;
        height: 30px;
        z-index: 100;
    }

    nav {
        background-color: #ededed;
    }

    /* ナビゲーションメニュー */
    nav ul {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 300px;
        max-height: 0 !important;
        background-color: rgba(66, 66, 66, 0.9);
        color: white;
        text-align: center;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        z-index: 99;
        display: block;
    }

    nav ul.open {
    max-height: 400px !important; /* メニューを開いたときの最大高さ */
	}


    nav ul li {
        display: block;
        padding: 15px;
        margin: 0;
    }

    nav ul li a {
        color: white;
        font-size: 20px;
        text-decoration: underline;
    }

    /* 背景オーバーレイ */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transition:
            opacity 0.3s ease-in-out,
            visibility 0.3s;
        z-index: 10;
    }

    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .hamburger span {
        /*3本の線を作る*/
        transition: all 0.3s;
        position: absolute;
        height: 2px;
        background-color: #333;
        width: 100%;
        z-index: 10;
    }
    .hamburger span:nth-of-type(1) {
        /*上の線の位置*/
        top: 4px;
    }
    .hamburger span:nth-of-type(2) {
        /*真ん中の線の位置*/
        top: 12px;
    }
    .hamburger span:nth-of-type(3) {
        /*下の線の位置*/
        top: 20px;
    }
    .hamburger.open span:nth-of-type(1) {
        /*openのとき、上の線を右斜めにする*/
        top: 10px;
        transform: translateY(6px) rotate(-33deg);
    }
    .hamburger.open span:nth-of-type(2) {
        /*真ん中の線を消す*/
        opacity: 0;
    }
    .hamburger.open span:nth-of-type(3) {
        /*下の線を左斜めにする*/
        top: 22px;
        transform: translateY(-6px) rotate(33deg);
    }

	#contact {
    display: block !important;
}

	
    header,
    section {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;
        margin: 0 20px 100px;
        text-align: center; /* 中央配置 */
    	gap: 30px;
	}

    section {
        flex-direction: column-reverse;
       
    }

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

    h1 {
        font-size: 40px; /* タイトルのサイズを縮小 */
        letter-spacing: 10px;
    }

    h2 {
        font-size: 40px;
    }
	
	.contact {
		font-size: 40px;
		margin: 10px;
	}
	
	#overview {
		margin-left: 10px;
	}

    p {
        font-size: 15px;
        line-height: 25px;
    }

    .phrase {
        font-size: 25px;
        line-height: 40px;
    }

    img {
        width: 300px;
        height: auto;
    }

    .header-left img {
        max-width: 100%;
        height: auto;
    }

    footer {
        margin: 0 40px;
        white-space: wrap;
    }

    /* 会社概要テーブルを縦並びに */
	table {
		margin-bottom: 20px;
	}
	
    #company th,
    #company td {
        display: block;
        width: auto;
        text-align: left;
		margin: 1 10px;
    }

    #company th {
        font-size: 13px;
        padding: 0;
    }

    #company td {
        font-size: 11px;
        padding: 0;
    }

    iframe {
        width: auto;
        height: 360px;
    }
    .underline {
        flex-direction: column;
        text-align: center;
    }
	.form label {
        display: block;
        font-size: 14px; /* ラベルの文字サイズ調整 */
        margin-bottom: 5px;
        text-align: left;
    }
	.form input,
    .form textarea,
    .form select {
        width: 100%; /* フォーム要素の幅を画面幅いっぱいに */
        max-width: 350px; /* 最大幅を指定 */
        font-size: 16px;
        padding: 4px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
	.form textarea {
        height: 120px; /* テキストエリアの高さ */
    }
	.form input[type="submit"] {
        width: 100%;
        max-width: 200px;
        color: white;
        padding: 12px;
        font-size: 17px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: 0.3s;
		margin: auto;
		}
	
	.must {
        display: flex;
        flex-direction: column; /* スマホでは縦並び */
        gap: 10px; /* 項目間の余白 */
    }

    .consent-label {
        display: flex;
        align-items: center; /* 縦方向の中央揃え */
        gap: 8px; /* チェックボックスとテキストの間隔 */
        font-size: 14px; /* テキストサイズ調整 */
    }

    .consent-box {
        width: 18px; /* チェックボックスのサイズ */
        height: 18px;
        margin: 0;
    }
	.consent-label span {
    display: inline-block; /* テキストを横並び */
    font-size: 14px; /* 読みやすいサイズに調整 */
    line-height: 1.5;
	}
	
	.js-backToTop{
        padding: 5px;
        background-color: rgba(49, 49, 49, 0.37);
    }

    .js-backToTop:hover {
        background-color: rgba(34, 32, 32, 0.7);
    }
}

/*  480px以下の画面サイズ対応（スマホ向け） */
@media only screen and (max-width: 480px) {
    #company th,
    #company td {
        width: 100%;
        display: block;
    }

    #company th {
        width: 100%;
    }

    #company td {
        padding-top: 0;
    }
    /* スマホ（480px 以下）ではスライドなし */
    header {
        transform: none;
    }
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px; /* 必要に応じて調整 */
    margin: 0 auto;
}

.header-img {
    width: 100%; /* 画像の幅を親要素に合わせる */
    max-width: 800px; /* 必要に応じて制限 */
}

.header-title {
    font-size: 2em;
    margin-top: 20px; /* 画像との間隔を調整 */
}

.header-line {
    display: inline-block;
    width: 400px;
    height: 2px;
    background-color: rgb(212, 212, 212);
    border: none;
    margin: 10px auto 0 auto; /* センターに配置 */
}

body.admin-bar {
    margin-top: 32px !important;
}
