@charset "utf-8";

/* ============================================
   COMMON
   全ページ共通で読み込む(変数・リセット・
   ヘッダー/フッター・ボタン・カード・見出し・
   scroll revealユーティリティ等)
============================================ */

/* CSS Document */


:root {
    --header-height: 6.25rem;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #9ca3af;
    --color-border: #e5e5e5;
    --color-logo-blue: #6fb7e0;
    --color-primary: #68BBD8;
    --color-primary-dark: #367ba9;
    --color-accent-mint: #a9ddd2;
    --header-max-width: 87.5rem;
    --transition-fast: 0.2s ease;
    --gradient-top: #68d8d4;
    --gradient-bottom: #68bbd8;
    --gradient-brand: linear-gradient(to bottom, var(--gradient-top), var(--gradient-bottom));
    --light-gray: #f7f7f7;
}

* {
    box-sizing: border-box;
}

html {
    /* スマホでpx単位のはみ出し要素があっても
       横スクロール/横のガタつき(オーバースクロール)が起きないようにする保険 */
    overflow-x: hidden;
    /* ページ内リンク(#01など)クリック時にヌルッと動かす */
    scroll-behavior: smooth;
}

/* ヘッダーがfixedなので、アンカー先がヘッダーの下に
   隠れないよう、id付き要素全般にスクロール時の余白を確保しておく。
   (#01〜#07、#number、#history、#message、#office、#contact 等すべてに効く) */
[id] {
    scroll-margin-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.1em;
    color: var(--color-text);
    overflow-x: hidden;
    /* ヘッダーをfixedにした分、コンテンツが隠れないよう先頭に余白を確保 */
    padding-top: var(--header-height);
}

main {
    padding: 0 1.5rem;
}

.radius-diagonal {
    border-radius: 80px 0 80px 0;

}

.bg-light-gray {
    background: var(--light-gray);
}

.text-primary {
    color: var(--color-primary);
}

.quicksand {
    font-family: "Quicksand", sans-serif;
}

.box-round {
    border-radius: 10px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 5.5rem;
    }

    body {
        font-size: 0.875rem;
    }

    main {
        padding: 0 0.75rem;
    }

    .radius-diagonal {
        border-radius: 60px 0 60px 0;

    }

}

/* ------------------------------
   パンくず
------------------------------ */
.breadcrumbs {
    padding: 0.5rem 1.5rem 0;
    font-size: 0.75rem;
    color: #c4c4c4;
}

@media (max-width: 768px) {
    main {
        padding: 0px 0.75rem;
    }
}

/* ------------------------------
   ヘッダー全体
------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* 下スクロール時、common.jsがこのクラスを付けて上に隠す */
.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header__inner {
    margin: 0 auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.site-header__bar {
    height: 6px;
    width: 100%;
    background: var(--color-accent-mint);
}

/* ------------------------------
   ロゴ
------------------------------ */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo img {}

.site-header__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-logo-blue);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .site-header__logo {
        margin-top: 0.5rem;
    }

    .site-header__logo img {
        width: 120px;
    }
}


/* ------------------------------
   ナビ(PC)
   ※ ここが「ワンソース」の中身。
     SPではこのnavごと下のメディアクエリで
     ドロワーに変身させる。
------------------------------ */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
    color: var(--color-primary);
}

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
    background: var(--color-primary-dark);
}


/* ------------------------------
   ハンバーガーボタン(PCでは非表示)
------------------------------ */
.hamburger {
    display: none;
    position: relative;
    width: 32px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1100;
}

.hamburger__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast);
}

.hamburger__line:nth-child(1) {
    top: 0;
}

.hamburger__line:nth-child(2) {
    top: 11px;
}

.hamburger__line:nth-child(3) {
    top: 22px;
}

/* ×に変形(is-openが付いた時) */
.hamburger.is-open .hamburger__line:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.hamburger.is-open .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger__line:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ------------------------------
   SP用レイアウト(768px以下)
------------------------------ */
@media (max-width: 1024px) {
    .site-header__inner {
        padding: 0 1rem;
    }

    .hamburger {
        display: block;
    }

    /* navをドロワー化。中身(li/a)はPCと完全に同じHTMLを使い回す */
    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 1.5rem;
        overflow-y: auto;

        /* 初期状態は非表示(右にスライドアウト) */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-fast), opacity var(--transition-fast), visibility var(--transition-fast);
    }

    .site-nav.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .site-nav__list li {
        display: block;
        width: 100%;
    }

    .site-nav__list li + li {
        margin-top: 15px;
    }

    .site-nav__list a {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
        background: #f9f9f9;
        border-radius: 6px;
    }

    .site-nav__cta {
        width: 100%;
        margin-top: 1.25rem;
        padding: 1rem;
    }
}

/* SPでbodyスクロールを止める用(JSでbodyに付与) */
body.no-scroll {
    overflow: hidden;
}

/* ------------------------------
   footer-contact
------------------------------ */
footer {}

.footer-contact {
    background-image: url(../images/texture.jpg), var(--gradient-brand);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: color-burn;
    padding: 4rem 2rem;
    margin: 0 1.5rem;
    text-align: center;
    color: var(--color-white);
}

.footer-contact-title {
    display: inline-block;
    position: relative;
    font-size: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2.0rem;
    min-width: 15rem;
}

.footer-contact-title::before,
.footer-contact-title:after {
    content: "";
    position: absolute;

    left: 0;

    width: 100%;
    height: 10px;

    transform: translateY(-50%);

    background: url(../images/wave-w.svg) repeat-x center;
    background-size: auto 5px;
}

.footer-contact-title::before {
    bottom: 0;
}

.footer-contact-title::after {
    bottom: 4px;
}


.footer-contact-title {}

@media (max-width: 768px) {
    .footer-contact {
        padding: 3rem 2rem;
        margin: 0 0.75rem;
        text-align: center;
    }

    .footer-contact-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

}


/* ------------------------------
   footer
------------------------------ */
.site-footer {
    padding: 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 0 auto;
}

/* ---- Left: logo & info ---- */
.footer-info {
    flex: 0 0 auto;
    max-width: 20rem;
}

.footer-logo {
    display: block;
    width: 12.5rem;
    height: auto;
    margin-bottom: 1.25rem;
}

.footer-address {
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.footer-tel {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.footer-sns {
    display: flex;
    gap: 0.75rem;
}

.footer-sns a {
    display: inline-flex;
}

.footer-sns img {}

/* ---- Right: nav columns ---- */
.footer-nav {
    display: flex;
    gap: 3.75rem;
    flex-wrap: wrap;
}

.footer-nav-col {
    min-width: 10rem;
}

.footer-nav-col dt {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-nav-col dd {
    margin: 0;
}

.footer-nav-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.footer-nav-col li + li {
    margin-top: 0.5rem;
}

.footer-nav-col a {
    font-size: 0.875rem;
    text-decoration: none;
    line-height: 1.6;
}

.footer-nav-col a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ---- Bottom bar ---- */
.footer-bottom {
    border-top: 1px solid #d9d9d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
}

.footer-bottom-inner {}

.footer-copyright {
    font-size: 0.75rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    font-size: 0.75rem;
    text-decoration: none;
}

.footer-legal a::before {
    content: "> ";
}

.footer-legal a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-logo {
        width: 10rem;
    }

}


/* ============ Responsive ============ */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-info {
        max-width: none;
    }

    .footer-nav {
        gap: 2rem 2.5rem;
    }

    .footer-nav-col {
        min-width: 45%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .footer-nav-col {
        min-width: 100%;
    }
}

/* ------------------------------
   グラデボタン
------------------------------ */
.btn-gradient {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 15.625rem;
    height: 3.125rem;

    color: var(--color-primary);

    border-radius: 999px;
    overflow: hidden;

    text-decoration: none;
    font-weight: 500;

    transition: .35s;

    padding: 0 3.25rem;
}

.btn-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;

    background: linear-gradient(to bottom,
            #68D8D4,
            #68BBD8);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    transition: opacity .35s;
}

.btn-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;

    background: linear-gradient(to top,
            #68D8D4,
            #68BBD8);

    opacity: 0;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    transition: opacity .35s;
}

.btn-gradient:hover::before {
    opacity: 0;
}

.btn-gradient:hover::after {
    opacity: 1;
}

/* ------------------------------
   白ボタン
------------------------------ */
.btn-white {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 15.625rem;
    height: 3.125rem;

    color: var(--color-white);

    border-radius: 999px;
    overflow: hidden;

    text-decoration: none;
    font-weight: 500;

    transition: .35s;

    padding: 0 3.25rem;

    border: 1px solid var(--color-white);
}


/* ------------------------------
   グラデの丸アイコン
------------------------------ */
.icon-circle-arrow-wrap {
    display: flex;
    gap: 0.3125rem;
    line-height: 1;
    color: var(--color-primary);
}


.icon-circle-arrow {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--gradient-brand);
}

.icon-circle-arrow img {
    width: auto !important;
}


/* ------------------------------
   なみなみの見出し
------------------------------ */

.midashi-wave {
    text-align: center;
    color: var(--color-primary);
    letter-spacing: .12em;
    line-height: 1;
}

.midashi-wave-ja {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.midashi-wave-ja span {
    display: inline-block;
    position: relative;
    padding: 0 0.625rem;
    font-size: 1.125rem;
    font-weight: 500;
    z-index: 10;
}

/* 日本語 */

.midashi-wave-ja {
    position: relative;
}

.midashi-wave-ja::before,
.midashi-wave-ja::after,
.midashi-wave-en:before,
.midashi-wave-en:after {
    content: "";
    position: absolute;

    left: 0;

    width: 100%;
    height: 10px;

    transform: translateY(-50%);

    background: url(../images/wave.svg) repeat-x center;
    background-size: auto 5px;
}

.midashi-wave-ja::before {
    bottom: -4px;
}

.midashi-wave-ja::after {
    bottom: 0;
}

.midashi-wave-en {
    display: inline-block;

    margin: 0;
    padding-bottom: 2.25rem;

    font-family: "Quicksand", sans-serif;
    font-size: 3rem;

    min-width: 18rem;

}

.midashi-wave-en::before {
    bottom: 0;
}

.midashi-wave-en::after {
    bottom: 4px;
}

@media (max-width: 768px) {

    .midashi-wave-ja::before,
    .midashi-wave-ja::after,
    .midashi-wave-en:before,
    .midashi-wave-en:after {
        background-size: auto 5px;
    }

    .midashi-wave-ja {
        margin-bottom: 0.875rem;
    }

    .midashi-wave-ja span {
        padding: 0 0.625rem;
        font-size: 0.875em;
    }

    .midashi-wave-en {
        padding-bottom: 2.0rem;
        font-size: 2rem;
    }
}


/* ------------------------------
   project
------------------------------ */

.project {}

.project-slider {}

.project-card {
    margin-top: 0.625rem;
}

.project-card a {
    display: flex;
    flex-direction: column;

    height: 100%;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 1.25rem;

    color: inherit;
    text-decoration: none;

    transition: .35s;
}

.project-card a:hover {

    transform: translateY(-8px);


}

.project-card-image {

    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.75rem;

}

.project-card img {

    width: 100%;
    display: block;

    transition: .5s;

}

.project-card:hover img {

    transform: scale(1.05);

}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    min-height: 3.2em;
}

.project-card p {

    line-height: 1.75;

}

.project-card .icon-circle-arrow-wrap {
    margin-top: auto;
}

@media (max-width: 768px) {
    .project-card-image {
        margin-bottom: 1.25rem;
    }

    .project-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
}


/* ------------------------------
   news
------------------------------ */
.news-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 2.1875rem 2.5rem;
    text-decoration: none;
    transition: box-shadow var(--transition-fast);
}

.news-card:hover,
.news-card:focus-visible {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.news-card__image {
    width: 14rem;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
}

.news-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.25rem 0.5rem;
}

.news-card__date {
    font-size: 0.875rem;
    color: #9ca3af;
}

.news-card__title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .news-card {
        /* project-cardと見た目が被らないよう、
           SPでも画像は積まずに横並びキープ。
           代わりに画像を小さくしてニュースリストらしい見た目にする */
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .news-card__image {
        width: 5.5rem;
        height: 5.5rem;
        border-radius: 8px;
    }

    .news-card__meta {
        gap: 0.5rem;
        margin-bottom: 0.375rem;
    }

    .news-card__category {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.4rem;
    }

    .news-card__date {
        font-size: 0.75rem;
    }

    .news-card__title {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
        -webkit-line-clamp: 2;
    }

    .news-card__excerpt {
        font-size: 0.75rem;
        line-height: 1.6;
        /* 幅が狭いので抜粋文はSPでは非表示にしてタイトルだけ見せる */
        display: none;
    }
}


/* ------------------------------
   SCROLL REVEAL
------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1.is-visible {
    transition-delay: 0.1s;
}

.reveal-delay-2.is-visible {
    transition-delay: 0.2s;
}

.reveal-delay-3.is-visible {
    transition-delay: 0.3s;
}

.reveal-delay-4.is-visible {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ------------------------------
   character animate
------------------------------ */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-float {
        animation: none;
    }
}
