/* style.css v1 - 2026-01-04 */
/* ==========================================================================
   Base / Layout
   ========================================================================== */
body {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f8f9fa;
}

#main {
	position: relative;
	overflow: hidden;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px;
}

#container {
	padding: 15px;
	background-color: white;
	border-radius: 8px;
	margin: 20px auto;
	max-width: 1200px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#container a {
	display: inline-block;
	margin: 2px;
}

/* ==========================================================================
   Drawing / SVG Area
   ========================================================================== */
#drawing {
	border-radius: 10px;
	background-color: #fbfcfc;
	border: 1px solid #ccc;
	width: min(120px, 40vw);
	height: auto;
	display: block;
	float: left;
}

#drawing svg {
	width: 100%;
	height: auto;
	display: block;
}

#right {
	position: relative;
	float: left;
	width: calc(100% - min(120px, 40vw) - 40px);
	margin-left: 20px;
	word-wrap: break-word;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
	font-size: 90%;
	text-align: center;
	color: #333;
	margin: 15px 0;
}

a {
	text-decoration: none;
	color: #007bff;
	transition: color 0.3s ease;
}

a:hover {
	color: #0056b3;
}

#kanji {
	font-size: 120%;
	font-weight: 500;
}

#kaku {
	text-align: center;
	font-weight: bold;
	font-size: 140%;
	color: #333;
	padding: 10px;
	background-color: #f8f9fa;
	border-radius: 5px;
	margin-bottom: 10px;
}

#memo {
	font-size: 85%;
	font-weight: bold;
	display: inline-block;
	word-wrap: break-word;
	color: #666;
}

p.gray {
	background-color: #f5f5f5;
	padding: 10px;
	border-radius: 5px;
	margin: 10px 0;
}

p.gray a {
	color: #0056b3;
}

p.gray a:hover {
	color: #003d80;
}

#tegaki {
	text-align: center;
	margin: 10px 0;
}

#tegaki a {
	background: linear-gradient(transparent 60%, #ffff8e 60%);
	padding: 2px 4px;
}

ul {
	list-style-type: none;
	padding-left: 0;
	margin: 10px 0;
}

ul li {
	font-size: 115%;
	padding: 5px 0;
	line-height: 1.6;
}

ul li a {
	font-size: 115%;
}

/* ==========================================================================
   Search
   ========================================================================== */
#search {
	text-align: center;
	margin: 20px 10px;
}

#search input {
	font-size: 120%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.search-section {
	background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
	border-radius: 12px;
	padding: 25px;
	margin: 25px auto;
	max-width: 600px;
	text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
#buttons {
	clear: both;
	margin: 20px 0;
	text-align: center;
}

#buttons button {
	font-size: 110%;
	padding: 8px 16px;
	margin: 5px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#buttons button:hover {
	background-color: #0056b3;
}

#pdf-btn {
	background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
	border: 2px solid #e85d2d !important;
	font-weight: bold;
}

#pdf-btn:hover {
	background: linear-gradient(135deg, #ff5722 0%, #ff8c00 100%) !important;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* ==========================================================================
   Forms
   ========================================================================== */
form {
	margin: 15px;
}

.input_main {
	font-size: 140%;
	max-width: 90%;
	font-weight: 500;
	padding: 10px;
	border: 2px solid #007bff;
	border-radius: 8px;
	transition: border-color 0.3s ease;
}

.input_main:focus {
	outline: none;
	border-color: #0056b3;
	box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.submit_main {
	font-size: 140%;
	padding: 10px 20px;
	border-radius: 8px;
	background-color: #28a745;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

.submit_main:hover {
	background-color: #218838;
}

/* ==========================================================================
   Image Box
   ========================================================================== */
#imageBox {
	text-align: center;
	margin: 20px 0;
	padding: 15px;
	background-color: white;
	border-radius: 10px;
}

#imageBox img {
	border-radius: 10px;
	height: 300px;
	width: 300px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
}

#imageBox img:hover {
	transform: scale(1.02);
}

#imageBox span {
	display: block;
	font-size: 0.9em;
	margin-top: 10px;
	color: #666;
}

#image-request {
	display: inline-block;
	padding: 8px 16px;
	background-color: #007bff;
	color: white;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 500;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

#image-request:hover {
	background-color: #0056b3;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
	background: #fff;
	padding: 15px;
	margin-bottom: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#header-search {
	text-align: center;
}

#header-search input[type="text"] {
	font-size: 110%;
	padding: 8px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	transition: border-color 0.3s ease;
}

#header-search input[type="text"]:focus {
	outline: none;
	border-color: #007bff;
}

#header-search input[type="submit"] {
	font-size: 110%;
	padding: 8px 16px;
	margin-left: 5px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#header-search input[type="submit"]:hover {
	background-color: #0056b3;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
	padding: 12px 15px;
	margin: 0 auto 20px;
	max-width: 1200px;
	background: linear-gradient(to right, #f8f9fa, #ffffff);
	border-radius: 8px;
	border-left: 4px solid #007bff;
}

.breadcrumb ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.breadcrumb li {
	display: flex;
	align-items: center;
	font-size: 14px;
}

.breadcrumb li a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.2s;
}

.breadcrumb li a:hover {
	color: #0056b3;
	text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
	content: ">";
	margin: 0 10px;
	color: #666;
	font-size: 16px;
	font-weight: bold;
}

.breadcrumb li[aria-current="page"] {
	color: #333;
	font-weight: 600;
}

/* ==========================================================================
   Practice Area
   ========================================================================== */
.practice-area {
	background: #fff;
	border-radius: 12px;
	padding: 15px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.practice-area h2 {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #007bff;
}

/* ==========================================================================
   Sidebar / Ads
   ========================================================================== */
.sp {
	text-align: center;
	margin: 20px 0;
}

aside.sp {
	background: #fafafa;
	border-radius: 8px;
	padding: 15px;
	margin: 20px auto;
	max-width: 1200px;
	text-align: center;
}

aside.sp > span {
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	color: #666;
}

.fixed {
	height: 375px;
	margin: 20px auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
	text-align: center;
	padding: 20px;
	background-color: white;
	margin-top: 30px;
	border-top: 1px solid #e0e0e0;
}

#footer a, p a {
	line-height: 1.8;
	font-size: 115%;
	margin: 0 5px;
}

footer {
	text-align: center;
	padding: 30px 20px;
	margin-top: 40px;
	background: linear-gradient(to bottom, #f8f9fa, #fff);
	border-top: 2px solid #e9ecef;
	border-radius: 12px 12px 0 0;
}

footer nav {
	margin-bottom: 20px;
}

footer nav a {
	display: inline-block;
	margin: 5px 15px;
	color: #007bff;
	font-weight: 500;
}

footer small {
	color: #666;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sponsor-label {
	font-size: 60%;
	color: #333;
}

.clickable {
	cursor: pointer;
}

.related-tools {
	background: #e8f4fd;
	border-radius: 10px;
	padding: 15px 20px;
	margin: 20px 0;
	border-left: 4px solid #4a90e2;
}

.related-tools p {
	margin: 0;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
	header {
		padding: 10px;
	}

	#main {
		display: block !important;
	}

	#drawing {
		max-width: 80vw !important;
		margin: 0 auto 20px auto !important;
		display: block !important;
	}

	#right {
		max-width: none !important;
		margin: 0 10px !important;
		min-width: 0 !important;
		display: block !important;
	}

	.breadcrumb {
		padding: 10px 12px;
		margin-bottom: 15px;
	}

	.breadcrumb li {
		font-size: 13px;
	}

	.breadcrumb li:not(:last-child)::after {
		margin: 0 6px;
	}

	.search-section {
		padding: 20px 15px;
		margin: 20px 10px;
	}

	footer {
		padding: 20px 15px;
	}

	#header-search input[type="text"] {
		width: 60%;
		margin-bottom: 10px;
	}
}
