@charset "UTF-8";

/* --- PC用スタイル（基本） --- */

#header img {
	width: 900px;
	height: 250px;
}

#contents {
	width: 580px;
	float: left;
	margin-left: 50px;
	margin-right: 30px;
	margin-top: 20px;
	margin-bottom: 40px;
	text-align: left;
}

h2 {
	color: #FF9900;
	font-size: 20px;
	margin-bottom: 25px;
	border-bottom: 1px dotted #FF9900;
	padding-bottom: 10px;
}

/* プロフィール上部（写真と名前） */
.profile-header {
	display: flex;
	margin-bottom: 30px;
}

#naoko_photo img {
	width: 200px;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-info-text {
	margin-left: 20px;
}

#naoko {
	color: #FF9900;
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 15px;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

#personalinfo {
	font-size: 13px;
	line-height: 1.8;
	color: #666;
}

/* プロフィール詳細セクション */
.profile-section {
	margin-bottom: 50px;
}

.p_title {
	font-size: 16px;
	font-weight: bold;
	color: #713213;
	border-left: 5px solid #FF9900;
	padding-left: 10px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.section-body {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.section-body.reverse {
	/* PCでは写真を左、文章を右にする場合など（今回はHTML順序で制御） */
}

.p_text {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
	flex: 1; /* 残りの幅いっぱい */
}

.section-photo img {
	width: 220px;
	height: auto;
	border-radius: 4px;
	margin-left: 20px; /* 文章との間隔 */
}

/* 2つ目のセクション（写真が左側に来るパターン） */
.section-body.reverse .section-photo img {
	margin-left: 0;
	margin-right: 20px;
}

.highlight {
	color: #FF9900;
	font-weight: bold;
	background: linear-gradient(transparent 70%, #ffeedd 70%); /* マーカー風 */
}

/* リンク装飾 */
#p_text2 a {
    color: #FF9900;
    text-decoration: none;
    font-weight: bold;
}

#p_text2 a:hover {
    text-decoration: underline;
    color: #E68A00;
}

#pagetop {
    margin-top: 20px;
    text-align: right;
}
#pagetop a {
    color: #FF9900;
    text-decoration: none;
    font-size: 12px;
}

/* --- ▼▼▼ プロフィール：スマホ表示の修正（上書き用） ▼▼▼ --- */
/* まずPC画面では、スマホ用の画像を隠しておく設定 */
.mobile-photo-area {
    display: none;
}

@media screen and (max-width: 640px) {
	
	#contents {
		padding: 30px 20px !important;
	}

	/* 1. 上部のNAOKO写真 */
	.profile-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		margin-bottom: 40px;
	}
	
	#naoko_photo img {
		width: 180px;
		margin-bottom: 20px;
	}
	
	.profile-info-text {
		margin-left: 0;
		text-align: left;
		width: 100%;
	}

	/* 2. セクション設定 */
	.section-body, .section-body.reverse {
		flex-direction: column;
	}
	
	/* ★ PC用の大きな画像はスマホでは消す */
	.pc-only {
		display: none !important;
	}

	.p_text {
		font-size: 15px;
		line-height: 1.8;
		margin-bottom: 20px;
	}

    /* 3. ★新設：スマホ専用の横並び画像エリア */
    .mobile-photo-area {
        display: flex !important; /* ここで表示させる */
        justify-content: space-between; /* 左右に配置 */
        gap: 10px; /* 画像の間の隙間 */
        margin-bottom: 30px;
    }

    .mobile-photo-area img {
        width: 48%; /* 画面の半分弱のサイズ */
		height: 350px; /* 高さを揃える */
        object-fit: cover; /* 切り取って形を整える */
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

	/* サイドバー */
	#sidebar {
		width: 100% !important;
		float: none !important;
		text-align: center;
		padding: 20px 0;
	}
	#sidebar img {
		max-width: 90%;
		height: auto;
	}
	.insta-card {
		margin: 0 auto 20px !important;
	}
}