/*
Theme Name: ARENA Community
Theme URI: https://arena-world.co.jp/
Author: ARENA / 株式会社三慶商事
Description: 承認済みARENAデザインのWordPress移行用テーマ。既存記事を維持し、新しい固定ページを明示操作で下書き作成できます。
Version: 1.1.1
Requires at least: 5.4
Requires PHP: 7.4
Text Domain: arena-community
*/

.arena-wordpress .arena-legacy-content img{max-width:100%;height:auto;width:auto;object-fit:contain}
.arena-wordpress .arena-legacy-content iframe,.arena-wordpress .arena-legacy-content video{max-width:100%}
.arena-wordpress .arena-legacy-content p+p{margin-top:1.4em}
.arena-wordpress .arena-legacy-content ul,.arena-wordpress .arena-legacy-content ol{padding-left:1.5em;line-height:2}
.arena-wordpress .arena-legacy-content a{color:#23633f;text-decoration:underline;text-underline-offset:3px}
.arena-wordpress .arena-legacy-content table{width:100%;border-collapse:collapse;display:block;overflow:auto}
.arena-wordpress .arena-legacy-content td,.arena-wordpress .arena-legacy-content th{padding:12px;border:1px solid #d6dfd7}
.arena-wordpress .arena-legacy-content h2,.arena-wordpress .arena-legacy-content h3{margin:1.5em 0 .7em}
.arena-wordpress .arena-legacy-content .aligncenter{margin-left:auto;margin-right:auto}
.arena-wordpress .arena-legacy-content .wp-caption{max-width:100%}
.arena-wordpress .arena-legacy-content .wp-caption-text{font-size:13px;color:#647068}
.arena-pagination,.arena-pagination .nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:40px 0}
.arena-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border:1px solid #d6dfd7}
.arena-pagination .current{background:#23633f;color:#fff}
.arena-search-form{max-width:600px;margin:30px 0 45px}.arena-search-form label{display:block;margin-bottom:10px}
.arena-search-form>div{display:flex;gap:12px}.arena-search-form input{min-width:0;flex:1;padding:14px;border:1px solid #aebdb1;font:inherit}
.arena-search-form button{background:#23633f;color:white;border:0;padding:14px 24px}
.arena-contact-form{background:#f4f6f4}.arena-contact-form .section-inner{max-width:800px}.arena-contact-form h2{margin-bottom:32px}
.arena-contact-form label{display:block;font-weight:600}.arena-contact-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),.arena-contact-form select,.arena-contact-form textarea{width:100%;max-width:100%;margin:8px 0 18px;padding:14px;border:1px solid #aebdb1;background:white;font:inherit;border-radius:0}
.arena-contact-form input[type=submit]{border:0;background:#23633f;color:white;padding:16px 32px;font:inherit;cursor:pointer}
.arena-contact-form .wpcf7-not-valid-tip{font-size:14px}.arena-contact-form .wpcf7-response-output{padding:16px}
.arena-archive-description{margin-bottom:35px}
.admin-bar .site-header{top:32px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){.admin-bar .site-header{top:0}.arena-legacy-content{overflow-wrap:anywhere}.arena-search-form button{padding:12px 18px}.arena-pagination{gap:6px}}

.arena-partner-banners{padding:76px 0 84px;background:#f2f5ef;border-top:1px solid #dfe7dc;color:#193b2b}
.arena-partner-banners .section-inner{width:calc(100% - 48px);max-width:1280px;margin-left:auto;margin-right:auto}
.arena-partners-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-bottom:30px}
.arena-partners-heading .eyebrow{margin:0;color:#477154;letter-spacing:.12em;font-size:12px}
.arena-partners-heading h2{margin:0;font-size:25px;font-weight:700;letter-spacing:.03em;line-height:1.5}
.arena-banner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0;margin:0;list-style:none}
.arena-banner-grid li{min-width:0;margin:0;list-style:none}
.arena-banner-card{display:flex;flex-direction:column;height:100%;padding:22px 24px 18px;background:#fff;border:1px solid #dbe4d8;border-radius:4px;color:#244631;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.arena-banner-art{display:flex;align-items:center;justify-content:center;width:100%;height:140px;min-width:0}
.arena-banner-art img{display:block;width:auto;height:auto;max-width:100%;max-height:132px;object-fit:contain}
.arena-banner-caption{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e6ece2;margin-top:18px;padding-top:15px;font-size:13px;font-weight:600;line-height:1.7}
.arena-banner-caption>span:first-child{min-width:0;overflow-wrap:anywhere}
.arena-banner-arrow{font-size:21px;font-weight:400;line-height:1;flex-shrink:0;color:#547b49}
.arena-banner-card:hover{border-color:#7d9d6d;box-shadow:0 5px 20px #173b2610}
.arena-banner-card:focus-visible{outline:3px solid #23633f;outline-offset:4px}
@media(max-width:1000px){.arena-banner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.arena-partners-heading{display:block}.arena-partners-heading .eyebrow{margin-bottom:12px}}
@media(max-width:540px){.arena-partner-banners{padding:48px 0 54px}.arena-partners-heading{margin-bottom:24px}.arena-partners-heading h2{font-size:21px}.arena-banner-grid{grid-template-columns:minmax(0,1fr);gap:14px}.arena-banner-card{padding:18px 20px 16px}.arena-banner-art{height:116px}.arena-banner-art img{max-height:112px}.arena-banner-caption{margin-top:14px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.arena-banner-card{transition:none}}

.arena-legacy-note{padding:20px;background:#f0f5ee;border-left:3px solid #23633f}.arena-legacy-details dt{font-weight:700;border-top:1px solid #dde5dd;padding:20px 0 8px}.arena-legacy-details dd{margin:0 0 20px;overflow-wrap:anywhere}

/* WordPress native galleries from preserved articles. */
.arena-legacy-content .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0;clear:both}
.arena-legacy-content .gallery.gallery-columns-1{grid-template-columns:minmax(0,1fr)}
.arena-legacy-content .gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.arena-legacy-content .gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.arena-legacy-content .gallery.gallery-columns-5,.arena-legacy-content .gallery.gallery-columns-6,.arena-legacy-content .gallery.gallery-columns-7,.arena-legacy-content .gallery.gallery-columns-8,.arena-legacy-content .gallery.gallery-columns-9{grid-template-columns:repeat(4,minmax(0,1fr))}
.arena-legacy-content .gallery-item{float:none!important;width:auto!important;max-width:100%;min-width:0;margin:0;text-align:center}
.arena-legacy-content .gallery-item img{max-width:100%;height:auto;border:0}.arena-legacy-content .gallery-caption{font-size:13px;line-height:1.8;margin-top:8px}
.arena-legacy-content .gallery>br{display:none}.arena-legacy-content .wp-video,.arena-legacy-content video,.arena-legacy-content iframe,.arena-legacy-content .wp-caption{max-width:100%}
.arena-legacy-content video{height:auto}.arena-legacy-content .alignleft{float:left;margin:0 24px 16px 0}.arena-legacy-content .alignright{float:right;margin:0 0 16px 24px}.arena-legacy-content .aligncenter{display:block;margin-left:auto;margin-right:auto}
.arena-legacy-content .article-body{display:flow-root;overflow-wrap:anywhere}.arena-legacy-content .article-body>div{max-width:100%}
/* Copied article image rows retain their content and wrap on narrow screens. */
.arena-legacy-content .flex{flex-wrap:wrap;min-width:0;max-width:100%}
.arena-legacy-content .flex>*{min-width:0;max-width:100%}
@media(max-width:600px){.arena-legacy-content .gallery:not(.gallery-columns-1){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.arena-legacy-content .alignleft,.arena-legacy-content .alignright{float:none;display:block;margin:16px auto}}
@media(max-width:360px){.arena-legacy-content .gallery:not(.gallery-columns-1){grid-template-columns:minmax(0,1fr)}}
