/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-gray: #e2f0f9;
    --border-color: #ddd;
    --link-color: #2980b9;
    --link-hover-color: #1abc9c;
    --button-hover-color: #2980b9;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 下層ページのページヘッダーに固定ヘッダー分のスペースを確保 */
body:not(.front-page) section.page-header {
    padding-top: 100px;
    margin-top: 100px;
} 

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.4;
}

.flex {
    display: flex;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-align: left;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 10px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--link-hover-color);
    background-color: rgba(26, 188, 156, 0.1);
    border-radius: 4px;
}

/* Main Content */
main {
    padding: 0;
}

/* Page Header */
.page-header {
    background-color: var(--light-gray);
    padding: 80px 0 60px;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--link-color);
    position: relative;
    padding-bottom: 2px;
}

.breadcrumb a:hover {
    color: var(--link-hover-color);
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--link-hover-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.breadcrumb a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* greeting section  */
.about-image {
    width: 250px;
}

.greeting-section {
    padding: 80px 0;
}

.greeting-content {
    gap: 20px;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .greeting-content {
        flex-direction: column;
    }
}

/* Blog List */
.blog-container {
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 2;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.blog-post img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-meta span {
    margin-right: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Blog Post Details */
.blog-single {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-header img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 30px;
}

.post-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    background: var(--light-gray);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-color);
    margin-right: 10px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.post-navigation a {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: #fff;
}

.post-navigation span {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.post-navigation h3 {
    font-size: 18px;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-project img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.related-project h4 {
    margin-top: 15px;
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 80px 0 20px;
    text-align: center;
}

.footer-content {
    text-align: left;
    margin-top: 16px;
}

small {
    font-size: 9px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
/* 下層ページのページヘッダーに固定ヘッダー分のスペースを確保 */
    body:not(.front-page) section.page-header {
    margin-top: 200px; 
    padding: 60px 0 0 0;
    } 

    .blog-container {
        flex-direction: column;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .related-project img {
        height: 240px;
    }
}

/* 会社概要ページ */
.page-company {
    padding: 0px 1rem;
}

.section-title {
    margin-bottom: 30px;
}

.page-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.business-section h2{
    color: var(--link-color);
    display: inline-block;
}

.business-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 2rem;
    height: 300px;
    align-items: center;
}

.business-content img {
    width: 100%;
    height: 100%;
    max-width: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.business-content .text {
    flex: 1;
    min-width: 250px;
}

.company-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.company-info th,
.company-info td {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.company-info th {
    background: #f7f7f7;
    width: 30%;
}

@media screen and (max-width: 768px) {
    .business-content {
    height: auto;
    }
}
@media screen and (max-width: 577px) {
    .subtitle {
    text-align: left;
    }
}
/* ポートフォリオ詳細ページ */
.portfolio-single {
    padding: 40px 0;
}

.portfolio-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.portfolio-gallery {
    margin-bottom: 40px;
}

.portfolio-gallery > img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-thumbnails img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-thumbnails img:hover {
    transform: translateY(-5px);
}

.project-info {
    /* background: var(--light-gray); */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.project-info h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.project-info ul {
    list-style: none;
}

.project-info li {
    margin-bottom: 10px;
    display: flex;
}

.project-info strong {
    width: 100px;
    flex-shrink: 0;
}

.project-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.project-description h3 {
    font-size: 20px;
    margin: 30px 0 15px;
}

.project-description ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-description li {
    margin-bottom: 10px;
}

.project-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.project-tags a {
    background: var(--light-gray);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-color);
    margin-right: 10px;
    transition: all 0.3s;
}

.project-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.related-projects {
    margin-top: 60px;
}

.related-projects h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-project {
    position: relative;
    overflow: hidden;
}

.related-project a:hover img {
    transform: scale(1.05);
}

/* お問い合わせページ */
.contact-container {
    padding: 40px 0;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* お問い合わせフォームの同意チェックボックスを横並びにする */
/* CF7 [acceptance] が出力する内部の label に flex を適用 */
.contact-form .form-group .wpcf7-list-item > label {
  display: flex;
  align-items: center; /* 垂直方向中央揃え */
  gap: 0.5em; /* チェックボックスとテキストの間の隙間 (任意) */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 10px;
    width: auto;
}

.submit-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
    cursor: pointer;
}

.submit-btn:hover {
    background-color: var(--button-hover-color);
    border-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-map {
    margin-top: 60px;
}

.contact-map h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .portfolio-main,
    .contact-main {
        grid-template-columns: 1fr;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-thumbnails img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails {
        grid-template-columns: 1fr;
    }
}

/* スライダー */
.slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    max-width: 800px;
    width: 90%;
    padding: 0 20px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: #fff;
}

/* 会社概要セクション */
.subtitle {
    text-align: center;
    margin-bottom: 80px;
}

.business {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.business h2 {
    font-size: 28px;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.business-item {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.business-item:hover {
    transform: translateY(-5px);
}

.business-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.business-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.business-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

/* お知らせセクション */
.blog-section {
    padding: 80px 0;
}

.blog-section h2 {
    font-size: 28px;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
    height: 80px;
}

.post-meta {
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

.blog-post p {
    padding: 10px 20px;
    color: #666;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* サイドバー */
.sidebar {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.sidebar .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .sidebar .container {
        grid-template-columns: 1fr;
    }
}

/* ポートフォリオアーカイブページ */
.portfolio-archive {
    padding: 40px 0;
}

.portfolio-filters {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-filters ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-filters a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-filters a:hover,
.portfolio-filters a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* アーカイブページ共通スタイル */
.archive-filters {
    margin-bottom: 60px;
    text-align: center;
}

.archive-filters ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.archive-filters a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.archive-filters a:hover,
.archive-filters a.active {
    background-color: var(--primary-color);
    color: #fff;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.archive-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.archive-item:hover {
    transform: translateY(-5px);
}

.archive-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.archive-item a:hover img {
    transform: scale(1.05);
}

.archive-item-content {
    padding: 20px;
}

.archive-item-content h3 {
    font-size: 18px;
    height: 40px;
    margin-bottom: 10px;
}

.archive-item-content p {
    color: #666;
    margin-bottom: 15px;
}

.archive-item-meta {
    font-size: 14px;
    color: #666;
}

.archive-item .category {
    display: inline-block;
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* リンクの基本スタイル */
a {
    color: var(--link-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* インラインリンクのスタイル */
p a, .post-content a {
    background-image: linear-gradient(var(--link-hover-color), var(--link-hover-color));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}

p a:hover, .post-content a:hover {
    background-size: 100% 2px;
}

/* ボタンの共通スタイル */
.button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

.button:hover {
    background-color: var(--button-hover-color);
    border-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    color: #fff;
}

/* もっと見るリンクのコンテナ */
.more-link {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 送信ボタン */
.submit-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
    cursor: pointer;
}

.submit-btn:hover {
    background-color: var(--button-hover-color);
    border-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* ページネーション（元のスタイルに戻す） */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.custom-logo {
    max-width: 300px;
    height: auto;
    display: block;
}

/* Single Post Thumbnail */
.blog-single .post-thumbnail {
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-single .post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
}

.home-blog-more {
    margin-top: 40px;
    text-align: center;
}

/* ヘッダーのサイトロゴのサイズ調整 */
.custom-logo-link .custom-logo {
  width: 400px; /* 幅を400pxに設定 */
  height: 100px; /* 高さを100pxに設定 */
  object-fit: contain; /* 画像の比率を保ちつつ、指定した領域に収める */
}