﻿:root {
    --header-height: 100px;
}
.main {
    padding-top: var(--header-height);
    padding-bottom: clamp(10px,10vw,100px);
}
.main.padding-top-zero {
    padding-top: 0;
}
.content-detail ul {
    list-style: none;
}
.inner {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}
/* ---------------------
    一覧
--------------------- */
.h1-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(24px,4vw,50px);
    font-weight: 500;
    line-height: 1.8;
    background: #0B152E;
    color: white;
    padding: 3em 0;
}
.h1-title .inner {
    display: flex;
    flex-direction: column;
}
.h1-title .font-s {
    font-size: 0.6em;
    font-weight: normal;
}
.is-read {
    text-align: center;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 1em;
}
.tag-list .tag-item {
    border: 2px solid #0B152E;
    color: #0B152E;
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    font-weight: 600;
    transition: .3s;
    text-decoration: none;
}
.tag-list .tag-item:hover {
    font-weight: bold;
	background-color: #0B152E;
	color: white;
}
.tag-list .tag-item::before {
    content: "#";
}

.article-list-wrap,
.article-detail-wrap {
    max-width: 1134px;
    margin-left: auto;
    margin-right: auto;
}
.article-list-wrap .article-num {
    text-align: center;
    margin: clamp(25px,3vw,50px) 0;
    font-size: 16px;
}

.article-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}
.article-list .article-item {
    width: calc((100% - 4em) / 3);
}
.article-list .article-item .inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-list .article-item .days {
    font-size: 12px;
    color: #4B4B4B;
}
.article-list .article-item img {
    max-width: 100%;
}
.article-list .article-item .link {
    color: black;
    text-decoration: none;
}
.article-list .article-item .title {
    line-height: 1.6;
    color: #0B152E;
    font-weight: 600;
}
.article-list .icon-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
}
.article-list .icon-wrap .icon a {
    text-decoration: none;
    color: white;
    border: 1px solid #0B152E;
    border-radius: 0.3em;
    padding: 0.3em 0.5em;
    display: block;
    font-size: 12px;
}
/* ---------------------
    詳細
--------------------- */
.index-links {
    background: #D8DCE8;
    padding: 15px 10px;
    margin-top: 50px;
}
.index-links .links {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin-top: 15px;
}
.index-links .links a {
    text-decoration: none;
    color: #595757;
}
.index-links .links a::before {
    content: "・";
}
.content-detail.article-detail-wrap {
    display: flex;
    flex-wrap: wrap;
	gap: 3em;
}
.article-detail {
    display: flex;
    flex-direction: column;
    gap: 3em;
    letter-spacing: 0.08em;
}
.article-detail * {
	line-height: 1.8;
}
.article-detail img {
	vertical-align: bottom;
    max-width: 100%;
}
.article-heder {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.content-detail .icon-wrap {
    display: flex;
    flex-wrap: wrap;
}
.content-detail .icon-wrap a {
    background-color: #0B152E;
    color: white;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
}
.article-heder .article-title {
    font-size: min(3.8647342995vw, 2.4rem);
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: #0C1631;
    font-weight: bold;
}
.article-heder .day {
    text-align: right;
    color: #4B4B4B;
    font-size: 0.9em;
}
.article-detail-content .key-visual {
    margin-bottom: 1em;
}
.article-detail-content .read {
    margin-bottom: 4em;
    margin-top: 1em;
    font-size: min(3vw, 16px);
}
.detail-content[class*="profile"] {
    border: 1px solid #0C1631;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    border-radius: 0.6em;
}
.detail-content[class*="profile"] + .detail-content[class*="profile"] {
    margin-top: 1.5em;
}
.detail-content .title {
    font-size: min(3.5vw, 20px);
    font-weight: bold;
    border-left: 10px solid #0B152E;
    padding-left: 0.5em;
}
.detail-content .sub-title {
    font-size: min(3vw, 18px);
    font-weight: bold;
}
.detail-content[class*="profile"] .inner-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto;
	grid-column-gap: 1.6em;
	grid-row-gap: 1rem;
}
.detail-content[class*="profile"] .inner-content [class*="-image"] {
	grid-area: 1 / 1 / 4 / 2;
	padding-left: 0;
	order: 0;
}
.detail-content .inner-content  [class*="-name"] {
	grid-area: 1 / 8 / 1 / 2;
	order: 1;
	font-size: min(3vw, 16px);
}
.detail-content .inner-content [class*="-text"] {
	grid-area: 2 / 10 / auto / 2;
	order: 2;
	font-size: min(2.5vw, 14px);
}
.article-detail-content>*+* {
    margin-top: 5em;
}
.detail-content[class*="each-content"] > * + * {
    margin-top: 2em;
}
.detail-content[class*="each-content"] .each-content-inner > * + * {
    margin-top: 1.5em;
}
.detail-content[class*="each-content"] .content-detail-inner {
    flex: auto 1 1;
    display: flex;
    flex-direction: column;
    gap: 1em 0;
}
.detail-content[class*="each-content"] .content-detail {
    flex: 100% 1 1;
    display: flex;
    flex-direction: column;
    gap: 1em 0;
}
/* 画像＋テキスト（同レイアウト）、画像＋テキスト（交互） */
.detail-content[class*="each-content"].image-text-line .each-content-inner,
.detail-content[class*="each-content"].image-text-column .each-content-inner {
    display: flex;
    gap: 0 2.5em;
}
.detail-content[class*="each-content"].image-text-line .content-detail-inner,
.detail-content[class*="each-content"].image-text-column .content-detail-inner {
    margin-top: 0;
}
.detail-content[class*="each-content"].image-text-line .img-block,
.detail-content[class*="each-content"].image-text-column .img-block {
    flex: 30% 0 0;
}
.detail-content[class*="each-content"].image-text-line .sub-title,
.detail-content[class*="each-content"].image-text-column .sub-title {
    flex: auto 0 0;
}
.detail-content[class*="each-content"].image-text-line .link-btn,
.detail-content[class*="each-content"].image-text-column .link-btn {
    margin-top: auto;
}
/* 画像＋テキスト（交互） */
.detail-content[class*="each-content"].image-text-column .each-content-inner:nth-child(odd) {
    flex-direction: row-reverse;
}
/* 画像１行 */
.detail-content[class*="each-content"].image-line1 {
   display: grid;
   grid-template-columns: repeat(3, 30%);
   gap: 0 calc((100% - 30% * 3) / 2);
}
.detail-content[class*="each-content"].image-line1 .title {
    grid-column: 1 / -1;
}
/* 画像１列 */
.detail-content[class*="each-content"].image-column1 .each-content-inner {
    display: flex;
    gap: 0 2.5em;
}
.detail-content[class*="each-content"].image-column1 .content-detail-inner {
    margin-top: 0;
}
.detail-content[class*="each-content"].image-column1 .img-block {
    flex: 30% 0 0;
}
.detail-content[class*="each-content"].image-column1 .sub-title {
    flex: auto 0 0;
}
.detail-content[class*="each-content"].image-column1 .link-btn {
    margin-top: auto;
}
@media (max-width: 768px) {
    .detail-content[class*="each-content"] .content-detail {
        font-size: min(2.6vw, 16px);
    }
    /* 画像＋テキスト（同レイアウト）、画像＋テキスト（交互） */
    .detail-content[class*="each-content"].image-text-line .each-content-inner,
    .detail-content[class*="each-content"].image-text-column .each-content-inner {
        gap: 0 .5em;
    }
    .detail-content[class*="each-content"].image-text-line .img-block,
    .detail-content[class*="each-content"].image-text-column .img-block {
        flex: calc((100% - 1em) / 3) 0 0;
    }
    /* 画像１行 */
    .detail-content[class*="each-content"].image-line1 {
        grid-template-columns: repeat(3, calc((100% - 1em) / 3));
        gap: 0 .5em;
    }
    /* 画像１列 */
    .detail-content[class*="each-content"].image-column1 .each-content-inner {
        display: block;
        margin-inline: 10%;
    }
    .detail-content[class*="each-content"].image-column1 .content-detail-inner {
        margin-top: 1.5em;
    }
}

.article-detail-content .related-links .inner-content {
    margin-top: 2rem;
}
.article-detail-content .related-links .inner-content .link-line {
    border-top: 1px solid #ccc;
    display: block;
    padding: 0.5em 0.6em;
    text-decoration: none;
    color: black;
    transition: 0.2s;
}
.article-detail-content .related-links .inner-content .link-line:hover {
    color: white;
    background-color: #EE8673;
}

/* 詳細:右サイド */
.articles-side,
.articles-side * {
    line-height: 1.5;
}
.side-article-title {
    font-size: min(3.5vw, 20px);
    font-weight: bold;
    border-left: 10px solid #0B152E;
    padding-left: 0.5em;
    margin-bottom: 1rem;
}
.side-article-list .is-article+.is-article {
    border-top: 1px solid #ccc;
}
.side-article-list .is-article .inner {
    display: flex;
    align-items: center;
    gap: 1em;
    text-decoration: none;
    transition: .3s;
    padding: 0.7em 0;
}
.side-article-list .is-article .img-block {
    flex: 0.5;
    overflow: hidden;
}
.side-article-list .is-article .img-block img {
    transition: .3s;
}
.side-article-list .is-article .title {
    flex: 0.5;
    color: black;
    font-size: 15px;
}
.side-article-list .is-article .inner:hover {
    opacity: 0.8;
}
.side-article-list .is-article .inner:hover .img-block img {
    transform: scale(1.1);
}
.detail-footer {
    display: flex;
    align-items: center;
    gap: 1em;
}
.detail-footer .sns .is-ttl {
    font-size: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    display: flex;
    gap: 0.5em;
}
.detail-footer .sns .is-ttl::before,
.detail-footer .sns .is-ttl::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.5em;
    height: 1px;
    background-color: black;
}
.detail-footer .sns .is-ttl::before {
    transform: rotate(45deg);
}
.detail-footer .sns .is-ttl::after {
    transform: rotate(-45deg);
}
.detail-footer img {
    max-width: 100%;
    vertical-align: bottom;
}
.detail-footer .sns-btns {
    display: flex;
    gap: 1em;
}
.detail-footer .sns-btns .sns-btn {
    width: 58px;
}
.detail-footer .list-btn {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}
.detail-footer .list-btn a {
    display: block;
    text-decoration: none;
    color: #0C1631;
    border: 2px solid #0C1631;
    border-radius: 0.3em;
    text-align: center;
    padding: 15px 10px;
    transition: 0.3s;
    font-weight: 600;
}
.detail-footer .list-btn a:hover {
    background: #0C1631;
    color: white;
}
@media (max-width: 768px) {
    .main .theme .content-detail {
        font-size: 3.3816425121vw;
        line-height: 1.7142857143;
    }
    .article-list-wrap .article-list {
        gap: 2rem;
    }
    .article-list-wrap .article-item {
        width: calc((100% - 2rem) / 2);
    }
	.is-read {
	    margin-inline: 10px;
	    font-size: 14px;
	}
	.article-list .article-item .title {
	    font-size: 14px;
	}
	.article-heder, .detail-content, .articles-side, .article-detail-content .read {
        margin-inline: 10px;
    }
	.detail-footer {
		flex-direction: column;
		width: 100%;
	}
}
@media (min-width: 769px) {
	.article-detail {
		width: calc(70% - 3em);
	}
	.articles-side {
		width: 30%;
	}
	.detail-footer {
	    width: calc(70% - 3em);
	}
}