/* =====================
   Footer
   ===================== */

.footer {
	background: #fff;
	border-top: 1px solid #ddd;
	color: #666;
}

.footer a {
	color: #666;
}

.footer a:hover {
	color: #4a7ab5;
}

.footer__link,
.footer__link:hover {
	color: #4a7ab5 !important;
	text-decoration: none !important;
}

.footer__link:hover {
	color: #2d5f9a !important;
}

.footer__copyright {
	color: #666;
}

/* =====================
   Color overrides
   ===================== */

/* Links */
a {
	color: #4a7ab5;
}
a:hover {
	color: #2d5f9a;
}

/* Post titles in list */
.list__title a {
	color: #222;
}
.list__title a:hover {
	color: #4a7ab5;
}

/* Post title on single page */
.post__title a {
	color: #222;
}

/* Meta (date, categories) */
.meta__item a {
	color: #4a7ab5;
}

/* Sidebar widget titles */
.widget__title {
	border-bottom-color: #4a7ab5;
}

/* Sidebar widget links */
.widget__item {
	color: #333;
}
.widget__item:hover {
	color: #4a7ab5;
}

/* Category/tag links in sidebar */
.widget a {
	color: #333;
}
.widget a:hover {
	color: #4a7ab5;
}

/* Tags */
.tags__item {
	border-radius: 4px;
}
.tags__link {
	background: #4a7ab5;
	color: #fff !important;
	border-radius: 4px;
}
.tags__link:hover {
	background: #2d5f9a;
	color: #fff !important;
}
.tags__badge {
	background: #3a3a3a;
	fill: #fff;
}

/* Pagination */
.pagination__item:hover,
.pagination__item--current {
	background: #4a7ab5;
}

/* Buttons */
.btn:hover {
	background: #2d5f9a;
}
input[type=submit]:hover,
input[type=reset]:hover {
	background: #4a7ab5;
}

/* Sidebar taglist */
.widget-taglist__link {
	background: #4a7ab5;
	color: #fff !important;
	border-radius: 4px;
}
.widget-taglist__link:hover {
	background: #2d5f9a;
	color: #fff !important;
}

.widget-taglist__inner {
	display: block;
}

.widget-taglist__toggle {
	display: inline;
	background: none;
	border: none;
	color: #4a7ab5;
	padding: 0;
	cursor: pointer;
	font-size: 0.85em;
	text-decoration: none;
}
.widget-taglist__toggle:hover {
	color: #2d5f9a;
	text-decoration: none;
}

/* Blockquote left border */
blockquote {
	border-left-color: #4a7ab5;
}

/* Main menu dark background → white (desktop) */
@media screen and (min-width: 767px) {
	.menu__list,
	.js .menu__list {
		background: #fff;
	}
	.menu__btn {
		background: #fff;
		color: #333;
	}
	.menu__item:hover {
		background: #f0f4fa;
	}
	.menu__item--active {
		background: #e4edf7;
	}
	.menu__link {
		color: #333;
	}
	.menu__link:hover {
		color: #333;
	}
	.menu__item {
		border-left-color: #ddd;
	}
}

/* =====================
   Header Top: logo left, contact right */
.header__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 25px 6px;
	background: #fff;
}

.header .logo {
	padding: 0;
}

.header .logo__link {
	display: flex !important;
	align-items: flex-end !important;
	gap: 12px;
}

.header .logo__item {
	display: block !important;
}

.header .logo__iconbox {
	flex-shrink: 0;
}

.header .logo__icon {
	height: 110px;
	width: auto;
	display: block;
}

.header .logo__imagebox {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	margin: auto 0;
}

.header .logo__img {
	height: 32px;
	width: auto;
	display: block;
}

.logo__catchcopy {
	font-size: 0.75rem;
	color: #666;
	margin-top: 4px;
}

.header .logo__title {
	font-size: 1.6rem;
}

.header .logo__tagline {
	border-top: none;
	padding-top: 4px;
	margin-top: 4px;
	font-weight: 400;
	font-size: 0.75rem;
	color: #666;
}

.header__contact {
	text-align: right;
	line-height: 1.5;
}

.header__phone {
	font-size: 1.6rem;
	font-weight: 700;
	color: #333;
}

.header__hours {
	font-size: 0.75rem;
	color: #666;
}

.header__address {
	font-size: 0.75rem;
	color: #666;
}

/* Navigation bar: white bg, grey separator lines between items */
.header .menu {
	border-top: none;
	border-bottom: none;
	margin-bottom: 20px;
}

.header .menu__list {
	background: #fff;
	display: flex;
	justify-content: stretch;
	width: 100%;
}

.header .menu__item {
	flex: 1;
	text-align: center;
	position: relative;
	border-left: none !important;
}

.header .menu__item::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: repeating-linear-gradient(
		to bottom,
		#bbb 0px,
		#bbb 2px,
		transparent 2px,
		transparent 4px
	);
}

.header .menu__item:first-child::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: repeating-linear-gradient(
		to bottom,
		#bbb 0px,
		#bbb 2px,
		transparent 2px,
		transparent 4px
	);
}

.header .menu__item:hover {
	background: #f5f5f5;
}

.header .menu__item--active {
	background: #f0f0f0;
}

.header .menu__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 5px;
	color: #333;
	font-weight: 700;
	text-transform: none;
	line-height: 1.2;
	width: 100%;
}

.header .menu__link:hover {
	color: #333;
}

.header .menu__text {
	font-size: 0.85rem;
}

.header .menu__subtext {
	font-size: 0.68rem;
	color: #4a7ab5;
	font-weight: 400;
	text-transform: none;
}

.header .menu__item--active .menu__link,
.header .menu__item--active .menu__text {
	color: #333;
}

.header .menu__item--active .menu__subtext {
	color: #4a7ab5;
}

/* Mobile: hide contact, collapse menu */
@media (max-width: 766px) {
	.header__top {
		padding: 12px 15px;
	}
	.header__contact {
		display: none;
	}
	.header .menu__btn {
		display: block;
		background: #666;
		color: #fff;
		width: 100%;
		border: 0;
		padding: 10px 15px;
		font-weight: 700;
		text-align: right;
	}
}

/* Profile widget */
.widget-profile .widget__content {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.profile__avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #e8e8e8;
	border: none;
	box-shadow: inset 0 0 0 70px #e8e8e8;
}

.profile__body {
	flex: 1;
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.profile__text {
	flex: 1;
}

.profile__name {
	font-weight: 700;
	font-size: 0.95rem;
	color: #222;
	margin-bottom: 4px;
}

.profile__bio {
	font-size: 0.78rem;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

/* Search widget background */
.widget-search__form {
	background: #fff;
	padding: 0 0 12px;
}

/* Article list: force clear after each item */
.list__item {
	overflow: hidden;
	clear: both;
}

/* Limit summary to 2 lines */
.list__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}


/* Hero Banner */
.hero {
	width: 100%;
	margin-bottom: 20px;
}

.hero__inner {
	position: relative;
	width: 100%;
	max-height: 420px;
	overflow: hidden;
	border-radius: 12px;
}

@media (max-width: 900px) {
	.hero__inner {
		width: calc(100% - 30px);
		margin: 0 auto;
	}
}

.hero__image {
	width: 100%;
	height: 420px;
	object-fit: cover;
	object-position: bottom;
	display: block;
}

.hero__overlay {
	position: absolute;
	top: 40px;
	left: 40px;
}

.hero__catchphrase {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	text-align: left;
	line-height: 1.8;
}

.hero__catchphrase--accent {
	color: #4a7ab5;
	font-size: 1.6rem;
	text-shadow: 0 0 6px rgba(255,255,255,0.9), 1px 1px 0 rgba(255,255,255,0.7), -1px -1px 0 rgba(255,255,255,0.7);
}

.hero__catchphrase--sub {
	color: #666;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1;
	margin-top: 2px;
	text-shadow: 0 0 6px rgba(255,255,255,0.9), 1px 1px 0 rgba(255,255,255,0.7), -1px -1px 0 rgba(255,255,255,0.7);
}

@media (max-width: 900px) {
	.hero__overlay {
		top: 15px;
		left: 15px;
	}
	.hero__catchphrase--accent {
		font-size: 0.85rem;
	}
	.hero__catchphrase--sub {
		font-size: 0.5rem;
	}
}

/* Blend container into background */
.container--outer {
	overflow: hidden;
	margin: 0 auto;
	box-shadow: none;
}


body {
	background: #fff;
}

html {
	scrollbar-gutter: stable;
}

.hero + .wrapper {
	padding-top: 30px;
}

/* List/section page title */
.main.list .main__title {
	text-transform: uppercase;
	font-size: 1rem;
	padding-bottom: 8px;
	border-bottom: 3px solid #4a7ab5;
	color: #333;
}

/* Work notice */
.work-notice {
	background: #fff8e1;
	border-left: 4px solid #f0a500;
	padding: 12px 16px;
	margin-bottom: 24px;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #666;
}

.work-notice p {
	margin: 0;
}

/* Work section on home */
.work-section {
	margin-bottom: 32px;
}

.work-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 766px) {
	.work-cards {
		grid-template-columns: 1fr;
	}
}

.work-card {
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	padding: 0;
	background: #f7f7f7;
}

.work-card__img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.work-card__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
	border-bottom: none;
	padding: 14px 16px 0;
}

.work-card__desc {
	font-size: 0.82rem;
	color: #666;
	line-height: 1.7;
	margin: 0;
	padding: 0 16px 16px;
}

/* Search page */
.search-box {
	margin-bottom: 24px;
}

.search-box input {
	width: 100%;
	padding: 10px 14px;
	font-size: 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.search-results__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.search-results__item {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.search-results__item a {
	font-weight: 700;
	font-size: 1rem;
}

.search-results__item p {
	margin: 4px 0 0;
	font-size: 0.85rem;
	color: #666;
}

/* AWS badges grid */
.aws-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0;
}

.aws-badges img {
	width: 110px;
	height: auto;
}

/* Profile page intro */
.profile-intro {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 8px;
}

.profile-intro__icon {
	width: 120px;
	height: auto;
	flex-shrink: 0;
}

.profile-intro__text {
	flex: 1;
}

/* Contact form */
.contact-form-wrap {
	max-width: 600px;
}

.contact-form__field {
	margin-bottom: 18px;
}

.contact-form__field label {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 5px;
	color: #333;
}

.contact-form__required {
	color: #c0392b;
}

.contact-form__field input,
.contact-form__field textarea {
	width: 100%;
	padding: 9px 12px;
	font-size: 0.95rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.2s;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
	outline: none;
	border-color: #4a7ab5;
	box-shadow: 0 0 0 2px rgba(74,122,181,0.15);
}

.contact-form__field textarea {
	resize: vertical;
}

.contact-form__actions {
	margin-top: 8px;
}

.contact-form__submit {
	background: #4a7ab5;
	color: #fff;
	border: none;
	padding: 10px 32px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.contact-form__submit:hover:not(:disabled) {
	background: #2d5f9a;
}

.contact-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.contact-form__status {
	margin-top: 14px;
	font-size: 0.95rem;
}

.contact-form__status--success {
	color: #27ae60;
	font-weight: 700;
}

.contact-form__status--error {
	color: #c0392b;
	font-weight: 700;
}

/* Back to top link on single posts */
.post__back {
	margin-top: 0;
	padding-top: 16px;
	border-top: none;
	font-size: 0.9rem;
}

.post__back a {
	color: #4a7ab5;
}

.post__back a:hover {
	color: #2d5f9a;
}

@media (max-width: 768px) {
	.hero__inner {
		max-height: 220px;
	}
	.hero__image {
		height: 220px;
	}
}

/* プロフィールウィジェット X (Twitter) リンク */
.profile__social-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: #4a7ab5;
	text-decoration: none;
}

.profile__social-link:hover {
	color: #2d5f9a;
	text-decoration: underline;
}

.profile__social-icon {
	width: 60px !important;
	height: auto !important;
	max-width: 60px !important;
	flex-shrink: 0;
}

/* Xシェアボタン */
.post__share {
	margin: 20px 0 10px;
}

.post__share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #000;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 700;
	transition: background 0.2s;
}

.post__share-btn:hover {
	background: #333 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.post__share-icon {
	width: 18px;
	height: auto;
	background: #fff;
	border-radius: 3px;
	padding: 2px;
}

/* ドキュメントページ */
.docs__content h2 {
	font-size: 1.05rem;
	margin-top: 2em;
	margin-bottom: 0.5em;
	padding-bottom: 4px;
	border-bottom: 1px solid #e0e0e0;
	color: #333;
}

.docs__content ul {
	margin: 0 0 0.5em 1.2em;
	padding: 0;
}

.docs__content li {
	margin-bottom: 0.4em;
	font-size: 0.9rem;
	line-height: 1.6;
}
