/*
Theme Name: TuleWood Original
Theme URI: https://tulewood.com/
Author: TuleWood
Description: TuleWood公式サイト専用のオリジナルテーマ
Version: 1.0.1
Text Domain: tulewood
*/

/* =====================================
   カラー・共通変数
===================================== */

:root {
    --tw-main: #173d32;
    --tw-main-light: #264f42;
    --tw-accent: #b58a55;
    --tw-accent-light: #e6d0aa;
    --tw-bg: #f7f4ed;
    --tw-white: #ffffff;
    --tw-text: #222222;
    --tw-gray: #666666;
    --tw-border: #e7e1d7;
    --tw-width: 1180px;
}

/* =====================================
   リセット・基本設定
===================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--tw-text);
    background: var(--tw-white);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        YuGothic,
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

body.admin-bar .tw-header {
    top: 32px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
ul {
    margin-top: 0;
}

.tw-front {
    width: 100%;
    overflow: hidden;
}

.tw-container {
    width: min(calc(100% - 48px), var(--tw-width));
    margin-right: auto;
    margin-left: auto;
}

/* =====================================
   ヘッダー
===================================== */

.tw-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--tw-border);
    background: var(--tw-white);
}

.tw-header__inner {
    display: flex;
    width: min(calc(100% - 48px), var(--tw-width));
    min-height: 88px;
    margin-right: auto;
    margin-left: auto;
    align-items: center;
    gap: 36px;
}

.tw-header__logo {
    flex-shrink: 0;
    margin-right: auto;
    color: var(--tw-main);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

.tw-header__nav {
    display: flex;
    align-items: center;
}

.tw-header__menu {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.tw-header__menu li {
    margin: 0;
}

.tw-header__menu a {
    position: relative;
    display: block;
    padding: 10px 0;
    color: var(--tw-text);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.tw-header__menu a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    margin: auto;
    background: var(--tw-accent);
    content: "";
    transition: width 0.25s ease;
}

.tw-header__menu a:hover {
    color: var(--tw-accent);
}

.tw-header__menu a:hover::after {
    width: 100%;
}

.tw-header__contact {
    display: inline-flex;
    min-width: 150px;
    min-height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--tw-main);
    color: var(--tw-white);
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.tw-header__contact:hover {
    background: var(--tw-accent);
    color: var(--tw-white);
    transform: translateY(-2px);
}

/* =====================================
   メインビジュアル
===================================== */

.tw-hero {
    position: relative;
    display: flex;
    min-height: 720px;
    overflow: hidden;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(23, 61, 50, 0.98) 0%,
            rgba(23, 61, 50, 0.92) 48%,
            rgba(23, 61, 50, 0.62) 100%
        ),
        linear-gradient(
            135deg,
            #173d32 0%,
            #315f50 58%,
            #b58a55 100%
        );
}

.tw-hero::before {
    position: absolute;
    top: -220px;
    right: -130px;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.tw-hero::after {
    position: absolute;
    right: 110px;
    bottom: -280px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.tw-hero__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), var(--tw-width));
    margin-right: auto;
    margin-left: auto;
}

.tw-hero__label {
    margin: 0 0 20px;
    color: var(--tw-accent-light);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.tw-hero__title {
    max-width: 920px;
    margin: 0;
    color: var(--tw-white);
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.tw-hero__text {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 2;
}

.tw-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 42px;
}

/* =====================================
   ボタン
===================================== */

.tw-button {
    display: inline-flex;
    min-width: 210px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--tw-main);
    background: var(--tw-main);
    color: var(--tw-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.tw-button:hover {
    border-color: var(--tw-accent);
    background: var(--tw-accent);
    color: var(--tw-white);
    transform: translateY(-3px);
}

.tw-button--white {
    border-color: var(--tw-white);
    background: var(--tw-white);
    color: var(--tw-main);
}

.tw-button--white:hover {
    border-color: var(--tw-accent);
    background: var(--tw-accent);
    color: var(--tw-white);
}

.tw-button--outline {
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
    color: var(--tw-white);
}

.tw-button--outline:hover {
    border-color: var(--tw-white);
    background: var(--tw-white);
    color: var(--tw-main);
}

/* =====================================
   セクション共通
===================================== */

.tw-section {
    padding: 100px 0;
}

.tw-section--bg {
    background: var(--tw-bg);
}

.tw-section__heading {
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: center;
}

.tw-section__en {
    margin: 0 0 10px;
    color: var(--tw-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tw-section__title {
    margin: 0;
    color: var(--tw-main);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.35;
}

.tw-section__lead {
    margin: 20px 0 0;
    color: var(--tw-gray);
    font-size: 16px;
    line-height: 1.9;
}

/* =====================================
   TuleWoodについて
===================================== */

.tw-about {
    display: grid;
    align-items: center;
    gap: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tw-about__visual {
    position: relative;
    display: flex;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            rgba(23, 61, 50, 0.1),
            rgba(181, 138, 85, 0.3)
        );
    color: rgba(23, 61, 50, 0.42);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.tw-about__visual::before {
    position: absolute;
    top: 34px;
    right: -34px;
    bottom: -34px;
    left: 34px;
    z-index: -1;
    border: 1px solid var(--tw-accent);
    content: "";
}

.tw-about__title {
    margin: 0 0 30px;
    color: var(--tw-main);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.55;
}

.tw-about__text {
    margin: 0 0 20px;
    color: var(--tw-gray);
    font-size: 16px;
    line-height: 2;
}

/* =====================================
   カード共通
===================================== */

.tw-service-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tw-service-card {
    position: relative;
    min-height: 310px;
    padding: 48px 36px;
    border: 1px solid var(--tw-border);
    background: var(--tw-white);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.tw-service-card:hover {
    border-color: var(--tw-accent);
    box-shadow: 0 20px 45px rgba(23, 61, 50, 0.1);
    transform: translateY(-6px);
}

.tw-service-card__number {
    display: block;
    margin-bottom: 28px;
    color: var(--tw-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
}

.tw-service-card__title {
    margin: 0 0 18px;
    color: var(--tw-main);
    font-size: 22px;
    line-height: 1.5;
}

.tw-service-card__text {
    margin: 0;
    color: var(--tw-gray);
    font-size: 15px;
    line-height: 1.9;
}

/* =====================================
   事業内容5項目専用レイアウト
===================================== */

#business .tw-service-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

#business .tw-service-card {
    grid-column: span 2;
}

#business .tw-service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

#business .tw-service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* =====================================
   お問い合わせ
===================================== */

.tw-contact-cta {
    padding: 110px 24px;
    background:
        linear-gradient(
            135deg,
            var(--tw-main),
            var(--tw-main-light)
        );
    color: var(--tw-white);
    text-align: center;
}

.tw-contact-cta .tw-section__en {
    color: var(--tw-accent-light);
}

.tw-contact-cta__title {
    margin: 0;
    color: var(--tw-white);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.35;
}

.tw-contact-cta__text {
    max-width: 700px;
    margin: 22px auto 38px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
}

/* =====================================
   フッター
===================================== */

.tw-footer {
    padding: 72px 0 24px;
    background: #102d25;
    color: var(--tw-white);
}

.tw-footer__inner {
    width: min(calc(100% - 48px), var(--tw-width));
    margin-right: auto;
    margin-left: auto;
}

.tw-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 50px;
}

.tw-footer__brand {
    max-width: 420px;
}

.tw-footer__logo {
    display: inline-block;
    color: var(--tw-white);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

.tw-footer__message {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.tw-footer__menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 16px 28px;
    list-style: none;
}

.tw-footer__menu li {
    margin: 0;
}

.tw-footer__menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: color 0.25s ease;
}

.tw-footer__menu a:hover {
    color: var(--tw-accent-light);
}

.tw-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tw-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    text-align: center;
}

/* =====================================
   テストページ
===================================== */

.tw-test {
    display: flex;
    min-height: 70vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--tw-bg);
    text-align: center;
}

.tw-test__inner {
    width: min(100%, 760px);
    padding: 70px 40px;
    background: var(--tw-white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.tw-test__title {
    margin: 0 0 20px;
    color: var(--tw-main);
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.2;
}

.tw-test__text {
    margin: 0;
    color: var(--tw-gray);
    font-size: 17px;
}

/* =====================================
   タブレット
===================================== */

@media screen and (max-width: 900px) {
    body.admin-bar .tw-header {
        top: 46px;
    }

    .tw-header__inner {
        width: min(calc(100% - 32px), var(--tw-width));
        min-height: 72px;
    }

    .tw-header__nav {
        display: none;
    }

    .tw-header__contact {
        min-width: auto;
        padding: 8px 16px;
        font-size: 13px;
    }

    .tw-hero {
        min-height: 650px;
    }

    .tw-section {
        padding: 78px 0;
    }

    .tw-about {
        gap: 60px;
        grid-template-columns: 1fr;
    }

    .tw-about__visual {
        min-height: 400px;
    }

    .tw-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #business .tw-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #business .tw-service-card,
    #business .tw-service-card:nth-child(4),
    #business .tw-service-card:nth-child(5) {
        grid-column: auto;
    }

    #business .tw-service-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - 13px);
        justify-self: center;
    }

    .tw-service-card {
        min-height: auto;
    }

    .tw-footer {
        padding-top: 56px;
    }

    .tw-footer__inner {
        width: min(calc(100% - 32px), var(--tw-width));
    }

    .tw-footer__top {
        flex-direction: column;
        gap: 36px;
    }

    .tw-footer__menu {
        flex-direction: column;
        gap: 12px;
    }
}

/* =====================================
   スマートフォン
===================================== */

@media screen and (max-width: 600px) {
    .tw-container,
    .tw-hero__inner {
        width: min(calc(100% - 32px), var(--tw-width));
    }

    .tw-header__logo {
        font-size: 23px;
    }

    .tw-header__contact {
        min-height: 42px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .tw-hero {
        min-height: 590px;
    }

    .tw-hero__title {
        font-size: 37px;
    }

    .tw-hero__text {
        font-size: 15px;
        line-height: 1.9;
    }

    .tw-hero__buttons {
        flex-direction: column;
    }

    .tw-button {
        width: 100%;
    }

    .tw-section {
        padding: 64px 0;
    }

    .tw-section__heading {
        margin-bottom: 40px;
    }

    .tw-about {
        gap: 48px;
    }

    .tw-about__visual {
        min-height: 300px;
    }

    .tw-about__visual::before {
        top: 16px;
        right: -12px;
        bottom: -16px;
        left: 12px;
    }

    .tw-service-grid,
    #business .tw-service-grid {
        grid-template-columns: 1fr;
    }

    #business .tw-service-card,
    #business .tw-service-card:nth-child(4),
    #business .tw-service-card:nth-child(5) {
        width: 100%;
        grid-column: auto;
        justify-self: stretch;
    }

    .tw-service-card {
        padding: 36px 26px;
    }

    .tw-service-card__title {
        font-size: 21px;
    }

    .tw-contact-cta {
        padding: 80px 20px;
    }

    .tw-footer__top {
        padding-bottom: 36px;
    }
}
/* =====================================
   下層ページ共通
===================================== */

.tw-page-hero {
    position: relative;
    display: flex;
    min-height: 360px;
    overflow: hidden;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            var(--tw-main) 0%,
            var(--tw-main-light) 70%,
            #315f50 100%
        );
    color: var(--tw-white);
}

.tw-page-hero::after {
    position: absolute;
    top: -220px;
    right: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.tw-page-hero .tw-container {
    position: relative;
    z-index: 2;
}

.tw-page-hero__en {
    margin: 0 0 14px;
    color: var(--tw-accent-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.tw-page-hero__title {
    margin: 0;
    color: var(--tw-white);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.tw-page-hero__text {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

/* =====================================
   会社概要
===================================== */

.tw-company-profile {
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.tw-company-profile__list {
    margin: 0;
    border-top: 1px solid var(--tw-border);
}

.tw-company-profile__row {
    display: grid;
    border-bottom: 1px solid var(--tw-border);
    grid-template-columns: 220px minmax(0, 1fr);
}

.tw-company-profile__row dt {
    margin: 0;
    padding: 28px 30px;
    background: var(--tw-bg);
    color: var(--tw-main);
    font-weight: 700;
}

.tw-company-profile__row dd {
    margin: 0;
    padding: 28px 34px;
    color: var(--tw-gray);
}

.tw-company-profile__business {
    margin: 0;
    padding-left: 1.4em;
}

.tw-company-profile__business li {
    margin-bottom: 8px;
}

.tw-company-profile__business li:last-child {
    margin-bottom: 0;
}

/* =====================================
   COMPANY メッセージ
===================================== */

.tw-company-message {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.tw-company-message__title {
    margin: 0;
    color: var(--tw-main);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.55;
}

.tw-company-message__body {
    max-width: 740px;
    margin: 38px auto 0;
    color: var(--tw-gray);
    line-height: 2.1;
    text-align: left;
}

.tw-company-message__body p {
    margin-bottom: 22px;
}

.tw-company-message__body p:last-child {
    margin-bottom: 0;
}

/* =====================================
   COMPANY スマートフォン
===================================== */

@media screen and (max-width: 600px) {
    .tw-page-hero {
        min-height: 280px;
    }

    .tw-page-hero__title {
        font-size: 42px;
    }

    .tw-company-profile__row {
        display: block;
    }

    .tw-company-profile__row dt {
        padding: 16px 20px;
    }

    .tw-company-profile__row dd {
        padding: 20px;
    }

    .tw-company-message {
        text-align: left;
    }

    .tw-company-message__body {
        margin-top: 28px;
    }
}
/* 会社概要：事業内容の箇条書き記号を削除 */
.tw-company-profile__business {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.tw-company-profile__business li {
    margin-bottom: 8px;
}

.tw-company-profile__business li:last-child {
    margin-bottom: 0;
}
/* =====================================
   ABOUTページ
===================================== */

.tw-about-page {
    background: var(--tw-white);
}

/* =====================================
   ABOUT メイン
===================================== */

.tw-about-intro {
    padding: 100px 0 120px;
    background: var(--tw-white);
}

.tw-about-intro__inner {
    display: grid;
    align-items: center;
    gap: 80px;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(0, 1.08fr);
}

/* 左側画像 */

.tw-about-intro__visual {
    position: relative;
    display: flex;
    min-height: 680px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(23, 61, 50, 0.96),
            rgba(49, 95, 80, 0.86)
        );
}

.tw-about-intro__visual::before,
.tw-about-intro__visual::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    content: "";
}

.tw-about-intro__visual::before {
    top: -160px;
    right: -150px;
    width: 430px;
    height: 430px;
}

.tw-about-intro__visual::after {
    bottom: -190px;
    left: -160px;
    width: 480px;
    height: 480px;
}

.tw-about-intro__placeholder {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

/* 実際の画像を入れた場合 */

.tw-about-intro__visual img {
    width: 100%;
    height: 100%;
    min-height: 680px;
    object-fit: cover;
}

/* 右側文章 */

.tw-about-intro__content {
    padding: 30px 0;
}

.tw-about-intro__title {
    margin: 0;
    color: var(--tw-main);
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.tw-about-intro__catch {
    position: relative;
    margin: 32px 0 38px;
    padding-left: 24px;
    color: var(--tw-accent);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.65;
}

.tw-about-intro__catch::before {
    position: absolute;
    top: 0.15em;
    bottom: 0.15em;
    left: 0;
    width: 3px;
    background: var(--tw-accent);
    content: "";
}

.tw-about-intro__text {
    color: var(--tw-gray);
    font-size: 15px;
    line-height: 2.05;
}

.tw-about-intro__text p {
    margin: 0 0 19px;
}

.tw-about-intro__text p:last-child {
    margin-bottom: 0;
}

.tw-about-intro__mission {
    margin-top: 32px !important;
    color: var(--tw-main);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* =====================================
   代表者紹介
===================================== */

.tw-directors {
    display: grid;
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    gap: 38px;
}

.tw-director-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--tw-border);
    background: var(--tw-white);
    box-shadow: 0 16px 45px rgba(23, 61, 50, 0.06);
    grid-template-columns: 280px minmax(0, 1fr);
}

/* プロフィール部分 */

.tw-director-card__profile {
    display: flex;
    padding: 48px 35px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            var(--tw-main),
            var(--tw-main-light)
        );
    color: var(--tw-white);
    text-align: center;
}

.tw-director-card__icon {
    display: flex;
    width: 130px;
    height: 130px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.tw-director-card__icon span {
    color: var(--tw-white);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tw-director-card__icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tw-director-card__position {
    margin: 0 0 10px;
    color: var(--tw-accent-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tw-director-card__name {
    margin: 0;
    color: var(--tw-white);
    font-size: 27px;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.tw-director-card__birth {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 13px;
}

/* メッセージ部分 */

.tw-director-card__message {
    padding: 50px 54px;
    color: var(--tw-gray);
    font-size: 15px;
    line-height: 2.05;
}

.tw-director-card__message p {
    margin: 0 0 20px;
}

.tw-director-card__message p:last-child {
    margin-bottom: 0;
}

/* =====================================
   ABOUT タブレット
===================================== */

@media screen and (max-width: 900px) {
    .tw-about-intro {
        padding: 80px 0 95px;
    }

    .tw-about-intro__inner {
        gap: 60px;
        grid-template-columns: 1fr;
    }

    .tw-about-intro__visual {
        min-height: 500px;
    }

    .tw-about-intro__visual img {
        min-height: 500px;
    }

    .tw-about-intro__content {
        padding: 0;
    }

    .tw-director-card {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .tw-director-card__profile {
        padding: 42px 25px;
    }

    .tw-director-card__message {
        padding: 42px 38px;
    }
}

/* =====================================
   ABOUT スマートフォン
===================================== */

@media screen and (max-width: 600px) {
    .tw-about-intro {
        padding: 0 0 70px;
    }

    .tw-about-intro__inner {
        width: 100%;
        gap: 50px;
    }

    .tw-about-intro__visual {
        min-height: 390px;
    }

    .tw-about-intro__visual img {
        min-height: 390px;
    }

    .tw-about-intro__content {
        width: calc(100% - 32px);
        margin-right: auto;
        margin-left: auto;
    }

    .tw-about-intro__title {
        font-size: 34px;
    }

    .tw-about-intro__catch {
        margin: 25px 0 30px;
        font-size: 19px;
    }

    .tw-about-intro__text {
        font-size: 15px;
        line-height: 2;
    }

    .tw-directors {
        gap: 28px;
    }

    .tw-director-card {
        display: block;
    }

    .tw-director-card__profile {
        padding: 38px 24px;
    }

    .tw-director-card__icon {
        width: 112px;
        height: 112px;
        margin-bottom: 22px;
    }

    .tw-director-card__name {
        font-size: 25px;
    }

    .tw-director-card__message {
        padding: 34px 25px;
        font-size: 14px;
        line-height: 2;
    }
}
/* =====================================
   ヘッダーロゴ画像
===================================== */

.tw-header__logo {
    display: flex;
    flex-shrink: 0;
    margin-right: auto;
    align-items: center;
}

.tw-header__logo img {
    display: block;
    width: auto;
    max-width: 320px;
    height: 72px;
    object-fit: contain;
}

.tw-header__inner {
    min-height: 112px;
}

@media screen and (max-width: 600px) {
    .tw-header__logo img {
        max-width: 230px;
        height: 52px;
    }

    .tw-header__inner {
        min-height: 82px;
    }
}
/* =====================================
   TOPページ ABOUT画像
===================================== */

.tw-about__visual {
    overflow: hidden;
}

.tw-about__visual img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 900px) {
    .tw-about__visual img {
        height: 400px;
    }
}

@media screen and (max-width: 600px) {
    .tw-about__visual img {
        height: 300px;
    }
}
/* =====================================
   404ページ
===================================== */

.tw-error {
    position: relative;
    display: flex;
    min-height: 700px;
    overflow: hidden;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            var(--tw-main) 0%,
            var(--tw-main-light) 70%,
            #315f50 100%
        );
    color: var(--tw-white);
    text-align: center;
}

.tw-error::before,
.tw-error::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.tw-error::before {
    top: -230px;
    right: -140px;
    width: 600px;
    height: 600px;
}

.tw-error::after {
    bottom: -300px;
    left: -180px;
    width: 650px;
    height: 650px;
}

.tw-error__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.tw-error__number {
    margin: 0;
    color: rgba(255, 255, 255, 0.12);
    font-size: clamp(130px, 22vw, 250px);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.04em;
}

.tw-error__en {
    margin: 40px 0 12px;
    color: var(--tw-accent-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.tw-error__title {
    margin: 0;
    color: var(--tw-white);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.45;
}

.tw-error__text {
    margin: 25px auto 38px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 2;
}

@media screen and (max-width: 600px) {
    .tw-error {
        min-height: 620px;
        padding: 70px 0;
    }

    .tw-error__number {
        font-size: 130px;
    }

    .tw-error__text br {
        display: none;
    }
}
/* =====================================
   スマホメニューの不要な三角を非表示
===================================== */

.tw-mobile-menu {
    display: none !important;
}

.tw-mobile-menu > summary {
    list-style: none !important;
}

.tw-mobile-menu > summary::marker {
    content: "";
    display: none;
}

.tw-mobile-menu > summary::-webkit-details-marker {
    display: none;
}

@media screen and (max-width: 900px) {
    .tw-mobile-menu {
        display: block !important;
    }
}
/* =====================================
   スマホ表示の最終調整
===================================== */

.tw-hero__title span {
    display: block;
}

@media screen and (max-width: 600px) {

    /* ヘッダー */
    .tw-header__inner {
        width: calc(100% - 32px) !important;
        min-height: 88px !important;
    }

    .tw-header__logo img {
        width: auto !important;
        max-width: 190px !important;
        height: 52px !important;
    }

    /* 三本線メニューを確実に表示 */
    .tw-mobile-menu {
        display: block !important;
        flex-shrink: 0;
        margin-left: auto !important;
    }

    .tw-mobile-menu__button {
        display: flex !important;
        width: 46px;
        height: 46px;
        padding: 0;
        cursor: pointer;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        border: 1px solid var(--tw-border);
        background: var(--tw-white);
    }

    .tw-mobile-menu__button span {
        display: block !important;
        width: 21px;
        height: 2px;
        background: var(--tw-main);
    }

    /* メインビジュアル */
    .tw-hero {
        min-height: auto;
        padding: 70px 0 64px;
    }

    .tw-hero__title {
        font-size: 30px !important;
        line-height: 1.5;
        letter-spacing: 0;
    }

    .tw-hero__title span {
        display: block;
        white-space: nowrap;
    }

    .tw-hero__text {
        margin-top: 25px;
        font-size: 14px;
        line-height: 2;
    }

    .tw-hero__buttons {
        margin-top: 34px;
    }
}
/* =====================================
   プライバシーポリシー
===================================== */

.tw-privacy {
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
}

.tw-privacy__intro {
    margin: 0;
    padding: 34px 38px;
    border-left: 4px solid var(--tw-accent);
    background: var(--tw-bg);
    color: var(--tw-gray);
    font-size: 16px;
    line-height: 2;
}

.tw-privacy__section {
    margin-top: 58px;
}

.tw-privacy__title {
    margin: 0 0 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tw-border);
    color: var(--tw-main);
    font-size: 23px;
    line-height: 1.5;
}

.tw-privacy__section p {
    margin: 0 0 18px;
    color: var(--tw-gray);
    font-size: 15px;
    line-height: 2;
}

.tw-privacy__section p:last-child {
    margin-bottom: 0;
}

.tw-privacy__list {
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.tw-privacy__list li {
    position: relative;
    margin-bottom: 13px;
    padding-left: 24px;
    color: var(--tw-gray);
    font-size: 15px;
    line-height: 1.9;
}

.tw-privacy__list li::before {
    position: absolute;
    top: 0.72em;
    left: 3px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--tw-accent);
    content: "";
    transform: rotate(45deg);
}

.tw-privacy__list li:last-child {
    margin-bottom: 0;
}

.tw-privacy__contact {
    margin-top: 25px;
    padding: 30px 34px;
    border: 1px solid var(--tw-border);
    background: var(--tw-bg);
}

.tw-privacy__contact p {
    color: var(--tw-text);
}

.tw-privacy__contact a {
    color: var(--tw-main);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tw-privacy__note {
    margin-top: 15px !important;
    color: #b24a3b !important;
    font-size: 13px !important;
}

.tw-privacy__date {
    margin-top: 70px;
    color: var(--tw-gray);
    text-align: right;
}

.tw-privacy__date p {
    margin: 4px 0;
    font-size: 14px;
}

/* スマートフォン */

@media screen and (max-width: 600px) {
    .tw-privacy__intro {
        padding: 25px 22px;
        font-size: 15px;
    }

    .tw-privacy__section {
        margin-top: 46px;
    }

    .tw-privacy__title {
        font-size: 20px;
    }

    .tw-privacy__section p,
    .tw-privacy__list li {
        font-size: 14px;
    }

    .tw-privacy__contact {
        padding: 24px 21px;
    }

    .tw-privacy__date {
        margin-top: 55px;
        text-align: left;
    }
}