@charset "utf-8";
/* =================================== */
/* 0. Basic & Global Styles            */
/* =================================== */
body {
    font-family: var(--font-family-gothic);
    font-weight: 400;
    color: var(--black);
    background-color: var(--whisper);
    line-height: 1.7;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    position: relative; /* 子要素のabsoluteの基準になるため */
    z-index: 1; /* 背景より手前に来るように */
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

img.ar-left{
	vertical-align: middle;
	margin: 0 .4em 0;
}
img.ar-right{
	vertical-align: middle;
	margin: 0 0 0 .4em;
}

a {
    color: inherit;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}
.btn:hover {
    opacity: 0.8;
}
.btn-more {
    background-color: var(--cararra);
    color: var(--black);
    font-weight: 900;
    font-size: var(--font-size-s);
    padding: 10px 20px;
    border-radius: 3px;
}
.btn-primary {
    background-color: var(--white);
    border: 1px solid var(--bittersweet);
    color: var(--bittersweet);
    font-size: var(--font-size-m);
    padding: 10px 30px;
}

.section-header-centered {
    margin-bottom: 50px;
    color: var(--white);
}
.section-title-main {
    font-family: var(--font-family-gothic);
    font-weight: 900;
    font-size: var(--font-size-xxl);
}
.section-title-sub {
    font-family: var(--font-family-shippori_mincho);
    font-size: var(--font-size-s);
}

/* =================================== */
/* 1. Header (Globals.cssに移動)      */
/* =================================== */
/* このセクションのスタイルはglobals.cssに移動しました */


/* =================================== */
/* 2. Hero Section                     */
/* =================================== */
.hero {
    height: 50vh;
    display: grid;
    place-items: center;
    color: var(--white);
    text-align: center;
}
.hero-image-bg,
.hero .container {
    grid-area: 1 / 1;
}
.hero-image-bg {
    width: 100%;
    height: 100%;
    background: url("../img/main_photo.jpg") no-repeat center center/cover;
}
.hero-image-bg::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}
.hero-title {
    font-family: var(--font-family-zen_old_mincho);
    font-size: var(--font-size-l);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/*追記*/
.hero-image-bg {
  opacity: 0;
}

.hero-image-bg.animate {
  animation: fadeInBg 1.5s forwards; /* 背景を少しゆっくり */
}

@keyframes fadeInBg {
  to {
    opacity: 1;
  }
}

/* 文字部分 */
.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title span.animate {
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================== */
/* 3. News Section                     */
/* =================================== */
.news-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 20px;
    margin: -60px 20px 0;
    position: relative;
    z-index: 2; /* ヒーローセクションより手前に来るように */
}
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.section-title {
    text-align: center;
}
.section-title .title-en {
    display: block;
    color: var(--east-bay);
    font-size: var(--font-size-xl);
    font-weight: 700;
}
.section-title .title-ja {
    color: var(--east-bay);
    font-size: var(--font-size-s);
    font-weight: 500;
}
.news-list {
    list-style: none;
}
.news-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--cararra);
}
.news-item:first-child {
    padding-top: 0;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item time {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

/* =================================== */
/* 4. Info Section (Doctor, Patient)   */
/* =================================== */
.info-section {
    padding: 60px 0;
    position: relative; /* 背景画像の基準点 */
    overflow: hidden;
}
.section-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	z-index: -1;
}
.section-bg-photo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -2; /* コンテンツの背面に */
}
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.info-card a{
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
	flex-wrap: wrap;
	height: 100%;
	box-sizing: border-box;
	padding: 20px;
}
.card-image {
	display: block;
    width: 35%;
    height: 150px;
    object-fit: cover;
}
.card-body {
	box-sizing: border-box;
	width: calc(100% - 35%);
	padding: 0 0 0 10px;
}
.card-title {
    font-size: var(--font-size-m);
    color: var(--east-bay);
    font-weight: 700;
    margin-bottom: 10px;
}
.card-text {
    font-size: var(--font-size-m);
}

/* =================================== */
/* 5. About Us Section                 */
/* =================================== */
.aboutus-section {
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.aboutus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.aboutus-image img {
    border-radius: 8px;
    width: 100%;
}
.aboutus-signature {
    margin: 30px 0;
    text-align: center;
}
.aboutus-signature span {
    display: block;
    font-size: var(--font-size-m);
}
.aboutus-signature strong {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
}
.button-group, .button-group-center {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}


/* =================================== */
/* 6. Diseases Section                 */
/* =================================== */
.diseases-section {
    position: relative;
}
.diseases-section:before{
	content: "";
	background-color: var(--fountain-blue);
	width: 60%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}
.diseases-layout {
    display: flex;
	flex-wrap: wrap;
}
.diseases-info {
    padding: 60px 20px;
    color: var(--white);
	width: 60%;
	box-sizing: border-box;
}
.section-header-left {
    margin-bottom: 40px;
}
.disease-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.tag {
    background-color: var(--white);
    color: var(--fountain-blue);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: var(--font-size-s);
    font-weight: 500;
}
.diseases-description {
    color: var(--white);
}
.button-group-center {
    display: flex; /* 追加 */
    justify-content: center; /* 中央寄せ */
    width: 100%; /* 親要素の幅いっぱいに */
}
.diseases-image {
    min-height: 300px;
	width: 40%;
	padding-top: 60px;
}
.diseases-image img {
    width: 100%;
    height: auto;
}


/* =================================== */
/* 7. Footer                           */
/* =================================== */
.footer {
    background-color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: var(--font-size-xs);
    line-height: 1.8;
}
.footer strong {
    font-size: var(--font-size-m);
    font-weight: 700;
}

/* =================================== */
/* 8. Media Queries (Tablet & up)      */
/* =================================== */
@media (min-width: 769px) { /* Tablet size is 769px to 1279px, 800pxから769pxに変更 */
    .container {
        max-width: 100%;
    }

    /* --- Navigation styles moved to globals.css --- */

    .hero { height: 60vh; }
    .hero-image-bg { background-image: url('../img/main_photo.jpg'); }
    .hero-title { font-size: var(--font-size-xxl); }

    .news-section { padding: 50px; }
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .news-item {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .news-item time { margin-bottom: 0; }

    .card-grid { grid-template-columns: repeat(2, 1fr); } /* タブレットでは2列 */

    .aboutus-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 40px;
    }
    .aboutus-text { text-align: left; }
    .aboutus-signature { text-align: right; }
    .button-group { flex-direction: row; }

    .diseases-section:before {
        width: 100%; /* タブレットでは全幅になるように調整 (背景用) */
    }
    .diseases-info {
        width: 100%;
        padding: 60px 40px; /* 左右パディングを調整 */
    }
    .diseases-image {
        display: none; /* タブレットでは画像を非表示 */
    }

    /* --- Sub-menu styles moved to globals.css --- */
}

/* =================================== */
/* 9. Media Queries (Desktop & up)     */
/* =================================== */
@media (min-width: 1280px) {
    .container {
        max-width: 1120px;
    }

    /* --- Navigation styles moved to globals.css --- */
    #mobile-nav-menu {
		display: none !important; /* 強制的に非表示 */
	}

    .hero { height: 620px; }
    .hero-image-bg { background-image: url('../img/main_photo.jpg'); }
    .hero-title { font-size: var(--font-size-xxxl); }

    .news-section {
        max-width: 1250px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-grid { grid-template-columns: repeat(3, 1fr); }

    .aboutus-content { max-width: 1100px; margin: 0 auto; align-items: flex-start;}
    .aboutus-image { width: 350px; }

    .diseases-section {
        background-color: transparent; /* デスクトップでは背景色をリセット */
    }
    .diseases-section:before {
        width: 60%; /* デスクトップでは元に戻す */
    }
    .diseases-layout {
        display: flex; /* flexに戻す */
        /* grid-template-columns: 1fr 737px; */ /* 右側の画像幅を固定 */
        max-width: 1591px; /* (854+737) */
        margin-left: auto;
        margin-right: auto;
    }
    .diseases-info {
        background-color: var(--fountain-blue);
        padding-left: calc((100vw - 1280px)/2 + 53px); /* 1280px幅の左端から53pxの位置に合わせる計算 */
        padding-right: 80px;
        width: 60%; /* 幅を元に戻す */
    }
    .diseases-image {
        display: block; /* デスクトップでは画像を表示 */
        width: 40%; /* 幅を元に戻す */
    }
}
@media screen and (max-width: 768px){ /* 768px以下（モバイル）の調整 */
	.section-title-main {
		text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
	}
	.section-title-sub {
		text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
	}
	.section-bg {
		position: absolute;
		top: 0;
		left: 0;
		width: 200%;
		height: 100%;
		object-fit: none;
		object-position: top;
		z-index: -1;
	}
	.diseases-section {
		background-color: var(--fountain-blue);
	}
	.diseases-section:before{
		display: none;
	}
	.diseases-layout {
		display: block;
	}
	.diseases-info {
		padding: 60px 20px;
		width: 100%;
	}
	.diseases-image {
		display: none;
	}
	.info-card {
		display: flex;
	}
	.card-image {
		width: 100%;
		height: auto;
		object-fit: contain;
	}
	.card-body {
		width: 100%;
		padding: 0;
	}
}