/*
Theme Name: Tsukakiso Theme
Theme URI: https://tsukakiso.co.jp/
Author: linkpath(株式会社リンクパス)
Author URI: https://linkpath.jp/
Description: 有限会社塚原基礎工業向けに設計・制作されたオリジナルWordPressテーマです。会社概要や施工実績などの情報を効率的に管理できます。
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsukakiso_theme
Tags: responsive-layout, seo-friendly, custom-background, custom-logo, flexible-header, construction-site
*/

@charset "utf-8";
/*---------------------------------------------------------------------
Parts Style
style.css
-----------------------------------------------------------------------
Copyright 2025 (c) linkpath Allrights Reserved.
Coding: Hinako Hayashi
Last Update: 2025.06.12
---------------------------------------------------------------------*/
/*===========================================================
    font-size
===========================================================*/
.title-before::before {
    font-size: 500%;
}
.left-title h2,
.center-title h2 {
    font-size: 200%;
}
.h-logo {
    font-size: 140%;
}
.f-contents h2 {
    font-size: 120%;
}
.h-btn .contact-btn {
    font-size: 110%;
}
header h1 {
    font-size: 100%;
}
.contact-btn .link-btn__text small {
    font-size: 70%;
}
.company-logo small {
    font-size: 50%;
}

/*===========================================================
    parts
===========================================================*/
/*wbr*/
.wbr {
word-break: keep-all;
overflow-wrap: break-word;
}

/* width-1350 */
.width-1350 {
    max-width: 1350px;
    width: 90%;
    margin: 0 auto;
}
/* width-1080 */
.width-1080 {
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}

/* left-title */
.left-title h2 {
    letter-spacing: 0.1em;
    flex-direction: column;
    align-items: flex-start;
}
.left-title h2 span {
    display: block;
    margin-bottom: 0.5em;
}
.left-title p {
    letter-spacing: 0.1em;
}

/* center-title */
.center-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-title h2 {
    letter-spacing: 0.1em;
    flex-direction: column;
}
.center-title h2 span {
    margin: 0;
    margin-bottom: 0.5em;
}

/* title-before */
section:has(> .title-before) {
    padding-top: 12.5em;
}
.title-before {
    position: relative;
    z-index: 2;
}
.title-before::before {
    color: var(--color-accent__transparent);
    line-height: 1em;
    font-weight: 700;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

/* one-line */
.one-line {
    display: block;
    margin-top: 2em;
}

/* pentagon-mark */
:has(> .pentagon-mark) {
	display: flex;
	align-items: center;
}
.pentagon-mark {
    width: 1.5em;
    height: 1em;
    clip-path: polygon(75% 0, 0 0, 0 100%, 75% 100%, 100% 50%);
    display: inline-block;
    margin-right: 0.5em;
}

/* arrow */
.arrow-top {
    width: 1em;
    height: 1em;
    display: block;
    position: relative;
}
.arrow-top::before, .arrow-top::after {
    content: "";
    position: absolute;
}
.arrow-top::before {
    width: 60%;
    height: 60%;
    top: 0;
    right: 0;
    transition: all 0.3s;
}
.arrow-top::after {
    width: calc(1em * 1.4);
    height: 2px;
    transform-origin: center;
    top: 55%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: all 0.3s;
}
.arrow-top.base::before {
    border-top: solid 2px var(--color-base);
    border-right: solid 2px var(--color-base);
}
.arrow-top.base::after {
    background: var(--color-base);
}
.arrow-top.accent::before {
    border-top: solid 2px var(--color-accent);
    border-right: solid 2px var(--color-accent);
}
.arrow-top.accent::after {
    background: var(--color-accent);
}

.arrow-right {
    width: 4em;
    height: 2.25em;
    border-radius: 100px;
    display: block;
    position: relative;
    transition: all 0.3s;
    border: solid 2px var(--color-base);
}
.arrow-right::before, .arrow-right::after {
    content: "";
    position: absolute;
    transition: all 0.3s;
}
.arrow-right::before {
    width: 0.55em;
    height: 0.55em;
    border-top: solid 2px var(--color-base);
    border-right: solid 2px var(--color-base);
    transform: rotate(45deg);
    transform-origin: center;
    top: 50%;
    left: calc(50% + 0.45em);
    transform: translate(-50%, -50%) rotate(45deg);
}
.arrow-right::after {
    width: 1.5em;
    height: 2px;
    background: var(--color-base);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
div > .arrow-right:hover,
a:hover .arrow-right {
    border: solid 2px var(--color-accent);
}
div > .arrow-right:hover::before,
a:hover .arrow-right::before {
    border-top: solid 2px var(--color-accent);
    border-right: solid 2px var(--color-accent);
}
div > .arrow-right:hover::after,
a:hover .arrow-right::after {
    background: var(--color-accent);
}

/* arrow-link */
.arrow-link {
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: all 0.3s;
}
.arrow-link:hover {
    color: var(--color-accent);
}
.arrow-link:hover .arrow-top::before {
    border-top: solid 2px var(--color-accent);
    border-right: solid 2px var(--color-accent);
}
.arrow-link:hover .arrow-top::after {
    background: var(--color-accent);
}

/* link-btn */
.link-btn {
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    border-radius: 100px;
    border: solid 2px var(--color-base);
    padding: 0.25em 2em;
}
.link-btn:hover {
    color: var(--color-accent);
    border: solid 2px var(--color-accent);
}
.link-btn:hover .arrow-top::before {
    border-top: solid 2px var(--color-accent);
    border-right: solid 2px var(--color-accent);
}
.link-btn:hover .arrow-top::after {
    background: var(--color-accent);
}

/* company-logo */
.company-logo {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
a.company-logo:hover {
    color: var(--color-accent);
}
.company-logo span {
    line-height: 1em;
    letter-spacing: 0.1em;
}
.company-logo small {
    line-height: 2em;
    display: block;
}
.company-logo svg {
    height: 2em;
}
.company-logo svg path,
.company-logo svg polygon {
    transition: all 0.3s;
}
a.company-logo:hover svg path,
a.company-logo:hover svg polygon {
    fill: var(--color-accent);
}

/* contents-menu */
.contents-menu {
    display: flex;
    gap: 2em;
}
.contents-menu__link {
    position: relative;
    transition: all 0.3s;
}
.contents-menu__link:hover {
    color: var(--color-accent);
}
.contents-menu__link::before {
    content: "";
    width: 2px;
    height: 80%;
    background: var(--color-base);
    position: absolute;
    top: 60%;
    right: -1em;
    transform: translateY(-50%) rotate(20deg);
}
.contents-menu li:last-of-type .contents-menu__link::before {
	content: none;
}

/* contact-btn */
.contact-btn {
    padding: 0.25em 1em;
}
.contact-btn svg {
    height: 1.5em;
}
.contact-btn svg path {
    transition: all 0.3s;
}
.contact-btn .link-btn__text {
    text-align: center;
}
.contact-btn .link-btn__text small {
    display: block;
    line-height: 1em;
    padding-bottom: 0.5em;
}
.contact-btn:hover svg path {
    fill: var(--color-accent);
}

/* slide-btn */
.slide-btn__prev, .slide-btn__next {
    width: fit-content;
}
.slide-btn__prev {
    transform: scale(-1, 1);
}

/*===========================================================
    header
===========================================================*/
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-main);
    padding: 2em;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transition: all 0.5s ease;
}
header.s-active {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    padding: 1em;
}

/* h-logo */
.h-logo {
    position: relative;
    z-index: 99;
}

/* h-nav */
.h-nav {
    display: flex;
    align-items: center;
    gap: 2em;
}

/* h-menu */
.h-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.h-menu__link {
    position: relative;
}
.h-menu__link:hover {
    color: var(--color-accent);
}
.h-menu__link span {
    display: none;
}

/* h-btn */
.h-btn {
    display: flex;
    gap: 1em;
}
.h-btn .link-btn__text small {
    display: none;
}

/* hb */
.hb {
    display: none;
}

/*===========================================================
    wrap
===========================================================*/


/*===========================================================
    footer
===========================================================*/
footer {
    width: 100%;
    background: var(--color-main__transparent);
    backdrop-filter: blur(10px);
}

/* f-contents */
.f-contents {
    max-width: 1350px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4em;
    padding: 5em 0;
    margin: 0 auto;
}
.f-contents h2 {
    text-align: center;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    line-height: 2em;
}
.f-contents h2 .company-logo__mark {
    height: 5em;
    display: block;
    margin: 0 auto;
    margin-bottom: 2em;
}

/* f-sns */
.f-sns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    list-style: none;
    padding: 0;
    margin: 0;
}
.f-sns li {
    margin: 0;
    padding: 0;
}
.f-sns a {
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
.f-sns a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
.f-sns a svg {
    width: 29px;
    height: auto;
    display: block;
}

/* f-other */
.f-other {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
}

@media screen and (max-width: 1350px) {
/*===========================================================
    font-size
===========================================================*/
.h-btn .contact-btn {
    font-size: 100%;
}

/*===========================================================
    parts
===========================================================*/

/*===========================================================
    header
===========================================================*/
/* h-menu */
.h-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
}

/* h-btn */
.h-btn .contact-btn {
    padding: 0.25em 0.75em;
}
.h-btn .contact-btn svg {
    height: 1.25em;
}

/*===========================================================
    wrap
===========================================================*/

/*===========================================================
    footer
===========================================================*/
}


@media screen and (max-width: 959px) {
/*===========================================================
    font-size
===========================================================*/
.title-before::before {
    font-size: 400%;
}
.left-title h2,
.center-title h2 {
    font-size: 160%;
}
.h-logo {
    font-size: 130%;
}
.f-contents h2 {
    font-size: 110%;
}

/*===========================================================
    parts
===========================================================*/
/* title-before */
section:has(> .title-before) {
    padding-top: 10em;
}
/* left-title */
.left-title h2 {
    align-items: center;
}
.left-title h2 span {
    margin-right: 0;
}
.left-title p {
    text-align: center;
}

/*===========================================================
    header
===========================================================*/
/* h-nav */
.h-nav {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5em;
    background: var(--color-main);
    padding: 2em;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
}
header.h-active .h-nav {
    opacity: 1;
    pointer-events: auto;
}
.h-menu, .h-btn {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* h-menu */
.h-menu {
    flex-direction: column;
    gap: 1em;
}
.h-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 2px var(--color-base__transparent);
    padding-bottom: 1em;
}
.h-menu li:first-child .h-menu__link {
    border-top: solid 2px var(--color-base__transparent);
    padding-top: 1em;
}
.h-menu__link::before {
    content: none;
}
.h-menu__link span {
    display: block;
}
/* h-btn */
.h-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
}
.h-btn li {
    max-width: calc(350px - 0.5em);
    width: 100%;
}
.h-btn .contact-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75em 1em;
}
.h-btn .contact-btn {
    font-size: 140%;
}
.h-btn .link-btn__text small {
    display: block;
}

/* hb */
.hb {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    border: solid 2px var(--color-base);
    transition: all 0.3s;
    z-index: 99;
}
.hb:hover {
    border: solid 2px var(--color-accent);
}
.hb li {
    width: 1.25em;
    height: 2px;
    background: var(--color-base);
    transform-origin: center;
    transition: all 0.3s;
}
.hb li:last-child{
    width: 1em;
}
.hb:hover li {
    background: var(--color-accent);
}

header.h-active .hb {
    gap: 0;
}
header.h-active .hb li:first-child {
    transform: rotate(45deg) translateY(1px);
}
header.h-active .hb li:last-child {
    width: 1.25em;
    transform: rotate(-45deg) translateY(-1px);
}

/*===========================================================
    wrap
===========================================================*/

/*===========================================================
    footer
===========================================================*/
}

@media screen and (max-width: 482px) {
/*===========================================================
    font-size
===========================================================*/
.title-before::before {
    font-size: 350%;
}
.h-logo {
    font-size: 110%;
}
.f-other {
    font-size: 90%;
}

/*===========================================================
    parts
===========================================================*/

/*===========================================================
    header
===========================================================*/
header {
    padding: 1em 2em;
}

/* h-btn */
.h-btn li {
    max-width: 100%;
}

/*===========================================================
    wrap
===========================================================*/




/*===========================================================
    footer
===========================================================*/
.f-other {
    text-align: center;
    justify-content: center;
}
}
