@charset "UTF-8";

/* 共通設定*********************** */


/* 色の変数設定 */
:root {
    --color-white: #fff;
    --color-text: #333;

    /* メイン濃い赤 */
    --color-main-red: #de3d45;
    /* うすいピンク */
    --color-light-pink: #faeeef;
    /* よく使うグレー */
    --color-often-use-gray: #888;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--color-white);
    color: var(--color-text);
    margin: 0;
}

/* ==========================================
   1. 基本設定（PCとスマホ共通の不具合防止）
   ========================================== */
header {
    width: 100%;
    /* ヘッダーの横幅を画面いっぱいに */
    margin: 0;
    /* 余計な隙間をなくす */
    padding: 0;
}

/* 画像がはみ出さないようにするお守り */
header img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   2. 画面サイズに応じた表示・非表示の切り替え
   ========================================== */

/* 【基本はスマホサイズ（画面幅が狭いとき）】 */
.pc-nav-box {
    display: none;
    /* PC用ナビを非表示にする */
}

.sm-nav-box {
    display: block;
    /* スマホ用ナビを表示する */
}

/* 【画面幅が 768px 以上のとき（PCサイズ）】 */
@media screen and (min-width: 768px) {
    .pc-nav-box {
        display: block;
        /* PC用ナビを表示する */
    }

    .sm-nav-box {
        display: none;
        /* スマホ用ナビを非表示にする */
    }
}

/* フッター固定用指定 */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer,
div#footer {
    margin-top: auto;
}

/* 英数フォント */
.eisu {
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: var(--color-main-red);
}

/* タップした時の色 */
a,
button {
    -webkit-tap-highlight-color: rgba(255, 255, 255, .5);
}

a:hover {
    opacity: .6;
    transition: .3s;
}

ul li {
    list-style: none;
}

/* 幅1200pxで揃える */
.width1200 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* 画像に可変設定 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* PCの時スマホ用ナビ非表示 */
/* .sm-nav-box {
    display: none;
} */

/* brタグの制御 */
.br1160 {
    display: none;
}

@media (max-width: 1160px) {
    .br1160 {
        display: block;
    }
}

/* 共通ヘッダー************************* */



.logobox {
    width: 100%;
    background: var(--color-white);
    height: 100px;
    display: grid;
    place-items: center;
}

.pc-nav-box .flexbox,
.pc-nav-box .flexbox2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴSVG */
.pc-nav-box .logo img {
    width: clamp(18.125rem, 5.076rem + 27.15vw, 21.875rem);
}

.pc-nav-box .flexbox2 {
    gap: 20px;
}

/* 電話 */
.tel {
    /* font-size: 40px; */
    font-size: clamp(1.625rem, -1.42rem + 6.33vw, 2.5rem);
    font-weight: 700;
    white-space: nowrap;
}

/* 電話アイコン */
.tel::before {
    content: '\f095';
    font-family: "Font Awesome 5 Free";
}

/* 岸和田徳洲会病院TOPリンク */
.kstk_top {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #f1f1f1;
    border: 1px solid #888;
    color: #333;
    /* font-size: 18px; */
    font-size: clamp(0.875rem, 0.005rem + 1.81vw, 1.125rem);
    padding: 20px 24px;
    border-radius: 10px;
    min-width: 220px;
}

/* 左矢印アイコン */
.kstk_top::before {
    content: '\f137';
    font-family: "Font Awesome 5 Free";
    color: #888;
    font-size: 20px;
    margin-right: 10px;
}

/* PCナビゲーション */
.pinkbox {
    width: 100%;
    background: var(--color-light-pink);
    z-index: 1000;
}

.sc_active.pinkbox {
    position: fixed;
    top: 0;
}

.pinkbox ul {
    display: flex;
    justify-content: space-between;
    height: 55px;
}

.pinkbox ul li {
    width: calc(100%/4);
    border-left: 2px dotted var(--color-main-red);
}

.pinkbox ul li:last-child {
    border-right: 2px dotted var(--color-main-red);
}

.pinkbox ul a {
    display: block;
    /* font-size: 22px; */
    font-size: clamp(1.188rem, 0.535rem + 1.36vw, 1.375rem);
    text-align: center;
    padding: 10px 0;
}

.pinkbox ul a:hover {
    opacity: 1;
    background: #f4ced3;
    transition: .5s;
}

.re-center-btn.pc-view {
    display: block;
}

.re-center-btn.sm-view {
    display: none;
}


/* ヘッダー　タブレット以下設定 */
@media (max-width: 768px) {

    .re-center-btn.pc-view {
        display: none;
    }

    .re-center-btn.sm-view {
        display: block;
    }

    body {
        padding-top: 60px;
    }

    .pc-nav-box {
        display: none;
    }

    .sm-nav-box {
        display: block;
    }

    .sm-nav-box .logobox {
        height: 60px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
    }

    .sm-nav-box .logo {
        padding: 10px 0;
    }

    .sm-nav-box .logo img {
        height: 42px;
    }

    /* 基本：スクリーンリーダー用テキスト */
    .sr-only {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    /* ナビゲーションボタン */
    .nav-button {
        padding: 0;
        outline: none;
        border: none;
        background-color: var(--color-main-red);
        width: 60px;
        height: 60px;
    }

    /* ナビゲーションボタンの白線 */
    .nav-button {
        display: grid;
        place-content: center;
    }

    .nav-button::before,
    .nav-button::after {
        content: '';
        display: block;
        margin: auto;
        width: 32px;
        height: 4px;
        background-color: var(--color-white);
        transition: transform .5s;
    }

    .nav-button::before {
        transform: translateY(-5px);
    }

    .nav-button::after {
        transform: translateY(5px);
    }

    .open .nav-button::before {
        transform: translateY(2px) rotate(45deg);
    }

    .open .nav-button::after {
        transform: translateY(-2px) rotate(-45deg);
    }


    /* ---------------------------- */
    /* ナビゲーションメニュー本体 */
    /* ---------------------------- */
    /* 暗い背景 */
    .p-sp-nav-bg {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .4);
        top: 0;
        left: 0;
        transition: all 0.3s;
        z-index: 980;
    }

    /* .open付与された時 */
    .open .p-sp-nav-bg {
        display: block;
        transition: all 0.3s;
    }

    /* ナビゲーション全体を囲うタグ */
    #sp-g-nav {
        position: fixed;
        z-index: 990;
        background: var(--color-light-pink);
        line-height: 1;
        width: 100%;
        top: -120%;
        transition: all .3s;
        padding: 20px;
    }

    /*.openがついたら表示位置変更*/
    .open #sp-g-nav {
        width: 100%;
        top: 60px;
        transition: all 0.3s;
    }

    /* ナビゲーション本体 */
    .p-sp-nav_ul {
        width: 100%;
    }

    .p-sp-nav_li {
        border-bottom: 2px dotted var(--color-main-red);
    }

    .p-sp-nav_a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        font-size: 26px;
        padding: 10px 0;
        font-weight: 600;
    }

    .kstk_top {
        margin-top: 20px;
        font-size: 22px;
    }

    /* 不要なスクロール発生を防ぐ設定 */
    .open html,
    .open body {
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    .open html {
        position: fixed;
    }

}


/* フッター設定 ****************/
footer {
    background: var(--color-white);
    width: 100%;
    padding: 30px 0;
    z-index: 500;
}

.foot-cont {
    display: flex;
    gap: 20px;
}

.footlogo {
    width: 250px;
}

.data .tel {
    /* font-size: 30px; */
    font-size: clamp(1.5rem, 0.195rem + 2.71vw, 1.875rem);
}

.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .foot-cont {
        flex-direction: column;
        text-align: center;
    }

    .footlogo {
        margin: 0 auto;
    }
}


/* index.html ********************** */

.main_container {
    position: relative;
}

.mainimage {
    width: 100%;
    height: calc(100vh - 155px - 160px);
    background-image: url(img/mainimg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.shinryo {
    background: rgba(255, 255, 255, .85);
    z-index: 100;
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 1200px;
    width: 90%;
    border-radius: 12px;
    padding: 40px 60px;
}

.shinryo h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
}

.shinryo table {
    border-collapse: collapse;
    /* font-size: 24px; */
    font-size: clamp(1.125rem, 0.989rem + 0.68vw, 1.5rem);
    width: 100%;
}

.shinryo table th {
    background: #555;
    color: var(--color-white);
    font-weight: normal;
    border: 1px solid #555;
    text-align: center;
}

.shinryo table td {
    background: var(--color-white);
    border: 1px solid #555;
    font-weight: 500;
}

.shinryo table th,
.shinryo table td {
    padding: 10px;
}

.yoyaku-flex {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.yoyaku-text p {
    /* font-size: 20px; */
    font-size: clamp(1rem, 0.833rem + 0.35vw, 1.25rem);

}

.re-center-btn {
    background: var(--color-main-red);
    display: block;
    color: var(--color-white);
    text-align: center;
    font-weight: bold;
    /* font-size: 27px; */
    font-size: clamp(1.063rem, 0.645rem + 0.87vw, 1.688rem);
    max-width: 460px;
    width: 100%;
    margin-inline-start: auto;
    line-height: 1;
    padding: 24px 0;
    border-radius: 10px;
    position: relative;
}

.re-center-btn::after {
    content: '\f0da';
    font-family: "Font Awesome 5 Free";
    font-size: 40px;
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

@media (min-width: 768px) and (max-width: 1010px) {
    .shinryo table th {
        -ms-writing-mode: tb-rl;
        writing-mode: vertical-rl;
    }
}

@media (max-width: 768px) {
    .main_container {
        position: static;
        display: flex;
        flex-direction: column-reverse;
    }

    /* .mainimage {
        height: 280px;
    } */

    .shinryo {
        position: static;
        background: var(--color-white);
        width: 100%;
        padding: 20px;
        border-radius: 0;
        z-index: auto;
    }

    .shinryo table th,
    .shinryo table td {
        display: block;
        text-align: center;
    }

    .shinryo table td:last-child {
        border-top: none;
    }

    .yoyaku-flex {
        flex-direction: column;
    }

    .re-center-btn {
        margin: auto;
        max-width: 100%;
        z-index: auto;
    }
}

/* 共通内部ページ設定 ************************* */

/* サイドとメイン横並び */
.page-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 200px;
}

/* サイドメニュー */
.side_area {
    max-width: 340px;
    width: 30%;
}

/* スクロールでサイド固定 */
.sticky {
    border: 4px solid var(--color-often-use-gray);
    background: var(--color-white);
    position: sticky;
    top: 80px;
}

.side_area p {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    background: var(--color-often-use-gray);
    color: var(--color-white);
    line-height: 1;
    padding: 10px 0;
}

.side_area ul li:not(:last-child) {
    border-bottom: 1px solid #bbb;
}

.side_area ul li a {
    color: var(--color-text);
    font-size: 20px;
    padding: 10px 10px;
    display: block;
}

.side_area ul li a::before {
    content: '\f054';
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    color: var(--color-main-red);
    font-size: 16px;
    margin-right: 10px;
}

.page-main {
    width: 68%;
}

/* ピンク見出し */
.h2-pink {
    /* font-size: 44px; */
    font-size: clamp(1.875rem, 1.68rem + 0.89vw, 2.75rem);
    font-weight: 700;
    color: #ea9ba4;
    display: flex;
    align-items: center;
    letter-spacing: 4px;
}

.h2-pink::before {
    content: '■';
    font-size: 24px;
    margin-right: 6px;
}

/* h3見出し */
.h3-graypink {
    font-weight: 500;
    background: #f1f1f1;
    /* font-size: 26px; */
    font-size: clamp(1.25rem, 1.166rem + 0.38vw, 1.625rem);
    line-height: 1;
    padding: 14px;
    border-left: 4px solid #ea9ba4;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* h4見出し */
.h4-pink {
    font-weight: 700;
    /* font-size: 20px; */
    font-size: clamp(1.125rem, 1.041rem + 0.38vw, 1.5rem);
    color: #ea9ba4;
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 2px solid #ea9ba4;
    margin-top: 25px;
    margin-bottom: 20px;
}

.textbox {
    padding: 20px;
}

/* 読ませる長文 */
.text-to-read {
    /* font-size: 18px; */
    font-size: clamp(1rem, 0.932rem + 0.31vw, 1.125rem);
    line-height: 2.2;
    text-align: justify;
}

/* floatテキスト回り込みさせるクラス 画像につける */
.float-left {
    float: left;
    margin: 0 40px 10px 0;
}

.float-right {
    float: right;
    margin: 0 0 10px 40px;
}

.photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-name {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 28px;
}

.doctor-name span {
    font-size: 50%;
    margin-left: 10px;
}

.docphoto {
    border-radius: 50%;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

/* 手とハートの装飾画像 */
.handsandheart {
    opacity: .04;
    width: 530px;
    position: fixed;
    bottom: 2%;
    left: -4%;
    z-index: -100;
}

/* 赤テキスト */
.red-text {
    font-weight: 700;
    color: var(--color-main-red);
    /* font-size: 18px; */
    font-size: clamp(0.938rem, 0.896rem + 0.19vw, 1.125rem);
    margin-bottom: 20px;
}

.davinci4 {
    max-width: 360px;
}

/* テキストにマージントップを持たせる */
.margintop30 {
    margin-top: 30px;
}

/* 番号付きリスト */
.num-list {
    list-style: none;
    counter-reset: number;
    font-size: 18px;
    margin: 15px 0;
}

.num-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 10px;
}

.num-list li::before {
    counter-increment: number;
    content: counter(number);
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 0;
}

/* h4見出し */
.h4black {
    font-size: 20px;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 6px;
    margin-top: 30px;
}

.stafflist li {
    margin-top: 8px;
}

/* 大きい画面のみ横並び */
.photo-box2 {
    display: flex;
    align-items: center;
}

@media (min-width: 601px) {
    .photo-box2 .docphoto {
        width: 34%;
    }

    .photo-box2 div {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .page-wrap {
        display: block;
    }

    .side_area {
        display: none;
    }

    .page-main {
        width: 100%;
    }

    .handsandheart {
        left: -10%;
    }
}

@media (max-width: 600px) {
    .text-to-read {
        clear: both;
    }

    .photo-box {
        width: 100%;
    }

    .float-left,
    .float-right {
        margin: 20px 0;
    }

    .planimg {
        max-width: 100%;
        width: 100%;
    }

    .photo-box2 {
        flex-direction: column;
    }
}

/* 略歴のテーブル */
.table_box {
    width: 100%;
    margin-top: 20px;
}

.table_box table {
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--color-white);
    width: 100%;
}

.table_box table th,
.table_box table td {
    border: 1px solid var(--color-text);
    padding: 10px;
}

.table_box table th {
    text-align: right;
    white-space: nowrap;
    width: 40%;
    font-weight: 600;
    font-size: clamp(0.875rem, 0.819rem + 0.25vw, 1.125rem);
}

.table_box table td {
    width: 60%;
    /* font-size: 18px; */
    font-size: clamp(1rem, 0.972rem + 0.13vw, 1.125rem);
}

@media (max-width: 600px) {

    .table_box table th,
    .table_box table td {
        display: block;
        width: 100%;
    }

    .table_box table th {
        border-bottom: none;
        border-top: none;
        text-align: center;
        background: #f1f1f1;
    }

    .table_box table .border_th {
        border-top: 1px solid var(--color-text);
    }
}

/* 研究業績リスト */
.perf-list {
    /* font-size: 18px; */
    font-size: clamp(1rem, 0.972rem + 0.13vw, 1.125rem);
    padding: 20px;
}

.perf-list li {
    margin-bottom: 10px;
}


/* TOP戻るボタン */
#topBtn {
    z-index: 800;
    cursor: pointer;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: rgba(0, 0, 0, .4);
    position: fixed;
    right: -100%;
    bottom: 10%;
    transition: 2s;
}

#topBtn:hover {
    opacity: .4;
    transition: .1s !important;
}

#topBtn.view {
    right: 20px;
    transition: 2s;
}

/* //////////////////以下汎用css/////////////////// */

/* 横並び画像（汎用） */
.image-flex {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.image-item {
    text-align: center;
}

.image-item img {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
}

.image-item p {
    margin-top: 10px;
    font-size: 16px;
}

/* SP */
@media screen and (max-width: 768px) {
    .image-flex {
        flex-direction: column;
        align-items: center;
    }

    .image-item img {
        width: 200px;
    }
}

/*シンプルな箇条書きスタイル（赤いドット） */

.list-disc {
    padding-left: 1.5em;
}

.list-disc li {
    list-style-type: disc;
    margin-bottom: 10px;
    font-size: clamp(1rem, 0.932rem + 0.31vw, 1.125rem);
    line-height: 1.85;
}

.list-disc li::marker {
    color: var(--color-main-red);
}

/* margin-top */
.m5-t {
    margin-top: 5px;
}

.m10-t {
    margin-top: 10px;
}

.m15-t {
    margin-top: 15px;
}

.m20-t {
    margin-top: 20px;
}

.m25-t {
    margin-top: 25px;
}

.m30-t {
    margin-top: 30px;
}

.m35-t {
    margin-top: 35px;
}

.m40-t {
    margin-top: 40px;
}

/* margin-bottom */
.m5-b {
    margin-bottom: 5px;
}

.m10-b {
    margin-bottom: 10px;
}

.m15-b {
    margin-bottom: 15px;
}

.m20-b {
    margin-bottom: 20px;
}

.m25-b {
    margin-bottom: 25px;
}

.m30-b {
    margin-bottom: 30px;
}

.m35-b {
    margin-bottom: 35px;
}

.m40-b {
    margin-bottom: 40px;
}