*,*::before,*::after {
	box-sizing: border-box;
}

/* ===== リンク ===== */
a:link    { color: #0000ff; }
a:visited { color: #0D4154;}

/* ===== レイアウト ===== */
#wrapper {
    clear: both;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.wrapper {
    width: 100%;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.section {
    padding: 0.5em 1em;
}

.w50 {
    width: 49%;
    margin: 0 auto;
}

/* ===== 見出し ===== */
h1.category-name {
    width: 100%;
    margin: 0;
    padding-left: 4px;
    background-color: #e1f2f4;
    height: 36px;
    line-height: 36px;
    color: #003366;
    font-size: 1.2em;
    font-weight: 700;
}

h2.product-name {
    width: 50%;
    margin: 0;
    padding-left: 4px;
    background-color: #666666;
    height: 34px;
    line-height: 34px;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
}

.h2-left {
    width: 50%;
    margin: 0;
    padding-left: 4px;
    line-height: 32px;
    color: #003366;
    font-size: 13px;
}

h3.subtitle {
    width: 100%;
    margin: 2em 0 0;
    padding-left: 4px;
    background-color: #efefef;
    height: 30px;
    line-height: 30px;
    color: #003366;
    font-size: 11pt;
    font-weight: 700;
}

/* ===== テキスト ===== */
td,
p,
figcaption {
    font-size: 11pt;
    line-height: 140%;
}

.flex > p,
.flex > ul {
    margin: 5px 0;
    font-size: 11pt;
    line-height: 1.6;
}

tr {
    margin: 5px 0;
    font-size: 11pt;
}

p.saisyou {
    font-size: small;
}

/* ===== インライン装飾 ===== */
.auto-style1 { text-align: center; }
.auto-style2 { text-decoration: underline; }

/* 下付文字 */
span.chr-s {
    font-size: 0.7em;
}

/* 備考 */
span.bikou {
    font-size: 0.8em;
    padding-left: 2px;
}

/* ===== リスト ===== */
ul.toku-maru {
    padding-left: 10px;
    margin-top: 0;
}

ul.toku-maru li.maru::marker {
    color: #003366;
    font-size: 1.5em;
}

li.maru {
    margin: 0;
    font-size: 11pt;
}

/* お知らせ スクロール */
ul.update-scroll {
    list-style-type: none;
    width: 760px;
    height: 6em;
    overflow: auto;
    border: 1px solid #bbb;
    padding-left: 0.1em;
}

ul.update-scroll li {
    margin-top: 0.1em;
    font-size: 9pt;
}

ul.update-scroll a {
    text-decoration: none;
}

/* ===== 製品内リンク ===== */
a.products {
    font-weight: bold;
    color: #006699;
}

.products:visited {
    text-decoration: underline;
}

/* ===== 画像・図 ===== */
figure {
    margin: auto 0.5em 0;
}

.cap-image {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

figcaption {
    text-align: center;
    padding-top: 0.5em;
}

/* ===== お知らせブロック ===== */
.netis {
    margin: 5px 0;
    padding: 0;
    background-color: #e1f2f4;
    border: 1px solid #ccc;
    color: #333;
}

/* ===== テーブル（台帳スタイル） ===== */
.table-ts-style {
    border-collapse: collapse;
}

.table-ts-style th {
    padding: 4px;
    border: 1px solid #000;
    background: rgb(138, 201, 151);
    color: #000;
    font-size: 0.9em;
    text-align: center;
}

.table-ts-style td {
    padding: 4px;
    border: 1px solid #000;
    font-size: 0.9em;
    text-align: center;
}

.table-ts-style td.bgcolor_yellowgreen {
    background: rgb(216, 230, 152);
}


/* ===== ページ共通 ===== */
#page-wrap {
	width: 780px;
	margin: 0 auto;
}

/* ===== ヘッダー ===== */
.site-header {
	margin-bottom: 4px;
}
.site-header img {
	display: inline-block;
}
.header-nav {
	text-align: right;
	font-size: 11pt;
	margin: 4px 0;
}

/* ===== セクションタイトル画像 ===== */
.section-title {
	margin: 0 0 4px;
}
.section-title img {
	display: block;
}
.section-divider {
	display: block;
	width: 100%;
	height: 6px;
	margin-bottom: 8px;
}

/* ===== 製品メニュー（岡部） ===== */
.products-layout {
	display: flex;
	flex-direction: row;
	gap: 12px;
	align-items: flex-start;
}
.products-thumb {
	flex-shrink: 0;
	width: 110px;
}
.products-thumb img {
	display: block;
}
.products-list {
	flex: 1;
}
.product-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	margin-bottom: 4px;
	gap: 1rem;
}
.product-row > .product-category {
	width: 42%;
	font-size: 11pt;
	font-weight: bold;
	padding-top: 2px;
	margin: 0;
}
.product-row > ul {
	margin: 0;
	padding-left: 1.2em;
	font-size: 11pt;
}
.product-row > ul li {
	margin-bottom: 2px;
	line-height: 1.7;
}

/* ===== フリーフレーム製品テーブル代替 ===== */
.ff-layout {
	display: flex;
	flex-direction: row;
	gap: 12px;
	align-items: flex-start;
}
.ff-thumb {
	flex-shrink: 0;
	width: 111px;
}
.ff-thumb img {
	display: block;
}
.ff-list {
	flex: 1;
}
.ff-row {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	align-items: flex-start;
	padding-bottom: 8px;
}
.ff-row > .ff-name {
	width: 42%;
	font-size: 11pt;
	font-weight: bold;
	padding-top: 2px;
	margin: 0;
}
.ff-row > .ff-desc {
	font-size: 13px;
	color: #006699;
	padding-top: 2px;
}
.ff-desc img {
	vertical-align: middle;
}

/* ===== 石積協会バナー ===== */
.banner-ishizumi {
	width: fit-content;
	margin: 12px 0 0;
}
.banner-ishizumi a {
	display: block;
}

/* ===== 新着情報 ===== */
.news-section {
	border: 1px solid #333;
}
.news-heading {
	margin: 0;
	background-color: #006699;
	height: 30px;
	line-height: 2;
	padding-left: 8px;
}
.news-heading a {
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
}
.news-body {
	overflow-y: auto;
	overflow-x: hidden;
	height: 240px;
}
.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.news-list li {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	min-height: 30px;
	padding: 2px 4px;
	font-size: 11pt;
	line-height: 1.6;
}
.news-date {
	color: #003366;
	flex-shrink: 0;
	width: 120px;
}
.news-text {
	flex: 1;
}

/* ===== お問い合わせ ===== */
.contact-heading {
	margin: 0;
	height: 32px;
	background-color: #333333;
	color: #fff;
	font-weight: bold;
	text-align: center;
	line-height: 32px;
}
.contact-heading a {
	color: #fff;
	text-decoration: none;
}
.contact-layout {
	display: flex;
	flex-direction: row;
}
.contact-card {
	border: 1px solid #ccc;
	width: 50%;
	text-align: center;
	font-size: 11pt;
	line-height: 1.6;
	padding: 8px 0;
}
.contact-card img {
	display: block;
	margin: 0 auto 4px;
}
.contact-card p {
	margin: 4px 0;
}

/* ===== カウンター ===== */
.counter {
	text-align: center;
	margin-top: 1rem;
	font-size: 10px;
	color: #808080;
	font-family: ＭＳ ゴシック;
}


/* ===== レスポンシブ（〜780px） ===== */
@media screen and (max-width: 780px) {

    #wrapper,
    #page-wrap {
        width: 100%;
        box-sizing: border-box;
        padding: 0 8px;
    }

    /* ヘッダー */
    .site-header > img {
        width: 100%;
        height: auto;
    }
	/* ===== 石積協会バナー ===== */
	.banner-ishizumi img {
		display: inline-block;
		max-width: 100%;
		height: auto;
	}

    /* セクション区切り線 */
    .section-divider {
        width: 100%;
    }

    /* flex全般：横並び→縦並び */
    .flex,
    .products-layout,
    .ff-layout,
    .contact-layout {
        flex-direction: column;
    }

    /* 製品メニュー（岡部） */
    .products-thumb {
        width: 100%;
    }
    .products-thumb img {
        width: 110px;
        height: auto;
    }
    .product-row {
        flex-direction: column;
		margin-top: .5rem;
		padding: 0 10px 10px;
		border-bottom: 1px dotted #ccc;
    }
    .product-row > .product-category {
        width: 100%;
    }
	.product-category a {
		font-size: 1.1rem;
	}
    .product-row > ul {
        width: 100%;
		margin-left: 1rem;
    }

	/* NETIS */
	.netis {
		width: fit-content;
		padding: 0 5px;
	}

    /* フリーフレーム */
    .ff-thumb {
        width: 100%;
    }
    .ff-thumb img {
        width: 111px;
        height: auto;
    }
    .ff-row {
        flex-direction: column;
        gap: 0.2rem;
		margin-top: .5rem;
		padding: 0 10px 10px;
		border-bottom: 1px dotted #ccc;
    }
    .ff-row > .ff-name {
        width: 100%;
    }
    .ff-name > a {
		font-size: 1.1rem;
	}
    .ff-row > .ff-desc {
        width: 100%;
    }

    /* h2左右並び */
    h2.product-name,
    .h2-left {
        width: 100%;
    }

    /* お知らせスクロール */
    ul.update-scroll {
        width: 100%;
        box-sizing: border-box;
    }

    /* 新着情報 */
    .news-list li {
        flex-direction: column;
    }
    .news-date {
        width: 100%;
    }

    /* お問い合わせ */
    .contact-card {
        width: 100%;
        box-sizing: border-box;
    }

    /* w50 */
    .w50 {
        width: 100%;
    }

    /* テーブル（台帳スタイル） */
    .table-ts-style {
        width: 100%;
        font-size: 0.85em;
    }
}