@charset "utf-8";
/* ========================================================
   変数 (Variables)
   ======================================================== */ :root {
    /* カラーパレット (プロジェクトごとに変更) */
    --black: #000;
    --white: #fff;
    --main: #22ac38; /* メインカラー（緑） */
    --accent: #d0121b; /* アクセントカラー（赤） */
    --bg_gray: #f7f7f7;
    --bg_green: #ebf4ec; /* フッター背景 */
    /* フォント (プロジェクトごとに変更) */
    --font_base: "Noto Sans JP", sans-serif;
    --font_en: "Jost", sans-serif;
    /* ボックスシャドウ */
    --shadow_primary: .3rem .3rem 1.5rem -.3rem rgba(0, 0, 0, .2);
    /* Z-index管理 */
    --z_back: -1;
    --z_default: 1;
    --z_header: 100;
    --z_modal: 1000;
    --z_toast: 9999;
    /* JS連携用 */
    --js_windowWidth: 100vw;
    --js_vw: 1vw;
}
@media screen and (max-width: 768px) {
    :root {
        --shadow_primary: .2rem .2rem 1rem -.2rem rgba(0, 0, 0, .2);
    }
}
/* ========================================================
   色設定 (Color Utilities)
   ======================================================== */
/* --- 文字色 (Text Color) --- */
/* 変数 --c_black などを適用 */
.c_black {
    color: var(--black);
}
.c_white {
    color: var(--white);
}
.c_main {
    color: var(--main);
}
.c_accent {
    color: var(--accent);
}
/* 必要であればグレー系やサブカラーもここに追加 */
/* .c_gray { color: #ccc; } */
/* --- 背景色 (Background Color) --- */
.bg_black {
    background-color: var(--black);
}
.bg_white {
    background-color: var(--white);
}
.bg_main {
    background-color: var(--main);
}
.bg_accent {
    background-color: var(--accent);
}
.bg_gray {
    background-color: var(--bg_gray);
}
/* --- ホバー時の挙動（リンクやボタン用） --- */
/* 例: .hover_opacity をつけるとマウスを乗せた時に透ける */
.hover_opacity {
    transition: opacity 0.3s;
}
.hover_opacity:hover {
    opacity: 0.7;
}
/* ========================================================
   リセット & ベース (Reset & Base)
   ======================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 62.5%; /* 1rem = 10px */
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth; /* ページ内リンクのスムーススクロール */
}
body {
    font-family: var(--font_base);
    color: var(--black);
    font-size: 1.6rem;
    font-weight: 500;
    background: var(--white);
    letter-spacing: 0.05em; /* 日本語は少し開けたほうが読みやすい */
    -webkit-font-smoothing: antialiased; /* 文字を滑らかに */
    font-feature-settings: "palt"; /* デザインカンプ（プロポーショナル詰め）に合わせる */
}
/* 画像の基本設定 */
img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
    border-style: none;
}
img[src*=".svg"] {
    width: 100%;
}
/* リンク */
a {
    color: inherit;
    text-decoration: none;
    transition: opacity .3s, color .3s;
    cursor: pointer;
}
a:hover {
    opacity: 0.7;
}
/* フォーム要素 */
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    background-color: transparent;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
textarea {
    resize: vertical;
}
/* リスト・テーブル */
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}
/* ========================================================
   レスポンシブ文字サイズ制御 (Fluid Typography)
   ※いただいたロジックを維持
   ======================================================== */
@media screen and (max-width: 1200px) {
    html {
        font-size: 58.59%;
    }
}
@media screen and (max-width: 1024px) {
    html {
        font-size: 54.69%;
    }
}
@media screen and (max-width: 768px) {
    html {
        font-size: 93.75%;
    }
}
@media screen and (max-width: 530px) {
    html {
        font-size: 78.13%;
    }
}
@media screen and (max-width: 430px) {
    html {
        font-size: calc(2.551 * var(--js_vw));
    }
}
@media screen and (max-width: 768px) {
    body {
        font-size: 1.4rem;
    }
}
/* ========================================================
   レイアウト (Layout Helpers)
   ======================================================== */
/* コンテナ */
.inner {
    width: 90%;
    max-width: 1000px;
    margin-inline: auto; /* margin-left: auto + margin-right: auto */
}
.inner.is_wide {
    max-width: 1200px;
}
.inner.is_full {
    width: 100%;
    max-width: 1440px;
    padding-inline: 4%;
}
/* Flexbox (Gap対応版) */
.flex {
    display: flex;
    flex-wrap: wrap;
}
.flex.nowrap {
    flex-wrap: nowrap;
}
.ai_c {
    align-items: center;
}
.ai_fs {
    align-items: flex-start;
}
.ai_fe {
    align-items: flex-end;
}
.ai_s {
    align-items: stretch;
} /* 高さ揃え */
.jc_c {
    justify-content: center;
}
.jc_sb {
    justify-content: space-between;
}
.jc_sa {
    justify-content: space-around;
}
.jc_fs {
    justify-content: flex-start;
}
.jc_fe {
    justify-content: flex-end;
}
.fd_c {
    flex-direction: column;
}
.fd_rr {
    flex-direction: row-reverse;
}
/* Gap (モダンな余白指定) */
.gap10 {
    gap: 1rem;
}
.gap20 {
    gap: 2rem;
}
.gap30 {
    gap: 3rem;
}
.gap40 {
    gap: 4rem;
}
/* Grid (あると便利) */
.grid {
    display: grid;
}
.place_center {
    display: grid;
    place-content: center;
} /* 完全中央配置 */
/* PC/SP 表示切り替え */
.pc_only {
    display: block;
}
.sp_only {
    display: none;
}
@media screen and (max-width: 768px) {
    .pc_only {
        display: none;
    }
    .sp_only {
        display: block;
    }
    .inner {
        width: 94%;
    }
}
/* ========================================================
   ユーティリティ (Utility Classes)
   ======================================================== */
/* --- テキスト制御 --- */
.tal {
    text-align: left;
}
.tac {
    text-align: center;
}
.tar {
    text-align: right;
}
.bold {
    font-weight: 700;
}
.fw_normal {
    font-weight: 400;
}
/* 行数制限 (3点リーダーで省略) */
.line_clamp1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.line_clamp2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.line_clamp3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
/* 行間調整 (見出しなどで文字間が広すぎる時用) */
.lh_narrow {
    line-height: 1.2;
}
.lh_normal {
    line-height: 1.6;
}
.lh_wide {
    line-height: 2.0;
}
/* --- 画像・オブジェクト制御 --- */
/* 画像を親要素いっぱいにカバーさせる（背景画像のように振る舞う） */
.object_cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.object_contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* アスペクト比固定 (YouTube等にも使える) */
.aspect_16_9 {
    aspect-ratio: 16 / 9;
}
.aspect_4_3 {
    aspect-ratio: 4 / 3;
}
.aspect_1_1 {
    aspect-ratio: 1 / 1;
}
/* --- 背景色 --- */
.bg_white {
    background-color: var(--white);
}
.bg_gray {
    background-color: var(--bg_gray);
}
/* --- アクセシビリティ --- */
/* 画面からは消すが、スクリーンリーダーには読ませる */
.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* --- 余白 (Spacer Utilities) --- */
/* ※元データにあった大量のpadding/marginクラスは、
   必要に応じてここに貼り付けてください。
   ここでは代表的なもののみ記述します。 */
.mt0 {
    margin-top: 0 !important;
}
.mb0 {
    margin-bottom: 0 !important;
}
.mt10 {
    margin-top: 1rem;
}
.mt20 {
    margin-top: 2rem;
}
.mt30 {
    margin-top: 3rem;
}
.mt40 {
    margin-top: 4rem;
}
.mt50 {
    margin-top: 5rem;
}
.mt60 {
    margin-top: 6rem;
}
.mt80 {
    margin-top: 8rem;
}
.mt100 {
    margin-top: 10rem;
}
.mb10 {
    margin-bottom: 1rem;
}
.mb20 {
    margin-bottom: 2rem;
}
.mb30 {
    margin-bottom: 3rem;
}
.mb40 {
    margin-bottom: 4rem;
}
.mb50 {
    margin-bottom: 5rem;
}
.mb60 {
    margin-bottom: 6rem;
}
.mb80 {
    margin-bottom: 8rem;
}
.mb100 {
    margin-bottom: 10rem;
}
/* SP用の余白調整 */
@media screen and (max-width: 768px) {
    .sp_mt20 {
        margin-top: 2rem;
    }
    .sp_mb20 {
        margin-bottom: 2rem;
    }
    /* 必要に応じて追加 */
}
/* ========================================================
   アニメーション (Animation)
   ======================================================== */
.fade_in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}
.fade_up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shadow_primary {
    box-shadow: var(--shadow_primary);
}

/* ========================================================
   ここから三ツ葉電機 専用スタイル
   PC: 1rem = 10px（1200px以下は縮小）/ SP(768px以下): px指定（375px基準）
   ======================================================== */
body {
    padding-top: 10rem; /* 固定ヘッダー分 */
}
@media screen and (max-width: 768px) {
    body {
        padding-top: 55px;
    }
    body.is_hamb_open {
        overflow: hidden;
    }
}

/* ---------- ヘッダー ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    z-index: var(--z_header);
    background: var(--white);
}
.header .inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .logo {
    width: 30rem;
    flex-shrink: 0;
    line-height: 0;
}
.header .logo a {
    display: block;
}
.header .logo img {
    width: 100%;
}
.gnav ul {
    display: flex;
    align-items: center;
    gap: 4.2rem;
}
.gnav a {
    position: relative;
    display: block;
    padding: 0.8rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.gnav a:hover {
    opacity: 1;
}
.gnav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--main);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.gnav a:hover::after {
    transform: scaleX(1);
}
.hamb, .header_overlay {
    display: none;
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .gnav ul {
        gap: 2.4rem;
    }
}

/* ---------- ヘッダー SP ---------- */
@media screen and (max-width: 768px) {
    .header {
        height: 55px;
    }
    .header .logo {
        width: 150px;
    }
    .hamb {
        position: relative;
        display: block;
        width: 36px;
        height: 36px;
        cursor: pointer;
        z-index: 2;
    }
    .hamb span {
        position: absolute;
        left: 6px;
        width: 24px;
        height: 2px;
        background: var(--main);
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    }
    .hamb span:nth-child(1) { top: 10px; }
    .hamb span:nth-child(2) { top: 17px; }
    .hamb span:nth-child(3) { top: 24px; }
    .is_hamb_open .hamb span:nth-child(1) {
        top: 17px;
        transform: rotate(45deg);
    }
    .is_hamb_open .hamb span:nth-child(2) {
        opacity: 0;
    }
    .is_hamb_open .hamb span:nth-child(3) {
        top: 17px;
        transform: rotate(-45deg);
    }
    /* ドロップダウン */
    .gnav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--main);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .is_hamb_open .gnav {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .gnav ul {
        display: block;
    }
    .gnav li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.4);
    }
    .gnav a {
        padding: 15px;
        font-size: 14px;
        font-weight: 700;
        color: var(--white);
    }
    .gnav a::after {
        display: none;
    }
    /* 黒いオーバーレイ（ヘッダー＋ドロップダウン以外） */
    .header_overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: calc(var(--z_header) - 1);
        background: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s;
    }
    .is_hamb_open .header_overlay {
        visibility: visible;
        opacity: 1;
    }
}

/* ---------- MV ---------- */
.mv {
    position: relative;
    height: calc(var(--vh, 1vh) * 100 - 10rem); /* 固定ヘッダー分を引いて初見で全体が収まるように */
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    background: #222;
}
.mv .swiper {
    position: absolute;
    inset: 0;
}
/* Swiper 最小CSS（フェード切替用） */
.swiper {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.swiper-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
    box-sizing: content-box;
    transition-property: transform;
}
.swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    transition-property: transform;
}
.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}
.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}
.swiper-pagination {
    position: absolute;
    left: 0;
    bottom: 2rem;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}
.swiper-pagination-bullet {
    position: relative;
    width: 3.2rem;
    height: 3.2rem;
    cursor: pointer;
}
.swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    inset: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.4);
}
.swiper-pagination-bullet .ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.swiper-pagination-bullet .ring-path {
    stroke-dasharray: 94.25;
    stroke-dashoffset: 94.25;
    opacity: 0;
}
.swiper-pagination-bullet-active::before {
    background: #fff;
}
.swiper-pagination-bullet-active .ring-path {
    opacity: 1;
    animation: ringDraw 6s linear forwards; /* autoplay delay(6000ms)に合わせる */
}
.mv_list.is_paused .swiper-pagination-bullet-active .ring-path {
    animation: none; /* 自動再生を止めている間はタイマーのリングを出さない */
    opacity: 0;
}
@keyframes ringDraw {
    to { stroke-dashoffset: 0; }
}
@media screen and (max-width: 768px) {
    .swiper-pagination {
        bottom: 2px;
    }
    .swiper-pagination-bullet {
        width: 18px;
        height: 18px;
    }
    .swiper-pagination-bullet::before {
        inset: 6px;
    }
}
.mv_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.mv_inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 9rem;
    color: var(--white);
    text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.7);
}
.mv_title {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
}
.mv_points {
    margin-top: 2rem;
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0;
}
.mv_points li::before {
    content: "・";
}
@media screen and (max-width: 768px) {
    .mv {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1920 / 1000;
    }
    .mv_inner {
        width: 100%;
        padding: 0 0 26px 19%;
    }
    .mv_title {
        font-size: 24px;
    }
    .mv_points {
        margin-top: 4px;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* ---------- リード（大見出し＋CTA） ---------- */
.lead {
    padding-top: 2rem;
    text-align: center;
}
.lead_title {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--accent);
}
.lead_body {
    position: relative;
    margin-top: 2rem;
    padding-left: 5.4rem;
    text-align: left;
}
.lead_text {
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0;
}
.lead_mascot {
    position: absolute;
    right: 0;
    top: 0;
    width: 17rem;
}
.lead_cta {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7rem;
}
.lead_cta_text {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
}
.btn_cta {
    display: inline-block;
    padding: 4.5rem 6rem;
    background: var(--main);
    color: var(--white);
    border: 2px solid var(--main);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn_cta:hover {
    background: var(--white);
    color: var(--main);
    opacity: 1;
}
@media screen and (max-width: 768px) {
    .lead {
        padding-top: 20px;
    }
    .lead_title {
        font-size: 22px;
        line-height: 1.4;
    }
    .lead_body {
        margin-top: 10px;
        padding-left: 0;
    }
    .lead_text {
        font-size: 14px;
        line-height: 1.7;
        letter-spacing: 0;
        text-wrap: pretty;
    }
    .lead_mascot {
        display: none;
    }
    .lead_cta {
        margin-top: 25px;
        gap: 10px;
        justify-content: space-between;
    }
    .lead_cta_text {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
    .btn_cta {
        padding: 14px 12px;
        font-size: 15px;
        flex-shrink: 0;
    }
}

/* ---------- サービス一覧 ---------- */
.service {
    margin-top: 12rem;
}
.service_list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 4%; /* 写真を少し大きく（旧 7.6%） */
    row-gap: 6rem;
}
.service_img {
    aspect-ratio: 17 / 10;
    overflow: hidden;
}
.service_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service_title {
    margin-top: 2rem;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    margin-inline: -3rem; /* 列幅より長い見出しも中央に収める */
}
.service_item ul {
    margin-top: 1.5rem;
    padding-left: 3rem;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
}
.service_item li::before {
    content: "・";
}
@media screen and (max-width: 768px) {
    .service {
        margin-top: 35px;
    }
    .service_list {
        display: block;
    }
    .service_item {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }
    .service_item + .service_item {
        margin-top: 28px;
    }
    .service_img {
        width: 150px; /* 写真を少し大きく（旧 130px） */
        flex-shrink: 0;
        aspect-ratio: 17 / 10;
    }
    .service_body {
        flex: 1;
        min-width: 0;
    }
    .service_title {
        margin-top: 0;
        font-size: 16px;
        text-align: left;
        white-space: normal;
        margin-inline: 0;
    }
    .service_item ul {
        margin-top: 6px;
        padding-left: 0;
        font-size: 13px;
        line-height: 1.6;
        letter-spacing: 0.02em;
    }
}

/* ---------- 緑帯 ---------- */
.band {
    margin-top: 7rem;
    padding: 1rem 0;
    background: var(--main);
    color: var(--white);
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
@media screen and (max-width: 768px) {
    .band {
        margin-top: 35px;
        padding: 13px 10px;
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ---------- お知らせ/NEWS ---------- */
.news {
    margin-top: 12rem;
}
.news_title {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--accent);
}
.news_body {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: start;
}
.news_sns {
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}
.news_sns a {
    display: block;
    width: 100%;
    height: 100%;
}
.news_sns img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news_list {
    padding-left: 20%;
}
.news_list li + li {
    margin-top: 4.5rem;
}
.news_list a {
    display: block;
}
.news_date {
    display: block;
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}
.news_text {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-wrap: balance;
}
@media screen and (max-width: 768px) {
    .news {
        margin-top: 35px;
    }
    .news_title {
        font-size: 21px;
    }
    .news_body {
        margin-top: 8px;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }
    .news_sns {
        font-size: 12px;
    }
    .news_list {
        padding-left: 0;
    }
    .news_list li + li {
        margin-top: 22px;
    }
    .news_date {
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: 0.02em;
    }
    .news_text {
        font-size: 15px;
        line-height: 1.4;
        letter-spacing: 0.02em;
    }
}

/* ---------- フッター ---------- */
.footer {
    margin-top: 12rem;
    padding: 6rem 0 10rem;
    background: var(--bg_green);
}
.footer_mascot {
    display: block;
    width: 24rem;
    margin-left: auto;
}
.footer_logo {
    width: 30rem;
    line-height: 0;
}
.footer_logo a {
    display: block;
}
.footer_addr {
    margin-top: 1rem;
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}
.footer_addr a {
    display: inline;
}
.footer_tel {
    margin-left: 1em; /* PCは住所の右に並べる */
}
.footer_map {
    margin-top: 3rem;
    aspect-ratio: 1200 / 700;
    background: #ddd;
}
.footer_map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media screen and (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 35px 0 45px;
    }
    .footer_top {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-end;
        justify-content: space-between;
    }
    .footer_mascot {
        width: 110px;
        margin: 0;
    }
    .footer_logo {
        width: 150px;
        margin-bottom: 4px;
    }
    .footer_addr {
        margin-top: 4px;
        font-size: 12px;
        letter-spacing: 0.02em;
    }
    .footer_tel {
        display: block; /* SPは「TEL：」の前で必ず改行（TEL：と番号が分かれないように） */
        margin-left: 0;
    }
    .footer_map {
        margin-top: 14px;
        aspect-ratio: 391 / 230;
    }
}

/* 電話番号リンク：SPのみタップで発信、PCはリンク無効 */
@media screen and (min-width: 769px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}

/* ========================================================
   PC幅の文字・コンテナの比例縮小（769px〜）
   1920px=原寸(1rem=10px)、画面が狭いほど比例して縮小（下限 7.5px）。
   コンテナ幅もrem基準にして、カンプの「文字:幅」の比率を保つ。
   感じ方の調整はここの数値だけ：--pc_max（1920pxでの1rem）/ --pc_min
   ======================================================== */
@media screen and (min-width: 769px) {
    :root {
        --pc_max: 10px;
        --pc_min: 7.5px;
    }
    html {
        font-size: clamp(var(--pc_min), 0.5208vw, var(--pc_max));
    }
    .inner.is_wide {
        max-width: 120rem;
    }
}

/* ========================================================
   プライバシーポリシー / 会社案内ページ
   ======================================================== */
html {
    scroll-padding-top: 10rem; /* 固定ヘッダー分（ページ内リンク用） */
}
.inner.is_narrow {
    max-width: 85rem;
}
.policy {
    padding-top: 3rem;
}
.policy_title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0;
    text-align: center;
}
.policy_lead,
.policy_block p,
.policy_block li {
    font-size: 2rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0;
}
.policy_lead {
    margin-top: 4rem;
}
.policy_block {
    margin-top: 4rem;
}
.policy_block h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0;
}
.company {
    margin-top: 12rem;
}
.company_table {
    margin-top: 4rem;
}
.company_table th,
.company_table td {
    padding: 0;
    font-size: 2rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0;
    text-align: left;
    vertical-align: top;
}
.company_table th {
    width: 20rem;
}
.company_clients {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
}
@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 55px;
    }
    .policy {
        padding-top: 20px;
    }
    .policy_title {
        font-size: 15px;
    }
    .policy_lead,
    .policy_block p,
    .policy_block li {
        font-size: 14px;
        line-height: 1.9;
    }
    .policy_lead {
        margin-top: 18px;
    }
    .policy_block {
        margin-top: 22px;
    }
    .policy_block h3 {
        font-size: 14px;
        line-height: 1.9;
    }
    .company {
        margin-top: 50px;
    }
    .company_table {
        margin-top: 14px;
    }
    .company_table th,
    .company_table td {
        font-size: 13px;
        line-height: 1.9;
        padding-bottom: 2px;
    }
    .company_table th {
        width: 5.8em;
        padding-right: 8px;
    }
    .company_clients {
        column-gap: 12px;
    }
}

/* ---------- MV：写真が明るい/細かいスライド用の左側シェード ---------- */
.swiper-slide.is_shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0) 78%);
}

/* ---------- サービスカード全体をリンク化（見出しのリンクを全面に拡張） ---------- */
.service_item {
    position: relative;
}
.service_link::after {
    content: "";
    position: absolute;
    inset: 0;
}
.service_link:hover {
    opacity: 1;
}
.service_item {
    transition: opacity 0.3s;
}
.service_item:hover {
    opacity: 0.7;
}

/* ========================================================
   MVの動き（テキストのカットイン）／SP追従の電話ボタン
   ======================================================== */
/* スライダー：表示中のスライドのテキストが順に入る / 分割ページ：読み込み時に入る */
.swiper-slide .mv_title,
.swiper-slide .mv_points li,
.mv > .mv_inner .mv_title,
.mv > .mv_inner .mv_points li {
    opacity: 0;
    transform: translateY(2.4rem);
}
.swiper-slide-active .mv_title,
.swiper-slide-active .mv_points li,
.mv > .mv_inner .mv_title,
.mv > .mv_inner .mv_points li {
    animation: mvLine 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.swiper-slide-active .mv_title,
.mv > .mv_inner .mv_title { animation-delay: 0.3s; }
.swiper-slide-active .mv_points li:nth-child(1),
.mv > .mv_inner .mv_points li:nth-child(1) { animation-delay: 0.6s; }
.swiper-slide-active .mv_points li:nth-child(2),
.mv > .mv_inner .mv_points li:nth-child(2) { animation-delay: 0.8s; }
.swiper-slide-active .mv_points li:nth-child(3),
.mv > .mv_inner .mv_points li:nth-child(3) { animation-delay: 1.0s; }
@keyframes mvLine {
    to { opacity: 1; transform: none; }
}

/* SP追従の電話ボタン（PCは非表示） */
.tel_fix {
    display: none;
}
@media screen and (max-width: 768px) {
    .swiper-slide .mv_title,
    .swiper-slide .mv_points li,
    .mv > .mv_inner .mv_title,
    .mv > .mv_inner .mv_points li {
        transform: translateY(10px);
    }
    .tel_fix {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: calc(var(--z_header) - 2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 999px;
        background: var(--main);
        color: var(--white);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        line-height: 1.2;
        transition: transform 0.3s ease;
    }
    .tel_fix_label {
        font-size: 12px;
        font-weight: 700;
        padding-right: 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.6);
    }
    .tel_fix_num {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.02em;
    }
    .footer {
        padding-bottom: 90px; /* 追従ボタンで隠れないように */
    }
    .is_hamb_open .tel_fix {
        transform: translateY(100px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .swiper-slide .mv_title,
    .swiper-slide .mv_points li,
    .mv > .mv_inner .mv_title,
    .mv > .mv_inner .mv_points li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- SNSリンク（LINE / Instagram） ---------- */
.sns_links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}
.sns_btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 3rem;
    border-radius: 999px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.sns_icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}
.sns_line {
    background: #06c755;
}
.sns_insta {
    background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}
.news_sns_links {
    margin-top: 6rem;
    text-align: center;
}
.news_sns_lead {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}
.news_sns_links .sns_links {
    margin-top: 2rem;
    justify-content: center;
}
.sns_links.is_footer {
    margin-top: 1.6rem;
}
.sns_links.is_footer .sns_btn {
    width: 4.8rem;
    height: 4.8rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%; /* アイコンのみの真円ボタン */
}
.sns_links.is_footer .sns_icon {
    width: 2.6rem;
    height: 2.6rem;
}
@media screen and (max-width: 768px) {
    .sns_links {
        gap: 10px;
    }
    .sns_btn {
        gap: 6px;
        padding: 10px 16px;
        font-size: 13px;
    }
    .sns_icon {
        width: 20px;
        height: 20px;
    }
    .news_sns_links {
        margin-top: 30px;
    }
    .news_sns_lead {
        font-size: 13px;
    }
    .news_sns_links .sns_links {
        margin-top: 12px;
    }
    .sns_links.is_footer {
        margin-top: 10px;
    }
    .sns_links.is_footer .sns_btn {
        width: 38px;
        height: 38px;
        padding: 0;
    }
    .sns_links.is_footer .sns_icon {
        width: 20px;
        height: 20px;
    }
}

/* ========================================================
   採用情報ページ
   ======================================================== */
.recruit {
    padding-top: 8rem;
}
.recruit_text {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}
.recruit_text + .recruit_text {
    margin-top: 3.5rem;
}
.recruit_title {
    margin-top: 11rem;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    color: var(--main);
}
.recruit_table {
    margin-top: 9.5rem;
}
.recruit_table th,
.recruit_table td {
    padding: 0.8rem 0;
    font-size: 2rem;
    line-height: 1.75; /* 導入文（.recruit_text）と揃える */
    letter-spacing: 0;
    vertical-align: middle;
}
.recruit_table th {
    width: 25rem;
    background: var(--main);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    box-shadow: inset 0 -1px 0 var(--white); /* 罫線は内側に描いて行高(40px)を崩さない */
}
.recruit_table td {
    padding-left: 2rem;
    font-weight: 400;
    text-align: left;
    /* 罫線は項目名セルから2rem離して始め、文頭と揃える（デザイン再現）。行高を崩さないよう背景で描く */
    background: linear-gradient(var(--black), var(--black)) 2rem 100% / calc(100% - 2rem) 1px no-repeat;
}
.recruit_table tr:last-child th {
    box-shadow: none;
}
.recruit_table tr:last-child td {
    background: none; /* 最終行（応募について）は下罫線なし */
}
.recruit_cta {
    margin-top: 12rem;
    text-align: center;
}
@media screen and (max-width: 768px) {
    .recruit {
        padding-top: 28px;
    }
    .recruit_text {
        font-size: 14px;
        line-height: 1.9;
    }
    .recruit_text + .recruit_text {
        margin-top: 18px;
    }
    .recruit_title {
        margin-top: 40px;
        font-size: 20px;
    }
    .recruit_table {
        margin-top: 22px;
    }
    .recruit_table,
    .recruit_table tbody,
    .recruit_table tr,
    .recruit_table th,
    .recruit_table td {
        display: block;
        width: auto;
    }
    .recruit_table tr + tr {
        margin-top: 18px;
    }
    .recruit_table th,
    .recruit_table td {
        padding: 0;
        font-size: 14px;
        line-height: 1.9;
    }
    .recruit_table th {
        background: none;
        color: var(--black);
        text-align: left;
        box-shadow: none;
    }
    .recruit_table td {
        background: none;
    }
    .recruit_cta {
        margin-top: 45px;
    }
    .recruit_cta .btn_cta {
        padding: 14px 40px;
    }
}

/* ========================================================
   お問い合わせページ
   ======================================================== */
.inquiry {
    padding-top: 11.6rem;
}
.inquiry_tel {
    text-align: center;
    font-weight: 700;
    color: var(--main);
}
.inquiry_tel_lead {
    font-size: 4rem;
    line-height: 1.4;
    letter-spacing: 0;
}
.inquiry_tel_num {
    margin-top: 3.2rem;
    font-size: 10rem;
    line-height: 1.2;
    letter-spacing: 0;
}
.inquiry_tel_time {
    margin-top: 4rem;
    font-size: 4rem;
    line-height: 1.4;
    letter-spacing: 0;
}
.inquiry_title {
    margin-top: 17rem;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    color: var(--main);
}

/* フォーム表（.recruit_table の緑ラベル＋罫線表現を流用） */
.form_table {
    margin-top: 7rem;
}
.form_table th {
    padding: 0;
    height: 8rem;
}
.form_table tr.is_textarea th {
    height: 12rem;
}
.form_table th label {
    display: block;
    padding: 0.8rem 0;
    cursor: pointer;
}
.form_table td {
    padding: 1.4rem 0.8rem 1.4rem 3rem;
}
/* 最上段の上罫線・最下段の下罫線（項目名セルから2rem離して始める） */
.form_table tr:first-child td {
    background:
        linear-gradient(var(--black), var(--black)) 2rem 0 / calc(100% - 2rem) 1px no-repeat,
        linear-gradient(var(--black), var(--black)) 2rem 100% / calc(100% - 2rem) 1px no-repeat;
}
.form_table tr:last-child td {
    background: linear-gradient(var(--black), var(--black)) 2rem 100% / calc(100% - 2rem) 1px no-repeat;
}
.req {
    margin-left: 0.15em;
    font-size: 1.1em; /* アスタリスクは字面が小さいため、上付きでも視認できる大きさに */
    font-weight: 700;
    line-height: 1;
    vertical-align: 0.3em;
    color: var(--white);
}
.form_table input[type="text"],
.form_table input[type="email"],
.form_table input[type="tel"],
.form_table textarea {
    display: block;
    width: 100%;
    height: 5.2rem;
    padding: 0 1rem;
    border: 1px solid var(--black);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    font-size: max(16px, 2rem); /* 16px未満だとiOSで入力時に自動ズームされる */
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.form_table textarea {
    height: 9.2rem;
    padding: 1rem;
    resize: vertical;
}
.form_table input:focus-visible,
.form_table textarea:focus-visible,
.form_radios input:focus-visible,
.btn_submit:focus-visible {
    outline: 2px solid var(--main);
    outline-offset: 2px;
}
.form_radios {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.4rem;
    min-height: 5.2rem;
}
.form_radios label {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    line-height: 1.75;
    cursor: pointer;
}
/* テンプレートのリセットで消えるラジオを再現 */
.form_radios input[type="radio"] {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid var(--black);
    border-radius: 50%;
    background: var(--white);
}
.form_radios input[type="radio"]:checked {
    background: radial-gradient(var(--main) 0 45%, var(--white) 50%);
}

.inquiry_note {
    margin-top: 10.3rem;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}
.inquiry_note a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}
/* 下線は疑似要素で描く（ホバーで中心に向かって消える＝ナビの下線アニメの逆） */
.inquiry_note a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: center;
    transition: transform 0.3s ease;
}
@media (hover: hover) {
    .inquiry_note a:hover {
        opacity: 1;
    }
    .inquiry_note a:hover::after {
        transform: scaleX(0);
    }
}
.inquiry_submit {
    margin-top: 12rem;
    text-align: center;
}
.btn_submit {
    width: 30rem;
    height: 10rem;
    border: 2px solid var(--main);
    background: var(--main);
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn_submit:hover {
    background: var(--white);
    color: var(--main);
}

@media screen and (max-width: 768px) {
    .inquiry {
        padding-top: 14px;
    }
    .inquiry_tel_lead {
        font-size: 20px;
    }
    .inquiry_tel_num {
        margin-top: 4px;
        font-size: min(50px, 13.3vw);
    }
    .inquiry_tel_time {
        margin-top: 16px;
        font-size: 20px;
    }
    .inquiry_title {
        margin-top: 66px;
        font-size: 25px;
    }
    .form_table {
        margin-top: 29px;
    }
    /* 縦積み：緑バー → 入力欄 → 全幅の罫線 */
    .form_table tr + tr {
        margin-top: 0;
    }
    .form_table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--black);
    }
    .form_table tr:first-child {
        padding-top: 0;
    }
    .form_table tr:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .form_table th,
    .form_table tr.is_textarea th {
        height: auto;
        margin: 0 12px;
        background: var(--main);
        color: var(--white);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.5;
        text-align: center;
        box-shadow: none;
    }
    .form_table th {
        padding: 5px 0;
    }
    .form_table th label {
        padding: 0;
    }
    .form_table td,
    .form_table tr:first-child td,
    .form_table tr:last-child td {
        padding: 10px 12px 0;
        background: none;
    }
    .form_table input[type="text"],
    .form_table input[type="email"],
    .form_table input[type="tel"],
    .form_table textarea {
        height: 40px;
        padding: 0 8px;
        font-size: 16px;
    }
    .form_table textarea {
        height: 110px;
        padding: 8px;
    }
    .form_radios {
        justify-content: center;
        gap: 8px 20px;
        min-height: 0;
    }
    .form_radios label {
        gap: 6px;
        font-size: 15px;
    }
    .form_radios input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    .inquiry_note {
        margin: 34px 12px 0;
        font-size: 13px;
        line-height: 1.8;
    }
    .inquiry_submit {
        margin-top: 55px;
    }
    .btn_submit {
        width: 152px;
        height: 45px;
        font-size: 15px;
    }
}

/* ========================================================
   ここから WordPress テーマ専用（静的版 cd には無い追加分）
   ======================================================== */

/* ---------- プライバシーポリシー本文（エディタ出力: p / h3 / ul に対応） ---------- */
.policy_content {
    margin-top: 4rem;
}
.policy_content p,
.policy_content li {
    font-size: 2rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0;
}
.policy_content h3 {
    margin-top: 4rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0;
}
.policy_content a {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}
@media screen and (max-width: 768px) {
    .policy_content {
        margin-top: 18px;
    }
    .policy_content p,
    .policy_content li {
        font-size: 14px;
        line-height: 1.9;
    }
    .policy_content h3 {
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.9;
    }
}

/* ---------- 採用情報の導入文（エディタ出力） ---------- */
.recruit_content p {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}
.recruit_content p + p {
    margin-top: 3.5rem;
}
@media screen and (max-width: 768px) {
    .recruit_content p {
        font-size: 14px;
        line-height: 1.9;
    }
    .recruit_content p + p {
        margin-top: 18px;
    }
}

/* ---------- お知らせ一覧・詳細（仮案・最小構成） ---------- */
.news_page,
.news_single {
    padding-top: 8rem;
}
.news_page_title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    color: var(--accent);
}
.news_page_list {
    margin-top: 6rem;
    border-top: 1px solid var(--black);
}
.news_page_list li {
    border-bottom: 1px solid var(--black);
}
.news_page_list a {
    display: block;
    padding: 2.4rem 0;
}
.news_page_date {
    display: block;
    font-size: 2rem;
    line-height: 1.5;
}
.news_page_text {
    display: block;
    margin-top: 0.4rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}
.news_page_empty {
    margin-top: 6rem;
    font-size: 2rem;
    text-align: center;
}
.navigation.pagination {
    margin-top: 6rem;
    text-align: center;
}
.navigation.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    font-size: 2rem;
}
.navigation.pagination .current {
    font-weight: 700;
    color: var(--main);
}
.news_single_date {
    display: block;
    font-size: 2rem;
    line-height: 1.5;
}
.news_single_title {
    margin-top: 0.8rem;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0;
}
.news_single_content {
    margin-top: 5rem;
    font-size: 2rem;
    line-height: 2;
    letter-spacing: 0;
}
.news_single_content p + p,
.news_single_content figure,
.news_single_content ul,
.news_single_content ol {
    margin-top: 2rem;
}
.news_single_content img {
    max-width: 100%;
    height: auto;
}
.news_single_content ul {
    list-style: disc;
    padding-left: 2em;
}
.news_single_content ol {
    list-style: decimal;
    padding-left: 2em;
}
.news_single_back {
    margin-top: 8rem;
    text-align: center;
    font-size: 2rem;
}
.news_single_back a {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}
@media screen and (max-width: 768px) {
    .news_page,
    .news_single {
        padding-top: 28px;
    }
    .news_page_title {
        font-size: 22px;
    }
    .news_page_list {
        margin-top: 24px;
    }
    .news_page_list a {
        padding: 14px 0;
    }
    .news_page_date {
        font-size: 12px;
    }
    .news_page_text {
        font-size: 15px;
    }
    .news_page_empty,
    .navigation.pagination .nav-links,
    .news_single_back {
        font-size: 14px;
    }
    .navigation.pagination {
        margin-top: 30px;
    }
    .news_single_date {
        font-size: 12px;
    }
    .news_single_title {
        font-size: 20px;
    }
    .news_single_content {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.9;
    }
    .news_single_back {
        margin-top: 40px;
    }
}

/* ---------- Contact Form 7（プラグイン標準CSSは無効化しているため、ここで装飾） ---------- */
.wpcf7 form {
    margin: 0;
}
/* CF7が出力する隠しフィールド用の <fieldset>。標準CSSを切ると、ブラウザ既定の枠（二重線）が見えてしまうため消す */
.wpcf7 fieldset.hidden-fields-container,
.wpcf7 .hidden-fields-container {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
}
.wpcf7-form-control-wrap {
    display: block;
}
/* ラジオ：CF7の入れ子（wrap > radio > list-item）を .form_radios の横並びに合流させる */
.form_radios .wpcf7-form-control-wrap,
.form_radios .wpcf7-radio,
.form_radios .wpcf7-list-item {
    display: contents;
}
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.4rem;
    color: var(--accent);
    font-size: max(12px, 1.4rem);
    line-height: 1.5;
}
.wpcf7-spinner {
    display: none;
}
.screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.wpcf7 form .wpcf7-response-output {
    margin: 4rem 0 0;
    padding: 1.2rem 1.6rem;
    border: 2px solid var(--main);
    font-size: max(14px, 2rem);
    line-height: 1.6;
    text-align: center;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: var(--accent);
    color: var(--accent);
}
.wpcf7 form .wpcf7-response-output:empty {
    display: none;
}
.btn_submit.wpcf7-submit {
    display: block;
    margin: 0 auto;
}
/* Cloudflare Turnstile のウィジェット（送信ボタンの上に中央寄せ） */
.wpcf7 .cf-turnstile {
    margin: 4rem auto 0;
    display: flex;
    justify-content: center;
}
@media screen and (max-width: 768px) {
    .wpcf7 form .wpcf7-response-output {
        margin-top: 24px;
    }
    .wpcf7 .cf-turnstile {
        margin-top: 24px;
    }
}

/* ========================================================
   404ページ
   ======================================================== */
.notfound {
    padding: 8rem 0 4rem;
    text-align: center;
}
.notfound_code {
    font-family: var(--font_en);
    font-size: 16rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--main);
}
.notfound_title {
    margin-top: 3rem;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}
.notfound_text {
    margin-top: 3rem;
    font-size: 2rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0;
}
.notfound_btns {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}
.notfound_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30rem;
    height: 8rem;
    border: 2px solid var(--main);
    background: var(--main);
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
.notfound_btn:hover {
    background: var(--white);
    color: var(--main);
    opacity: 1;
}
.notfound_btn.is_sub {
    background: var(--white);
    color: var(--main);
}
.notfound_btn.is_sub:hover {
    background: var(--main);
    color: var(--white);
}
@media screen and (max-width: 768px) {
    .notfound {
        padding: 40px 0 20px;
    }
    .notfound_code {
        font-size: 80px;
    }
    .notfound_title {
        margin-top: 16px;
        font-size: 18px;
    }
    .notfound_text {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.9;
        text-align: left;
    }
    .notfound_btns {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .notfound_btn {
        width: min(100%, 280px);
        height: 52px;
        font-size: 15px;
    }
}
