@charset "utf-8";

body {
    width: 1440px;
    margin: 0 auto;
    font-size: 16px;
    font-family: "Noto Serif JP", serif;
    color: #0D2B4D;
    letter-spacing: 0.2rem;
    line-height: 1.5;
}
/* =========================
   ヘッダー・ハンバーガーメニュー
========================= */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #fff;
}

header h1 {
    margin: 0;
}

header h1 img {
    display: block;
}

/* チェックボックスを非表示 */
#menu_toggle {
    display: none;
}

/* ハンバーガーボタン */
.menu_btn {
    width: 35px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 11;
}

.menu_btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0D2B4D;
    border-radius: 3px;
}

/* メニュー本体 */
.menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    max-width: 100%;
    background-color: #0D2B4D;
    z-index: 10;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.menu li a {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
     transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* クリックすると開く */
#menu_toggle:checked ~ .menu {
    display: block;
}
/* ×マークへの変形 */
.menu_btn span {
    transition: transform 0.3s, opacity 0.3s;
}

/* 1本目の線 */
#menu_toggle:checked + .menu_btn span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

/* 2本目の線 */
#menu_toggle:checked + .menu_btn span:nth-child(2) {
    opacity: 0;
}

/* 3本目の線 */
#menu_toggle:checked + .menu_btn span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

h1 {
    margin: 20px 0 20px 0;
}

.main_flex a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.inner {
    width: 960px;
    margin: 0 auto;
}

.mainvisual {
    background-image: url(/images/mainvisual.jpg);
    width: 0 auto;
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 40px;

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

.maintext {
    font-size: 2rem;
    padding: 110px 0 0 68px;
    line-height: 1.8;
}

.main_flex {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.sub_text1 {
    padding: 80px 0 0 80px;
}

.sub_text2 {
    padding: 40px 0 0 80px;
}

.reverse_btn {
    display: inline-block;
    width: fit-content;
    padding: 15px 30px;
    border: 1px solid #0D2B4D;
    border-radius: 60px;
    background-color: #fff;
    color: #0D2B4D;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    box-sizing: border-box;
}

.reverse_btn:hover {
    background-color: #0D2B4D;
    color: #fff;
}

/*
 .sub_text1 {
    padding: 120px 0 0 80px;
    a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #0D2B4D;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s;
}
a:hover::after {
  transform: scale(1, 1);
}
 }
 .sub_text2 {
    padding: 40px 0 0 80px;
       a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #0D2B4D;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s;
}
*/
.personal {
    background-image: url(/images/personal.jpg);
    width: 520px;
    height: 520px;
    background-position: center;
    background-repeat: no-repeat;
}

.organizational {
    background-image: url(/images/organizational.jpg);
    width: 520px;
    height: 520px;
    background-position: center;
    background-repeat: no-repeat;
}

h2 {
    padding: 40px 0 0 20px;
    font-weight: normal;
    font-size: 1.6rem;
}

.personal p,
.organizational p {
    padding: 40px 0 0 20px;
    line-height: 1.8;
}

.to_top {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 60px;
    height: 60px;
    background-color: #0D2B4D;
    color: #fff;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
    font-size: 0.8rem;
}

.to_top:hover {
    opacity: 0.7;
}

html {
    scroll-behavior: smooth;
}
footer {
    margin-top: 40px;
}

footer p {
    font-size: 0.75rem;
    text-align: center;
    padding: 20px;
}

/* =========================
   下層ページの共通設定
========================= */
.about_visual {
    background-image: url("../images/about_img.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.organizational_visual {
    background-image: url("../images/organizational_img.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.personal_visual {
    background-image: url("../images/personal_img.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
    margin: 40px 40px 40px 0;
}

/* =========================
  about
========================= */
.about_text {
    margin-bottom: 20px;
}

/* =========================
  profile
========================= */
.profile_flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;

    img {
        display: block;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-top: 20px;
    }
}
h5 {
    margin-bottom: 20px;
}
.found {
    margin-bottom: 40px;
}

.from {
    padding-top: 40px;
}

.profile_history {
    display: inline-block;
    margin-top: 40px;
}
/* =========================
  personal
========================= */
.personal_visual .personal_heading {
    text-align: center;
}
.price_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    color: #0D2B4D;
    letter-spacing: 0.1rem;
}

.price_table tr {
    border: 1px solid #0D2B4D;
}

.price_table th {
    width: 18%;
    padding: 20px 10px;
    background-color: #252642;
    color: #fff;
    font-weight: normal;
    white-space: nowrap;
}

.price_table td {
    padding: 15px 20px;
    border: 1px solid #0D2B4D;
}
.condition_list {
    width: 100%;
    color: #0D2B4D;
}

.condition_intro {
    margin-bottom: 20px;
}

.condition_item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.condition_item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}


/* =========================
  organizational
========================= */
.organizational_visual {
    flex-direction: column;
}

.organizational_visual .organizational_heading {
    text-align: center;
}

.organizational_visual .organizational_heading h3 {
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

.organizational_visual .organizational_heading p {
    margin: 5px 0 0;
    padding: 0;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
}

.organizational_text {
    margin-bottom: 40px;
}

.organizational_price {
    display: inline-block;
    margin-top: 40px;
}


/* =========================
   SP版（768px以下）
========================= */
@media screen and (max-width: 768px) {

    /* 全体 */
    body {
        width: 100%;
        letter-spacing: 0.08rem;
    }

    /* コンテンツ幅 */
    .inner {
        width: auto;
        margin: 0 20px;
    }

    /* ヘッダー・フッターのロゴ */
    header img,
    footer img {
        max-width: 160px;
        width: 100%;
        height: auto;
    }

    /* メインビジュアル */
    .mainvisual {
        width: 100%;
        height: 400px;
        margin-bottom: 30px;
        background-size: cover;
        background-position: center;
        box-sizing: border-box;
    }

    .maintext {
        font-size: 1.2rem;
        padding: 50px 20px 0;
        line-height: 1.8;
    }

    /* ボタン */
    .sub_text1 {
        padding: 35px 20px 0;
    }

    .sub_text2 {
        padding: 20px 20px 0;
    }

    .reverse_btn {
        padding: 12px 22px;
        font-size: 0.85rem;
    }

    /* コンディショニングのカードを縦並びに */
    .main_flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main_flex>a {
        display: block;
        width: 100%;
        max-width: 520px;
    }

    .personal,
    .organizational {
        width: 100%;
        height: 360px;
        box-sizing: border-box;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* カードの見出し */
    h2 {
        padding: 28px 15px 0;
        font-size: 1.15rem;
        line-height: 1.6;
    }

    /* カードの説明文 */
    .personal p,
    .organizational p {
        padding: 24px 15px 0;
        font-size: 0.85rem;
        line-height: 1.8;
    }
}