/*Base Styles (Mobile First)*/

html {
    height: 100%;
        font-size: 87.5%; /* スマホでの基本フォントサイズ (14px相当) */
}

body {
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
        font-family: "a-otf-ud-reimin-pr6n", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #333;
    background-color: #f8f8f8;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 1rem; 
}

main {
    flex-grow: 1; 
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(3.125rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein.is-visible {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slidein-up.is-visible {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-fadein,
.animate-slidein-up {
    opacity: 0;
}
.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 1rem; 
}

h1 {
    text-align: center;
}

h2, h3 {
    font-family: "a-otf-ryumin-pr6n", serif;
    color: #003366; 
        font-size: 1.6rem;
}

h2 {
    text-align: center;
    margin-bottom: 0.9375rem; /* スマホでのh2下余白 */
}

#hero h2{
       color: #d17a41; 
}

p {
    margin-bottom: 0.9375rem;
}

a {
    color: #d17a41;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-flex;
	align-items: center;
	justify-content: center;
    border: 0.0625rem solid #d17a41;
    color: #d17a41;
    padding: 0.5rem 0.9375rem;
    border-radius: 0.1875rem;
    font-size: 0.9em;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.5s ease;
	text-decoration: none;
	box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
	opacity: 1; 
	white-space: nowrap;
}

.cta-button:hover {
    background-color: #d17a41;
    color: #fff;
    text-decoration: none;
}

/* Header - Mobile */
header {
    background-color: #fff;
    padding: 0.625rem 0; /* スマホでのヘッダーパディング */
    border-bottom: 0.0625rem solid #eee;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3rem; /* スマホでのヘッダー最小高さ*/
}

.logo {
    max-width: 9.375rem; /* スマホでのロゴ最大幅 */
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.logo img {
    display: block;
    max-height: 2.5rem; /* スマホでのロゴ最大高さ */
    object-fit: contain;
}

#global-nav {
    /* モバイルでは非表示にし、ハンバーガーメニューで表示 */
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    z-index: 999;
    flex-direction: column; /* 縦並び */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#global-nav.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

#global-nav ul {
    list-style: none;
    display: flex; 
    flex-direction: column;
    text-align: center;
}

#global-nav ul li {
    margin: 0.625rem 0;
}

#global-nav ul li a {
    color: #555;
    font-weight: bold;
    padding: 0.625rem 0;
    position: relative;
    font-size: 1.4rem; 
}

#global-nav ul li a:hover,#global-nav ul li a.active {
    color: #d17a41;
}

/* Hamburger (Mobile)*/
.hamburger-menu {
    display: flex; 
    flex-direction: column;
    cursor: pointer;
    padding: 0.625rem;
    z-index: 1001; /* ナビより前面 */
}

.hamburger-menu span {
    height: 0.1875rem;
    width: 1.5625rem;
    margin-bottom: 0.25rem;
    border-radius: 0.125rem;
    background-color: #333; 
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(0.4375rem) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-0.4375rem) rotate(-45deg);
}

/* Hero Section - Mobile */
.hero-section {
    height: 35vh; /* スマホでのヒーローセクションの高さ */
    background: url("../images/hero-kari3.jpg") center bottom / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 0.125rem 0.25rem rgba(255,255,255,0.5);
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    text-align: center;
    max-width: 80%;
}

/* Sections Padding - Mobile */
.news-section, .value-section, .business-section, .magazine-section, .about-section, .contact-section {
    padding: 1.875rem 0; /* 各セクション上パディング */
        text-align: center;
}

/* News Section - Mobile */
.news-section {
    background-color: #fff;
    border-bottom: 0.0625rem solid #eee; 
}

.news-list {
    max-width: 95%;
    margin: 0 auto 0.625rem;
    text-align: left;
}

.news-item {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    padding: 0.375rem 0; /* スマホでのニュースアイテムパディング */
    border-bottom: 0.0625rem dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.75rem; /*日付*/
    margin-right: 0; /* スマホ不要 */
    margin-bottom: 0.1875rem; /* スマホ用日付の下の余白 */
    white-space: nowrap;
    flex-shrink: 0;
}

.news-item a {
    font-size: 0.9rem;
    color: #333;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.news-item a:hover {
    color: #d17a41;
    text-decoration: none;
}

/*section intro*/
.value-intro,.magazine-intro,.contact-intro{
    max-width: 95%;
    margin: 0 auto 1.875rem; /* 表題下余白 */
        text-align: left;
}

/* Value Section - Mobile */
.value-section {
    background-color: #fff8f3;
}

.value-buttons {
    display: flex;
    flex-direction: column; 
    gap: 0.625rem; /* (10px) */
    margin-top: 0.9375rem; /* ボタンブロック上部 (15px) */
    align-items: center; 
}

/* Business Section - Mobile */
#business{
	background-color: #f0f4f8;
}

#business .container h2{
margin-bottom: 1.875rem;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); /* 1列*/
    gap: 1.25rem; 
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
}

.grid-column-span-all {
    grid-column: auto / auto; 
}

.business-tile img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    margin-bottom: 1rem;
}

.business-tile {
    padding: 1.25rem 1.25rem 0.9375rem;
        background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.business-tile:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

.target-mark {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.1875rem;
    font-size: 0.8em;
}

.business-tile h3 {
    font-size: 1.4rem;
    margin: 0.9375rem 0.9375rem 0.3125rem;
    color: #d17a41;
}

.business-tile p {
    margin: 0 0.9375rem 0.9375rem;
    font-size: 0.85rem;
    color: #555;
    min-height: 2em;
	flex-grow: 1;
}

/* Magazine Section - Mobile */
#magazine {
    background-color: #f8f8f8;
}

.magazine-intro{
	text-align: center;
}

.first-article-block {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1.25rem 1.25rem 0.9375rem;
    margin: 0 auto 3rem; 
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.08);
    text-align: left; 
}
.first-article-block:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

.first-article-block img {
   width: 100%;
    height: auto;
    object-fit: cover; 
    margin-bottom: 1rem;
}

.first-article-block h3 {
    color: #333;
    margin-bottom: 0.625rem;
}

.first-article-block p {
    color: #555;
    margin-bottom: 1.5rem;
}

.article-cta-buttons {
    display: flex;
    justify-content: flex-end;
}
#magazine .cta-button{
	width:100%;
}
.horizontal-scroll-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; /* iOS */
    padding-bottom: 1.25rem; 
    margin-bottom: 2.5rem; 
}

/* スクロールバースタイル */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 0.5rem; 
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #e0e0e0; /* トラックの背景色 */
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #888; /* サムの色 */
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555; /* ホバー時のサムの色 */
}

.magazine-article-tiles {
    display: flex; 
    gap: 1.25rem;
    padding:0 0.5rem; 
}

/*記事タイル*/
.article-tile {
    flex-shrink: 0; 
    width: calc(100% / 1.25);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left; 
    display: flex;
    flex-direction: column;
}

.article-tile img {
   width: 100%;
    height: auto;
    object-fit: cover; 
    margin-bottom: 1rem;
        overflow: hidden;
    border-radius: 4px;
}

.article-tile h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.6rem;
}

.article-tile p {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 1rem;
    flex-grow: 1; /* ボタン下揃え */
    
}

/* About Section - Mobile */
#about{
	background-color: #fff;
}
.about-section img {
   width: 90%;
    height: auto;
    object-fit: cover; 
    margin-bottom: 1rem;
}

/* タブコンテナ */
.tabs-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 1rem;
    text-align: left;
    margin: 0 auto;
}

.tab-menu {
    max-width: 100%;
        display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    margin: 0 auto 1.875rem;
    gap: 0.625rem; 
    padding: 0.625rem; 
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05);
        background-color: #f0f0f0;
}

.tab-button {
    background-color: #e0e0e0;
    color: #555;
    font-weight: bold;
    padding: 0.5rem 0.9375rem;
    border-radius: 0.1875rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
    
.tab-button:hover {
    background-color: #d17a41;
    color: #fff;
    text-decoration: none;
        box-shadow: 0 6px 12px rgba(0,0,0,0.3); 
}

.tab-button.active {
    background-color: #d17a41;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}
/* デフォルトでは全てのタブコンテンツを非表示にする */
.tab-contents .tab-content {
    display: none;
}

/* activeクラスが付いているコンテンツのみ表示する */
.tab-contents .tab-content.active {
    display: block; 
}

.tab-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.tab-content p {
    margin-bottom: 1rem;
}

.tab-content strong {
    color: #222; 
}

#tab-greeting span{
	font-family: ta-rehitsu-m, serif;
	font-weight: 400;
	font-size: 1.2rem;
        margin-right: 2rem;
}

/* 会社概要 */
.tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tab-content th, .tab-content td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.tab-content th {
    background-color: #f0f0f0;
    width: 30%; 
}

/* 沿革リスト */
.history-list {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.history-list li {
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    position: relative;
}

.history-list li strong {
    display: inline-block;
    width: 80px; /* 年度の幅 */
    flex-shrink: 0; /* 年度の縮み防止 */
}

/* タイムライン装飾 */
.history-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #d17a41;
    border-radius: 50%;
}

.history-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1em;
    bottom: -10px;
    width: 2px;
    background-color: #eee;
}

/* 特定商取引法リスト */
.law-list dt {
    font-weight: bold;
    margin-top: 0.9rem;
}

.law-list dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* お問い合わせ */
.contact-section {
    background-color: #f8f8f8;
}

.contact-intro{
        text-align: center;
}

.contact-buttons-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
	
}

.contact-buttons-wrapper .cta-button{
	width: 300px;
	max-width:90%;
	min-width: 0;
	box-sizing: border-box;
}

.cta-button img.button-icon {
	width: auto;
	height: 1.5rem;
	vertical-align: middle;
	margin: 0 1rem 0 0; 
	flex-shrink: 0;
}

.line-btn {
	color: #fff !important;
	border-color: #06C755;
	background-color: #06C755;
}

.line-btn:hover {
	background-color: #06C755;
	border-color: #06C755;
	opacity: 0.8;
	color: #fff !important;
	transform: scale(1.05);
	box-shadow: 0 6px 12px rgba(6, 199, 85, 0.3);
}

.mail-btn {
	color: #fff !important;
	border-color: #d17a41;
	background-color: #d17a41;
}

.mail-btn:hover {
	background-color: #d17a41;
	border-color: #d17a41;
	opacity: 0.8;
	color: #fff !important;
	transform: scale(1.05);
	box-shadow: 0 6px 12px rgba(209, 122, 65, 0.3);
}

.fixed-contact-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	padding: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #d17a41; 
	color: #fff !important;
	border: 2px solid #d17a41;
	font-size: 1rem;
	text-decoration: none !important; 
	border-bottom: none !important;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: all 0.3s ease;
	border-radius: 0.1875rem;
}

.fixed-contact-button.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none; 
}

.button-icon-fixed {
	width: 20px;
	height: auto;
	display: block; 
	margin: 0;
}

.fixed-contact-button:hover {
	background-color: #d17a41;
	border-color: #d17a41;
	opacity: 0.8;
	color: #fff !important;
	transform: scale(1.05);
	box-shadow: 0 6px 15px rgba(0, 51, 102, 0.4);
	text-decoration: none !important;
	border-bottom: none !important;
}

/* Footer - Mobile */
footer {
        background-color: #5f6d7d;
        padding: 1.5rem 0 0.5rem;
        text-align: center;
}

.footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
}

.footer-logo img {
        max-width: 150px;
        height: auto;
        display: block;
}

.footer-links ul {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        transition: color 0.3s ease;
        margin:1.5rem 0 2rem; /* バナー余白 */
        padding: 0;
}

.footer-links li a {
        font-size: 0.9rem;
        color: #fff;
}

.footer-links li a:hover {
        color: #d17a41;
        text-decoration:none;
}

/* フッターバナー */
.footer-banners {
        display: flex;
        flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
        gap: 1.5rem;
        width: 100%;
        margin: 1rem 0 2rem;
        padding: 0 0.5rem;
}

.footer-banner-item {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
	background-color: #fff;
	height: auto;
	aspect-ratio: 636/423;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        text-decoration: none;
        color: #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: calc(50% - 0.75rem); 
    }

.footer-banner-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.footer-banner-item img {
        width: 100%;
        height: 100%;
	object-fit: contain;
        display: block;
}

.footer-banner-item .banner-text {
    display: none;
	/*position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: bold;
	color: #fff;
        z-index: 1;
        white-space: nowrap;
	background-color: rgba(0,0,0,0.60);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	width: 80%;
	text-align: center;*/
}

footer p {
        font-size: 0.8rem;
        color: #bbb;
}


/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 0.5rem;
    max-width: 50rem;
    width: 90%;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(1.25rem);
    transition: transform 0.3s ease;
    overflow-y: auto;
    max-height: 90vh;
    text-align: left;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-content h3 {
    color: #d17a41;
	margin:2rem 0;
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.popup-close-button {
    position: absolute;
    top: 0.9375rem;
    right: 0.9375rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.popup-close-button:hover {
    color: #d17a41;
}

/*子ページ*/
/* breadcrumbs */
.breadcrumbs {
    list-style: none;
    padding: 1rem;
    margin: 0 auto;
    max-width: 1200px;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: inline;
    margin-right: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: ' > ';
    margin-left: 0.5rem;
    color: #555;
}

.breadcrumbs li a {
    color: #555;
    text-decoration: none;
}

.breadcrumbs li a:hover {
    color: #d17a41;
    text-decoration: underline;
}

/* 個人情報保護方針・サイト利用規約*/
#legal {
    padding: 2rem 0 3rem; 
    text-align: left; 
}

#legal h2 {
    margin-bottom: 2rem;
    text-align: center; 
}

.legal {
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 1rem; 
}

.legal h3 {
    font-size: 1.4rem; 
    margin: 2rem 0 1rem; 
    color: #003366;
    border-bottom: 1px solid #ddd; 
    padding-bottom: 0.5rem;
}

.legal h4 { 
    font-size: 1.1rem; 
    margin: 1.5rem 0 0.8rem;
    color: #003366;
}

.legal p {
    margin-bottom: 1rem;
    line-height: 1.7; 
}

.legal ul {
    list-style-type: disc;
    margin:0 0 1rem 1.5rem;
}

.legal ul li {
    margin-bottom: 0.5rem; 
}

.legal ol {
    list-style-type: decimal;
    margin:0 0 1rem 1.5rem; 
}

.legal ol li {
    margin-bottom: 0.5rem;
}

.legal .date {
    text-align: right; 
    font-size: 0.85rem;
    color: #777;
    margin-top: 1.5rem;
}

/* ニュース記事ページ */
#news-article { 
    padding: 2rem 1rem 3rem; 
}

#news-article h2 {
    margin-bottom: 1.5rem;
    text-align: center;  
}

#news-article .date-and-author {
    text-align: right; 
    font-size: 0.9rem;
    margin-bottom: 1.25rem; 
}

#news-article .article-content {
    max-width: 800px; 
    margin: 0 auto; 
    line-height: 1.7;
}

#news-article .article-content p {
    margin-bottom: 1rem; 
}

/* マガジン記事ページ */
#magazine-article {
    padding: 1.5rem 1.25rem 3rem;
}

#magazine-article .article-category1 {
    font-size: 0.8rem;
    background: rgba(255,143,31,1.00);
    color: #FFF;
    font-weight: bold;
    text-align: left;
    margin: 0 0 0.5rem 0.5rem;
    border-radius: 4.5px;
    padding: 1px 0.25rem;
}

 #magazine-article .article-category2 {
       font-size: 0.8rem;
    background: rgba(196,53,219,1.00);
    color: #FFF;
    font-weight: bold;
    text-align: left;
    margin: 0 0 0.5rem 0.5rem;
    border-radius: 4.5px;
         padding: 1px 0.25rem;
}

#magazine-article .article-category3 {
       font-size: 0.8rem;
    background: rgba(255,163,223,1.00);
    color: #FFF;
    font-weight: bold;
    text-align: left;
    margin: 0 0 0.5rem 0.5rem;
    border-radius: 4.5px;
         padding: 1px 0.25rem;
}

#magazine-article .article-category4 {
       font-size: 0.8rem;
    background: rgba(134,187,254,1.00);
    color: #FFF;
    font-weight: bold;
    text-align: left;
    margin: 0 0 0.5rem 0.5rem;
    border-radius: 4.5px;
         padding: 1px 0.25rem;
}

#magazine-article .article-date {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem; 
}

#magazine-article .article-thumbnail,#care-intro .article-thumbnail {
    text-align: center; 
    margin:0 0 2rem; 
}

#magazine-article .article-thumbnail img,#care-intro .article-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 0 auto;
    border-radius: 4px;
}

#magazine-article .campaign-cta-button {
    text-align: center; 
}

.toc {
    background-color: #EBEBEB;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem 1.75rem;
    margin: 3rem auto;
    max-width: 600px; 
    text-align: left;
}

.toc .toc-title p {
    font-weight: bold;
    color: #003366;
    text-align: center;
}

.toc ol {
    list-style-type: hiragana-iroha;
    margin-left: 2rem; 
}

.toc ol li a {
    color: #555;
    text-decoration: none;
        line-height: 3;
}

.toc ol li a:hover {
    color: #d17a41;
    text-decoration: underline;
}

.article-section{
        margin-bottom: 3rem;
}

.article-section h3 { 
    font-size: 1.3rem;
    text-align: left;
       padding: 0.5rem;
        margin-bottom: 0.5rem;
  background: #FFE7CB;
  border-left: solid 3px #FFA646;
}
.article-section h4 { 
        color:#003366;
    font-size: 1.2rem;
        line-height: 3; 
        margin: 1.5rem 0.5rem 1rem;
        text-decoration: underline;
}

.article-section h5 { 
    font-size: 1.1rem;
        margin: 0.75rem 0.5rem;
}

.article-section p {
    margin-bottom: 1rem;
}

.article-section img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 1.5rem auto;
    border-radius: 4px;
}

.article-section .image-caption { 
    text-align:right;
    font-size: 0.85rem;
    color: #555;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
        max-width:300px;
	
        margin:0 auto;
    padding: 0 1rem;
    align-items: center;
}

.store-links a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.store-links a img[src*="直営オンラインショップ"],
.store-links a img[src*="mercarishops"] {
	object-fit: contain;
	aspect-ratio:2000/817;
}

.store-links img {
    width: 100%;
    height: auto;
    display: block;
}

#author {
    background-color: #f0f4f8;
    padding: 2rem 1rem; 
    margin: 3rem auto;
    border-radius: 0.5rem;
        border: 1px solid #003366;
    max-width: 800px;
        text-align: left;
}

#author h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;  
}

.author-profile {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1rem; 
}

.author-photo {
    flex-shrink: 0; 
    width: 80px; 
    height: 80px; 
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name h4 {
    font-size: 1.3rem;
    color: #333;
    margin: 0.5rem;
    text-align: center;
}

.author-profile .author-right p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.article-pagination {
    display: flex;
    justify-content: center;
    padding: 0 1rem; 
    max-width: 500px; 
    margin:3rem auto 0;
}

.article-pagination .pagination-link {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #d17a41;
    color: #d17a41;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-pagination .pagination-link a {
    color: #d17a41;
    text-decoration: none;
    display: block;
}

.article-pagination .pagination-link:hover {
    background-color: #d17a41;
    text-decoration: none;
}

.article-pagination .pagination-link:hover a {
    color: #fff;
}

.article-pagination .pagination-link.prev,.article-pagination .pagination-link.next {
    text-align: center;
    margin:0 1rem; 
}

/*シューケアガイドトップ*/
#care-by-material-shoe .business-tile {
    margin: 0 1.5rem;
}

/*シューケア子ページ*/
.care-article-page #magazine-article .store-links a img {
    margin: 0;
}

.article-section .contact-cta-button{
	margin-top: 1.5rem;
	text-align: center;
}

/* お問い合わせページ */
.contact-page .contact-intro{
        text-align: left;
}

/* メディアクエリ：タブレット(768px以上)  */
@media screen and (min-width: 768px) {
    html {
        font-size: 93.75%; /* タブレットでの基本フォントサイズ (15px相当) */
    }

    /* Header - Tablet */
    header .container {
        min-height: 4rem; /* タブレットでのヘッダー最小高さ */
    }

    .logo {
        max-width: 11.25rem; /* ロゴの最大幅 (180px) */
    }

    .logo img {
        max-height: 3.125rem; /* ロゴの最大高さ (50px) */
    }
	
    /* Hero Section - Tablet */
    .hero-section {
        height: 45vh; /* タブレットでのヒーローセクションの高さ */
    }

    /* Sections Padding - Tablet */
    .news-section, .value-section, .business-section, .magazine-section, .about-section, .contact-section {
        padding: 2.5rem 0; /* 各セクションの上パディングを大きく */
    }

    /* News Section - Tablet */
    .news-list {
        max-width: 80%; 
    }

    .news-item {
        flex-direction: row; 
        align-items: center;
    }

    .news-date {
        margin-right: 1.25rem; 
        margin-bottom: 0; 
        font-size: 0.85rem;
    }

    .news-item a {
        font-size: 1rem; 
    }

    /* section intro - Tablet */
    .value-intro, .business-intro, .magazine-intro, .contact-intro {
        max-width: 80%; 
        margin-bottom: 2.5rem; 
    }

    /* Value Section - Tablet */
    .value-buttons {
        flex-direction: row; 
        justify-content: center; 
        gap: 1.25rem; 
        margin-top: 1.875rem; 
    }

    /* Business Section - Tablet */
	#business .container h2{
		margin-bottom: 2.5rem;
}
    .business-grid {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));/* 2列 */
        gap: 1.5rem; 
        max-width: 90%; 
    }

    .grid-column-span-all {
        grid-column: span 1; 
    }

    .business-tile p {
        font-size: 0.9rem; 
    }

    /* Magazine Section - Tablet */
    .first-article-block {
        max-width: 700px; 
        margin-bottom: 4rem; 
    }

    .magazine-article-tiles {
        gap:1.5rem;
    }

    .article-tile {
        width: calc(100% /2.35); 
        padding: 1.25rem;
    }

    /* About Section - Tablet */
    .about-section img {
        max-width: 600px; 
    }

    .tabs-container {
        padding: 1.5rem;
        max-width: 800px;
    }

    .tab-menu {
        gap: 0.8rem;
    }

    .tab-button {
        padding: 0.6rem 1.1rem;
    }

    /* 会社概要 */
    .tab-content th {
        width: 25%;
    }
	
 .contact-buttons-wrapper {
			 flex-direction: row;
			 flex-wrap: nowrap;
	}
        
    /* Footer - Tablet */
    footer {
        padding: 2.5rem 0 0.75rem;
    }

    .footer-links ul {
        gap: 1.5rem; 
    }

    .footer-links li a {
        font-size: 1rem;
    }
	.contact-buttons-wrapper {
		flex-direction: row;
		gap: 2rem;
	}
        
.footer-banners {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1.5rem; 
        padding: 0; 
        max-width: 700px; 
        margin: 2rem auto; 
    }
        
    /* Fixed Contact Button - Tablet */
    .fixed-contact-button {
        padding: 0.75rem;
    }
	
	/* breadcrumbs */
    .breadcrumbs {
        padding: 1.15rem;
        font-size: 1rem;
    }

    /* legal section */
    .legal {
        max-width: 900px;
        padding: 0 2rem;
    }

    .legal h3 {
        font-size: 1.6rem;
    }

    .legal h4 { 
        font-size: 1.2rem; 
    }

    .legal ul,.legal ol {
        margin-left: 2rem; 
    }

    #news-article .article-content {
        max-width: 900px;
        padding: 0 2rem;
    }

 /* マガジン記事ページ */
    .toc .toc-title p {
        font-size: 1.2rem;
    }

    .article-section h3 {
        font-size: 1.45rem;
        margin: 1rem 0;
    }

.article-section h4 { 
    font-size: 1.3rem;
}
        
    .store-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 500px;
        padding: 0;
}

    .store-links a {
        width: calc(50% - 0.75rem);/* 2列表示 */
    }

        #author{
        padding: 2rem 3.5rem;
        }
        
    .author-profile {
        flex-direction: row; 
        justify-content: center; 
        gap: 2rem;
    }

    .author-name h4 {
            white-space: nowrap;
        text-align: left;
            margin: 0.5rem 0;
    }

/*シューケアガイドトップ*/
#care-by-material-shoe .business-tile {
    margin: 0;
}
/*シューケア子ページ*/
        .care-article-page #magazine-article .store-links{
        max-width: 1200px
}
.care-article-page #magazine-article .store-links a {
        width: calc(100% / 3 - (1.5rem * 2 / 3));
    }
}


/* メディアクエリ：デスクトップ向け (1080px以上) */
@media screen and (min-width: 1080px) {
    html {
        font-size: 100%; /* デスクトップでの基本フォントサイズ (16px相当) */
    }

    /* Header - Desktop */
    header .container {
        padding: 0 1rem; 
        min-height: 4.25rem;
    }
        
#global-nav {
        display: flex !important; /* JavaScriptのdisplay:none;を上書き */
        position: static; /* 固定解除 */
        width: auto;
        height: auto;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        flex-direction: row; 
        justify-content: flex-end; 
        flex-grow: 1; 
    }

    #global-nav ul {
        flex-direction: row; 
        gap: 0.75rem; 
    }

    #global-nav ul li {
        margin: 0; 
    }

    #global-nav ul li a {
        font-size: 0.9rem; 
        padding: 0.3rem 
    }

    .hamburger-menu {
        display: none; /* ハンバーガーメニューは非表示 */
    }

    /* Hero Section - Desktop */
    .hero-section {
        height: 60vh; /* デスクトップでのヒーローセクションの高さ */
    }

    /* Sections Padding - Desktop */
    .news-section, .value-section, .business-section, .magazine-section, .about-section, .contact-section {
        padding: 3.5rem 0; 
    }

    /* News Section - Desktop */
    .news-list {
        max-width: 900px;
    }

    .news-item {
        padding: 0.5rem 0;
    }

    .news-date {
        font-size: 0.9rem;
    }

    /* section intro - Desktop */
    .value-intro, .business-intro, .magazine-intro, .contact-intro {
        margin-bottom: 3.25rem;
    }

    /* Value Section - Desktop */
    .value-buttons {
        gap: 2rem; 
        margin-top: 2.25rem;
    }

    /* Business Section - Desktop */
	#business .container h2{
margin-bottom: 3.25rem;
}
    .business-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3列表示に */
        gap: 2rem; 
    }

    .business-tile {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    /* Magazine Section - Desktop */
    .first-article-block {
        max-width: 900px;
        margin-bottom: 5rem;
    }

    .article-tile {
        width: calc(100% / 3.5); /* 3列表示に */
        padding: 1.5rem;
    }

    /* About Section - Desktop */
    .about-section img {
        max-width: 900px;
    }

    .tabs-container {
        max-width: 1100px; 
    }

    .tab-menu {
        justify-content: center;
        gap: 1.25rem;
        padding: 1rem;
    }

    .tab-button {
        padding: 0.7rem 1.25rem;
    }

    /* 会社概要 */
    .tab-content th {
        width: 20%;
            padding-left: 1rem;
    }

    /* Footer - Desktop */
    footer {
        padding: 3rem 0 0.5rem;
    }
        
.footer-logo {
        margin-bottom: 2rem; 
    }

    .footer-banners {
        flex-direction: row; 
        flex-wrap: nowrap; 
        gap: 2rem; 
        max-width: none; 
        margin-bottom: 2rem;  
    }

    .footer-banner-item {
            width: calc(25% - 1.5rem); 
    }
        
.footer-links ul {
        gap: 0 2rem; /* デスクトップでリンク間隔を広げる */
        margin: 0 0 1.5rem; /* リセット */
    }
        
    /* Fixed Contact Button - Desktop */
    .fixed-contact-button {
        bottom: 2.25rem;
        right: 2.25rem;
        padding: 1rem;
    }
        
         /* breadcrumbs */
    .breadcrumbs {
        padding: 1.5rem;
    }

    /* legal section */
    .legal {
        max-width: 960px;
    }

    .legal p {
        margin-bottom: 1.25rem;
    }

    .legal ul,.legal ol {
        margin: 0 0 1.25rem 2.5rem; 
    }

    .legal .date {
        font-size: 0.9rem;
    }

    #news-article .article-content {
        max-width: 960px;
    }

    #news-article .article-content p {
        margin-bottom: 1.25rem;
    }
        
        /* マガジン記事ページ */
    .toc {
        margin: 4rem auto;
    }
        
        .article-section h4{ 
    font-size: 1.4rem;
        line-height: 4; 
}

        .article-section h5 {
        font-size: 1.3rem;
    }
    .store-links {
        gap: 2rem;
        max-width: 600px;
    }
        
    .store-links a {
        width: calc(50% - 1rem); /* 2列表示 */
    }
    .author-profile {
        gap: 3rem;
    }
/*シューケア子ページ*/
.care-article-page #magazine-article .store-links a {
	width: calc(25% - (2rem * 3 / 4));}
	}